The post has been translated automatically. Original language: Russian
When a new internal service appears, many people follow the simplest path.
There is a server on which the processor, memory and disk are free. This means that you can install another application there.
At first it really seems convenient.
The website is running on the same server.
There is a database nearby.
There's also a monitoring system.
Later, the corporate Wiki appears.
Then a VPN.
After a while, the file storage is added.
While there are few users, everything is functioning without noticeable problems.
But a year passes, and the question arises: what exactly can be rebooted, updated, or migrated so as not to break anything?
It turns out that it is no longer easy to answer.
All services start to depend on each other.
If you need to update the operating system, you have to consider several applications at once.
If one service suddenly starts actively using the processor or memory, this affects the work of the others.
And if you need to transfer only one of them to another server, you won't be able to do it quickly.
That is why virtualization has changed the way we build infrastructure.
Today, a separate virtual machine is not a luxury or a sign of redundancy.
This is a way to make the system more understandable.
Each service gets its own environment.
It can be updated independently of the others.
Restarting one application does not affect the neighboring ones.
It's easier to look for the causes of errors.
It's easier to migrate services.
It's easier to plan development.
Of course, it doesn't always make sense to create a separate VM for each small task either.
It is important to maintain a balance.
But if a service performs an independent function, has its own lifecycle, or requires separate maintenance, isolation usually pays off.
There is an interesting observation.
When the infrastructure is just developing, everyone is thinking about computing resources.
Is there enough memory?
Is there enough CPU?
How much disk space should I choose?
After a few years, the questions become completely different.
How easy is it to update this service?
Is it possible to transfer it without stopping the rest?
Is it clear to the new employee exactly where he works?
It is then that it becomes noticeable that a well-divided infrastructure saves not so much processor time as people's time.
Cloud technologies are valued not only for the ability to quickly create a virtual machine.
The main advantage comes later, when the infrastructure grows. The more independent and understandable components it has, the easier it is to maintain order and the less likely it is that a change in one place will unexpectedly affect the operation of a completely different service.
Несколько лет назад было популярно обсуждать полный переход в облако.
Иногда складывалось впечатление, что собственные серверы скоро вообще исчезнут.
Сегодня разговоры стали спокойнее.
Компании все чаще задают другой вопрос: какие системы действительно стоит переносить, а какие лучше оставить там, где они работают сейчас?
И это гораздо более практичный подход.
Представьте организацию, которая использует десяток разных сервисов.
Корпоративный сайт.
CRM.
Систему резервного копирования.
Файловое хранилище.
Внутреннюю бухгалтерию.
Все они предъявляют разные требования к инфраструктуре.
Например, корпоративный сайт может испытывать резкие скачки посещаемости. Для него возможность быстро увеличить вычислительные ресурсы становится серьезным преимуществом.
А вот внутренний архив документов работает практически одинаково изо дня в день. Его нагрузка предсказуема и почти не меняется.
Получается, что одинаковое решение для всех сервисов не всегда будет самым удачным.
Именно поэтому сегодня все чаще используют гибридный подход.
Часть систем работает в облачной инфраструктуре.
Часть остается на выделенных серверах или внутри компании.
Такой вариант позволяет выбирать среду не по моде, а по задачам.
Есть еще один плюс.
Перенос инфраструктуры перестает быть масштабным проектом, который нужно выполнить за один раз.
Можно начать с одного сервиса.
Посмотреть, насколько удобно его сопровождать.
Оценить производительность.
Понять, как изменилась работа команды.
И только после этого принимать решение о следующих этапах.
Такой путь обычно оказывается менее рискованным.
Если внимательно посмотреть на инфраструктуру большинства компаний, редко можно встретить проекты, где абсолютно все системы одинаковы.
Одни постоянно развиваются.
Другие годами выполняют одну и ту же функцию.
Одни доступны пользователям круглосуточно.
Другими пользуются несколько сотрудников.
Поэтому и требования к ним различаются.
Облачные технологии не требуют отказаться от всего, что уже работает.
Они дают возможность выбирать наиболее подходящий вариант для каждой конкретной задачи.
Иногда лучшим решением действительно становится полный переход в облако.
Иногда — сочетание нескольких подходов.
Главное преимущество современной инфраструктуры заключается не в том, что все должно находиться в одном месте. Оно в том, что сегодня появилась возможность строить архитектуру исходя из реальных потребностей бизнеса, а не из ограничений оборудования.