Is this a good first homeserver? (de.pcpartpicker.com)
from libewa@feddit.org to selfhosted@lemmy.world on 02 Aug 11:50
https://feddit.org/post/33518106

I don‘t know if this is the right place to ask, but is this an OK build for a first start in selfhosting? Is there anything obvious I could improve? I‘d mainly run Nextcloud, Immich, some Docker containers and smaller web applications and cronjobs.

#selfhosted

threaded - newest

Tolstoy@lemmy.world on 02 Aug 12:09 next collapse

Depends on the docker containers but it’s way overkill than you might think.

Since you’re starting it may be worth looking into used office PCs like the thinkcentre from Lenovo or other brands(no tiny or ssf since they don’t have to room for drives). They often offer good perfomance for the price and the power consumption is not too high.

negativenull@piefed.world on 02 Aug 13:36 collapse

I run a lot of containers in my homelab, which consists of an OrangePi (similar to an RaspberryPi 5). It works surprisingly well, and was only (at the time) $250 for the board, case, and emmc drive.

melroy@kbin.melroy.org on 02 Aug 23:39 collapse

Not for me. I have a very quick ryzen setup with tons of ram and nvme etc. I never want back to a orange pi. But sure. I don't like waiting, as a developer myself I just want to have quick loading pages and services.

Most of these devices have very limited IO disks speeds as well as slow processors. And also limited ram.

IsoKiero@sopuli.xyz on 02 Aug 12:10 next collapse

16GB of ram is a bit low for the load you’re planning. That can work, but Nextcloud and Immich are pretty hungry for memory. My immich instance right now is using 7GB of RAM and nextcloud uses a bit over 4. I have the hardware to give them pretty much all the memory they want, so those are not absolute minimum amounts, but I wouldn’t try to run either with less than 6GB allocated memory on my load (few users, about a terabyte of data on both).

With 16GB you can pretty much forget using ZFS, but that’s not a big loss. LVM works just fine and with thin provisioning you can use snapshots too just fine. Bigger SSD/NVME for drive cache would be good. And of course all-SSD setup would be nice, but that gets expensive pretty fast. Second ethernet port might be nice to have, depends on how you’re planning to build your setup. Otherwise that hardware looks pretty good, altough I’d search for something second hand. CPU is most likely a bit overkill for what you need, I have Xeon E5-2620 v3 @ 2.40GHz and it’s running on around 10% load most of the time.

calamityjanitor@lemmy.world on 02 Aug 12:34 collapse

7GB for immich is wild, my instance with 2TB of photos is currently using 811MB of RAM. What’s eating it all?

MangoPenguin@piefed.social on 02 Aug 13:03 next collapse

Have you checked while it’s running all the ML tasks on import? Mine uses a good chunk of RAM while that’s running.

IsoKiero@sopuli.xyz on 02 Aug 13:53 collapse

It’s a full VM, so OS and docker creates some overhead, but before I upgraded the server it ran on far less resources and specially big imports were painfully slow. Also that’s just the number from proxmox console, so there’s likely some cache included, but stats show that the VM pulls over 10G every now and then with shorter spikes over 20GB of consumed RAM.

As I mentioned, it can run on way less, but it feels a lot more responsive when it has enough resources.

calamityjanitor@lemmy.world on 02 Aug 22:56 collapse

I just ran an import of only a dozen photos and it did go up to 2.3GB usage. I knew containers were more lightweight but I didn’t think a VM could get that bad. Hopefully it’s reporting a sum of virtual or assigned memory space and isn’t actually hogging that much in physical ram.

IsoKiero@sopuli.xyz on 03 Aug 08:48 collapse

Immich itself is running on docker, so it’s the same than every other setup. For me it just makes more sense to run that on a separate VM than keeping all the docker containers in a same operating system due to backups, manageability, access control and so on, even if it costs a bit of memory to run a full operating system. Biggest consumers on the host process list are immich-api, postgres-processes and immich. Actual used memory is around 2,5GB for the whole system with ~5GB on buffers/cache.

But I often import hundreds of raw photos at a time from DSLR and/or 4K video footage from my drone and processing those takes quite a lot of memory. With less memory and slower drives the whole thing crashed when importing bigger batches to out of memory erros, but I suppose it could run just fine with even less than 4GB of memory, if the usage pattern is just to upload photos from your cellphone in a relatively slow pace.

sarkxy@lemmy.world on 02 Aug 12:13 next collapse

Yes it will be fine. Much will depend on what OS you will run and in turn how you want to do storage. NAS drives might not be necessary if you going to use software defined storage. If in your budget consider a CPU with more cores for virtualization and docker.

Overall nothing wrong with that configuration. But if you really get into all the awesome stuff you can self host your two constraints are RAM and CPU cores.

libewa@feddit.org on 02 Aug 12:27 collapse

The NAS drives are here because they are from an old NAS which only uses a cheap dual-core Intel, has 2G of RAM, and boots from eMMC. So anything would be an upgrade…

cRazi_man@europe.pub on 02 Aug 12:28 next collapse

FYI: I’m a noob myself.

Looks fine, but if you’re looking to mess around with a first build then you could go cheaper. Secondhand hardware would save you money, especially since older hardware is great for server use. At least you’re saving money with AM4 and DDR4.

Some thoughts:

  • I went with an Intel CPU for Jellyfin transcoding.
  • 16gb ram is enough to start and I host tons of stuff with that much, but the more ram the better. Having 2 more ram slots for future expansion would serve you well (but not essential).
  • Faster networking would be better. Your mobo has 1 gigabit LAN. Again not a deal breaker. You can add faster networking yourself later.

This guy makes great videos, but you have to be careful to not overcomplicate things or chase specs that pro home server guys want that make no difference to noobs.

iamthetot@piefed.ca on 02 Aug 15:04 next collapse

Note about the network: it really doesn’t matter how fast your server can go if the rest of the stuff connected to it can’t also handle it.

You have a server with a 10 gigabit network port, you also need the cabling, router, switches, and other hardware that can handle 10 gigabit.

CCMan1701A@startrek.website on 02 Aug 23:16 collapse

I recently picked up a used i3 14th gen to add to my server rack. Its great except ddr5 💸

realbadat@programming.dev on 02 Aug 12:51 next collapse

Just about anything is OK for a server, I use whatever hardware I get from work thats being decommissioned.

The biggest limit I see is the ram. Depending on what you spin up and how, it’ll be the tightest budget per service.

MangoPenguin@piefed.social on 02 Aug 13:06 next collapse

I would probably go Intel with iGPU for the transcoding and acceleration for Immich. i3-14100 is fast and cheap.

Otherwise you definitely have far more CPU power than you’ll need for those apps so no worries there.

CCMan1701A@startrek.website on 02 Aug 23:17 collapse

It is but ddr5 is not cheap

MangoPenguin@piefed.social on 03 Aug 13:12 collapse

It supports DDR4 if you buy a motherboard that supports DDR4 too.

CCMan1701A@startrek.website on 03 Aug 13:50 collapse

Ohhhhh… Let me see if this Dell I’m using can run ddr4, I would like to have 16GB of ram

happy_wheels@lemmy.blahaj.zone on 02 Aug 13:20 next collapse

Your part list is extremely similar to my main home server. You’ll do just fine with the hardware you’ve selected. It is a GREAT starting point.

For context I have been running an AMD 5600g alongside 32gb gskill ddr4 RAM since covid, tho back then it was a 2600x paired with an ancient FirePro for graphics. Boot drive is m.2 ssd and I have 4 hand-me-down enterprise HDDs for storage. (I originally was using whatever spinning rust I already had on-hand at that time, but I have replaced them since)

riskable@programming.dev on 02 Aug 14:19 next collapse

Massive overkill!

That’s a great Home Theater PC. Hook it up to your TV and install KDE Plasma (distro of your choice 👍) then just crank up the global desktop zoom to like 225% and get:

  • A real wireless mouse that has a long range (e.g. $10 TEKNET cheapo deal with 10% off coupon today, LOL! a.co/d/02qG1oHO )
  • A wireless keyboard/trackpad combo that’s made for that kind of thing (they’re all terrible keyboards—it’s only purpose is to get you through the boot menu/rescue process if something horrible goes wrong). Use SSH for doing any real work on the thing.

Now install Docker and all the containers/servers you want!

I have a ~14yo HTPC with a mostly modern GPU (8GB) that only has 8GB of RAM and four cores on some old AMD CPU. It’s running four separate servers for my self-host purposes and it doesn’t break a sweat.

melroy@kbin.melroy.org on 02 Aug 23:36 collapse

I don't think it's a massive overkill. He most likely will try to host even some more services besides nextcloud etc.

I recommend actually to get more ram. Despite the stupid high prices I know.

libewa@feddit.org on 02 Aug 14:20 next collapse

Follow up question: Do I need a separate CPU cooler, or is the boxed Wraith enough? And how loud is it? I can’t really find info on that.

happy_wheels@lemmy.blahaj.zone on 02 Aug 15:05 next collapse

Wraith is fine. I have mine installed and it’s dead quiet. If you don’t like the noise, you can always get a 15-25$ USD aftermarket cooler, brands like ThermalRight and Cooler Master come to mind.

waigl@lemmy.world on 02 Aug 15:37 collapse

So long as you’re using the spinning rust hdds, the noise of the CPU cooler won’t make much difference. Mind you, this PC will be a bit too loud for the living room like this.

irmadlad@lemmy.world on 02 Aug 14:39 next collapse

Your server looks fabulous, and I’m not discouraging you from pursuing it in the least. However, if I may draw from my own personal experience and what I am currently running, it may give you some ideas. Currently, I am running 53 containers on a Optiplex 7020 SFF with the i7-4790 and 32 GB RAM. Just checked and it’s load average at this moment is: 0.47, 0.60, 0.73. Meaning it’s pretty much in an idle state except for logging in just now. Grand total cost was less than $200. It consumes about $8 USD/month.

Unless you’re going to get into selfhosting heavy AI models, most stock PC, office discards, etc built in the last 10 years will do just fine for a homelab, with a little love like some additional RAM or a dual nic card. Immich and Nextcloud will probably require a bit more than 16 GB RAM running together. I don’t run Immich, but I do run Nextcloud and it does just fine with the above set up. No lags, stutters, etc.

FippleStone@aussie.zone on 03 Aug 13:26 collapse

How much do to pay for electricity? I’m running an I5-3470 and it costs about $17.50 USD/month, at $0.23 per kwh, the stack of 3.5" HDD’s pushes up the power consumption a fair bit though

irmadlad@lemmy.world on 03 Aug 13:43 collapse

I pay around $8/month USD. Now, there are factors involved. One, electricity in my locale is relatively cheap. In addition, I have solar. To contrast the Optiplex 7020 SFF, I used run the same containers/content on a Dell T320. It cost $40/month USD. which still isn’t an outrageous expenditure for someone with another type of hobby. Some of my other hobbies, like creating music, those prices climb steeply, rapidly. Last count I have 48 guitars, several banjos, 8 bass, an oud, mandolin, 4 full size Korg synth keyboards. three violins, and amps out the yang. So $40/month was peanuts, but I wanted something that wasn’t such a hog. Plus the heat dissipated by the T320 was significant, and that is passed on to your AC bill as well. The 7020 is much quieter, energy efficient, and produces very little heat. Win, win.

yaroto98@lemmy.world on 02 Aug 15:19 next collapse

One thing you may want to explore is your OS. If you want to do what you suggested with a NAS OS like TrueNAS or Unraid. They can take advantage of a ssd cache. One small regular ssd for your OS, storage on your hdd array, and a NAS quality ssd that essentially runs your docker containers that gets backed up to your array.

It’s not nessesary. But if it’s something you think you might want to do in the future, you’ll want a plan for it now. Make sure you have enough mobo connections, and space in your case or an idea on how you would want to expand.

waigl@lemmy.world on 02 Aug 15:35 next collapse

If you’re already going for spinning rust hard disks, why limit yourself to the 3 TB ones? IMHO, these days, spinning rust only makes sense at 8 TB+ per disk.

libewa@feddit.org on 02 Aug 16:40 collapse

I have them at home and as such don‘t need to spend money on them.

kalpol@lemmy.ca on 02 Aug 17:00 collapse

Story of my life

sepi@piefed.social on 02 Aug 16:44 next collapse

I have used a laptop without a screen as a server, raspberry pis, 10 year old laptop, proliant server, something with a via itx motherboard and a cheap cpu, like literal trash. So yeah your build is more than fine. Don’t stress your budget too much, but if you can afford this you will have better than my first “server”. Remember to have fun with it!

waterSticksToMyBalls@lemmy.world on 03 Aug 01:14 collapse

Ran a server off a fantastic workstation laptop that a user dropped off their bed, driving a USB stick through the power button and breaking the screen. Had to power it on with a stick directly poking the motherboard but it worked flawlessly for many years

inanimate_carbon_rod@lemmy.zip on 02 Aug 17:00 next collapse

16GB RAM may be a bit low for the setup, as others have suggested, but I’m currently running Immich and Nextcloud and a handful of other small services (like FMD) dockerized in an 8GB Raspberry Pi 5. I’ve experienced very few issues. In my opinion, you could find a used Ryzen 3600 or even older, and 16GB will probably serve you just fine. You could save yourself a hundred bucks or more.

That said, what you’ve got here is nice and future-proof for quite a while, even if you end up going down the rabbit hole. You might eventually need another 16GB of RAM, but maybe not until after the AI bubble pops 🙂

melroy@kbin.melroy.org on 02 Aug 23:34 collapse

Yes definitely get more ram you will regret it later.

quaff@lemmy.ca on 02 Aug 17:05 next collapse

I have a similar setup with the same case haha recently built as well. Your use-case will be more than fine. My only suggestion, aside from try and get more RAM. If those hard-drives are in a redundant raid setup, and you don’t already have one, get a backup drive too. Especially if the price for the drive IA decent. Last thing you want to do is to buy a replacement drive later when prices are jacked up or have to do the RMA process with only 3 drives running your data.

utjebe@reddthat.com on 02 Aug 22:12 next collapse

You can get Ryzen 5650G Pro from ebay that will support ECC. Just make sure it’s not vendor locked.

Obviously you’d need to adjust mobo, not sure if Gigabyte supports ecc. Asrock was pretty cool with ECC.

dieTasse@feddit.org on 06 Aug 06:56 collapse

I’d recommend using eficient procesors as well, so with ryzen with grafics and efficience it’s GE at the end. I recently switched ryzen 5 5500 for ryzen 5 4600GE (because 5500 doesn’t have efficient variant) and the consumption halved (- 30Wh). And both were/are basically idle with very low loads.

Decronym@lemmy.decronym.xyz on 02 Aug 22:20 next collapse

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

Fewer Letters More Letters
DNS Domain Name Service/System
Git Popular version control system, primarily for code
LVM (Linux) Logical Volume Manager for filesystem mapping
NAS Network-Attached Storage
NVMe Non-Volatile Memory Express interface for mass storage
PSU Power Supply Unit
SSD Solid State Drive mass storage
SSH Secure Shell for remote terminal access
VPN Virtual Private Network
ZFS Solaris/Linux filesystem focusing on data integrity
nginx Popular HTTP server

[Thread #71 for this comm, first seen 2nd Aug 2026, 22:20] [FAQ] [Full list] [Contact] [Source code]

pHr34kY@lemmy.world on 02 Aug 22:37 next collapse

2 of my 4x 4TB spinning drives are portable. 2 in mirrored raid, and on-site backup, and an off-site backup. If you don’t have it on 3 drives across two sites, you don’t have it. 5400RPM is fine as long as you allocate some of that NVMe as a cache for it. Keep all high-transaction stuff like databases, thumbnail caches and indexes on the NVMe drive. Going to 7200RPM just increases power consumption and noise, and reduces reliability.

The other specs seems fine, but I personally upgrade my desktop then take the old CPU, RAM and motherboard to use for my server.

Immich and Nextcloud run fine on my 2015 Core i5 with 16GB RAM.

libewa@feddit.org on 03 Aug 06:21 collapse

How do I do that with the SSD cache? Everyone just talks about it, but I can’t find any documentation…

pHr34kY@lemmy.world on 03 Aug 07:27 collapse

I’m using bcache, and I’m using btrfs as the filesystem on top of it. I’m not sure that the way I’ve done it is considered best practice anymore. The discourse online is a mess because the landscape keeps evolving.

evilpiepirate.org/git/…/bcache.txt

philanthropicoctopus@thelemmy.club on 02 Aug 23:23 next collapse

Might be abit much but double your ram if you intend on using a lot of apps

melroy@kbin.melroy.org on 02 Aug 23:34 collapse

I agree. The most limiting factor is still memory for me. And I'm max out currently of my motherboard (128gb).

Recently thessecond limiting factor is actually cpu. But that is due to my gitlab runners.

hirihit640@sh.itjust.works on 04 Aug 04:33 collapse

how are you using 128 GB? Genuinely curious because I run over 20 services with only 8 GB

melroy@kbin.melroy.org on 05 Aug 11:15 collapse

  • I run 50+ websites
  • MariaDB instances
  • PostgreSQL instances
  • Docker containers
  • Mbin, Nextcloud, GitLab, GitLab runners, gitea, bitcoind, fulcrum, grafana, prometheus, influxdb, Synapse, Angie, telegraf and various other services like fail2ban etc. etc.

All optimized for performance and fine tuned as well, eg. lets say you run mariadb vs how I run it:

innodb_buffer_pool_size = 8G
innodb_flush_log_at_trx_commit = 2
innodb_log_file_size = 2G
innodb_log_buffer_size = 32M
innodb_max_dirty_pages_pct = 90
innodb_io_capacity=5000
innodb_io_capacity_max=20000
innodb_read_io_threads=8
innodb_write_io_threads=8
query_cache_type = 1
query_cache_limit = 2M
query_cache_min_res_unit = 2k
query_cache_size = 128M
tmp_table_size= 128M
max_heap_table_size= 128M

[mysqld]
max_connections = 200
character_set_server = utf8mb4
collation_server = utf8mb4_general_ci
transaction_isolation = READ-COMMITTED
binlog_format = ROW
innodb_file_per_table=1
# Increase open files based limits.conf value
open_files_limit=65535

Same idea for Postgresql.. You can run "postgres" or.. actually run postgresql in production correctly like:

shared_buffers = 6GB
work_mem = 20MB
maintenance_work_mem = 2GB
maintenance_io_concurrency = 200
max_worker_processes = 14 
max_parallel_workers_per_gather = 4
max_parallel_maintenance_workers = 4
max_parallel_workers = 12

synchronous_commit = off
commit_delay = 300

checkpoint_timeout = 30min
max_wal_size = 60GB
min_wal_size = 4GB
hirihit640@sh.itjust.works on 05 Aug 21:35 collapse

Actually now that I check your username I think I have seen your instances before, though it seems like your website is down at the moment. But thank you for service to open source !

melroy@kbin.melroy.org on 05 Aug 23:06 collapse

nah its not down.. maybe you use a VPN.

hirihit640@sh.itjust.works on 06 Aug 00:38 collapse

I do. Do you block all VPNs? Or is it just rate limiting?

melroy@kbin.melroy.org on 06 Aug 14:53 collapse

I block some misbehaving data centers. Which are often also used by VPN providers. So it's more collateral damage.

No I fully block some data centers not just rate limit.

hirihit640@sh.itjust.works on 06 Aug 17:49 collapse

Unfortunate but understandable. I believe there are public lists of the IPs of major VPN providers if you wanted to make an exception, but as VPNs are sometimes used for scraping too, I can see why you might not want that.

melroy@kbin.melroy.org on 06 Aug 23:35 collapse

Yea so the same servers and IP addresses VPN provider use (which are again just cloud providers) are also used for other purposes mainly by scrapers and DDos attacks indeed. Too bad all those cloud providers do not act accordingly in the past 5 - 10 years. Since its getting worse and worse. With the increase of datacenters and centralization, I consider it a duty of these companies to take action to stop these scammers, spammers, scrapers, and attackers.

However, that is often not the case. Now I must say, I created Angie Guardian myself (alternative to Anubis). So hopefully soon I can slowly open some of ASN bans. And see how it goes.

hirihit640@sh.itjust.works on 07 Aug 07:23 collapse

Do you know if the scrapers/bots are using the VPN providers? Or if they are just using VPSes in the same datacenter as the VPN, and the datacenter is just NATing all egress traffic to have the same IPv4. In that case I wonder if IPv6 could help distinguish between VPN traffic and bot traffic…

Though ultimately a gate like Anubis or Angie Guardian might be the best solution here so nice work.

melroy@kbin.melroy.org on 07 Aug 12:25 collapse

The scrapers most likely don't use the VPN providers AFAIK. But these cloud providers have dozens of datacenter locations where you can rent your own virtual server (VPSes) and those datacenters are also often used by VPN providers.

Its actually often coming from separate IP addresses. Which makes it actually even harder, its not just 1 or 2 IP addresses. Meaning both good and bad traffic has 100.000+ of unique IP addresses per IP range. At that point I block the whole ASN: https://www.cloudflare.com/learning/network-layer/what-is-an-autonomous-system/

Meaning I basically block the whole datacenter and mark them as bad actors. Cloud server providers F*K up the internet, since before you can easily block one, two or ten IPs and be done. Today, those bad actors and scrapers or DDos attackers can use millions of unique IP addresses, because it can rely on the whole cloud provider IP ranges (ipv6 is even more insane ofc).

https://asrank.caida.org/

hirihit640@sh.itjust.works on 08 Aug 11:52 collapse

Ok that makes sense. As a user I’ve always wondered what it was like from the providers perspective. I always hear people complaining that more and more websites block VPNs, but sounds like it might be better to say more and more websites block scrapers and the VPNs are collateral. Thanks for the insight

lewiks@lemmy.world on 03 Aug 11:23 next collapse

I have that same case in black, overall very similar setup. I like how it looks, but if I would change one thing in my server it would be the case. It’s quite a hassle to work inside of, and for its size, only being able to hotswap 4 HDDs is very little compared to other cases you can find.

It’s not bad by any means, but you can get better

minoche@lemmy.world on 03 Aug 23:18 next collapse

I made a very similar build almost 2 years ago.

I did not like the Jonsbo N4. The HDD temps were bad. The case amplified HDD noise and was a pain to build in. I used a Silverstone SFX power supply. I had two of those PSUs fail in less than a year.

After the second expensive SFX PSU failed, I decided I did not want to buy another. I changed cases to the Fractal Design Node 804 and bought an inexpensive ATX PSU. I have been much happier with my build after those changes. My HDD temps dropped by about 10 degrees Fahrenheit. The case is much quieter and I was impressed by the quality.

non_burglar@lemmy.world on 03 Aug 23:25 collapse

Agree on the Jonsbo. I have an N1 and it is not great for cooling HDD either. Jonsbo seem to design their cases as ideas and never actually test them.

dieTasse@feddit.org on 06 Aug 07:04 collapse

I humbly disagree with others that 16 Gigz of ram is not enough. A. For the first server it is definitely enough, before you know what you really need. B. In current rampocalypse it would be crazy buying ram without knowing that you really need it (only for it to sit there unused later). Your setup is fine and only time and your inner hobbyist selfhoster will tell later what you need.

Edit: and fyi I curretly do have 48 Gigz 😂, bought it a year ago very cheap and my system uses 10. Therefore I have set a high ARC to 16 GB. I used to try local LLM but didn’t find it useful for the high power consumption. Just wanted to show you where my opinion come from. Nowadays I wouldn’t buy more than strictly necessary.