TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How do infrastructure providers calculate cost to compute?

2 点作者 Otternonsenz大约 1 年前
From the outside of the hosting business, but with a less-than-shallow understanding of computer and networking history, I am befuddled at hosting costs (cheap as they may be even for how they’ve been historically).<p>Is there a way to find the actual cost to compute a given task in terms of electricity consumption, or has this been a solved problem and hosting companies just add their proprietary sauce and then charge for the end result?<p>I’m curious in this way, because I’d love to be able to host for clients in my geographical area, but I don’t want to over-charge more than what it is actually worth to run the infrastructure.<p>At the core of my question is understanding the basic economics of hosting in relation to electrical consumption and hardware wear. I’d guess the outer layer of my question has a bit to do with knowing the true cost of hosting rather than how to make the most off of clients for simple services.<p>Appreciate any and all input!

1 comment

usernamed7大约 1 年前
there are any number of ways to slice and dice hosting pricing. You could make it really complicated, or simple.<p>At the core of it: you&#x27;ll need a server, you&#x27;ll need operational costs like utilities, you&#x27;ll need to maintain its hardware and software. those are all your costs. The server is fixed, the rest you could project across a given month or year.<p>Generally, the rotation for compute is around 3 years, so divide (server_cost + operational)&#x2F;36 is a monthly cost to run.<p>But wait! thats just for one server. But we can divide one server into virtual servers. So we get a machine with 128 cores and 64GB of RAM and 10TB of space, and now we can host many customers.<p>but of course, thats with no redundancy, on one server, in one location. But you could buy 2 servers and do some failover between them.<p>how many you can fit into a box is based on the servers and also the workload. You could setup 5000 customers on a server if every customer is very low load.<p>but also... power supplies die. hard drives die. networks get attacked. Customers do wild things.<p>That&#x27;s it in a rough nutshell. Companies learn as they go, drive costs down as much as they can and drive price up as much as the market will tolerate.<p>This is why it can be simpler for startups to just rent compute from digitalocean or AWS, because everything that goes into actually running the servers can be expensive. Once you get to a certain size, it starts to become cheaper to self-host.<p>hope this helps!