This repository has been archived by the owner on Aug 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This API is dedicated to start a container application from container's service definitions, while existing `stream_proxy` API performs both `start_service` and then actual websocket proxying, for wsproxy v2. Note: wsproxy v2 directly connects the user clients and the container apps to provide better horizontal scalability. The separation of those two functions is the key starting point. Co-authored-by: Jonghyun Park <[email protected]> Backported-From: main (22.03) Backported-To: 21.09
- Loading branch information
Showing
5 changed files
with
185 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add `session.start_service` API to support wsproxy v2 |
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
24 changes: 24 additions & 0 deletions
24
...ackend/manager/models/alembic/versions/60a1effa77d2_add_coordinator_address_column_on_.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"""Add wsproxy_addr column on scaling_group | ||
Revision ID: 60a1effa77d2 | ||
Revises: 8679d0a7e22b | ||
Create Date: 2021-09-17 13:19:57.525513 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '60a1effa77d2' | ||
down_revision = '8679d0a7e22b' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.add_column('scaling_groups', sa.Column('wsproxy_addr', sa.String(length=1024), nullable=True)) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column('scaling_groups', 'wsproxy_addr') |
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