BalanceReplicas called even when PopulatePodsOnScaleUp and VacatePodsOnScaleDown are false
- Dominant language
- Go
- Stars
- 283
- Forks
- 148
- PR merge metrics
- No merged PRs in 30d
Description
When both of these options are set to false (in an environment where replica management is handled externally, not using Solr placement plugins) the natural expectation is that the Solr Operator will not initiate any replica movements on scale-up / scale-down or rolling updates.
However, this is not the case in 0.8.1. When Solr Operator discovers that this API is available it will call `/api/cluster/replicas/balance` in quite a few scenarios, causing replica movements even when both of the above options are disabled.
I can work around this by implementing a custom PlacementPluginFactory but I think that this behavior should be optional, with an option to turn it on when desired. And the situations when BalanceReplicas is called should be better documented (listing cases when and how often this API is called). I think that the comments in `BalanceReplicasForCluster` about re-tries on errors and async operations should be included in the main documentation, because they can result in potentially resource-intensive operations.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.