Azure / Azure/fleet

Grace period and leader election configuration

Open
#276 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
226
Forks
44
Avg merge
11h 7m
Merged PRs (30d)
5

Description

### **Describe the bug**
We need to configure the leader election lease duration/renew time along with the graceful terminating period time (https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-termination) so that we get an optimal configuration for the production.

### **Environment**
Please provide the following:
- Hub cluster details
- Member cluster details

### **To Reproduce**

### **Expected behavior**
1. no two controllers handle the events at the same time.
2. the leader duration is set long enough that a pod is terminated before.
3. the leader duration is set to short enough that there is no long waiting between leader exchange.
4. the leader duration is set to long enough that we don't lose the lease because of network or other glitches.

### **Screenshots**
If applicable, add screenshots to help explain your problem.

### **Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.