3 ms·
It's temporary.
by dang 4y ago
It's temporary.
- edanm 4y agoMaybe you should pin this comment? I almost lost it in the shuffle.
- dang 4y agoI thought about it, but it's fun to leave rewards for people who read entire threads.
- skywal_l 4y agoIn this kind of thread, I usually do CRTL+F "dang" ...
- boulos 4y agoI upvoted your top-level comment! But what happens if the comments on this topic get long enough for pagination to kick in? Very few people click the new next button for the linked list :).
- andreareina 4y agoThe "next" link is such a godsend, and a nice little surprise when I discovered it. Love it (and not getting an obnoxious "what's new" dialog box)
- porker 4y agoTIL what the "next" link does. Thanks!
- herpderperator 4y agoHow will you switch back to the new server once it's ready without losing database records?
- kijin 4y agoLast time I checked, nearly every database worth using on a busy site supported some sort of real-time replication and/or live migration. If that doesn't work, there's always the backup plan: say the magic words "scheduled maintenance", service $database stop, rsync it over, and bring it back up. The sky will not fall if HN goes down for another couple of hours, especially if it's scheduled ahead. :)
- solarengineer 4y agoYou could even flush the DB to disk, mark a ZFS snapshot, resume writes, and then rsync that snapshot to a remote system ( or use zfs send-receive)
- pmoriarty 4y agoI'd be curious to know if HN was on ZFS.
- brudgers 4y agoBased on the “great rebuild” [0] (was it about a decade ago?), my understanding is that the database is text files in the file system hierarchy arranged rather like a btree. Comment threads and comments each have a unique item number assigned monotonically. The file system has a directory structure something like: |—1000000 | |-100000 | |-200000 | |-… | |-900000 |—2000000 | |-100000 | |-200000 | |-… | |-900000 |-… I imagine that the comment threads (like this one) while text are actually arc code (or a dialect of it) that is parsed into a continuation for each user to handle things like showdead, collapsed threads and hell bans. To go further out on a wobbly limb of out of my ass speculation, I suspect all the database credentialing is vanilla Unix user and group permissions because that is the simplest thing that might work and is at least as robust as any in-database credentialing system running on Unix would be. Though simple direct file system IO is about as robust as reads and writes get since there’s no transaction semantics above the hardware layer, it is also worth considering that lost HN comments and stale reads don’t have a significant business impac I mean HN being down didn’t result in millions of dollars per hour in lost revenue for YC…if it stayed offline for a month, there might be a significant impact to “goodwill” however. Anyway, just WAGing. [0] before the great rebuild I think all the files were just in one big directory and one day there were suddenly an impractical quantity and site performance fell over a cliff.
- deleted 4y ago[deleted]
- futhey 4y agoInteresting. If I had experienced this, I'd probably pick a random cloud provider, recreate the entire service in their cloud, image and document it, and have that documentation ready if I ever experienced another fire drill like the one yesterday. Far easier to spin up a few large VMs on AWS for a few hours while you fix an issue than provision identical backup dedicated servers in a colo somewhere. And you can potentially just throw money at the issue while you fix the core service. ¯\_(ツ)_/¯