Merge ~cjwatson/launchpad:buildd-manager-bump-open-files into launchpad:master

Proposed by Colin Watson
Status: Merged
Approved by: Colin Watson
Approved revision: 6e57786d266f933336ecd0994c102ca8ae81acae
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~cjwatson/launchpad:buildd-manager-bump-open-files
Merge into: launchpad:master
Diff against target: 17 lines (+4/-3)
1 file modified
daemons/buildd-manager.tac (+4/-3)
Reviewer Review Type Date Requested Status
Ines Almeida Approve
Review via email: mp+450646@code.launchpad.net

Commit message

Bump buildd-manager open file limit some more

Description of the change

We're bumping into the current limit on production, and I think it's because a few things have changed since we last set that limit: we have more active builders, and we make a few more outgoing connections than we did then (particularly to issue tokens for private builds). Make the limit more generous.

To post a comment you must log in.
Revision history for this message
Ines Almeida (ines-almeida) wrote :

Makes sense

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/daemons/buildd-manager.tac b/daemons/buildd-manager.tac
index 876ecae..8fa2bac 100644
--- a/daemons/buildd-manager.tac
+++ b/daemons/buildd-manager.tac
@@ -31,9 +31,10 @@ setup_feature_controller("buildd-manager")
31# ampoule uses five file descriptors per subprocess (i.e.31# ampoule uses five file descriptors per subprocess (i.e.
32# 5 * config.builddmaster.download_connections); we also need at least three32# 5 * config.builddmaster.download_connections); we also need at least three
33# per active builder for resuming virtualized builders or making XML-RPC33# per active builder for resuming virtualized builders or making XML-RPC
34# calls, and we also need to allow slack for odds and ends like database34# calls, we need to be able to make connections from time to time to the
35# connections.35# keyserver for fetching keys or to the appserver for issuing macaroons, and
36soft_nofile = 5 * config.builddmaster.download_connections + 204836# we also need to allow slack for odds and ends like database connections.
37soft_nofile = 5 * config.builddmaster.download_connections + 4096
37_, hard_nofile = resource.getrlimit(resource.RLIMIT_NOFILE)38_, hard_nofile = resource.getrlimit(resource.RLIMIT_NOFILE)
38resource.setrlimit(resource.RLIMIT_NOFILE, (soft_nofile, hard_nofile))39resource.setrlimit(resource.RLIMIT_NOFILE, (soft_nofile, hard_nofile))
3940

Subscribers

People subscribed via source and target branches

to status/vote changes: