Skip to content

Preserve instance id order when scaling down - #1628

Merged
ssalinas merged 5 commits into
masterfrom
preserve_ids
Oct 13, 2017
Merged

Preserve instance id order when scaling down#1628
ssalinas merged 5 commits into
masterfrom
preserve_ids

Conversation

@ssalinas

@ssalinas ssalinas commented Oct 6, 2017

Copy link
Copy Markdown
Contributor

Example situation:

  • Tasks with instance number 1,2,4,5 are active and there is a single pending task
  • request is scaled down to 4
  • pending task is deleted and no tasks are cleaned, remaining instances are 1,2,4,5

This PR updates the scheduler to preserve the instance numbers in order since a number of systems depend on them being contiguous. This causes slightly more task churn in a few cases in return for consistency. If the task churn is an issue, we can always put it behind a configuration flag.

tests added, haven't added the config flag just yet

@darcatron

@ssalinas ssalinas added this to the 0.18.0 milestone Oct 11, 2017
@ssalinas ssalinas added the hs_qa label Oct 11, 2017
@matush-v

Copy link
Copy Markdown
Contributor

🚢

@ssalinas
ssalinas merged commit 9688f7b into master Oct 13, 2017
@ssalinas
ssalinas deleted the preserve_ids branch October 13, 2017 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants