The production environment consists of numerous edge nodes all over 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 when you create an ER. We recommend that you modify the configuration of the test environment before you modify the configuration of the production environment to minimize potential risks.

  1. Log on to the Alibaba Cloud CDN console/DCDN console.
  2. In the left-side navigation pane, choose EdgeRoutine.
  3. Select a routine name and click Details.
  4. On the Details page, click Settings. In the Production Environment section, click Modify to configure Routine Specification and Domain Name Whitelist. Production
    Parameter Description
    Routine specification
    • 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.
    Note The fees vary based on routine specifications. For more information, see Billing.
    Domain name whitelist The list of domain names that can be associated with the ER. For example, if you set 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 is empty. Requests from all domain names can be associated with the routine. Wildcard domains are supported.
  5. Click OK.

Publish the routine to the production environment

  1. Log on to the Alibaba Cloud CDN console/DCDN console.
  2. In the left-side navigation pane, choose EdgeRoutine.
  3. Select a routine name and click Details.
  4. On the Details page, click Versions.
  5. Select a version, click Publish, select Production Environment, and then click OK. Publish
    On the Versions tab, you can view Version in Production Environment to check whether the version is published. Publish