EdgeRoutine (ER) limits the resources that can be consumed by JavaScript scripts. Typically, the memory resources, CPU time, and response time have an upper limit.

Limits

ER is in private preview. The following table describes the limits on resources. The limits may be adjusted after ER is officially released.

Resource Description Limit
Memory The amount of memory resources of the JavaScript sandbox on the physical machine where Alibaba Cloud CDN is deployed. Alibaba Cloud Content Delivery Network (CDN) nodes are distributed. Requests are redirected to different nodes and physical machines. A JavaScript sandbox exists on each physical machine. An individual domain name can consume at most 128 MB of memory resources of the JavaScript sandbox.
Note Alibaba Cloud CDN intelligently schedules requests to different physical machines. Therefore, this upper limit is not reached in most cases.
CPU time The amount of CPU time consumed by a request to run JavaScript code. The CPU time does not include the I/O wait time. The maximum CPU time for an individual request can be 5 milliseconds, 10 milliseconds, 20 milliseconds, or 50 milliseconds based on the configurations and service specification. During the private preview, the upper limit is 50 milliseconds. When the JavaScript code runs to process a request, the total run time cannot exceed the upper limit of CPU time.
Note Each request has an upper limit of CPU time. The CPU time does not include the I/O wait time.
Response time The time it takes for a response to be returned to a request. The maximum response time can be 30 seconds, 60 seconds, 90 seconds, or 120 seconds based on the configurations and service specification. During the private preview, the upper limit is 30 seconds. When the JavaScript code runs to process a request, the total response time cannot exceed the upper limit.
Note The response time includes the I/O wait time.