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

ALB Report 504 errors when every autoscaler decrease node size #6679

Open
ibalat opened this issue Apr 3, 2024 · 2 comments
Open

ALB Report 504 errors when every autoscaler decrease node size #6679

ibalat opened this issue Apr 3, 2024 · 2 comments
Labels
area/cluster-autoscaler kind/bug Categorizes issue or PR as related to a bug.

Comments

@ibalat
Copy link

ibalat commented Apr 3, 2024

Which component are you using?:

  • autoscaler: 1.29.0
  • alb controller: 2.7.1

What k8s version are you using (kubectl version)?:
v1.29.0

What environment is this in?:
AWS EKS

What did you expect to happen and instead happened?:
I use prestop hook to prevent 50x errors but when autoscaler run to decrease nodes, ALB report 504 and Target connection errors.

For example, autoscaler start to decrease node size at ~23:15 and ~02:10 and alb start to report 503, 504 and target connection errors at same time. Every night and light hours, I see same problem.

[IMPORTANT] I manually restarted, scaled and deployed all apps to see same errors but no any problem when do any operation. Because I use prestop. Errors coming only when autoscaler decrease node size, not increase them.

image image

How to reproduce it (as minimally and precisely as possible):

  • Pods have preStop 35s
  • Graceful shutdown time (terminationGracePeriodSeconds) is 60s
  • ALB deregistration delay is 20s
@ibalat ibalat added the kind/bug Categorizes issue or PR as related to a bug. label Apr 3, 2024
@ibalat
Copy link
Author

ibalat commented Apr 15, 2024

hi @sftim , please can you help for this issue

@adrianmoisey
Copy link
Member

/area cluster-autoscaler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cluster-autoscaler kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants