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 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
May be interested
- Configure God of War Ragnarok on PCthe configuration of the pc version of god of war ragnarok has been predicted, looking at the gameplay on ps, players can also partly guess what the required and minimum configurations are.
- Breaking into the Phone Farm factory creates millions of views on TikTok and Facebooka phone farm set of 20 junk phones priced from 20 - 25 million vnd including operating costs will help the owner manipulate millions of interactions on social networks.
- Facebook purification, a series of fanpage entertainment 'dead teeth'from the afternoon of january 13, the vietnamese fanpage admin community roared as a series of large fanpage were blocked for unknown reasons. the fanpage blocked in this purge has a number of likes from a few tens of thousands to nearly millions of likes.
- Secedit: configure command in Windowssecedit: configure command allows you to configure the current system settings using the security settings stored in the database.
- Configure 2020 Pes PCpes 2020 configuration is considered lower than the games that will be released in the same year as doom eternal, half life alyx, cyberpunk 2077 ...
- The basic advantages of Linux servers and Window serversyou plan to hire a server service to build a website for small businesses, but you need to know the basics of network servers. the whole purpose and total characteristics of a website are the factors that form the server selection
- Configure GTA Trilogy on PCconfiguring gta trilogy on pc will require a level of configuration far from what the originals required.
- Instructions on how to prevent Facebook from automatically translating textfacebook is a worldwide social network with hundreds of millions of users speaking different languages. the automatic text translation feature makes it easy to understand what foreign friends say, but you don't always need this feature.
- Facebook was prosecuted for more than 150 companies accessing users' messagesthe new york times' more than 200-page report recently revealed a scary secret about the world's largest social network today. it is facebook that has shared millions of users' data for more than 150 companies over the years.
- Phone numbers of 419 million Facebook accounts have just been leaked, 50 million accounts of users in Vietnam are affectedaccording to techcrunch, a data block containing hundreds of millions of phone numbers connected to 419 million facebook accounts has been discovered to exist on an online server but not protected by a password, anyone can access it. counter.