Hi,
Running the latest version of proxmox (5.1-42), but struggling to increase the number of open files on my containers, they default with way way too low values:
(From inside the container)
ulimit -Hn && ulimit -Sn
4096
1024
The containers are running as unpriviled, already increased the limit on the proxmox host itself:
/etc/sysctl.conf ->
fs.file-max = 50000
/etc/security/limits.conf ->
* hard nofile 50000
* soft nofile 40000
Setting it higher in the container isn't working.
Read:
https://forum.proxmox.com/threads/real-ulimit-value-for-lxc-containers.29798/
wbumiller talks about a new config option:
"Resource limits are available with lxc-pve >= 2.0.8-2, the `lxc.limit.*` configuration keys are allowed in /etc/pve/lxc/*.conf with pve-container >= 2.0-7."
If i add:
limits.kernel.nofile=30000 to /etc/pve/lxc/101.conf
It still doesn't apply any higher limits on the container, really hitting a stumbling block / not finding any solutions by searching around.
Found some references to set LimitNOFILE on the systemd service file, but those services doesn't seem to have a systemd service in the latest version.
Does anyone know how to do it on the latest proxmox version?
Running the latest version of proxmox (5.1-42), but struggling to increase the number of open files on my containers, they default with way way too low values:
(From inside the container)
ulimit -Hn && ulimit -Sn
4096
1024
The containers are running as unpriviled, already increased the limit on the proxmox host itself:
/etc/sysctl.conf ->
fs.file-max = 50000
/etc/security/limits.conf ->
* hard nofile 50000
* soft nofile 40000
Setting it higher in the container isn't working.
Read:
https://forum.proxmox.com/threads/real-ulimit-value-for-lxc-containers.29798/
wbumiller talks about a new config option:
"Resource limits are available with lxc-pve >= 2.0.8-2, the `lxc.limit.*` configuration keys are allowed in /etc/pve/lxc/*.conf with pve-container >= 2.0-7."
If i add:
limits.kernel.nofile=30000 to /etc/pve/lxc/101.conf
It still doesn't apply any higher limits on the container, really hitting a stumbling block / not finding any solutions by searching around.
Found some references to set LimitNOFILE on the systemd service file, but those services doesn't seem to have a systemd service in the latest version.
Does anyone know how to do it on the latest proxmox version?