Thanks Bibin A Chundatt for the patch.
Although updateClusterResource would handle just about everything and easiest way to handle this but as cluster resource will remain the same on replace labels on node, do we need to carry out each step in updateClusterResource ?
For instance, queue usage related ratios and capacities for instance need to be updated only for 2 sets of relevant partitions for each node i.e. the old and new/replaced one. This can be useful to bypass queues where both relevant partitions are not applicable.
We should activate apps as this some apps can be activated with replace label on node. This is a heavy operation and we will hold a write lock on scheduler for this but this should be fine as replace labels on node should not be a frequent operation.
cc Wangda Tan. Your thoughts on this ?