Path Parameters
endpointId: The unique identifier of the endpoint to update
Request Body
Example Usage
Update Worker Count and Timeout
Enable Auto-Scaling
Update Environment Variables
Response
Returns the updated endpoint configuration:Configuration Parameters
Scaling Configuration
workerCount: Number of workers (1-50)maxConcurrency: Maximum concurrent requests per workertimeoutSeconds: Request timeout in seconds (10-3600)
Auto-Scaling Configuration
enabled: Enable/disable auto-scalingminWorkers: Minimum number of workersmaxWorkers: Maximum number of workerstargetUtilization: Target CPU utilization percentage (10-90)scaleUpCooldown: Cooldown period before scaling up (seconds)scaleDownCooldown: Cooldown period before scaling down (seconds)
Environment Variables
- Custom key-value pairs passed to your model runtime
- Useful for model configuration, feature flags, and runtime parameters
Error Handling
400 Bad Request
409 Conflict
SDK Examples
Python SDK
JavaScript SDK
Best Practices
Performance Optimization
- Worker Count: Start with 2-3 workers and scale based on demand
- Concurrency: Set maxConcurrency based on your model’s memory requirements
- Timeouts: Use shorter timeouts for interactive applications, longer for batch processing
- Auto-Scaling: Enable for variable workloads to optimize costs
Cost Optimization
- Right-Sizing: Monitor utilization and adjust worker count accordingly
- Auto-Scaling: Use to automatically scale down during low traffic periods
- Environment Variables: Use to enable/disable expensive features dynamically
Deployment Strategy
- Gradual Updates: Update configuration during low-traffic periods
- Testing: Test configuration changes on development endpoints first
- Monitoring: Monitor metrics after updates to ensure desired performance
Configuration updates are applied gradually to minimize service disruption. The endpoint status will show
updating
during the transition period.
