fdb cluster with 24 storages, 6 logs, 6 stateless.
Problem:
Every time when I do some maintains(scale out or scale down) to the fdb cluster, my Desired Logs will change from 6 to 3, and I have to change this config back to 6 after the maintains.
Are you able to share the FoundationDBCluster spec? The configured DatabaseConfiguration would be interesting. Are there any logs in the operator?
Every time when I do some maintains(scale out or scale down) to the fdb cluster, my Desired Logs will change from 6 to 3, and I have to change this config back to 6 after the maintains.
Could you explain that? Are you running the configure command or do you have to update the FoundationDBCluster spec again?
First, I run the cmd fdbcli --exec 'configure logs=6', and use status details and monitor to confirm the change is applyed.
Then, I modify above processCounts field, and the Desired Logs will be rollback to 3 when maintains is over.
Docs: fdb-kubernetes-operator/docs/manual/scaling.md at main · FoundationDB/fdb-kubernetes-operator · GitHub. If you set the process counts you only tell the operator to run more (or less) processes, but you have to change the databaseConfiguration to tell the operator it should configure the FDB cluster to a specific number of roles. So under normal circumstances you only want to change the counts in the databaseConfiguration and not the processCounts. The processCounts give you a way to add more or less additional Pods to the cluster e.g. if you decide that 2 additional log Pods are not enough for your setup you could increase the log count in the processCounts.