Skip to content

ASG LifeCycle hook preforming non-stop drain #1100

@doryer

Description

@doryer

Describe the bug
After upgrading to v1.23.0 and enabling the ENABLE_ASG_LIFECYCLE_DRAINING Flag, it seems that the Pod running on the node ( IMDS Mode ) receiving non-stop events of the ASG LifeCycle hook and trying non-stop to drain the nodes ( 151 Adding new event to the event store logs on the same host ).
It also causing the the pod to log the all workers busy, waiting due to high amount of events in the queue.
In addition, there is typo in the log of the event adding to the queue description, it is written AST target lifecycle instead of ASG target lifecycle

Steps to reproduce
Enable ENABLE_ASG_LIFECYCLE_DRAINING flag and enable lifetime on the ASG.

Expected outcome
Get 1 event, drain the node only once and finish.

Application Logs
151 Log entries of Adding new event to the event store
Entries of all workers busy, waiting

Environment
Kubernetes 1.28

  • NTH App Version: v1.23.0
  • NTH Mode (IMDS/Queue processor): IMDS
  • OS/Arch: Ubuntu 22.04
  • Kubernetes version: v1.28
  • Installation method: Chart

Metadata

Metadata

Assignees

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