Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Make periodic check container rebalancing duration configurable #2988
What challenge are you facing?
Concourse rebalances check containers periodically to make sure they don't all end up one worker after a deploy. The duration that they rebalance is determined by worker uptime (so we rebalance more aggressively if there are newly provisioned workers), with an upper bounds of 1 hour. This upper bound is hardcoded and can result in painful re-cloning of large repos every hour.
What would make this better?
Make it configurable? I could see two schemes here:
Not sure if one is better or worse, just that if you want to slow down the rebalancing more aggressively you may prefer the first option (otherwise things will keep rebalancing, just slower and slower until it hits your limit, say 24 hours).