turbonomic / kubeturbo

138 stars 75 forks source link

Resize container: if new Capacity is smaller than Request, should abort or change the action? #86

Closed songbinliu closed 7 years ago

songbinliu commented 7 years ago

When resize down the Capacity of a container, if the new Capacity is smaller than container's Request, and if nothing is changed about the Capacity or Request, then the resize will fail.

So either of the following three ways should be taken: (1) Increase the Capacity: or (2) Decrease the Request: or (3) Abort the resize action.

In current implementation, method-2 is taken: set Request equal to the new Capacity.

songbinliu commented 7 years ago

Seems this is not going to happen. OpsMgr will first give recommendations to reduce the Reservation, which is the Request. Only after the Reservation is reduced, then will give recommendations to reduce the Capacity.