-
Notifications
You must be signed in to change notification settings - Fork 881
[Core/Docs] Add Warning for Lost File Mount on RollingUpdate w/ Consolidation Mode #8350
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
base: master
Are you sure you want to change the base?
Conversation
Summary of ChangesHello @lloyd-brown, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a critical data persistence concern for users leveraging SkyPilot's API server with rolling updates and consolidation mode. It introduces a proactive warning system, both at runtime and within the official documentation, to alert users about the potential loss of local file mounts and workdirs if a cloud storage bucket is not configured. The changes aim to prevent unexpected data loss and guide users toward best practices for data persistence during API server upgrades. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request effectively addresses a potential data loss scenario by adding a warning when using file mounts or workdirs with rolling updates in consolidation mode without a configured cloud bucket. The changes are well-implemented across the Helm chart, documentation, and core logic. The new warning is clear and provides a direct solution for the user. My review includes a minor suggestion to improve code conciseness.
|
/build-docs |
|
✅ ReadTheDocs build triggered for branch The documentation will be available at: https://docs.skypilot.co/en/rollingupdate-docs/ |
Michaelvll
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @lloyd-brown! See the comments : )
Michaelvll
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @lloyd-brown! Some minor edits.
Co-authored-by: Zhanghao Wu <[email protected]>
Co-authored-by: Zhanghao Wu <[email protected]>
Michaelvll
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @lloyd-brown! LGTM
|
|
||
| .. warning:: | ||
|
|
||
| When using consolidation mode with a remote :ref:`SkyPilot API server with RollingUpdate upgrade strategy <sky-api-server-upgrade-strategy>`, any file mounts or workdirs that uploads local files/folders of the managed jobs will be lost during a rolling update. To address that, configure a cloud bucket via :ref:`config-yaml-jobs-bucket` in your :ref:`SkyPilot config <config-yaml>` to persist them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| When using consolidation mode with a remote :ref:`SkyPilot API server with RollingUpdate upgrade strategy <sky-api-server-upgrade-strategy>`, any file mounts or workdirs that uploads local files/folders of the managed jobs will be lost during a rolling update. To address that, configure a cloud bucket via :ref:`config-yaml-jobs-bucket` in your :ref:`SkyPilot config <config-yaml>` to persist them. | |
| When using consolidation mode with a remote :ref:`SkyPilot API server with RollingUpdate upgrade strategy <sky-api-server-upgrade-strategy>`, any file mounts or workdirs that uploads local files/folders of the managed jobs will be lost during a rolling update. To address that, use :ref:`bucket <todo-link>`, :ref:`volume <todo-link>`, or :ref:`git <todo-link>`; or, configure a cloud bucket for all local files via :ref:`config-yaml-jobs-bucket` in your :ref:`SkyPilot config <config-yaml>` to persist them. | |
| .. code-block:: | |
| jobs: | |
| bucket: s3://xxx |
| f'{colorama.Fore.YELLOW}WARNING: Local file mounts or workdir detected ' | ||
| 'with rolling update enabled for API server. ' | ||
| 'To persist files across API server restarts/update, configure a cloud ' | ||
| f'bucket in your SkyPilot config under `jobs.bucket`.' | ||
| f'{colorama.Style.RESET_ALL}') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| f'{colorama.Fore.YELLOW}WARNING: Local file mounts or workdir detected ' | |
| 'with rolling update enabled for API server. ' | |
| 'To persist files across API server restarts/update, configure a cloud ' | |
| f'bucket in your SkyPilot config under `jobs.bucket`.' | |
| f'{colorama.Style.RESET_ALL}') | |
| f'{colorama.Fore.YELLOW}WARNING: Local file mounts or workdir detected ' | |
| 'with rolling update enabled for API server. ' | |
| 'To persist files across API server restarts/update, use buckets, volumes, or git ' | |
| 'for your file mounts; or, configure a bucket in your SkyPilot config under ' | |
| f'`jobs.bucket`. {colorama.Style.RESET_ALL}') |
This PR is a follow up to #8333 adding a warning to users when they have a file mount or workdir when running with consolidation mode and rolling update without a cloud bucket configured.
It also adds a warning to the docs https://docs.skypilot.co/en/rollingupdate-docs/reference/api-server/api-server-upgrade.html#upgrade-strategy.
Tested (run the relevant ones):
bash format.sh/smoke-test(CI) orpytest tests/test_smoke.py(local)/smoke-test -k test_name(CI) orpytest tests/test_smoke.py::test_name(local)/quicktest-core(CI) orpytest tests/smoke_tests/test_backward_compat.py(local)