Skip to content
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

Drain Buffer Not Respected #121

Open
crhuber opened this issue Dec 2, 2021 · 1 comment
Open

Drain Buffer Not Respected #121

crhuber opened this issue Dec 2, 2021 · 1 comment

Comments

@crhuber
Copy link

crhuber commented Dec 2, 2021

I have draino configured with the following drain buffer parameters of 15m0s

  containers:
  - command:
    - /draino
    - --debug=true
    - --drain-buffer=15m0s
    - --namespace=utility
    - NPDCPUPressure

However Im seeing it cordoning and being drained without the buffer taken into account. From the logs its being cordoned at 07:15:20 and drained at 07:15:31

2021-12-02T07:15:20.743Z	DEBUG	kubernetes/eventhandler.go:263	Cordoning
2021-12-02T07:15:20.761Z	INFO	kubernetes/eventhandler.go:272	Cordoned
2021-12-02T07:15:20.761Z	DEBUG	kubernetes/eventhandler.go:296	Scheduling drain
2021-12-02T07:15:20.777Z	INFO	kubernetes/eventhandler.go:308	Drain scheduled  {"node": "x", "after": "2021-12-02T07:15:31.761Z"}
2021-12-02T07:16:16.013Z	INFO	kubernetes/drainSchedule.go:154	Drained

So from the logs its scheduling drain only 11 seconds after being cordoned

@shikeya
Copy link

shikeya commented Nov 30, 2022

image
Is this parameter the type of Conditions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants