News for hackers. Stuff that matters.
Re:Show HN: GitHub-based DNS Hosting by stevekemp on Sunday June 22, 2014 @03:37PM (#7928933)
The traffic killed the server - I'm rebuilding it now with decent RAM, back in 20 minutes..
Re:Show HN: GitHub-based DNS Hosting by cr3ative on Sunday June 22, 2014 @04:05PM (#7929009)
I have to admit I giggled

http://i.imgur.com/H9dBG09.png

Hope the rebuild goes well.

Re:Show HN: GitHub-based DNS Hosting by stevekemp on Sunday June 22, 2014 @04:10PM (#7929021)
Redeploying is pretty automated, but it looks like I need significant caching on the front-end to cope with load.
Re:Show HN: GitHub-based DNS Hosting by eli on Sunday June 22, 2014 @05:13PM (#7929240)
I'm a huge fan of Varnish for this sort of thing.
Re:Show HN: GitHub-based DNS Hosting by Retr0spectrum on Sunday June 22, 2014 @04:09PM (#7929018)
Out of curiosity, what are the specs of the server, and how much RAM is "decent"?
Re:Show HN: GitHub-based DNS Hosting by stevekemp on Sunday June 22, 2014 @04:11PM (#7929025)
Previously it was running a reasonably heavyweight Perl/CGI front-end on 512Mb RAM.

It's now setting with 4Gb of RAM, and a load of ~40.

The single biggest issue is that the front-page either shows "marketing" or "your details", so it is dynamic and being generated on-demand.

I'll update to cache.

Re:Show HN: GitHub-based DNS Hosting by opless on Sunday June 22, 2014 @05:21PM (#7929267)
Perl/CGI is never a good thing.

You might get better response with using perl in fastcgi mode, and using nginx rather than apache.

Re:Show HN: GitHub-based DNS Hosting by ten7 on Sunday June 22, 2014 @04:16PM (#7929045)
Why not just slap Varnish in front of that and be done?
Re:Show HN: GitHub-based DNS Hosting by stevekemp on Sunday June 22, 2014 @04:51PM (#7929162)
That would be the end goal - but since all users get cookies there's not obvious "I'm anonymous" vs "I'm a signed-in-user" differentiator I can use to control whether to cache or serve live.

It'll happen, shortly, but the fastest solution was to re-deploy on a scaling platform.

Re:Show HN: GitHub-based DNS Hosting by X-Istence on Sunday June 22, 2014 @06:03PM (#7929383)
When a user is logged in, use a Vary: Cookie header, when a user is not logged in, leave that off. Set the expiration time as appropriate.
Re:Show HN: GitHub-based DNS Hosting by latchkey on Sunday June 22, 2014 @05:12PM (#7929236)
Which brings the next question... why not use Github for authentication?