[BEST PRACTICE] - Proxmox / Ceph / LXC (Question)

fstrankowski

Well-Known Member
Nov 28, 2016
72
13
48
39
Hamburg
Hello everyone,

i'd like to ask for a best practice solution for our current setup. We're running a Proxmox-Cluster over 3 datacenters, on Hypervisors with SD-Cards (32GB each). Our problem is as follows:

After testing LXC-Containers for our production enviroment, we've figured out, that even though we set vm.swappiness to 0 LXC still begins to swap on the host (4GB partition on SD-Card) which renders Host-SD-Card-Speed nuts.

We've discussed the following approaches:

  • Change Swap on Host to CEPH-RBD instead SD-Card
  • Completely remove LXC-Swap
  • Mount CEPH-RBD inside LXC
Is there any common best-practice for this task?

Appreciate!
 
  • Completely remove LXC-Swap
I would go for this one. If you don't need swap (hence the setting 0), then remove it all together.

In general, don't run PVE on SD cards, as there are many writes done (not only by swap) by PVE and Ceph. IIRC, ~10 GB/day for PVE services.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!