The production environment consists of numerous points of presence (POPs) around the world. After you test the EdgeRoutine (ER) code in the test environment, you can publish the code to the production environment.
Configure the production environment
A production environment is generated after you create a routine. We recommend that you modify the configuration of the staging environment before you modify the configuration of the production environment to minimize potential risks.
Log on to the DCDN console.
In the left-side navigation pane, choose EdgeRoutine.
Find the routine that you want to configure and click Details in the Actions column.
On the Details page, click Settings. In the Production Environment section, click Modify to configure Routine Specifications and Domain Name Whitelist.
Parameter
Description
Routine Specifications
CPU Time Slice for Individual Requests: 5 ms, Maximum Real Time: 120s, Memory: 128 MB
CPU Time Slice for Individual Requests: 50 ms, Maximum Real Time: 120s, Memory: 128 MB
CPU Time Slice for Individual Requests: 100 ms, Maximum Real Time: 120s, Memory: 128 MB
NoteThe fees vary based on routine specifications. For more information, see Billing rules.
Domain Name Whitelist
The list of domain names that can be associated with the routine. For example, if you set the Domain Name Whitelist parameter to example.com, only requests from example.com can trigger the routine. Requests from other domain names are rejected by the routine. By default, the Domain Name Whitelist parameter is left empty. Requests from all domain names can be associated with the routine. Wildcard domain names are supported.
Click OK.
Publish the routine to the production environment
Log on to the DCDN console.
In the left-side navigation pane, choose EdgeRoutine.
Find the routine that you want to configure and click Details in the Actions column.
On the Details page, click Versions.
Select a version, click Publish, select Production Environment, and then click OK.
On the Versions tab, you can view Version in Production Environment to check whether the version is published.