News for hackers. Stuff that matters.
Re:Ask HN: What is the hardware of Hacker News? by dang on Sunday June 12, 2016 @04:30PM (#11890094)
It's (edit: almost) the same since Nick posted https://news.ycombinator.com/item?id=9222006.
Re:Ask HN: What is the hardware of Hacker News? by pbreit on Sunday June 12, 2016 @05:20PM (#11890299)
I'd be curious what AWS/DigitalOcean setup would be able to run HN. Any educated guesses?
Re:Ask HN: What is the hardware of Hacker News? by technion on Sunday June 12, 2016 @08:58PM (#11891115)
Playing around with the calculator, you're roughly on track with an r3.x4large - most of the Linux options happily bundle far less RAM.

Getting 9TB of EBS on top of that puts the bill at $1516 per month. None of that accounts for traffic, of which we know nothing about.

The thing is in an Amazon world, you could optimise the setup for an Amazon deployment. For example, you'd probably move parts of that data, like database snapshots, onto S3.

Those costs are still nothing to sneeze at, and very likely suboptimal.

Re:Ask HN: What is the hardware of Hacker News? by brudgers on Sunday June 12, 2016 @09:44PM (#11891280)
3 months ago traffic was about 3 million page views per day.

https://news.ycombinator.com/item?id=11315525

Re:Ask HN: What is the hardware of Hacker News? by goldenkey on Monday June 13, 2016 @06:19AM (#11892745)
It just goes to show that cloud prices are somewhat of a ripoff if you have the knowhow to use CDNs and setup a single server in a colocation center. That machine can be built for less than 5k.
Re:Ask HN: What is the hardware of Hacker News? by gregmac on Monday June 13, 2016 @09:01PM (#11899050)
Of course -- if you know your traffic well ahead of time. If you start growing quickly, it's not quite as simple. (And if you don't have the traffic/growth anticipated, you wasted a bunch of money).

You also aren't accounting for redundancy. If the machine totally blows up, how quickly can you build another? Or do you spend +5k to have a second sitting as a standby? If the hardware does fail (whether it's a single drive in RAID or the whole system), who fixes it (or deals with getting it fixed)? For that matter, is the person who built or sourced the hardware's time worth $0?

Cloud IS more expensive, but it's not as simple as comparing to the up-front cost of one piece of hardware.

Re:Ask HN: What is the hardware of Hacker News? by goldenkey on Tuesday June 14, 2016 @11:00AM (#11902393)
This is true but cloud can still be a redundancy mechanism for a colocated server.
Re:Ask HN: What is the hardware of Hacker News? by kogir on Monday June 13, 2016 @02:05PM (#11895846)
With EBS you can't just match size, since the IOPS and latency matter far more.
Re:Ask HN: What is the hardware of Hacker News? by mschuster91 on Sunday June 12, 2016 @05:49PM (#11890442)
What, 9TB disk space? And 128GB RAM?

How much of this is actually utilized? O.o

Re:Ask HN: What is the hardware of Hacker News? by kogir on Sunday June 12, 2016 @06:14PM (#11890564)
Most of it is redundancy. Either duplicate copies, parity, or previous snapshots (off of which the backups are based).

I think the whole HN dataset is well under 100GiB, and maybe even under 30GiB.

Re:Ask HN: What is the hardware of Hacker News? by mschuster91 on Sunday June 12, 2016 @06:19PM (#11890592)
So in theory you don't need any spinning rust, it should all fit into RAM ;)
Re:Ask HN: What is the hardware of Hacker News? by kogir on Monday June 13, 2016 @02:06PM (#11895857)
I like my storage to persist across power failures :)
Re:Ask HN: What is the hardware of Hacker News? by jtchang on Monday June 13, 2016 @12:18AM (#11891714)
That is an absolutely beast of a motherboard. 1.5TB of ram!
Re:Ask HN: What is the hardware of Hacker News? by dang on Monday June 13, 2016 @03:14AM (#11892151)
Re:Ask HN: What is the hardware of Hacker News? by r2dnb on Monday June 13, 2016 @07:57AM (#11893035)
As an aside, how do you do to find such old posts ? Is there a search function I haven't heard of ?
Re:Ask HN: What is the hardware of Hacker News? by dang on Monday June 13, 2016 @05:28PM (#11897824)
To add to what CarolineW posted, I remembered that the comment existed so I went to HN search and entered "by:kogir gc". (I then had to manually switch the results from stories to comments, though.)
Re:Ask HN: What is the hardware of Hacker News? by CarolineW on Monday June 13, 2016 @08:43AM (#11893219)
I'm assuming you know of the search box at the bottom of every HN page - what more do you think is being used? Why do you think something more is needed?

As an aside, I went to look at some of your old posts and got this:

    Secure Connection Failed

    The connection to the server was reset
    while the page was loading.

        The page you are trying to view cannot
        be shown because the authenticity of
        the received data could not be verified.
        Please contact the web site owners to
        inform them of this problem.
Re:Ask HN: What is the hardware of Hacker News? by r2dnb on Monday June 13, 2016 @04:56PM (#11897565)
Thanks a lot, no I never noticed the search bar.

Thanks the website has been taken down.

Re:Ask HN: What is the hardware of Hacker News? by yousifa on Sunday June 12, 2016 @04:50PM (#11890172)
what is the connection it is being served on?
Re:Ask HN: What is the hardware of Hacker News? by 147 on Sunday June 12, 2016 @07:40PM (#11890894)
Does it use the Racket webserver?
Re:Ask HN: What is the hardware of Hacker News? by cschep on Sunday June 12, 2016 @05:49PM (#11890441)
wait.. how much RAM? 8x16 = 128gb?
Re:Ask HN: What is the hardware of Hacker News? by kogir on Sunday June 12, 2016 @06:15PM (#11890571)
Yep. Most used by the ZFS ARC, the rest by Racket and HN itself.
Re:Ask HN: What is the hardware of Hacker News? by r2dnb on Sunday June 12, 2016 @04:49PM (#11890167)
Thanks a lot
Re:Ask HN: What is the hardware of Hacker News? by mbrock on Sunday June 12, 2016 @04:52PM (#11890182)
I'm curious about the total byte size of all HN content.
Re:Ask HN: What is the hardware of Hacker News? by lukeHeuer on Monday June 13, 2016 @12:36PM (#11895220)
The mirror I keep of all HN items (posts, comments, jobs, polls, etc.) in JSON format is at 5.32GB uncompressed.
Re:Ask HN: What is the hardware of Hacker News? by mbrock on Monday June 13, 2016 @06:35PM (#11898309)
Cool! Did you mirror everything from the API? Does it go back to the first test posts or whatever? :)
Re:Ask HN: What is the hardware of Hacker News? by lukeHeuer on Tuesday June 14, 2016 @06:05PM (#11905709)
Yeah, it came from the API which goes back to item id 1. It's all here if you are interested: http://silo.lukeheuer.com/mirrors/news.ycombinator.com/ Post items are organized by month so you can check out the byte size progression over HN's lifespan.
Re:Ask HN: What is the hardware of Hacker News? by hakanderyal on Sunday June 12, 2016 @04:26PM (#11890071)
IIRC, 2 servers - 1 production, 1 standby, running FreeBSD.

Detailed specs have been written before, try searching.

Re:Ask HN: What is the hardware of Hacker News? by nailer on Sunday June 12, 2016 @04:10PM (#11890007)
Hrm it's behind a web app firewall (server:cloudflare-nginx) so harder to tell.
Re:Ask HN: What is the hardware of Hacker News? by ekr on Sunday June 12, 2016 @04:09PM (#11889999)
My bet is on AWS, but I'm also rather curious about this.
Re:Ask HN: What is the hardware of Hacker News? by avikalpa on Sunday June 12, 2016 @05:01PM (#11890217)
You're rather mistaken my friend. Hacker News existed a long time before AWS. It has 2 servers - 1 production, 1 standby, running FreeBSD.

FreeBSD is the OS of choice for them.

Re:Ask HN: What is the hardware of Hacker News? by smokel on Sunday June 12, 2016 @05:15PM (#11890281)
Perhaps I misunderstand your remark, but AWS (2006) predates Hacker News (2007). According to Wikipedia, that is.
Re:Ask HN: What is the hardware of Hacker News? by thematt on Sunday June 12, 2016 @05:36PM (#11890371)
EC2 was only in limited beta back in 2006. It wasn't in full production until 2008.
Re:Ask HN: What is the hardware of Hacker News? by jaflo on Sunday June 12, 2016 @04:13PM (#11890020)
While we are at it: what language is HN written in?
Re:Ask HN: What is the hardware of Hacker News? by retube on Sunday June 12, 2016 @04:16PM (#11890028)
I believe it is Arc, a lisp dialect that Paul Graham developed

http://www.paulgraham.com/arc.html

Re:Ask HN: What is the hardware of Hacker News? by talles on Sunday June 12, 2016 @04:42PM (#11890136)
Is Arc used for anything else besides powering HN?
Re:Ask HN: What is the hardware of Hacker News? by blatant on Sunday June 12, 2016 @04:49PM (#11890164)
Not really, it is still being "developed."[O] But some HN clones or forums built like HN use it.

[O] http://arclanguage.org

Re:Ask HN: What is the hardware of Hacker News? by krapp on Sunday June 12, 2016 @04:13PM (#11890023)