is 512mb vps enough for my static stite? reddit / selfhosted ---------------------------------------------------------------------- Aeul289 · 2023-10-16 10:43 I'm going to have a few pages of text and a few videos avaliable for download and an email I'm expecting max 1gb of downloads a day Thats literally all, nothing else ---------------------------------------------------------------------- ElevenNotes · 2023-10-16 10:54 Give it a go. Static content does not need much RAM. ---------------------------------------------------------------------- YourFlakingFuture · 2023-10-16 10:55 Yep, slap some swap for harder times and you’ll be fine ---------------------------------------------------------------------- Conscious-Fault-8800 · 2023-10-16 10:56 Sure. I had webspace packages with 128mb ram in the past that ran static pages and simple php Websites just fine. Just choose a slim OS ---------------------------------------------------------------------- R0GG3R · 2023-10-16 10:56 Yup… 512MB is more enough for a static site. You can always upscale to bigger VPS, downscaling is more complicated or even not possible. ---------------------------------------------------------------------- msanangelo · 2023-10-16 11:38 yeah, plenty. enough for at least a few dozen sites. if not more. ---------------------------------------------------------------------- kitanokikori · 2023-10-16 11:54 I would use Vercel or Netlify for this, it will be much faster and cheaper ---------------------------------------------------------------------- s_91 · 2023-10-16 12:04 You can try [this](https://www.racknerd.com/BlackFriday/index.php): 768MB RAM - 10GB SSD - 1 dedicated IPv4 - 1TB Bandwidth for $10.28/year. ---------------------------------------------------------------------- NikStalwart · 2023-10-16 12:04 To op: that means 'not ubuntu' ---------------------------------------------------------------------- NikStalwart · 2023-10-16 12:06 If you're going to have an email server, that's not *just* a static site. Static sites, by their very nature, require very little in the way of resources. As others have said, 128mb is more than enough, or you can use many static hosting providers like Github pages, netlify, vercel, cloudflare pages, etc. For mail  —  try AWS SES, very cheap for outbound SMTP. No resource use for you! ---------------------------------------------------------------------- Zeptiny · 2023-10-16 12:26 Depending you don't even need a VPS for your website, cloudflare pages hosts static websites for free, and can have integration with mail channels to send email (Such as a form) ---------------------------------------------------------------------- Aeul289 · 2023-10-16 12:26 I was planning on openbsd ---------------------------------------------------------------------- Aeul289 · 2023-10-16 12:28 that looks great but the reason I was going with the one I choose was because they collect 0 information and I can pay with monero. ---------------------------------------------------------------------- thisiszeev · 2023-10-16 12:35 Yes. Infact even Wordpress will work on a small single site server, as long as it doesn't get a lot of traffic. ---------------------------------------------------------------------- Aeul289 · 2023-10-16 12:35 yeah I know I can go with github pages etc for free but I just really want to do it independently. ---------------------------------------------------------------------- s_91 · 2023-10-16 13:02 Okay no worries, RackNerd accepts crypto iirc. Whats the name of the provider that you chose? ---------------------------------------------------------------------- ProbablePenguin · 2023-10-16 13:34 Absolutely yes, more than enough. ---------------------------------------------------------------------- Aeul289 · 2023-10-16 13:39 incognet.io just checked, racknerd takes btc but they still ask for a full name, phone number, etc ---------------------------------------------------------------------- j0hnp0s · 2023-10-16 13:55 Static sites should not need much ram. Be careful with bandwidth charges though. Videos are usually hosted to youtube or something ---------------------------------------------------------------------- AdrianTeri · 2023-10-16 13:56 Exactly what I'd consider are: - Bandwidth limitations(usually paired by number of cores & RAM) and - Total Bandwidth per month Smaller counts of CPU are paired with lower RAM sizes which eventually have lower bandwidth throughput & limitations on how much(totals). You could give Cloudflare R2 a go... A better alternative to Amazon's S3 in terms of egress costs. You only pay for storage costs - total size of your videos & tiny sizes of texts(web pages). https://developers.cloudflare.com/r2 ---------------------------------------------------------------------- AdrianTeri · 2023-10-16 14:01 On Vercel's ToS'es... https://twitter.com/thinkcly/status/1713507306887880952/photo/1 ---------------------------------------------------------------------- 12_nick_12 · 2023-10-16 14:54 Yeah, I would just use cloudflare pages. ---------------------------------------------------------------------- phein4242 · 2023-10-16 14:59 You could do this in 128 or 256mb then ;-) ---------------------------------------------------------------------- phein4242 · 2023-10-16 15:01 With 256mb one could run a fully featured mta on the box (given the choice of OpenBSD as the os). ---------------------------------------------------------------------- kitanokikori · 2023-10-16 15:05 Why does everyone misread this, literally every site that accepts user content has to have this clause, or else you could upload your content to them, then immediately turn around and sue them for copyright infringement ---------------------------------------------------------------------- fargenable · 2023-10-16 15:11 Run a Wordpress site on a host with 1GB RAM. Zram + file swap, set priorities accordingly. ---------------------------------------------------------------------- skc5 · 2023-10-16 16:31 Ubuntu Server is still pretty slim. Similar to Debian minimal installs at 256-300MB memory usage. ---------------------------------------------------------------------- mdibound · 2023-10-16 18:07 No need to spin up a VPS for static content. Use an S3 bucket for static website hosting, add a cloudfront rule for your domain, and use the bucket as origin. It'll cost you pennies per month. ---------------------------------------------------------------------- Past-Sky3552 · 2023-10-16 18:19 When u wanna host static you can use Cloudflare Pages. I think u can have X Pages free. But you have to change your domain NS to Cloudflare ---------------------------------------------------------------------- ayoungblood84 · 2023-10-16 18:21 If it's self-hosted why are you limited? It sounds like you are hosting this with a provider... Either way throw cloud flare in front of it and it will cache your static content which is good on all aspects. ---------------------------------------------------------------------- LavaCreeperBOSSB · 2023-10-16 20:32 Yeah but you can also try Oracle's free tier for much better specs and go through Cloudflare for caching ---------------------------------------------------------------------- MaxKulik1 · 2023-10-16 20:37 I have seen web servers run on less. Give it a shot. You could also try some web cache with Cloudflare and you might even see some better performance that you would expect! ---------------------------------------------------------------------- lovett1991 · 2023-10-16 20:58 If you’ve just got a simple static site you can host them using serverless. My last company had a site running in AWS with an S3 bucket and cloudfront. It was all within the free tier IIRC. ---------------------------------------------------------------------- Ged44 · 2023-10-16 21:22 How can it be that cheap? What's the catch? ---------------------------------------------------------------------- Service-Kitchen · 2023-10-16 22:12 What does this mean? Where can I learn about this? ---------------------------------------------------------------------- ZaxLofful · 2023-10-16 23:53 If it’s a static site….Why not use GitHub static? It’s free…. ---------------------------------------------------------------------- Beastmind · 2023-10-17 00:34 There are way more efficients and less memory hungry softwares than WordPress for a static website. ---------------------------------------------------------------------- fargenable · 2023-10-17 00:35 Of course, I meant if I can run a Wordpress site with 1GB of RAM, a static site should be able to run on 512MB of RAM. ---------------------------------------------------------------------- Beastmind · 2023-10-17 00:35 Swap is writing on the hard drive when x% of the memory is full to avoid filling it and crashing the system. ---------------------------------------------------------------------- Beastmind · 2023-10-17 00:40 Oh yeah OK you meant yourself, nvm ---------------------------------------------------------------------- NikStalwart · 2023-10-17 00:42 Well of course it is similar to Debian, Ubuntu is, after all, a Debian-based OS. People have suggested OpenBSD for minimal resource usage; I'm not a BSD guy so I cannot comment, but Alpine is a thing as well. Although, again to be fair, I mainly use Alpine in containers and arch for the host OS. ---------------------------------------------------------------------- Beastmind · 2023-10-17 00:44 Found and tried that back in the day https://lowendbox.com/blog/yes- you-can-run-18-static-sites-on-a-64mb-link-1-vps/ It's a bit more memory nowadays but still a fun read ---------------------------------------------------------------------- s_91 · 2023-10-17 01:17 Many customers vouch for the good service, while some others have complaints. As usual with any service, no one is perfect. https://www.reddit.com/r/VPS/comments/105gipo/racknerd_reviews/ Google more about them. Disclaimer: I have never used their servers, but I remembered that they offer >1GB RAM VPS for cheap. ---------------------------------------------------------------------- mrcaptncrunch · 2023-10-17 02:09 I run 3 static sites on a 128MB VPS. Instead of apache or nginx, just use caddy. Works great. # free -m total used free shared buff/cache available Mem: 128 78 0 1 50 49 Swap: 64 0 64 and about all the talk about debian, ubuntu, bsd, I'm just running the latest Debian 12 on it, # lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 12 (bookworm) Release: 12 Codename: bookworm ---------------------------------------------------------------------- adiyasl · 2023-10-17 04:19 Give fake information. It is just to help if you forget the password. They do not verify the number. ---------------------------------------------------------------------- adiyasl · 2023-10-17 04:20 Also use a email from protonmail. Completely anonymous ---------------------------------------------------------------------- XLioncc · 2023-10-17 08:35 Yes ---------------------------------------------------------------------- merlin86uk · 2023-10-17 10:51 Using what operating system? Using what web server software? Using what mail server software? Pretty much impossible to answer without knowing those. I’d suggest referring to the documented system requirements for all 3. ---------------------------------------------------------------------- Wdrussell1 · 2023-10-17 13:25 Why not try github pages? It is free. ---------------------------------------------------------------------- aneesk071 · 2023-10-17 17:20 **A 512MB VPS should be more than adequate for hosting a static website.** Static sites are known for their minimal resource requirements, and some users have successfully run them on as little as **128MB of RAM.** However, consider factors like the operating system and whether **you plan to host an email server**, as that can require more resources. If your site is genuinely static, you can also explore serverless options or free hosting providers like **Github Pages, Netlify, or AWS S3 with CloudFront**. Just keep an eye on bandwidth usage if you have videos or other bandwidth-intensive content." ---------------------------------------------------------------------- YTsshfd8H5rb · 2023-10-18 07:15 The best way would be to use S3+cloudfront+route53 from AWS because it seems to be the cheapest setup for such approach. It will take approximately $2 per month to serve such site ---------------------------------------------------------------------- yolomoonie · 2023-10-18 20:55 Ubuntu is huge. Compare with something like Alpine Linux. A simple installation with nginx uses not even 100MB on installation space and takes on idle with a simple static website about 50MB of RAM.