Get the latest tech news
Rearchitecting GitHub Pages (2015)
GitHub Pages, our static site hosting service, has always had a very simple architecture. From launch up until around the beginning of 2015, the entire service ran on a single…
From launch up until around the beginning of 2015, the entire service ran on a single pair of machines (in active/standby configuration) with all user data stored across 8 DRBD backed partitions. We also use ngx_lua’s shared memory zones to cache routing lookups on the pages-fe node for 30 seconds to reduce load on our MySQL infrastructure and also allow us to tolerate blips a little better. We run a pretty simple nginx config on the fileservers too – all we do is set the document root to$http_x_github_pages_root(after a little bit of validation to thwart any path traversal attempts, of course) and the rest just works.
Or read this on Hacker News