Backend.AI AppProxy Coordinator
Project description
Backend.AI App Proxy Coordinator
Purpose
The App Proxy Coordinator manages routing information for App Proxy Workers, coordinates worker instances, and handles service port mappings for compute session services (Jupyter, SSH, TensorBoard, etc.).
Key Responsibilities
1. Worker Management
- Register and track App Proxy Worker instances
- Monitor worker health and availability
- Distribute routing information to workers
- Handle worker failover
2. Route Management
- Manage service port mappings (session → service → port)
- Update routing tables dynamically
- Propagate route changes to workers
- Handle route conflicts and resolution
3. Service Discovery
- Maintain service registry
- Provide route lookup for workers
- Update routes when sessions change
- Clean up routes for terminated sessions
Entry Points
App Proxy Coordinator has 1 entry point to receive and process requests.
1. REST API
Framework: aiohttp (async HTTP server)
Port: 6030 (default)
Primary Purpose:
- Worker management (registration, monitoring)
- Routing information management (session-to-service port mapping)
Key Features:
- HTTP/HTTPS-based communication
- Centralized service routing information management
- Real-time route updates
- Persistent routing information storage in PostgreSQL
Processing Flow:
Worker Registration Flow
Worker → POST /workers/register → Coordinator
↓
Register worker in DB
↓
Return worker ID and routes
Route Creation Flow
Manager → POST /routes → Coordinator
↓
Store route in DB
↓
Notify all workers
↓
Workers update local routing table
Integrated Architecture:
┌──────────────┐
│ Manager │
│ │
└──────┬───────┘
│ Route Management (REST)
▼
┌─────────────────────────────────────┐
│ App Proxy Coordinator (Port 6030) │
│ - Worker registration │
│ - Route management │
│ - Service port mapping │
│ - Route propagation │
└─────────┬───────────────────────────┘
│
▼ Worker Registration & Route Updates
┌─────┴─────┬─────────┬─────────┐
▼ ▼ ▼ ▼
┌────────┐ ┌────────┐ ┌────────┐ ┌────────┐
│Worker 1│ │Worker 2│ │Worker 3│ │Worker N│
└────────┘ └────────┘ └────────┘ └────────┘
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file backend_ai_appproxy_coordinator-26.4.0.tar.gz.
File metadata
- Download URL: backend_ai_appproxy_coordinator-26.4.0.tar.gz
- Upload date:
- Size: 85.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bba171aadcce167490e5253b8e56ee15601c0bead672e2fe3068b8f040e46fb
|
|
| MD5 |
6ae60202af83e42b5810ce0dcf329210
|
|
| BLAKE2b-256 |
d3582f2b99601a6ad9c504d9f7aab785202ed06503551a2bd605e71de8dd6e94
|
File details
Details for the file backend_ai_appproxy_coordinator-26.4.0-py3-none-any.whl.
File metadata
- Download URL: backend_ai_appproxy_coordinator-26.4.0-py3-none-any.whl
- Upload date:
- Size: 115.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
faf702bca32ffb9cd1a259437ef72411c54593ac170245cbfa2f76d81032669c
|
|
| MD5 |
5ca8e22d0742261a8de46aa274430fe2
|
|
| BLAKE2b-256 |
13d8385adbabb37026ea5756fdb319c762b4d97d6b8bf9c05425039b123b6bf9
|