Skip to content

Conversation

@shcherbak
Copy link

@shcherbak shcherbak commented Dec 28, 2025

master worker needs to "know" names of workers by type. this patch allows to use kubernetes HPA because worker name is based on hostname which is equals to pod name in kubernetes

Previous PR: #19285 (recreated because license/cla signing)

@shcherbak
Copy link
Author

recreated because license/cla signing (#19285)

Comment on lines +262 to +264
self.worker_name = self.worker_app
if self.worker_app:
self.worker_name = config.get("worker_name", environ.get("HOSTNAME"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic here just doesn't make sense. Mentioned in #19285 (comment)

Additionally,

This changes the previous behavior where we previously read from config.get("worker_name") and had a fallback to the self.worker_app.

Now it will config.get("worker_name") -> environ.get("HOSTNAME")

Overall, I'm not very convinced of the change yet.

-- @MadLittleMods, #19285 (comment)

And I'm still not following with what you wrote there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants