⬆️ ⬇️

Facebook opens new data centers

Thousands of servers in their own Facebook data centers can hardly withstand the load. Every week, almost two million new users register on the site in addition to the tens of millions available. All of them spend on the site an average of several hours and load hundreds of pages per day, which creates considerable problems for engineers. One of the Facebook programmers tells in a corporate blog what to deal with.



A few weeks ago, the load in Californian data centers Facebook reached its maximum. Previously, in such situations, they bought a couple more dozen servers, but now this method is impossible. The data centers ran out of space for installing new racks.



However, Facebook engineers had foreseen this situation in advance and had long since begun the construction of a new data center in Virginia, which has now been commissioned. Apparently, this is not the last data center company Facebook.



Now, from the East Coast of the USA and from Europe, the pages of the site will load much faster (almost a third of all requests), although the editing and downloading of content is still carried out only through California servers. Such redirection is carried out only for 10% of traffic. MySQL's replication function works fine, so all entries are copied to servers in Virginia within one to two seconds after modification. The problem arose with how to update the data on the memcached servers simultaneously with the update of the database. To solve it, we even had to modify the source code of MySQL in order to embed additional data into the replication stream.


')

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



All Articles