Add buckets example to config-leader-election CM
Leader election supports specifying the number of buckets to use
for leader election.
@@ -20,7 +20,7 @@ metadata:
labels:
eventing.knative.dev/release: devel
annotations:
- knative.dev/example-checksum: "a255a6cc"
+ knative.dev/example-checksum: "96896b00"
data:
_example: |
################################
@@ -49,3 +49,10 @@ data:
# retryPeriod is how long the leader election client waits between tries of
# actions; 2 seconds is the value used by core kubernetes controllers.
retryPeriod: "2s"
+
+ # buckets is the number of buckets used to partition key space of each
+ # Reconciler. If this number is M and the replica number of the controller
+ # is N, the N replicas will compete for the M buckets. The owner of a
+ # bucket will take care of the reconciling for the keys partitioned into
+ # that bucket.
+ buckets: "1"
