-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
选举后,leader 节点异常丢失 event #1
Comments
是这样的,除非能把上一轮 Leader 当时 watch 的 ResourceVersion 传到下一个 Leader 从那个位置继续 watch,但是成本高了点而且没太大必要毕竟一般 Event 收集容忍一定重复数据问题也不大,在启动的时候往前多收几秒的 Event 就好。 |
|
Informer 初次启动的时候会把集群内现存的所有 Events 走一遍 add 事件 k8s-event-collector/controller.go Lines 82 to 87 in c19785a
然后我这边的做法就是在 enqueue 的时候判断一下这个 Event 对象的创建时间,创建 5s 内的才加到 workqueue 里继续处理 k8s-event-collector/controller.go Lines 29 to 37 in c19785a
|
我给你发了封邮件,希望能认识你。 |
我有一个疑问,在 controller 选举的过程中的 event 是不是就丢失掉了。
The text was updated successfully, but these errors were encountered: