Most active commenters
  • eru(9)
  • chickensong(8)
  • tempest_(3)
  • odie5533(3)
  • rikafurude21(3)
  • YouAreWRONGtoo(3)
  • alwa(3)
  • dang(3)
  • tonyhart7(3)
  • lelanthran(3)

←back to thread

804 points jryio | 98 comments | | HN request time: 0.002s | source | bottom
1. tempest_ ◴[] No.45661573[source]
The cloud has made people forget how far you can get with a single machine.

Hosting staging envs in pricey cloud envs seems crazy to me but I understand why you would want to because modern clouds can have a lot of moving parts.

replies(11): >>45661597 #>>45661608 #>>45661636 #>>45661649 #>>45661714 #>>45661726 #>>45661756 #>>45661835 #>>45662162 #>>45662794 #>>45663024 #
2. odie5533 ◴[] No.45661597[source]
Fully replicating prod is helpful. Saves time since deployment is similar and does a better test of what prod will be.
replies(1): >>45661657 #
3. j45 ◴[] No.45661608[source]
Cloud often has everyone thinking it's still 2008.
replies(1): >>45661624 #
4. tempest_ ◴[] No.45661624[source]
With some obvious exceptions there isnt much you cant run on a 200 Core machine wrt web services.
replies(1): >>45674688 #
5. rikafurude21 ◴[] No.45661636[source]
The cloud has made people afraid of linux servers. The markup is essentially just the price business has to pay because of developer insecurity. The irony is that self hosting is relatively simple, and alot of fun. Personally never got the appeal of Heroku, Vercel and similar, because theres nothing better than spinning up a server and setting it up from scratch. Every developer should try it.
replies(7): >>45661682 #>>45661700 #>>45661807 #>>45661828 #>>45661946 #>>45661954 #>>45663412 #
6. MangoCoffee ◴[] No.45661649[source]
The cloud has made people forget that the internet is decentralized.
7. teaearlgraycold ◴[] No.45661657[source]
Completely agree. It’s not a staging server if it’s hosted on a different platform.
replies(2): >>45661694 #>>45661797 #
8. agumonkey ◴[] No.45661682[source]
my take is that it's fun up until there's just enough brittleness and chaos.. too many instance of the same thing but with too many env variables setup by hand and then fuzzy bug starts to pile up
9. odie5533 ◴[] No.45661694{3}[source]
I think OP is using these less as staging and more as dev environments for individual developers. That seems like a great use of a single server to me.

I'd still like a staging + prod, but keeping the dev environments on a separate beefy server seems smart.

replies(1): >>45661739 #
10. daemonologist ◴[] No.45661700[source]
I dunno, the cloud has mostly made me afraid of the cloud. You can bury yourself in towering complexity so easily on AWS. (The highly managed stuff like Vercel I don't have much experience with, so maybe it's different.)
replies(1): >>45661796 #
11. jamestimmins ◴[] No.45661714[source]
This could be the premise for a fun project based infra learning site.

You get X resources in the cloud and know that a certain request/load profile will run against it. You have to configure things to handle that load, and are scored against other people.

replies(1): >>45661922 #
12. altcognito ◴[] No.45661726[source]
The weird thing is the relationship between developer costs and operations costs. For startups that pay salaries, $3000 a month is a pittance!*

* The big caveat: If you don't incur the exact same devops costs that would have happened with a linux instance.

Many tools (containers in particular) have cropped up that have made things like quick, redundant deployment pretty straightforward and cheap.

replies(1): >>45661890 #
13. ricketycricket ◴[] No.45661739{4}[source]
I've been using a development server for about 9 years and the best thing I ever did was move to a machine with a low-power Xeon D for a time. It made development painful enough that I quickly fixed the performance issues I was able to overlook on more powerful hardware. I recommend it, even just as an exercise.
replies(1): >>45663527 #
14. jeroenhd ◴[] No.45661756[source]
Teaching a whole bunch of developers some cloud basics and having a few cloud people around is relatively cheap for quite a while. Plus, having test/staging/prod on similar configurations will help catch mistakes earlier. None of that "localstack runs just fine but it turns out Amazon SES isn't available in region antartica-east-1". Then, eventually, you pay a couple people's wages extra in cloud bills, and leaving the cloud becomes profitable.

Cloud isn't worth it until suddenly it is because you can't deploy your own servers fast enough, and then it's worth it until it exceeds the price of a solid infrastructure team and hardware. There's a curve to how much you're saving by throwing everything in the cloud.

replies(2): >>45661949 #>>45663039 #
15. ygouzerh ◴[] No.45661796{3}[source]
I will recommend to try GCP or Azure, the complexity is lower there! AWS is great for big corporate that needs a lot of lego pieces to do their own custom setup. At the contrario, GCP and Azure solutions are often more bundled.
16. hamdingers ◴[] No.45661797{3}[source]
The "platform" software runs on is just other software. If your prod environment is managed kubernetes then you don't lose much if your staging environment is self-hosted kubernetes.
replies(1): >>45661814 #
17. tempest_ ◴[] No.45661807[source]
It is way more than that though.

It offloads things like - Power Usage - Colo Costs - Networking (a big one) - Storage (SSD wear / HDD pools) - etc

It is a long list but what doesnt allow you do it make trade offs like spending way less but accept downtime if your switch dies etc etc.

For a staging env these are things you might want to do.

replies(1): >>45663567 #
18. odie5533 ◴[] No.45661814{4}[source]
Load balancers, IAM roles, kubernetes upgrades, postgres upgrades, security settings, DNS records, http routes... there's a lot that can go wrong and makes it useful to have a staging environment.
19. jampekka ◴[] No.45661828[source]
> The irony is that self hosting is relatively simple, and alot of fun. Personally never got the appeal of Heroku, Vercel and similar, because theres nothing better than spinning up a server and setting it up from scratch.

It's fun the first time, but becomes an annoying faff when it has to be repeated constantly.

In Heroku, Vercel and similar you git push and you're running. On a linux server you set up the OS, the server authentication, the application itself, the systemctl jobs, the reverse proxy, the code deployment, the ssl key management, the monitoring etc etc.

I still do prefer a linux server due to the flexibility, but the UX could be a lot better.

replies(6): >>45661938 #>>45662033 #>>45662094 #>>45663568 #>>45664287 #>>45666447 #
20. nimbius ◴[] No.45661835[source]
you can literally buy a used dell desktop that matches the spec for hetzner (8 core, 32 gigs of ram) for under 500 USD. Why wouldnt you just do that?

As cloud marches on it continues to seem like a grift.

replies(3): >>45661995 #>>45662116 #>>45663986 #
21. andersa ◴[] No.45661890[source]
The best part is when you start with a $3000/month cloud bill during development and finally realize that hosting the production instance this way would actually cost $300k/month, but now it's too late to change it quickly.
22. YouAreWRONGtoo ◴[] No.45661922[source]
All it means is that the cloud doesn't work like a power socket, which was the whole point of it.

Things like Lambda do fit in this model, but they are too inefficient to model every workload.

Amazon lacks vision.

23. sokoloff ◴[] No.45661946[source]
> the price business has to pay because of developer insecurity

Is it mostly developer insecurity, or mostly tech leadership insecurity?

24. nine_k ◴[] No.45661949[source]
Deploying to your private cloud requires basically the same skills. Containers, k8s or whatnot, S3, etc. Operating a large DB on bare metal is different from using a managed DB like Aurora, bit for developers, the difference is hardly visible.
25. fragmede ◴[] No.45661954[source]
Never got the appeal of having someone else do something for you, and giving them money, in exchange for goods and services? Vercel is easy. You pay them to make it easy. When you're just getting started, you start on easy mode before you jump into the deep end of the pool. Everybody's got a different cup of tea, and some like it hot and others like it cold.
replies(1): >>45661980 #
26. rikafurude21 ◴[] No.45661980{3}[source]
Sure I love having someone else do work for me and paying them for that, the question is if that work is worth a 50x markup.
replies(2): >>45662015 #>>45662296 #
27. sodality2 ◴[] No.45661995[source]
Do you plan on keeping it in your home? At that point I'd be worried about ISP networking or power guarantees unless you plan on upgrading to business rates for both. If you mean colo, well, if you're sure you'll be using it in X years, it's worth it, but the flexibility of month-to-month might be preferable.
28. fragmede ◴[] No.45662015{4}[source]
Yeah, but then we're just haggling. If you know how to change the belt on your car and already have the tools, it's different from when you're stranded with no tools and no garage and no belt.
replies(1): >>45662049 #
29. tbrownaw ◴[] No.45662033{3}[source]
And all of that takes, what, a week? As a one time thing?
replies(1): >>45662464 #
30. rikafurude21 ◴[] No.45662049{5}[source]
If you're a mechanic you're supposed to know how to change the belt on your car. It would be insane if you write code and work with computers for a living but you dont know how to set up a web server.
replies(3): >>45662282 #>>45662353 #>>45662822 #
31. teekert ◴[] No.45662094{3}[source]
I use NixOS and a lot of it is in a single file. I just saw some ansible coming by here, and although I have no experience with it, it looked a lot simpler than Nix (for someone from the old Linux world, like me… eventhough Nix is, looking through your eyelashes, just a pile of key/value pairs).
replies(1): >>45663470 #
32. SchemaLoad ◴[] No.45662116[source]
Because that used desktop is subject to power outages, internet outages, the cleaners unplugging it, etc. Datacenters have redundancy on everything.
replies(3): >>45663560 #>>45667056 #>>45678805 #
33. noosphr ◴[] No.45662162[source]
The cloud was a good deal in 2006 when the smallest aws machine was about the size of a ok dev desktop and took over two years of renting to justify buying the physical machine outright.

Today the smallest, and even large, aws machines are a joke, comparable to a mobile phone from 15 years ago to a terrible laptop today, and take about three to six months to in rent as buying the hardware outright.

If you're on the cloud without getting 75% discount you will save money and headcount by doing everything on prem.

34. everyone ◴[] No.45662282{6}[source]
It would be insane if you write code and work with computers for a living but you dont know how to write a game engine in assembly.
replies(2): >>45662780 #>>45663899 #
35. alwa ◴[] No.45662296{4}[source]
Flour, salt, and water are exceedingly cheap. I have to imagine the loaf of bread I buy from my baker reflects considerably more than a 50x markup compared to baking my own.

It’s a lot cheaper than me learning to bake as well as he does—not to mention dedicating the time every day to get my daily bread—and I’ll never need bread on the kind of scale that would make it worth my time to do so.

replies(2): >>45662801 #>>45663512 #
36. auggierose ◴[] No.45662353{6}[source]
I am pretty sure I know much more about code than you do, and at the same time you probably know much more about web servers and sysadmin than I do. I don't mind if it stays like that. And I am saying this having programmed my own web server in Java about 25 years ago.
37. jcynix ◴[] No.45662464{4}[source]
Takes less than a day, because most of the stuff is scriptable. And for a simple compute node setup at Hetzner (I.e. no bare metal, but just a VM) it takes me less than half an hour.
replies(1): >>45663972 #
38. dang ◴[] No.45662593{4}[source]
Can you please edit out swipes, putdowns, name-calling, etc., from your HN posts? It's not what this site is for, and destroys what it is for.

This is in the site guidelines: https://news.ycombinator.com/newsguidelines.html.

replies(1): >>45675414 #
39. sgarland ◴[] No.45662780{7}[source]
Installing a web server is in no way the same as writing a game engine, let alone in assembly, and I think you know that.
replies(1): >>45665714 #
40. adgjlsfhk1 ◴[] No.45662794[source]
also how far you can get with a single machine has changed massively in the past 15 years. 15 years ago a (really beefy) single machine meant 8 cores with 256GB ram and a couple TB of storage. Now a single machine can be 256 cores on 8TB of ram and a PB of storage.
replies(2): >>45662854 #>>45669174 #
41. mediaman ◴[] No.45662801{5}[source]
Bread is a great example! You can buy a loaf for $3-4. It is not a 50x markup. Like growing your own veggies, baking bread is for fun, not for economics.

But the cloud is different. None of the financial scale benefits are passed on to you. You save serious money running it in-house. The arguments around scale have no validity for the vast, vast majority of use cases.

Vercel isn't selling bread: they're selling a fancy steak dinner, and yes, you can make steak at home for much less, and if you eat fancy steak dinners at fancy restaurants every night you're going to go broke.

So the key is to understand whether your vendors are selling you bread, or a fancy steak dinner, and to not make the mistake of getting the two confused.

replies(1): >>45663864 #
42. rascul ◴[] No.45662822{6}[source]
A whole lot of coding and working with computers doesn't involve setting up a web server. It's not insane at all.
43. layoric ◴[] No.45662854[source]
Exactly, and the performance of consumer tech is wildly faster. Eg, a Ryzen 5825U mini pc with 16GB memory is ~$250USD with 512GB nvme. That thing will outperform of 14 core Xeon from ~2016 on multicore workloads and absolutely thrash it in single thread. Yes lack of ECC is not good for any serious workload, but great for lower environments/testing/prototyping, and it sips power at ~50W full tilt.
replies(1): >>45663550 #
44. matt-p ◴[] No.45663024[source]
You put your staging env in the same (kind of) place you put your prod system because you need to replicate your prod environment as faithfully as possible. You also then get to re-use your deployment code.
45. matt-p ◴[] No.45663039[source]
RDS/managed database is extremely nice I will admit, otherwise I agree. Similarly s3, if you're going to do object storage, then running minio or whatever locally is probably not cheaper overall than R2 or similar.
replies(1): >>45668943 #
46. rapind ◴[] No.45663412[source]
Honestly I think it's the database that makes devs insecure. The stakes are high and you usually want PITR and regular backups even for low traffic apps. Having a "simple" turnkey service for this that can run in any environment (dedicated, VPS, colo, etc.) would be huge.

I think this is partly responsible for the increased popularity of sqlite as a backend. It's super simple and lightstream for recovery isn't that complicated.

Most apps don't need 5 9s, but they do care about losing data. Eliminate the possibility of losing data, without paying tons of $ to also eliminate potential outages, and you'll get a lot of customers.

replies(1): >>45664319 #
47. eru ◴[] No.45663470{4}[source]
Nix is great, but it still requires some training and expertise.

And the overlap between what Nix does and what the 'cloud' does for you is only partial. (Eg it can still make sense to use Nix in the cloud.)

48. eru ◴[] No.45663512{5}[source]
Please do yourself a flavour and check the price of flour.

Water is cheap, yes. Salt isn't all that cheap, but you only need a little bit.

> [...] and I’ll never need bread on the kind of scale that would make it worth my time to do so.

If you need bread by hand, it's a very small scale affair. Your physique and time couldn't afford you large scale bread making. You'd a big special mixer and a big special oven etc for that. And you'd probably want a temperature and moisture controlled room just for letting your dough rise.

replies(3): >>45663607 #>>45664331 #>>45664853 #
49. eru ◴[] No.45663527{5}[source]
For similar reasons, in the Google office I worked in you had the option to connect to a really intentionally crappy wifi that was simulating a 2G connection.
50. eru ◴[] No.45663550{3}[source]
Curiously, RAM sizes haven't gone up much for consumer tech.

As an example: my Macbook Pro from 2015 had 16 GiB RAM, and that's what my MacBook Air from 2025 also has.

replies(1): >>45664038 #
51. eru ◴[] No.45663560{3}[source]
Also you still have to pay for the electricity on that thing.

The cloud costs includes everything.

52. brandon272 ◴[] No.45663567{3}[source]
"Self hosting" may actually be referring not to hosting your own on-prem hardware, but to renting bare metal in which case the concerns around power usage, networking, etc. are offloaded to the provider.
53. bigstrat2003 ◴[] No.45663568{3}[source]
> It's fun the first time, but becomes an annoying faff when it has to be repeated constantly.

Certainly true, but there are a whole lot of tools to automate those operations so that you aren't doing them constantly.

replies(2): >>45664673 #>>45674582 #
54. alwa ◴[] No.45663607{6}[source]
$16 for a 50 pound sack right now

https://postmates.com/store/restaurant-depot-4538-s-sheridan...

I blush to admit that I do from time to time pay $21 for a single sourdough loaf. It’s exquisite, it’s vastly superior to anything I could make myself (or anything I’ve found others doing). So I’m happy to pay the extreme premium to keep the guy in business and maintain my reliable access to it.

It weighs a couple of pounds, though I’m not clear how the water weight factors in to the final weight of a loaf. And I’m sure that flour is fancier than this one. I take your point—I don’t belong in the bread industry :)

replies(3): >>45664823 #>>45667014 #>>45674866 #
55. alwa ◴[] No.45663864{6}[source]
That’s a tremendously clarifying framework, and it makes a lot of sense to me. Thank you.

I wonder, though—at the risk of overextending the metaphor—what if I don’t have a kitchen, but I need the lunch meeting to be fed? Wouldn’t (relatively expensive) catering routinely make sense? And isn’t the difference between having steak catered and having sandwiches catered relatively small compared to the alternative of building out a kitchen?

What if my business is not meaningfully technical: I’ll set up applications to support our primary function, and they might even be essential to the meat of our work. But essential in the same way water and power are: we only notice it when it’s screwed up. Day-to-day, our operational competency is in dispatching vehicles or making sandwiches or something. If we hired somebody with the expertise to maintain things, they’d sit idle—or need a retainer commensurate with what the Vercels and Herokus of the world are charging. We only need to think about the IT stuff when it breaks—and maybe to the extent that, when we expect a spike, we can click one button to have twice as much “application.”

In that case, isn’t it conceivable that it could be worth the premium to buy our way out of managing some portion of the lower levels of the stack?

replies(1): >>45665550 #
56. marcosdumay ◴[] No.45663899{7}[source]
Hum... Writing a game engine is a high-difficulty task that should be available to any reasonably good software developer with a few months to study for it. Making it in assembly is a sure way to take 10 times the time of another low level language like C, but shouldn't be an impossibility either.

Configuring a web server is a low-difficulty task that should be available for any good software developer with 3 days to study for it. It's absurd for a developer to need to configure a web server, but insist on paying a large rent and cede control to some 3rd party instead of just doing it.

57. tbrownaw ◴[] No.45663972{5}[source]
But if you're that familiar with it, the overpriced turnkey stuff wouldn't look so tempting in the first place.
58. marcosdumay ◴[] No.45663986[source]
And you'll need some $100/month to colocate that thing, so you are better spending some more and buying a reasonable server that uses only 1U.
59. ericd ◴[] No.45664038{4}[source]
Ehhh Macbook Pros can be configured with up to 128 now, iirc 16 was the max back then. But I guess the baseline hasn't moved as much.
replies(1): >>45664862 #
60. tonyhart7 ◴[] No.45664287{3}[source]
"The irony is that self hosting is relatively simple"

cloud is easy until is not, for 90% of us maybe we dont need a multi region with hot and cold storage

for those that need it, its neccesary

61. tonyhart7 ◴[] No.45664319{3}[source]
isn't that just neon db???? but without losing data part
replies(1): >>45664910 #
62. tonyhart7 ◴[] No.45664331{6}[source]
bread ingreadient is cheap but the equipment that you need to do baking is not

also skills, some people just bake better than others

replies(2): >>45664958 #>>45674946 #
63. liqilin1567 ◴[] No.45664673{4}[source]
Mind sharing these tools and what each one does?
replies(1): >>45664944 #
64. eru ◴[] No.45664823{7}[source]
Well, in your case, you are mostly paying for the guy's labour, I presume.

(Similarly to how you pay Amazon or Google etc not just for the raw cloud resources, but for the system they provide.)

I grew up in Germany, but now live in Singapore. What's sold as 'good' sourdough bread here would make you fail your baker's training in Germany: huge holes in the dough and other defects. How am I supposed to spread butter over this? And Mischbrot, a mixture of rye and wheat, is almost impossible to find.

So we make our own. The goal is mostly to replicate the everyday bread you can buy in Germany for cheap, not to hit any artisanal highs. (Though they are massively better IMHO than anything sold as artisanal here.)

Interestingly, the German breads we are talking about are mostly factory made. Factory bread can be good, if that's what customers demand.

See https://en.wikipedia.org/wiki/Mischbrot

Going on a slight tangent: with tropical heat and humidity, non-sourdough bread goes stale and moldy almost immediately. Sourdough bread can last for several days or even a week without going moldy in a paper bag on the kitchen counter outside the fridge, depending on how sour you go. If you are willing to toast your bread, going stale during that time isn't much of an issue either.

(Going dry is not much of an issue with any bread here--- sourdough or not, because it's so humid.)

65. jandrewrogers ◴[] No.45664853{6}[source]
> Salt isn't all that cheap

Wait, what? Salt is literally one of the cheapest of all materials per kilogram that exists in all contexts, including non-food contexts. The cost is almost purely transportation from the point of production. High quality salt is well under a dollar a pound. I am currently using salt that I bought 500g for 0.29 euro. You can get similar in the US (slightly more expensive).

This was a meme among chemical engineers. Some people complain in reviews on Amazon that the salt they buy is cut with other chemicals that make it less salty. The reality is that there is literally nothing you could cut it with that is cheaper than salt.

replies(1): >>45664952 #
66. eru ◴[] No.45664862{5}[source]
Yes, there has been some movement. But even an 8 fold increase (128/16) over a decade is nothing compared to what we used to see in the past.

Oh, and the new machine has unified RAM. The old machine had a bit of extra RAM in the GPU that I'm not counting here.

As far as I can tell, the new RAM is a lot faster. That counts for something. And presumably also uses less power.

67. rapind ◴[] No.45664910{4}[source]
Neon is definitely way more complex than what I'm talking about.
68. c0balt ◴[] No.45664944{5}[source]
Ansible, Salt and Puppet are mostly industry standard. Those tools are commonly referred to as configuration management (systems).

Ansible basically automates the workflow of: log in to X, do step X (if Y is not present). It has broad support for distros and OSes. It's mostly imperative and can be used like a glorified task runner.

Salt let's you mostly declaratively describe the state of a system. It comes with a agent/central host system for distributing this configuration from the central host to the minions (push).

Puppet is also declarative and also comes with an agent/central host system but uses a pull based approach.

Specialized/ exotic options are also available, like mgmt or NixOS.

replies(2): >>45665144 #>>45674719 #
69. eru ◴[] No.45664952{7}[source]
Well, salt is more expensive than water.

But sure, it's cheap otherwise. Point granted.

One way or another, salt is not a major driver of cost in bread, because there's relatively little salt in bread. (If there's 1kg of flour, you might have 20g of salt.)

70. eru ◴[] No.45664958{7}[source]
> bread ingreadient is cheap but the equipment that you need to do baking is not

It's actually not too bad, if look at the capital cost of a bread factory amortised over each loaf of bread.

The equipment is comparatively more expensive for a home baker who only bakes perhaps two loafs a week.

replies(1): >>45675002 #
71. liqilin1567 ◴[] No.45665144{6}[source]
Thanks, this is very detailed! Could you share some real-world use cases for these tools?

Actually I am looking for tools to automate DevOps and security for self-hosting

replies(3): >>45665822 #>>45666397 #>>45666464 #
72. thequux ◴[] No.45665550{7}[source]
In that case, you don't want cloud; you want an MSP, whose core competence is running those IT services. They, in turn, have the skills to colo a rack at a DC or to manage rented servers, amortized across a number of clients.

In practice, there are two situations where cloud makes sense:

1. You infrequently need to handle traffic that unpredictably bursts to a large multiple of your baseline. (Consider: you can over provision your baseline infrastructure by an order of magnitude before you reach cloud costs) 2. Your organization is dysfunctional in a way that makes provisioning resources extremely difficult but cloud can provide an end run around that dysfunction.

Note that both situations are quite rare. most industries that handle that sort of large burst are very predictable: event management know when a client will be large and provision ticket sales infra accordingly, e-commerce knows when the big sale days will be, and so on. In the second case, whatever organizational dysfunction caused the cloud to be appealing will likely wrap itself around the cloud initiative as well.

73. everyone ◴[] No.45665714{8}[source]
Fucking every web-dev assumes web-dev is all of programming. I have always been a game dev, never done any internety stuff, I was never interested in it. I would defo find the game engine task a lot easier. I already know what I would do. I wouldnt know where to start with the server + I dont know what the "gotchas" are. If I was forced to do that I would schedule a really long time for it.
replies(1): >>45669288 #
74. indigo945 ◴[] No.45665822{7}[source]
Salt and Puppet are useful for managing a fleet of servers running various applications, especially when you need to scale those applications horizontally or want geo-distribution.

Ansible can also do that, on top of literally anything else you could want - network configuration, infrastructure automation, deployment pipelines, migrations, anything. As always, that flexibility can be a blessing or a curse, but I think Ansible manages it well because it's so KISS.

RedHat's commercial Ansible Automation Platform gives you more power for when you need it, but you don't need it starting out.

75. comprev ◴[] No.45666397{7}[source]
A combination of HashiCorp Packer and Ansible means I can "publish" a VM ready-to-rock image to a public cloud provider gallery and use it to run a VM in said cloud.

Ansible-Lockdown is another excellent example of how Ansible can be used to harden servers via automation.

76. lelanthran ◴[] No.45666447{3}[source]
> It's fun the first time, but becomes an annoying faff when it has to be repeated constantly.

I have to ask - do scripts not work for you?

When I had to do this back in 2005 it was automated with 3 main steps:

1. A preseed (IIRC) debian installation disc (all the packages I needed where installed at install time), and

2. Which included a first-boot bash script that retrieved pre-compiled binaries from our internal ftp site, and

3. A final script that applied changes to the default config files and ran a small test to ensure everything started.

Zero human interaction after powering a machine on with the disc in the drive.

These days I would do it even better (system-d configs, Nix perhaps, text files (such as systemd units) can be retrieved automagically after boot, etc).

replies(1): >>45674472 #
77. c0balt ◴[] No.45666464{7}[source]
The other commenter already answered the usecase question, for self-hosting you will likely find ansible the easiest entrypoint.

It is in general the simplest of these systems to get started with and you should be able to incrementally adopt it. There is also a plethora of free online resources available for it.

78. hwntw ◴[] No.45667014{7}[source]
Where do you spend $21 for a loaf of sourdough?! My local baker sells a delicious loaf of artisanal sourdough for £4 here.

Of course, the difference between sourdough and anything else is astonishing, I just can't comprehend someone charging $21 for it!

79. jopsen ◴[] No.45667056{3}[source]
Not to mention physical security.

Breaking into a home is relatively easy.

And unless you live in the US and is willing to actually shot someone (with all the paperwork that entails, as well as physical and legal risks), the fact is that you can't actually stop a burglary.

80. objektif ◴[] No.45668943{3}[source]
I would never ever go back to hosting own DB. It is just a maintenance nightmare.
81. wild_egg ◴[] No.45669174[source]
I saw a twitter thread recently where someone tried to make this point to someone shilling AWS spaghetti architectures. They were subsequently dog-piled into oblivion but the mental gymnastics people can do around this subject is a sight to behold.

Simplicity is uncomfortable to a lot of people when they're used to doing things the hard way.

82. sgarland ◴[] No.45669288{9}[source]
I don’t assume that (and am not a dev - DBRE / SRE) at all. I have massive respect for game devs, since you’re one of the few subsets that seems to give a shit about performance.

I bet you could figure out `apt install nginx` and a basic config pretty quickly, definitely faster than a web dev could learn game programming. “What do you mean, I have to finish each loop in 16 msec?”

83. chickensong ◴[] No.45674472{4}[source]
Your example only covers basic provisioning. The additional items mentioned by the parent comment can be a significant investment, both initially and over time.
replies(1): >>45678261 #
84. chickensong ◴[] No.45674582{4}[source]
Even with automation, it can be a full-time job just to keep pace with the rate of change, never mind the initial development which can be non-trivial.
85. j45 ◴[] No.45674688{3}[source]
Of course.

The default thought to use the cloud because it's more performant though for even the most basic to intermediate loads instead of the hardware directly is what I'm referring to and what the article is referring to.

It's very easy to pay for cloud services per transaction at greatly inflated prices than what it actually costs, and how many cpu cores it actually uses at any given time.

86. chickensong ◴[] No.45674719{6}[source]
> Puppet is also declarative and also comes with an agent/central host system but uses a pull based approach.

The person you're replying to mentioned a self-hosting use case, so this probably isn't relevant for that, but Ansible can also be configured for a pull approach, which is useful for scaling.

87. chickensong ◴[] No.45674866{7}[source]
You can make amazing sourdough at home in a cast iron pot. It requires time, that's the nature of sourdough, but it's not hard once you learn how. I guarantee you could make bread as good or better for a dollar of ingredients!
88. chickensong ◴[] No.45674946{7}[source]
Unless you're talking about the oven, the equipment isn't expensive.

Some skills are required, but it's really not that hard once you learn the technique and have done it a few times.

89. chickensong ◴[] No.45675002{8}[source]
A comment in adjacent thread above mentioned paying $21 per-loaf! That could pay for the equipment needed to bake a couple loaves a week. You really don't need much besides a normal oven.
90. YouAreWRONGtoo ◴[] No.45675414{5}[source]
I can't help it that humanity is so stupid.
replies(1): >>45677933 #
91. dang ◴[] No.45677933{6}[source]
That's true, but you can stop posting to HN from that place.

Edit: I feel like I should give you a more fulsome response, so here goes:

I understand the frustration. I feel it too, even apart from HN making me feel it as part of my job. But I've had to learn some lessons about this, such as:

1. It doesn't help to assume the position of the-one-who-is-not-stupid. Doing that is supercilious and just means you'll contribute to making things worse.

2. Far better is to accept that, as one is human, one shares in all the qualities of being human, including a full complement of stupidity.

3. I forget the third lesson!

replies(1): >>45682490 #
92. lelanthran ◴[] No.45678261{5}[source]
> Your example only covers basic provisioning.

No. It covered setting up all the applications needed as well (nginx, monitoring agent, etc), installing keys/credentials.

What did parent mention that can't be covered by the approach I used?

replies(1): >>45680428 #
93. ngold ◴[] No.45678805{3}[source]
I'm probably wrong, but this argument always cracks me up.

It used to be called 3 laptops a power scrubber and a backup battery. If you want to go self hosting things. If you were fancy you had two servers.

94. chickensong ◴[] No.45680428{6}[source]
I guess I read your comment as OS, the app, and configs, while the parent mentions auxiliary items, ending with "etc etc". The point is, all the extra things that aren't the app take knowledge and resources to set up and maintain.

Sure you can script all the things into 3 steps, just like you can draw an owl with a couple circles.

replies(1): >>45683116 #
95. YouAreWRONGtoo ◴[] No.45682490{7}[source]
Regarding 2., I am not stupid; I might be ignorant in some fields, but do you see me arguing against a world expert in some field I know nothing about?

Stupid people ruin everything.

replies(1): >>45687622 #
96. lelanthran ◴[] No.45683116{7}[source]
> The point is, all the extra things that aren't the app take knowledge and resources to set up and maintain.

Maintain, maybe. The setup for everything extra can scripted, and include a few packages I had to build from source myself because there was no binary download.

replies(1): >>45685388 #
97. chickensong ◴[] No.45685388{8}[source]
I hear you, and I'm passionate about automating all the things. I just wanted to add some perspective to the discussion to set expectations for less experienced people who might be considering a switch from PaaS to DIY.

I'm not a PaaS user, and I encourage people to avoid vendor lock-in and be in control of their own destiny. It takes work though, and you need to sweat the details if you care about reliability and security, which continue to be problem areas for more DIY solutions.

If people aren't willing to put in the work, I'd rather they stick to the managed services so they don't contribute to eroding the already abysmal trust of the industry at large.

98. dang ◴[] No.45687622{8}[source]
Ok, but please do stop posting to HN about how stupid others are. Being smarter is your burden to bear.