-
Notifications
You must be signed in to change notification settings - Fork 402
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
fix examples: bad K8s log config causing logs to be lost #501
Conversation
across Container restarts Ray logs are written to `/tmp/ray` by default. Right now various RayCluster example YAMLs use `volumeMounts` for `/var/log` which doesn't have anything written to it. So right now `/tmp/ray` logs are deleted after Container restarts. This change sets `volumeMounts.mountPath` to `/tmp/ray` so that logs in this dir are persisted across Container restarts for the life of the Pod. This change also adds volumes for head Pods which was missing before.
Thanks for the fix! This looks good to me. |
thanks, Moved out of draft. I wanted to add some tests for this. Do you think that'd be helpful? I can do that in another PR if so. |
Tests are always appreciated! What kind of testing did you have in mind? |
That the ray logs dir Also is |
I don't think we systematically test the sample YAMLs, but this would be an excellent opportunity to start doing that.
Looks like we added that here:
|
Thanks, feel free to merge this PR first to unblock. I'll try to write tests for this soon. |
…#501) across Container restarts Ray logs are written to `/tmp/ray` by default. Right now various RayCluster example YAMLs use `volumeMounts` for `/var/log` which doesn't have anything written to it. So right now `/tmp/ray` logs are deleted after Container restarts. This change sets `volumeMounts.mountPath` to `/tmp/ray` so that logs in this dir are persisted across Container restarts for the life of the Pod. This change also adds volumes for head Pods which was missing before.
across Container restarts
Ray logs are written to
/tmp/ray
by default. Right nowvarious RayCluster example YAMLs use
volumeMounts
for/var/log
which doesn't have anything written to it.
So right now
/tmp/ray
logs are deleted after Container restarts.This change sets
volumeMounts.mountPath
to/tmp/ray
so thatlogs in this dir are persisted across Container restarts for the life
of the Pod.
This change also adds volumes for head Pods which was missing before.
Checks