📜 ⬆️ ⬇️

Come down from heaven: let's just count?

The question "should I use the cloud or not?" But today we will approach it from the other side: we will just think and consider when it is better to rent the server. We decided to write about it today, as such “assessments” are increasingly being done with customers, so let the work done become public knowledge.



Cloud services in one way or another have penetrated our everyday life - these are file storages with access to any devices that have an Internet connection, and cloud office applications that make it easy to collaborate on documents, and public services, and access to your bank account , and much more. This is clear evidence that private, public, and hybrid clouds have covered, if not most, then a significant number of commercial and private data center sites. As various studies show, this trend will only gain momentum, and therefore the option of renting power is increasingly looking like a worthy alternative. But is he really to her?

How much to hang in grams?


Thinking about cloud services to optimize business processes, we must not forget that modern technologies are not standing still: processor performance, memory capacity, SSD capacity is complemented by software-defined solutions and modern software platforms, from operating systems to application services often provide us with very wide opportunities. So wide that it is not always possible for them to find a rational ratio of the money spent and the return obtained. This situation is similar, both for an existing business and for a startup. In the first case, questions arise when the existing IT infrastructure grows or becomes physically degraded; in the second case, the problem is that it is very difficult to determine the “configuration for the beginning”.
')


Many decide to go the beaten paths and invest in hardware, software, places in racks, engineers, in general - all, as they used to. And this is not surprising, because the IT development strategy, both in big business and in government structures, is usually left to the relevant departments, which “do not need all these clouds” for nothing. But over the past decade, significant progress has been made in Russia in terms of developing broadband access over a large territory of our vast country, and active work in this direction continues (at least, according to assurances from the Ministry of Communications and Mass Media). In addition, there are two other factors that can lead, if not to explosive, then at least quite rapid growth in cloud demand:


With regard to the available solutions, in the Russian Federation to create a computing infrastructure in the cloud, the most widely used are VMware products, variations based on Openstack and Microsoft services. Any of these categories has an extensive toolkit that allows you to create all kinds of cloud solutions, in addition, in each product family, extended functionality is available to go beyond IaaS. Due to the possibility of creating hybrid clouds other than public, the listed platforms are easily adapted to fit the legislative framework of the Russian Federation. But each time a question arises: what risks can a cloud system cause, and how much will it actually cost?

Calculation example


As an example, let's try to consider a typical scenario of using a cloud solution. For example, the company requires the introduction of a new IP, which forms the business analytics on the basis of already existing databases. As a result, the impact on already operated subsystems should be minimal. They (subsystems) are not immutable, which implies episodic adaptation of procedures for uploading data to a warehouse, refactoring reports, conducting a load test cycle and translating the adapted information system into a productive state.

Thus, the introduction of a new IC implies the presence of three circuits - productive, pre-productive (load testing and a standby server for productive) - a configuration close to productive, test. Estimated indicators for resource requirements show the need for three servers with configuration 2 CPU class E5-2640v3, RAM 64GB, about 2-3 TB of capacity, preferably on fast drives (for example, 12 SAS disks of 15k rpm with 600GB, and better - SSD) . The monthly reporting cycle, respectively, during the month mainly requires access to the already generated reports.

The nature of the data stored in the systems is commercial information, personal data may be present. Based on this, it is obvious that two servers — productive and pre-productive — are bad candidates for hosting in the cloud, at least in public. But the test server, subject to the use of the data anonymization mechanism, is the very option when the cloud can be used.

Suppose that the existing infrastructure no longer has the resources to host it, for example, to activate the existing test loop, you will need to increase the storage capacity and purchase an additional server for expanding the virtualization farm. Often at the same time free ports are exhausted in the SAN network and much more investment is required. But even the server budget in this configuration with a three-year support will be about $ 30,000 (if we talk about the HPE DL380 G9, although you can take something cheaper and limit yourself to $ 15,000).

What does the cloud offer us? Since the type of loading of test resources is episodic, the placement with the pay-as-you-go payment scheme is of interest, i.e. on actually consumed resources. At the stage of IP implementation, the test environment is used intensively for three months, which is approximately 8 hours x 24 days x 3 = 576 hours, later, the test system is used every two months for 40 hours, that is, for the first year we get 576 + 160 hours, for the next two, 240 hours a year.

Unfortunately, online calculators with this payment scheme are available for services that do not officially work on our market - these are Amazon and Google. But to make a rough estimate, you can focus on them.

So, we take VM with the profile m4.4xlarge in Amazon AWS EC2:


vCPU - 16.
ECU - 53.5.
Memory (GiB) - 64.
Instance Store (GB) - EBS.
Using Linux / UNIX - $ 0.96 per hour.

The result is the following calculation:


1st year $ 0.96 * (576 + 160) = $ 706.56.
The second year is $ 0.96 * 240 = $ 230.4.
3rd year $ 230.4.

As for the storage system, we take EBS. For example, take Amazon EBS General Purpose SSD (gp2) at $ 0.119 per GB-month of dedicated storage. For disk space, calculations are somewhat different, since the VM will be used only during business hours, and the disk space will have to be reserved for the entire period of VM operation. Thus, we get 24 hours x 30 days x 3 = 2160 hours for implementation and 480 hours support in the first year, as well as 720 hours for support in the following years. After each cycle of work, the data disk is released and you can no longer pay for its rent.

Total disk subsystem we get:


The first year is $ 0.119 * 3000 * 2160 / (24 * 90) + $ 0.119 * 3000 * 480 / (24 * 120) = $ 1309.
The second year is $ 0.119 * 3000 * 720 / (24 * 180) = $ 357.
3rd year $ 357.

The total amount for the entire rental reaches the following figures:


1st year 706.56 + 1309 = $ 2015.56.
2nd year 230.4 + 357 = $ 587.4.
3rd year $ 587.4.

It turns out that we will pay $ 3,190.36 for three years. Well, let them have to take these services from other providers, so round up the amount to $ 5000. It may also be necessary to use snapshots or the VM operation time will be higher, but the cost of the new server will be problematic to achieve even with the most pessimistic forecast.

Conclusion


Yes, the assessment was made fairly rough, in fact, “for a spherical horse in a vacuum,” but it still makes it possible to conclude that it makes sense to consider public clouds to solve at least secondary tasks. If there is a need to allocate additional resources for test projects and development, the creation of services from scratch, when the equipment is already “breathing its last,” in most scenarios that require the purchase of new equipment, it would be reasonable to look first at the clouds.

Moreover, since cloud solutions are essentially extraterritorial, any services are available, including such “monsters” like Microsoft or VMware, which provide tools for building cloud platforms and their own ready-made cloud products. Services of such world leaders of cloud solutions as Amazon and Google are less in demand by domestic business, which is due to their policy of promoting services in Russia (or rather, its absence). But on the other hand, they have convenient calculators, and no one forbids their use by advanced teams or individuals in the field of software development. For the majority, numerous Russian platforms will be relevant, which will be happy to provide their version of such a calculation upon request, completely free of charge. So do not hesitate to consider and ask - it may be that today the cloud will be cheaper, more convenient and more reliable than an overloaded infrastructure, if we talk about development and testing tasks.

Source: https://habr.com/ru/post/333976/


All Articles