r/programming • u/lpmi-13 • 5d ago
Can One VM Really Host 15 Million Web Servers?
https://labs.iximiuz.com/tutorials/15-million-web-servers-on-one-vm-87084d2aAfter reading the phenomenal article https://kapteko.com/15-million-webservers/, where the author shows how to do some very cool stuff inside one Linux VM with 10GB of RAM, I thought it would be cool to actually see it happen myself.
So I put together a tutorial in a custom iximiuz Labs playground to see it in action.
Feel free to play along as you read the article (which is excellent, btw...short and sweet with just the right amount of technical details).
69
Upvotes
32
u/thisisjustascreename 5d ago
What qualifies as a 'web server'?
10
u/SaltMaker23 1d ago
You can easily run a complex NextJS on 10GB of ram for millions of websites.
You just route them all with traefik on the same container.
Then you have one folder for each build, and you good.
Just like with one website, you'll be limited in total traffic, but we're talking probably in the range millions per minutes. If you only have 10GB of RAM for your websites, this is way more than enough, there's no chance anyone of them even has traffic
2
u/VeritasEtUltio 1d ago
Easy to do, as long as nobody visits the sites all that often.
1
u/[deleted] 5d ago
[removed] — view removed comment
0
u/[deleted] 5d ago
[removed] — view removed comment