⬆️ ⬇️

How data centers save holidays



During the year, Russians regularly go on holidays - New Year holidays, May holidays and other shorter weekends. And this is the traditional time for serial marathons, spontaneous purchases and sales on Steam. In the pre-holiday period, retail and logistics companies are experiencing increased load: people order gifts in online stores, pay for their delivery, buy tickets for trips, communicate. Calendar demand peaks are a good stress test for online cinemas, gaming portals, video hosting and streaming music services - on holidays they all work “to wear out”.



We describe how to ensure the uninterrupted availability of content on the example of the Okko online cinema, which is based in its work on the power of the Linxdatacenter data center.



Previously, for seasonal consumption, additional equipment was purchased for local distribution, and “with a reserve”. However, when “Time” came, it often turned out that companies either could not or did not have time to cope with the proper configuration of servers and storage systems. To solve these problems in the course of the development of emergency situations simply did not work. After a while, it came to an understanding: the demand peaks for content and online services are fine-tuned with the help of third-party resources that can be purchased using the pay-as-you-go model — the payment for the actual consumption.



Today, almost all companies that anticipate a surge in demand for their resources on holidays (the so-called burst), order expansion of the capacity of communication channels in advance. Those companies that will place applications and databases on data center resources will increase computational power in the clouds for holiday peaks by re-ordering the necessary virtual machines, storage capacity, etc. in data centers.

')

How not to miss in the calculations







To prepare for peak loads, coordinated work between the provider and the client is important. The main points in this work include an accurate forecast of the load jump in terms of time and volume, careful planning and quality of interaction with colleagues inside the data center, as well as with a team of IT specialists on the content provider side.



A number of solutions help to organize the quick allocation of the resources necessary to ensure that the new series of your favorite series on the screen of your tablet does not hang.





All-seeing Okko





Consider an example of preparation for the holidays online cinema Okko, using our platforms in Moscow and St. Petersburg.



According to Alexey Golubev, technical director of Okko, in the company, besides calendar holidays (high season), there are periods when the main film stories from the majors come out:

“Every year in the holiday season Okko grows approximately twice as much in terms of traffic from the previous year. So, if in the last New Year season the maximum peak load was 80 Gb / s, then in 2018/19 we expected 160 - the traditional growth twice. However, we received more than 200 Gbit / s! ”

Okko is always preparing for the peak load slowly, during the year, as part of the project, codenamed “New Year”. Previously, Okko used its own infrastructure; the company has its own distribution cluster for content delivery, on its own hardware and with its own software. Over the course of the year, Okko technicians gradually bought new servers, increased the bandwidth of their cluster, suggesting annual growth twice. Additionally, new uplinks and operators were connected — in addition to large players like Rostelecom, MegaFon and MTS, they also connected traffic exchange points and the smallest operators. Such an approach allowed delivering the service to the maximum number of customers by the shortest route.



Last year, after analyzing the cost of equipment, labor costs for expansion and comparing with the cost of using third-party CDNs, Okko realized that it was time to try a hybrid distribution model. Over the two-fold growth in the New Year holidays, there is a decline in traffic, and February is the lowest season. And it turns out that their equipment is idle at this time. By summer, the decline is leveled, and by the autumn season a new rise begins. Therefore, in preparation for the new year 2019, Okko chose a different way: they modified their software to be able to distribute the load not only on themselves, but also on external CDNs (Content Delivery Network). Two such CDNs were connected to which excess traffic “merged”. Okko's IT infrastructure's internal bandwidth was ready to withstand the very double growth, but in case resource overruns were made, partner CDNs were prepared.



“The decision not to increase my CDN saved Okko about 20% of the distribution budget in CAPEX. Plus, the company saved several man-months by shifting the work of setting up equipment on the shoulders of a partner. ”- comments Alexey Golubev.


The distributing cluster (internal CDN) in Okko is implemented at two Linxdatacenter sites in Moscow and St. Petersburg. Full mirroring of both content and caching (distribution nodes) is provided. Accordingly, the Moscow data center processes Moscow and several regions of Russia, and St. Petersburg - the North-West and the rest of the country. Balancing occurs not only on a regional basis, but also depending on the workload of the nodes in a particular data center, the presence of a movie in the cache and a number of other factors are also taken into account.



The integrated architecture of the service looks like this in the diagram:







Physically, service and product development support consist of about ten racks in St. Petersburg and several racks in Moscow. There are a couple of dozen servers for virtualization and almost two hundred “iron” servers for everything else - distribution, support of the service and its own office infrastructure. The interaction of the content provider with the data center during peak loads is no different from the current work. All communication is limited to the application to the support service, and in case of an emergency situation - by call.



Today, more than ever, we are close to the present, for a 100% uninterrupted scenario of content consumption online, since all the necessary technologies for this are already available. The development of online streaming is very fast. The popularity of legal content consumption models is growing: Russian users are beginning to gradually get used to paying for content. Moreover, not only for the cinema, but also for music, books, educational materials on the network. And in this regard, the delivery of the most diverse content and with the least network delays is the most important criterion in the operation of online services. And our task as a service provider is to close the resource requirements on time and with a margin.

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



All Articles