TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How does HN manage to be always online?

127 pointsby hacskyalmost 3 years ago
How does HN manage to be always online?

20 comments

5idalmost 3 years ago
According to @dang (<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=28479595" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=28479595</a>) via @sctb (<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=16076041" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=16076041</a>)<p><pre><code> We’re recently running two machines (master and standby) at M5 Hosting. All of HN runs on a single box, nothing exotic: CPU: Intel(R) Xeon(R) CPU E5-2637 v4 @ 3.50GHz (3500.07-MHz K8-class CPU) FreeBSD&#x2F;SMP: 2 package(s) x 4 core(s) x 2 hardware threads Mirrored SSDs for data, mirrored magnetic for logs (UFS)</code></pre>
评论 #31822418 未加载
评论 #31823359 未加载
评论 #31822432 未加载
评论 #31824835 未加载
评论 #31822596 未加载
评论 #31822313 未加载
nik736almost 3 years ago
A single bare metal server is more reliable than most people think it is. Complexity adds a lot of overhead and layer after layer that could possibly fail.
评论 #31822005 未加载
评论 #31822279 未加载
评论 #31822345 未加载
评论 #31821872 未加载
aristofunalmost 3 years ago
We managed to run a successful bootcamp school LMS on a single cheapest 1gb ram hetzner vps with rails app, redis cache, postgres, backups, staging env and near zero production issues.<p>Not hi loaded of course, but still hundreds active users every single day interacting with the app.<p>Recently had to upgrade to the next tier because of growth.<p>Modern servers are super fast and reliable as long as you know what you’re doing and don’t waste it on unnecessary overheads like k8s etc.
评论 #31822120 未加载
评论 #31822115 未加载
评论 #31822501 未加载
评论 #31822312 未加载
_benjalmost 3 years ago
I guess because of sanity and simplicity in its architecture?<p>I once wrote a software in Rust, a simple API, one binary in one DigitalOcean instance started by systemd, and nothing else. The things has been working nonstop for years making it the most stable piece of long running software I’ve ever written, and I think it all comes from it being simple without any extra&#x2F;unnecessary complexity added.<p>I’m not bragging btw, I actually had to contact the user years after I wrote that because I couldn’t believe that the thing was still working but I hadn’t heard from them in years!
sokoloffalmost 3 years ago
There are micro-outages somewhat frequently; I don’t mean that as a criticism but merely as an observation.
评论 #31822002 未加载
评论 #31822160 未加载
评论 #31822923 未加载
评论 #31821882 未加载
jvealmost 3 years ago
It IS down occasionally: <a href="https:&#x2F;&#x2F;twitter.com&#x2F;hnstatus" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;hnstatus</a><p>Not all &quot;downs&quot; are reflected there. Last time I remember having really bad perf or non-workable, don&#x27;t remember - but opening in incognito, you would get cached results fast.
thdxralmost 3 years ago
HN is a mature product! Most common software failures are from a deployment of changes, I don&#x27;t think HN is being deployed to every day<p>We&#x27;re all used to effectively beta software that&#x27;s constantly being updated every day and never final
rvzalmost 3 years ago
Maybe they are intentionally using boring tech, not using Cloudflare, AWS, etc and are self hosting somewhere, hopefully.
评论 #31822137 未加载
thatoneguytooalmost 3 years ago
most of the outages usually happen when there are changes. hn has no changes.
Gatskyalmost 3 years ago
Related question: How is HN funded? I presume through YC.
评论 #31822530 未加载
revskillalmost 3 years ago
They read file, save data to file. That&#x27;s it.
评论 #31822164 未加载
lazybreatheralmost 3 years ago
I would love to know tech stack and architecture of HN. And how it evolved (if it did). And what resources they spend (money, manhours etc) to maintain it.
评论 #31821956 未加载
MarcScottalmost 3 years ago
Last time I remember it being down for anything other than a few minutes was back in 2014. <a href="https:&#x2F;&#x2F;twitter.com&#x2F;Coding2Learn&#x2F;status&#x2F;420298797462593536" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;Coding2Learn&#x2F;status&#x2F;420298797462593536</a>
eimrinealmost 3 years ago
I have seen an error message once, instead of content. I did not remember it but the wording was amazingly perfect. And there is one minor issue when &quot;reply&quot; button to a specific comment had not been loaded by the time the comment has rendered.
jasodealmost 3 years ago
<i>&gt; always online?</i><p>It depends on what you mean by <i>&quot;online&quot;</i> and the service level :<p>- &quot;online&quot; meaning a HN server responds with something. In this more literal sense, HN always seems to be up.<p>- &quot;online&quot; meaning <i>normal</i> page load response times. In this sense, HN sometimes times out with <i>&quot;sorry we can&#x27;t serve your request right now&quot;</i>. That seems to happen once a week or once a month. Another example is a super popular thread (e.g. &quot;Trump wins election&quot;) that hammers the server and threads take a minute or more to load. This prompts dang to write a comment in the thread asking people to &quot;log out&quot; if they&#x27;re not posting. This reduces load on the server as rendering pages of signed-out users don&#x27;t need to query individual user stats, voting counts, hidden comments, etc. This would be a form of adhoc community behavior cooperating to reduce workload on the server rather than spin up extra instances on AWS.<p>The occasional disruptions to the 2nd meaning of &quot;online&quot; is ok since this is a discussion forum and nobody&#x27;s revenue is dependent on it. Therefore, it doesn&#x27;t &quot;need&quot; more uptime than it already has.
joshxyzalmost 3 years ago
Powered by Illuminati technology.
评论 #31822230 未加载
jmartensalmost 3 years ago
I&#x27;d guess that HN has nearly zero dependencies, other than the bare metal box we&#x27;ve been told about. That makes things a lot more simple!
ericpauleyalmost 3 years ago
HN is down and has loading issues pretty often. AFAIK they now run behind a CDN so if you&#x27;re not logged in you won&#x27;t notice this.
评论 #31849439 未加载
评论 #31830692 未加载
评论 #31844403 未加载
notlukeskyalmost 3 years ago
Guess they don’t use Cloudflare:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31820635" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31820635</a>
评论 #31821941 未加载
picturalmost 3 years ago
0 features = 0 problems