All Products
Search
Document Center

Dynamic Content Delivery Network:Production environment

Last Updated:Jan 09, 2024

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.

  1. Log on to the DCDN console.

  2. In the left-side navigation pane, choose EdgeRoutine.

  3. Find the routine that you want to configure and click Details in the Actions column.

  4. 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

    Note

    The 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.

  5. Click OK.

Publish the routine to the production environment

  1. Log on to the DCDN console.

  2. In the left-side navigation pane, choose EdgeRoutine.

  3. Find the routine that you want to configure and click Details in the Actions column.

  4. On the Details page, click Versions.

  5. 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.发布