Real-Time Service Inference Performance is Lower Than When Deployed on Lite Servers
Symptom
When conducting performance stress testing after deploying a service on ModelArts, some performance metrics may be slightly lower than those achieved when the service is deployed directly on Lite Servers.
Possible Causes
Because numerous factors influence inference performance, the platform cannot guarantee a uniform external SLA for model inference performance (such as latency or throughput). The model deployment feature provided by ModelArts supports HA deployment and auto-scaling. To support mainstream load balancing algorithms, HA scheduling, and request distribution, the platform integrates multiple high-reliability components into the prediction path. Consequently, compared to a direct-pass approach on a Lite Server, the additional latency introduced by the platform's routing path is inevitable. Furthermore, the machine hardware configurations in the ModelArts inference platform do not completely match those of Lite Servers, meaning a direct performance comparison lacks a consistent baseline.
Solution
You can ensure service stability and optimize performance using the following methods:
- Out-of-the-box performance visibility: Use the real-time inference console for real-time monitoring. The following metrics are supported:
- Auto-scaling protection: Enable auto-scaling based on CPU and memory usage to prevent service crashes.
- Multi-deployment traffic splitting: Implement a multi-deployment strategy to facilitate grayscale traffic splitting and distribute traffic across multiple resource pools, thereby enhancing overall reliability.
- Optimal intelligent routing policies: Align with your specific traffic patterns by configuring appropriate intelligent routing policies. You can choose from various request distribution rules, such as round robin or least connections, to optimize load balancing and service performance.
- Optimization engine support: Integrate acceleration frameworks like vLLM to significantly boost throughput and reduce latency.
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