# What is default value for UseLocalitiesForExclusion?

**URL:** <https://forums.foundationdb.org/t/what-is-default-value-for-uselocalitiesforexclusion/5414>\
**Category:** Kubernetes Operator\
**Created:** [August 20, 2026, 11:46am UTC](https://forums.foundationdb.org/t/what-is-default-value-for-uselocalitiesforexclusion/5414 "2026-08-20T11:46:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![matiasholte](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/matiasholte/32/1124_2.png) [@matiasholte](https://forums.foundationdb.org/u/matiasholte)\
**Post date:** [August 20, 2026, 11:46am UTC](https://forums.foundationdb.org/t/what-is-default-value-for-uselocalitiesforexclusion/5414/1 "2026-08-20T11:46:59Z")

</div>

According to cluster\_spec.md [documentation](https://github.com/FoundationDB/fdb-kubernetes-operator/blob/833d85a5687237cad84b7505478899aea490ebe9/docs/cluster_spec.md?plain=1#L194), “the UseLocalitiesForExclusion is set to **false** by default.”  
On the other hand, this [PR](https://github.com/FoundationDB/fdb-kubernetes-operator/pull/2212) suggests that “locality based exclusions are turned **on** per default.”  
Also [foundationdbcluster\_types.go](https://github.com/FoundationDB/fdb-kubernetes-operator/blob/833d85a5687237cad84b7505478899aea490ebe9/api/v1beta2/foundationdbcluster_types.go#L2729) 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

---

<div class="post-metadata">

**Author:** ![johscheuer](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@johscheuer](https://forums.foundationdb.org/u/johscheuer)\
**Post date:** [September 1, 2026, 6:14pm UTC](https://forums.foundationdb.org/t/what-is-default-value-for-uselocalitiesforexclusion/5414/2 "2026-09-01T18:14:56Z")

</div>

Yeah, the docs are outdated, for those versions:

```go
	SupportsLocalityBasedExclusions71: Version{api.Version{Major: 7, Minor: 1, Patch: 42}},
	SupportsLocalityBasedExclusions: Version{api.Version{Major: 7, Minor: 3, Patch: 26}},

```

The locality-based exclusions are enabled per default. For log or transaction processes it is expected that the IP addresses are used in the exclusion in addition to the locality-based exclusion to make sure that it is safe to remove this log/transaction process, even if it it not running anymore: [fdb-kubernetes-operator/internal/removals/remove.go at main · FoundationDB/fdb-kubernetes-operator · GitHub](https://github.com/FoundationDB/fdb-kubernetes-operator/blob/main/internal/removals/remove.go#L212-L217).

---

<div class="post-metadata">

**Author:** ![matiasholte](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/matiasholte/32/1124_2.png) [@matiasholte](https://forums.foundationdb.org/u/matiasholte)\
**Post date:** [October 21, 2026, 1:00pm UTC](https://forums.foundationdb.org/t/what-is-default-value-for-uselocalitiesforexclusion/5414/3 "2026-10-21T13:00:14Z")

</div>

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.
