azukiapp / azk

azk is a lightweight open source development environment orchestration tool. Instantly & safely run any environment on your local machine.
http://azk.io
Apache License 2.0
898 stars 63 forks source link

systemd DefaultTasksMax=512 #634

Open slobo opened 8 years ago

slobo commented 8 years ago

Hi folks, @gullitmiranda asked to post this as a ticket too. It turns out that latest systemd limits each service to 512 tasks (processes), which includes all docker containers. For us, we run a lot of processes, so we were failing with hard to diagnose errors on Arch linux. I suspect that as other distros upgrade to systemd, if they don't bother to set TasksMax for docker to something bigger, other people might get affected too. As a reference, this is what I did on my system:

sudo systemctl edit docker

and put this in there:

[Service]
TasksMax=infinity
gullitmiranda commented 8 years ago

nice @slobo

I'm going to tag this issue checked with the research and workaround for other people to test and also we can decide which is the best solution approach.

The first sight I see two approaches:

  1. Document this in troubleshooting
  2. Check this issue in express install script
    • Notifying the problem and linking to the troubleshooting
    • automatically fixe (this option is less likely because it is complex and it is very intrusive)
fearenales commented 8 years ago

@slobo which version of systemd are you referring to?

slobo commented 8 years ago

I believe it was introduced in 228: https://github.com/systemd/systemd/blob/dd050decb6ad131ebdeabb71c4f9ecb4733269c0/NEWS#L60

(Note: I had the wrong spelling before in the title)