Skip to content

Drain Buffer Not Respected #121

@crhuber

Description

@crhuber

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions