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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Should I use my old computer instead of cloud?

31 点作者 me_me_mu_mu将近 3 年前
I’ve got an old (but still not bad for dev needs) quad code with 16gb ram. This is quite a lot for running various small containerized services. However I’m wondering if this is considered a bad practice.<p>Cloud machines for something like this would be &gt;$100 a month.<p>What security measures and other considerations would I need to keep in mind if I go this route?<p>For example I have a Emailer service that sends updates to users (needs to connect to my remote hosted DB)

14 条评论

manfre将近 3 年前
Why would you rent a cloud instance that is as overprovisioned as your home computer? Price compare based upon what you&#x27;ll actually use, not what you have available. You&#x27;d be surprised how much you can run on a few small VPSes or a container hosting service like fly.io
评论 #31654350 未加载
yellowapple将近 3 年前
I&#x27;ve seen enough small businesses with &quot;servers&quot; built from desktops and laptops (and have even been the one doing it, in cases where the one needing it can&#x27;t justify budgeting for a proper server but does need &quot;something&quot; and is fully aware that I offer nothing even vaguely resembling a warranty) that I&#x27;d say it&#x27;s doable. Yes, it&#x27;s &quot;bad&quot;, but it&#x27;s a massive money saver and &quot;bad&quot; is better than &quot;nonexistent&quot;.<p>The big risk will be around hardware reliability. A desktop or laptop just ain&#x27;t built like a server is. Knowing this, redundancy is key. Hell, it&#x27;s key <i>anyway</i>, but it&#x27;s even more acute of a need when you&#x27;re using consumer hardware - especially since your average desktop&#x2F;laptop won&#x27;t have redundant power supplies and hot-swappable drive caddies and multiple NICs and all the other goodies that preserve server uptime. Hardware reliability is one of those things that PaaS providers largely abstract away for you, so keep that in mind, too.<p>My usual strategy for a &quot;poor man&#x27;s server farm&quot; is to treat entire machines as disposable. Ain&#x27;t like most laptops have the physical connectors for RAID anyway, and safeguarding data is what backups are for. If any component starts to fail, everything&#x27;s migrated to a different cheap piece of shit and the old one gets thrown on the &quot;fix it eventually&quot; pile to be either repaired or e-wasted.
superb-owl将近 3 年前
If you&#x27;ve got external users, I&#x27;d go cloud.<p>Hardware dies unpredictably. The cloud providers have figured out how to be highly resilient to it.<p>If you use your own hardware, there&#x27;s a XX% chance you&#x27;re going to have a really bad day sometime in the next year.
znpy将近 3 年前
&gt; However I’m wondering if this is considered a bad practice<p>It depends who you ask.<p>I do the same at home and it works like a charm, but I have no users beside myself and my SO.<p>If you have paying users and SLAs you&#x27;d better get that $100&#x2F;month cloud machine or have a disaster recovery plan ready (and tested).<p>&gt; What security measures and other considerations would I need to keep in mind if I go this route?<p>the usuals... disable password authentication, configure the firewall, do not share &#x2F;var&#x2F;run&#x2F;docker.sock with containers, don&#x27;t shut down SELinux, run periodic backups and test recovery procedures periodically etc.. Normal sysadmin stuff.
评论 #31647564 未加载
评论 #31648438 未加载
jeroenhd将近 3 年前
You can self host if you make sure to monitor for signs of hardware failure and ensure that replacement hardware + good backup strategies are always ready if you rely on it for hosting services for customers&#x2F;other people.<p>If it&#x27;s just for you and you have the hour or so per week to dedicate to updates and maintenance, then I don&#x27;t see why not. I run two servers in my room and they&#x27;ve worked fine with minimal maintenance so far, except for a few old hard drives that needed replacing and a fan that I couldn&#x27;t get replaced because of a screw I stripped years ago.<p>There are quite decent cloud machines out there if you just look beyond the big guys like AWS and GCloud. <a href="https:&#x2F;&#x2F;contabo.com&#x2F;en&#x2F;vps&#x2F;" rel="nofollow">https:&#x2F;&#x2F;contabo.com&#x2F;en&#x2F;vps&#x2F;</a> has decent servers for cheap, as does <a href="https:&#x2F;&#x2F;www.hetzner.com&#x2F;cloud" rel="nofollow">https:&#x2F;&#x2F;www.hetzner.com&#x2F;cloud</a><p>If your emailer service makes direct contact with destination SMTP servers, then running from home is probably not an option. If you use an external SMTP server to deliver mail to the destination servers then this won&#x27;t be a problem.
kavehkhorram将近 3 年前
I agree with the other commenters that overprovisioning (or underprovisioning) is a concern with the cloud, but the public cloud has long been more secure than on-prem data centers [1], [2], [3].<p>As for the cost, Reserved Instances can dramatically reduce your spend, with the caveat that you can get locked in 1 or 3 years. My company, Usage.AI, built a platform to solve this problem by automatically buying and selling Reserved Instances to get the price and flexibility benefits in one [4].<p>[1] <a href="https:&#x2F;&#x2F;www.infoworld.com&#x2F;article&#x2F;3010006&#x2F;sorry-it-the-public-cloud-is-more-secure-than-your-data-center.html" rel="nofollow">https:&#x2F;&#x2F;www.infoworld.com&#x2F;article&#x2F;3010006&#x2F;sorry-it-the-publi...</a> [2] <a href="https:&#x2F;&#x2F;blogs.oracle.com&#x2F;cloudsecurity&#x2F;post&#x2F;7-reasons-why-the-cloud-is-more-secure" rel="nofollow">https:&#x2F;&#x2F;blogs.oracle.com&#x2F;cloudsecurity&#x2F;post&#x2F;7-reasons-why-th...</a> [3] <a href="https:&#x2F;&#x2F;cloud.google.com&#x2F;blog&#x2F;products&#x2F;identity-security&#x2F;enterprises-trust-cloud-security" rel="nofollow">https:&#x2F;&#x2F;cloud.google.com&#x2F;blog&#x2F;products&#x2F;identity-security&#x2F;ent...</a> [4] <a href="http:&#x2F;&#x2F;usage.ai" rel="nofollow">http:&#x2F;&#x2F;usage.ai</a>
GianFabien将近 3 年前
You need to get some metrics for each of your containers. Rather than choosing a cloud machine that is similar to your current computer, consider micro-instances to host each of your services. That way, you can upscale only those instances that require additional capacity.<p>At $100+&#x2F;month, I would like to think that you are generating sufficient revenue to cover those costs plus a return on your time and effort. $100&#x2F;month over a year pays for a rather nice notebook.
dotty-将近 3 年前
I&#x27;m sure I&#x27;m missing something, but I feel like the main reasons to choose cloud over self-host are availability and bandwidth. The data center is probably more reliable for uptime than your home. If neither of those are your problem, then I suppose you should consider segregating the network that machine is running on from the rest of your devices in your home. So your server can&#x27;t connect to your TV in the living room or something, for example.
评论 #31645833 未加载
t312227将近 3 年前
IMHO,<p>the key-point here is to <i>automate</i> the setup&#x2F;deployment&#x2F;maintainance of your system and application, so you have a certain degree of independence of the systems running your stage in question.<p>for development: use whatever you see fit - who cares if the system is down, you got automation to set it up elsewhere if for example the hardware dies.<p>for production: this is &quot;the other side&quot; of the story, here you are aiming for availability etc.<p>use automation - which you already &quot;showcased&quot; &#x2F; have as some kind of a PoC for your development-systems - to be able to quickly recover from major faults.<p>ad db: use a local test-database on your development-system.<p>you don&#x27;t want to access prod for development-tests!!<p>idk. make a dump of prod every now &amp; then - if prod-data is not sensitive -, or generate sufficient test-data, etc...<p>br, v
rubatuga将近 3 年前
Good hardware (reliable SSDs and HDDs) and backup solutions is the first step. Next you will need a proper internet connection, for example your ISP might block ports or put you behind a CGNAT. I created Hoppy Network to assist with this last step. It provides you a clean IPv4 and IPv6 address over WireGuard. Some networking background is recommended if you want to route multiple services.<p><a href="https:&#x2F;&#x2F;hoppy.network" rel="nofollow">https:&#x2F;&#x2F;hoppy.network</a>
908B64B197将近 3 年前
If it&#x27;s just for personal use sure.<p>But the bottleneck will quickly become bandwidth for anything with users other than you.
dvnguyen将近 3 年前
What’s your best way to talk with you? I’m building a cost effective dev cloud vms that might fit your use case. It has a granular usage based metering and you’ll be charged almost nothing when the VM is idle.
mPReDiToR将近 3 年前
Yes.<p>NextCloud is your data on your hardware.<p>Encrypt it, back it up to the cloud (someone else&#x27;s computer) as offsite storage, but don&#x27;t give read&#x2F;write access to your calendar, contacts and emails.
评论 #31646070 未加载
shreyshnaccount将近 3 年前
You can almost always do some smart coding and use an rpi for most things