You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Respect nodes.target during fleet in-place update #3812
nodes.target is ignored when performing fleet in-place update. Respecting nodes.target will allow to:
Pre-provision more instances into an existing fleet.
Terminate excessive idle fleet instances.
Solution
Respect nodes.target during fleet in-place update.
If nodes.target is greater than the current number of instances, provision new ones to reach nodes.target.
If nodes.target is less than the current number of instances, terminate some of the idle ones to get as close as possible to nodes.target. Do not terminate busy instances.
If nodes.target is equal to the current number of instances or unspecified, do nothing.
Workaround
For pre-provisioning — increase nodes.min, apply, revert nodes.min, apply.
For terminating — dstack fleet delete -i ...
Would you like to help us implement this feature by sending a PR?
Yes, I was thinking about it when doing #3775 but decided to do it separately since " terminate some of the idle ones" will require locking instances in fleet apply, which is not currently necessary for other in-place updates.
Activity
jvstme commentedon Apr 22, 2026
@r4victor, does this match what you have in mind for fleet in-place update?
r4victor commentedon Apr 23, 2026
Yes, I was thinking about it when doing #3775 but decided to do it separately since " terminate some of the idle ones" will require locking instances in fleet apply, which is not currently necessary for other in-place updates.
github-actions commentedon May 24, 2026
This issue is stale because it has been open for 30 days with no activity.
github-actions commentedon Jun 7, 2026
This issue was closed because it has been inactive for 14 days since being marked as stale. Please reopen the issue if it is still relevant.