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

Nov 28, 2016
100
23
83
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.