-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
Background
ROCK currently supports multiple deployment modes including Docker, Ray, and K8s. Adding Alibaba Cloud Function Compute (FC3) as a sandbox runtime provider would enable serverless deployment of ROCK sandboxes, reducing operational overhead and enabling auto-scaling.
Feature Request
Add comprehensive support for Alibaba Cloud Function Compute 3.0 (FC3) as a sandbox runtime provider with three deployment modes:
- Custom Runtime: Lightweight Python runtime with bootstrap script
- Custom Container: Full Docker container deployment
- Hybrid Adapter: HTTP/WebSocket adapter for FC3 function integration
Key Components
FC3 Client
FC3Sandbox: Main sandbox client with session managementCircuitBreaker: Thread-safe fault tolerance with OPEN/CLOSED/HALF_OPEN states- WebSocket reconnection with exponential backoff retry
- Custom exceptions for error handling
FC3 Rocklet
runtime/: Custom Runtime bootstrap and configurationcontainer/: Custom Container Dockerfile and configurationadapter/: Hybrid Adapter HTTP/WebSocket server with path traversal protection
Tests
- 126 test cases covering client, adapter, and runtime configurations
Benefits
- Serverless: No infrastructure management required
- Auto-scaling: Automatic scaling based on workload
- Cost-effective: Pay-per-use pricing model
- High availability: Built-in fault tolerance
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels