Re:Ask HN: How would you handle a large traffic spike (eg. b...
by limeblack on Sunday May 14, 2017 @11:08PM
(#14338879)
Did you really use Rync? I figured there might be something more modern.
Re:Ask HN: How would you handle a large traffic spike (eg. b...
by rubyfan on Monday May 15, 2017 @05:44AM
(#14340318)
Yeah this was back in 2010-ish.
I explored a lot of distributed file systems, was really looking for something that would share files across the cluster once generated by one node. NFS, Ceph, GlusterFS, GridFS, some others.
I used to be responsible for sites involved with the Olympics. For 100 weeks traffic was next to nothing. For the two weeks preceding and two weeks during the games there really was spike after spike after spike.
The site basically used nginx with SSI to serve up static content that was generated from Rails. Almost everything we could make static was. We rsync'd files every minute or so across the cluster and would lazy load for content at an individual node if needed.
For dynamic stuff we figured out tricks to use JS, APIs and memory cache dynamic partials. I wouldn't recommend any of that unless you really have the need though.