How does Facebook configure millions of servers every day?
Facebook, the world's largest social network, currently has more than 2 billion users on millions of servers. So to edit, change the configuration for each server, how did Facebook have to do?
Previously, to solve this problem, Facebook used the open source configuration system Zoo Keeper. In one run, Zoo Keeper only distributed configurations up to 5Mb up to 2500 servers. This speed does not meet the requirements of Facebook when they want to change the configuration for the entire server as quickly as possible when launching new features, all users (can be divided by zone geographic area) can be provided in the fastest way and must be true in real time. This means that all Facebook users in Canada and Facebook users in the US must use the same latest functionality.
To give users the best experience, the team of Facebook engineers want to create a new tool with a speed of configuration distribution at 5s and a configuration capacity 10 times that of Zoo Keeper. And they have developed a system that can automatically distribute the configuration on the entire server called Location Aware Delivery (LAD).
LAD consists of two parts:
- The first part is a proxy located on Facebook's main system. Its mission is to provide the latest configurations to any server that needs it.
- The second part is a distribution system, which provides configuration information to all of Facebook's server systems. This system continuously checks the latest configuration tables from the proxy system, when a new configuration table is discovered, a server diagram tree is created and will automatically perform updates on all that server. This tree structure will ensure that updates are sent to proxies, servers, and child servers. Such a process will help solve the overload when distributing changes at the maximum level.
LAD of Facebook can increase the update file size to 100MB, distribute up to 40,000 servers once, increase 16 times compared to Zoo Keeper.
See more:
- Google and 2 billion lines of code, how does the search giant work?
- Want to know what surprise Facebook holds about you, visit here
You should read it
- How to keep Facebook server from collapsing?
- Facebook confirmed that the global network crash was caused by server configuration changes, which have not been resolved yet
- How to view and delete your location history on Facebook
- Facebook users will not be able to avoid being tracked and collected for advertising purposes
- How to turn off status status on Facebook?
- How to turn off the feature that suggests making friends via Facebook locations
- Summary, all things from A to Z to Facebook
- How to change your Facebook location
- Here's how to choose the type of Facebook ad that shows up on your Facebook
- 5 ways Facebook has changed our lives
- Check what Facebook 'knows' about you
- 6 useful features of Facebook are rarely used
Maybe you are interested
Why is there no professional mode on Facebook?
How to retrieve Facebook password, recover latest account
How to contact Facebook account support
Instructions to turn off Facebook Story comments
7 things you should not share on social network Facebook
Instructions to hide likes on Facebook on phone and computer