-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bounce deny #766
Bounce deny #766
Conversation
if (placement != SlavePlacement.GREEDY && placement != SlavePlacement.OPTIMISTIC) { | ||
int currentActiveSlaveCount = slaveManager.getNumObjectsAtState(MachineState.ACTIVE); | ||
int requiredSlaveCount = requestWithState.getRequest().getInstancesSafe() * 2; | ||
checkBadRequest(currentActiveSlaveCount >= requiredSlaveCount, "Not enough slaves to successfully complete a bounce of reqeust %s (minimum required: %s, current: %s)", requestId, requiredSlaveCount, currentActiveSlaveCount); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you clarify this to Not enough active slaves...
and maybe include guidance to consider deploying instead of bouncing or changing the slave placement?
if (placement != SlavePlacement.GREEDY && placement != SlavePlacement.OPTIMISTIC) { | ||
int currentActiveSlaveCount = slaveManager.getNumObjectsAtState(MachineState.ACTIVE); | ||
int requiredSlaveCount = requestWithState.getRequest().getInstancesSafe() * 2; | ||
checkBadRequest(currentActiveSlaveCount >= requiredSlaveCount, "Not enough active slaves to successfully complete a bounce of reqeust %s (minimum required: %s, current: %s). Consider deploying or changing the slave placement strategy instead", requestId, requiredSlaveCount, currentActiveSlaveCount); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
request
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoops, thanks
For
OPTIMISTIC
andGREEDY
it shouldn't matter. But, if placement isSEPARATE*
, don't allow us to start a bounce we know we can't complete