-
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.
- Loading branch information
1 parent
d5bf6fd
commit d7f138e
Showing
6 changed files
with
51 additions
and
1 deletion.
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
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,13 @@ | ||
@startuml | ||
title Health Check Process | ||
|
||
Loop Every 30 seconds (HEALTH_CHECK_INTERVAL) | ||
LoadBalancer -> Webrtc-Server: GET /health | ||
alt Server is healthy | ||
LoadBalancer -> Redis: Update health: true | ||
else Server is unhealthy | ||
LoadBalancer -> Redis: Update health: false | ||
end | ||
end | ||
|
||
@enduml |
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,13 @@ | ||
@startuml | ||
title Room Allocation Flow | ||
|
||
|
||
Agent -> LoadBalancer: POST /rooms/:roomId? | ||
LoadBalancer -> Redis: Fetch list of available servers | ||
LoadBalancer -> LoadBalancer: Filter out unhealthy servers | ||
LoadBalancer -> LoadBalancer: Select server with highest available capacity | ||
LoadBalancer -> Webrtc-Server: Create Room | ||
LoadBalancer -> Redis: Update server capacity | ||
LoadBalancer -> Agent: Return WebSocket URL | ||
|
||
@enduml |
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,11 @@ | ||
@startuml | ||
title Room Closure Flow | ||
|
||
|
||
|
||
Agent -> MediasoupServer: Close Room | ||
Webrtc-Server -> LoadBalancer: POST /room-closed | ||
LoadBalancer -> Redis: Add back available capacity | ||
LoadBalancer -> Redis: Remove room entry | ||
|
||
@enduml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@startuml | ||
title Server Registration Flow | ||
|
||
|
||
entryspacing 1.1 | ||
webrtc-server -> LoadBalancer: POST /register | ||
alt Server already registered | ||
LoadBalancer -> Redis: Remove existing entry | ||
end | ||
LoadBalancer -> LoadBalancer: Calculate capacity (workers × 500) | ||
LoadBalancer -> Redis: Store server data (health: true) | ||
|
||
@enduml |