forked from cmu-db/dbgym
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Summary**: Created basic demo for reconfiguring Postgres, also adding tests for reconfiguration. **Demo**: https://github.com/user-attachments/assets/2e9bc151-0d8e-41e4-a5d8-33860fe21f27 **Details**: * Refactored `restart_with_changes()` to take in an `Optional[dict[str, str]]` instead of an `Optional[list[tuple[str, str]]]`, so that we can ensure that no knobs appear multiple times. * Added unit tests for `restart_with_changes()`, including edge cases around calling it multiple times and whether it modifies its input params. * Figured out difference between `@st.cache_resource` and `st.session_state` (with detailed comments in `tune/demo/main.py`). We need the former to prevent `DBGymConfig` from being created multiple times and the latter for persisting configuration changes across `st.rerun()` calls.
- Loading branch information
1 parent
4f9e0e6
commit c1f162d
Showing
12 changed files
with
188 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
#!/bin/bash | ||
# You may need to do `pkill python` to fully restart the streamlit server. If you do not do this, objects cached | ||
# with @st.cache_resource may still be persisted even after you do Ctrl-C and rerun ./scripts/run_demo.sh. | ||
python -m streamlit run tune/demo/main.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.