I'm concerned about the limitations of LXC containers for production servers.
Currently we run our main production servers (web, database, etc) as KVM virtual machines but were considering deploying them in containers in future.
We have quite a few small applications running in containers and they work really well -- with the notable exception of our VPN servers which I had trouble getting working due to the difficulty in letting the container create a TUN device.
Recently we deployed a full-stack container for a customer which seems to sometimes stop responding for no apparent reason. Logging in, we see that the web server, application and database are running fine, but HTTP(S) request to it just hang.
We see warnings from Apache:
and many services output
which could be a thing that systemd is trying to do.
Comparing ulimits in an LXC container to a KVM virtual machine, the soft limits for a container are actually higher, though some hard limits are lower.
We also use keepalived in almost all of our virtual machines and containers.
Could resource usage be causing the problems we are having with this one container? Are we likely to experience problems with eg web or database servers if we run them inside containers in the future?
Currently we run our main production servers (web, database, etc) as KVM virtual machines but were considering deploying them in containers in future.
We have quite a few small applications running in containers and they work really well -- with the notable exception of our VPN servers which I had trouble getting working due to the difficulty in letting the container create a TUN device.
Recently we deployed a full-stack container for a customer which seems to sometimes stop responding for no apparent reason. Logging in, we see that the web server, application and database are running fine, but HTTP(S) request to it just hang.
We see warnings from Apache:
Code:
ulimit: error setting limit (Operation not permitted)
Code:
Failed to reset devices.list: Operation not permitted
Comparing ulimits in an LXC container to a KVM virtual machine, the soft limits for a container are actually higher, though some hard limits are lower.
We also use keepalived in almost all of our virtual machines and containers.
Could resource usage be causing the problems we are having with this one container? Are we likely to experience problems with eg web or database servers if we run them inside containers in the future?
Last edited: