Scaling a Real-Time Service Deployment
Once a real-time service is running, its resource needs might shift as services evolve. ModelArts allows you to deploy and scale these services dynamically. You can modify instance counts or resource settings to match current demand.
ModelArts provides manual scaling and auto scaling to meet different user requirements. Only the number of instances of a single deployment can be changed.
- Manual scaling allows you to manually change the number of instances of a single deployment.
- Auto scaling allows you to configure scaling rules to adjust instance count. This helps you use your resources more efficiently. Auto scaling allows you to configure scaling policies to add instances when the traffic is high, and reduce them when the traffic is low. This helps you use your resources more efficiently. Currently, only deployments on dedicated resource pool support auto scaling.
Table 1 Comparison between manual and auto scaling Feature
Manual Scaling
Auto Scaling
Configuration Method
Manual
Automatic
Operation
Modify the number of instances
Set scaling rules
Execution
Executed after manual configuration
Triggered by schedule or metrics
Impact of Scaling Failure
The number of instances reverts to the previous value.
The number of instances changes to a specific value.
Constraints
- To set scaling rules, the service must be in the Stopped, Running, or Alarm state.
- Real-time services allow up to 10 periodic-based scaling rules. You can add only one scaling rule per metric.
Manual Scaling
- Log in to the ModelArts console and choose Model Inference > Real-Time Inference.
- Click the target service name. On the service details page that is displayed, switch to the Deploy tab.
- Locate the target deployment card and choose ... > Scale.
- Click Manual Scaling. In the displayed dialog box, set the number of deployment replicas after scaling. The minimum value is 1. Click OK.
Check the instance list to view their status after manual scaling.
To delete a specified instance, click Delete in the Operation column in the deployment replica list. Choose how you want to delete it, enter DELETE, and click OK. Currently, Delete and re-create is supported.
Deleting a replica reduces the total count permanently. Exercise caution when performing this operation.
Auto Scaling
- Log in to the ModelArts console and choose Model Inference > Real-Time Inference.
- Click the target service name. On the service details page that is displayed, switch to the Deploy tab.
- Locate the target deployment card and choose ... > Scale.
- In the Auto Scaling Rule area, click Configure Scaling Rule. In the displayed dialog box, set automatic scaling rules.
Real-time services allow up to 10 periodic-based scaling rules. You can add only one scaling rule per metric.
A periodic-based scaling rule cannot be added repeatedly. For details, see Table 2.
Table 2 Scaling rule parameters Scaling Rule Type
Description
Periodic
Automatically adjusts the number of nodes in the pool within a set timeframe, improving resource efficiency and lowering expenses.
- Trigger Time: Specify a time as required. This indicates the local time where the nodes are deployed.
- Target Instances: Target number of nodes in the node pool after auto scaling.
- Click OK.
Once you add a rule, activate it in the Scaling Rules section. When enabled, the system adjusts your service deployment size automatically at the set time. Check the scaling history at the bottom of the page.
Click Delete in the Operation column to delete the created scaling rule.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot