Skip to content

Conversation

@pcarrier
Copy link
Contributor

Default is 512 tasks.

@GordonTheTurtle GordonTheTurtle added status/0-triage dco/no Automatically set by a bot when one of the commits lacks proper signature labels Mar 24, 2016
@programmerq programmerq added area/systemd kind/bug Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed. labels Mar 24, 2016
@thaJeztah
Copy link
Member

Actually, we had this change, but it caused issues on older kernels, so was removed again; #20167

@pcarrier
Copy link
Contributor Author

And nobody thought to leave it as a comment??

@calavera
Copy link
Contributor

Let's leave it commented with an explanation, so people can uncomment it themselves:

# Uncomment TasksMax if your systemd version supports it.
# Only systemd 226 and avobe support this version.
#TasksMax=infinity

@calavera calavera added status/3-docs-review and removed dco/no Automatically set by a bot when one of the commits lacks proper signature kind/bug Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed. status/0-triage labels Mar 25, 2016
@pcarrier
Copy link
Contributor Author

Should we go the other way around and leave it uncommented by default,
given the failure scenario of "doesn't start" is much more discoverable and
less likely to create surprises in production for users with any kind of
QA?

Pierre Carrier
On Mar 25, 2016 12:05 PM, "David Calavera" [email protected] wrote:

Let's leave it commented with an explanation, so people can uncomment it
themselves:

Uncomment TasksMax if your systemd version supports it.

Only systemd 226 and avobe support this version.

#TasksMax=infinity


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#21491 (comment)

@thaJeztah
Copy link
Member

I don't think we should; when installing docker for production, there's more things that need to be tuned/configured (e.g. properly setting up devicemapper)

We may need to change that comment though; because people shouldn't edit the default docker.service, but use a drop-in file

@pcarrier
Copy link
Contributor Author

Updated with the last comment suggestion; feel free to suggest something different or open a separate PR and close this one at your convenience :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/avobe/above/

Signed-off-by: Pierre Carrier <[email protected]>
@pcarrier
Copy link
Contributor Author

@thaJeztah @cyphar anything else?

@vdemeester
Copy link
Member

A weak LGTM for me, because of what @thaJeztah said. It cannot hurt to have a comment in there though but I think we might want to document this option in the systemd article still.

We may need to change that comment though; because people shouldn't edit the default docker.service, but use a drop-in file

@pcarrier
Copy link
Contributor Author

When you include things like:

LimitNOFILE=1048576
LimitNPROC=1048576

I assume this file is ready to consume, not some minimal demo.

So if it's not, I think a comment is in order.

FWIW the impact for us was http://status.meteor.com/incidents/0nx4lggyggcp

@clnperez
Copy link
Contributor

@pcarrier - I just submitted a PR based on the comment idea here that might avoid what you guys ran into in that incident. I'm happy to take out the change to the service file itself if docker is willing to accept both PRs. See PR #21628

@pcarrier
Copy link
Contributor Author

@clnperez we install docker without going through a deb, but SGTM ;)

@calavera
Copy link
Contributor

LGTM

@vdemeester
Copy link
Member

LGTM 😄

@vdemeester vdemeester merged commit 2f35c6b into moby:master Mar 30, 2016
@pcarrier pcarrier deleted the pcarrier/wtf branch March 31, 2016 04:47
clnperez added a commit to clnperez/moby that referenced this pull request Apr 7, 2016
Since we can't use the TasksMax value in the docker.service
file by default, we can uncomment it at buildtime.

See moby/pull/21491 for some background.

Signed-off-by: Christy Perez <[email protected]>
sir-xw pushed a commit to openkylin/docker.io that referenced this pull request Apr 22, 2025
From 33a8ab29ed9e51697772a0642b8d651b9a845532 Mon Sep 17 00:00:00 2001
Origin: moby/moby#21491

Signed-off-by: Pierre Carrier <[email protected]>


Gbp-Pq: Name debian-systemd-unit-tasksmax.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants