According to cluster_spec.md documentation, “the UseLocalitiesForExclusion is set to false by default.”
On the other hand, this PR suggests that “locality based exclusions are turned on per default.”
Also foundationdbcluster_types.go says “// UseLocalitiesForExclusion returns the value of UseLocalitiesForExclusion or true if unset.”
Which is correct?
I wonder, because I set up a new test cluster with the new 2.34.0 operator, and I found both exclusion types present
`` fdb> exclude
There are currently 3 servers or localities being excluded from the database:
10.100.8.111
locality_instance_id:log-46861
locality_instance_id:storage-5966
To find out whether it is safe to remove one or more of these
servers from the cluster, type exclude <addresses>'. To return one of these servers to the cluster, type include '.
There are currently 0 servers or localities marked as failed in the database:
fdb> ``
I had not set the parameter. The exclusions worked as intended
Thanks for the reply.
I tried it in dev, and it seems to work. The only thing is that there are 18 excluded IPs that never go away, at least not for 3+ weeks.
I can of course un-exclude them manually, with fdbcli and include , but I wonder if it is a weakness that the IPs in some cases are not un-excluded automatically after the pods have been removed. And it would be reassuring to know that the list of exclusions will never grow indefinitely.
I think it happened as we switched from IP-based to locality-based exclusions, but not for all clusters with the switch.