Skip to content

Restore dstack-proxy state on gateway restarts#2119

Merged
jvstme merged 1 commit intomasterfrom
issue_1595_persist_state
Dec 19, 2024
Merged

Restore dstack-proxy state on gateway restarts#2119
jvstme merged 1 commit intomasterfrom
issue_1595_persist_state

Conversation

@jvstme
Copy link
Copy Markdown
Collaborator

@jvstme jvstme commented Dec 18, 2024

  • Persist repo state on disk.
  • Reopen tunnels and rewrite Nginx configs on app startup.
  • Store model entrypoints in the repo to rewrite their Nginx configs on app startup.
  • registry.py is refactored so that the same code (apply_service) is used both for restoring and modifying services.

Not part of this commit, will come separately: actually running dstack-proxy on gateways, adapter for legacy state.json.

Part of #1595

- Persist repo state on disk.
- Reopen tunnels and rewrite Nginx configs on app
  startup.
- Store model entrypoints in the repo to rewrite
  their Nginx configs on app startup.
- `registry.py` is refactored so that the same
  code (`apply_service`) is used both for
  restoring and modifying services.

Not part of this commit, will come separately:
actually running dstack-proxy on gateways, adapter
for legacy `state.json`.
@jvstme jvstme requested a review from r4victor December 18, 2024 23:19
@jvstme jvstme merged commit df80f1f into master Dec 19, 2024
@jvstme jvstme deleted the issue_1595_persist_state branch December 19, 2024 10:25
@jvstme jvstme restored the issue_1595_persist_state branch December 19, 2024 23:24
@jvstme jvstme deleted the issue_1595_persist_state branch December 19, 2024 23:26
pranitnaik43 pushed a commit to bahaal-tech/dstack that referenced this pull request Mar 4, 2025
- Persist repo state on disk.
- Reopen tunnels and rewrite Nginx configs on app
  startup.
- Store model entrypoints in the repo to rewrite
  their Nginx configs on app startup.
- `registry.py` is refactored so that the same
  code (`apply_service`) is used both for
  restoring and modifying services.

Not part of this commit, will come separately:
actually running dstack-proxy on gateways, adapter
for legacy `state.json`.
pranitnaik43 pushed a commit to bahaal-tech/dstack that referenced this pull request Mar 5, 2025
- Persist repo state on disk.
- Reopen tunnels and rewrite Nginx configs on app
  startup.
- Store model entrypoints in the repo to rewrite
  their Nginx configs on app startup.
- `registry.py` is refactored so that the same
  code (`apply_service`) is used both for
  restoring and modifying services.

Not part of this commit, will come separately:
actually running dstack-proxy on gateways, adapter
for legacy `state.json`.
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

Successfully merging this pull request may close these issues.

2 participants