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

Allow DNS to resolve workers #42

Open
max-sixty opened this issue Feb 20, 2019 · 3 comments
Open

Allow DNS to resolve workers #42

max-sixty opened this issue Feb 20, 2019 · 3 comments

Comments

@max-sixty
Copy link

Is there a way of allowing the webserver to resolve the workers through their names?

Currently, this stack puts workers into StatefulSets. I think the barrier to using a Deployment is that before log files are put in GCS, they fail to resolve:

*** Fetching from: http://airflow-worker-6dd9f5bc74-h97vf:8793/log/[***]
*** Failed to fetch log file from worker. HTTPConnectionPool(host='airflow-worker-6dd9f5bc74-h97vf', port=8793): Max retries exceeded with url: /log/[***] (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f142598b210>: Failed to establish a new connection: [Errno -2] Name or service not known',))

If we could surmount that, we could use a Deployment, which means we can run on preemptive machines, and generally allow moving pods around

@max-sixty
Copy link
Author

On further reading, my understanding of a StatefulSet was poor. Is there actually any benefit to a Deployment over a Stateful set in this case?

@amith1893
Copy link

@max-sixty Were you able to use a Deployment over a StatefulSet ? I am curious to know as even I am looking into it

@max-sixty
Copy link
Author

I didn't pursue this much further, unfortunately

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