Editing
Distributed Systems
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== <span style="color: #FFFFFF;">Applying</span> == '''Modeling 'The Consensus Problem' (Agreement in a noisy room):''' <syntaxhighlight lang="python"> import random def reach_consensus(nodes, value): """ Simplified 'Majority Rule' consensus. """ votes = [] for node in nodes: # 10% chance a node is 'Down' if random.random() > 0.1: votes.append(value) else: votes.append("ERROR") # If more than 50% agree, we have a state! if votes.count(value) > (len(nodes) / 2): return f"SUCCESS: System agreed on {value} with {votes.count(value)} votes." else: return "FAILURE: System could not reach consensus (Too many nodes down)." # A cluster of 5 servers trying to save a database entry print(reach_consensus(["S1", "S2", "S3", "S4", "S5"], "User_Balance=100")) </syntaxhighlight> ; Distributed Landmarks : '''The 'Google File System' (GFS) Paper (2003)''' β The document that changed the world by showing how to build a massive storage system using thousands of "Cheap, failing computers" instead of one expensive mainframe. : '''Bitcoin (2008)''' β The first truly "Decentralized" system that solved the consensus problem without needing a central boss (using Proof of Work). : '''Netflix Chaos Monkey''' β A tool used by Netflix that "Randomly Kills" their own servers in production to force their developers to build systems that never crash. : '''The Fall of 1996 (AOL)''' β A famous 19-hour outage that showed the world how fragile distributed systems can be if they aren't designed for scale. </div> <div style="background-color: #8B4500; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
Summary:
Please note that all contributions to BloomWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BloomWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information