百度智能云

All Product Document

          CDN

          Access CDN Service

          Overview

          You can understand how to access CDN service, add network as the origin server and create the acceleration domain name through this document.

          This document describes the method of access CDN service to CDN console in details.

          Precondition

          1. If you have registered Baidu AI Cloud account, please see Registration of Baidu AI Cloud account for specific operation.
          2. Please ensure there is enough money in your account to support your service charges.

          Operation Steps

          1.In CDN Console, select Domain Name Management and enter the “Add a New Domain Name" page.

          image.png

          2.Enter Domain Name Information, and configure the following parameters.

          Parameter Description
          Business type Select business classification according to conditions.
          Accelerated domain name Enter the domain name that needs to be accelerated, such as image.mywebsite.com. The considerations are as follows:
          • The origin server of all accelerated domain names must be the same;
          • The domain name must be registered. The domain name being registered or not registered cannot be accessed. Please check the domain name registration in advance,Backup entry
          Origin server type Select the origin server as “origin server domain name”, “IP address” or “BOSBucket” according to the circumstances. The points for attention are as follows:
          • The origin server address can be your own server address or a rented cloud server address.
          • When origin server is “origin server domain name”, the origin server domain name cannot be the same as the accelerated domain name.
          • When the origin server type is “BOS Bucket ", the specified Bucket must have been created in BOS, and CDN automatically initiates the domain name binding operation after the specifying.
          • Support to bind a BOS Bucket with the same domain name; the number of domain name that is bound with the same BOS Bucket cannot exceed 20; if the number of domain name that is bound with the same BOS Bucket exceeds 20 or the domain name has been bound with other BOS Bucket, the CDN automatic binding will fail, the domain name need to be unbound manually. Please refer to unbind Bucket domain name for specific operations.
          Address of primary origin server Enter the address of origin server, you can add 10 IP addresses at most, and multiple IPs are separated by newline character. The points for attention are as follows:
          • The weights are equal by default. Baidu AI Cloud CDN can prepare the priority of a precise origin server IP address and support to set a custom weight for the origin server. CDN assigns origin traffic according to the weight configured by user. If you do not set the weight, it defaults that IP addresses have the same weight. For example: For example, there is 1 G origin traffic and 2 IPs. Weight of one IP is 80%, and the other is 20%, then one IP has about 800M origin and the other has about 200M origin.
          • Unavailability of primary origin server refers to: TCP connection failed and no response to CDN detecting origin server for three consecutive times, or no response from origin server within timeout and no response to CDN detecting origin server for three consecutive times.
          • If multiple primary IPs are set, CDN will record the unavailable IP in the IP list, and will switch to standby IP when all IPs in the primary IP are not accessible.
          • If only one primary IP is set, when the primary IP is detected as inaccessible, the standby IP is accessed and the primary IP is detected for recovery or not. When the primary IP is restored, the request forwarded to the origin is switched back to the primary IP.
          • If a standby origin server address is configured, when the primary origin server is unavailable, CDN requests the standby origin server and detect the primary origin server. It switches to the primary origin server after it is restored.
          • When BOS Bucket origin server is configured with the primary and standby origin servers, the primary and standby origin servers cannot be the same Bucket. In order to improve the service quality, the main and backup origin servers are suggested to select different Region Buckets.
          Standby origin server address Input the backup origin server address, 10 IP addresses can be added at most, and the new line character should be used for separating multiple IPs. The points for attention are as follows:
          • The weights are equal by default. Baidu AI Cloud CDN can prepare the priority of a precise origin server IP address and support to set a custom weight for the origin server. CDN assigns origin traffic according to the weight configured by user. If you do not set the weight, it defaults that IP addresses have the same weight.
          • When the primary origin server is unusable, CDN accesses the standby origin server, until the primary origin server is restored
          • Configuring a standby origin server effectively reduces the failure rate of forwarding to origin and improves the service quality.

          Note: If the origin server configuration of the accelerated domain name needs to be modified, you can select the “management” operation of the corresponding domain name on the “CDN domain name management” page to enter the page of domain name details, and click the “modify” on the right to complete the modification settings of the origin server.

          3.Click Next, and enter the “Cache expiration configuration" page.

          According to actual needs, enter the configuration information; please refer to cache expiration configurationfor specific operation steps.

          image.png

          Note: When adding an extensive domain name, you can enable “Allow Shared Cache”. If Shared Cache is turned on, all domain names under this extensive domain name share the cache.

          4.Click Next step. Enter "Add Tags" page.

          Please refer to Add Tags for specific operating steps.

          5.After confirming correct configurations, please click Next Step, and the page reminds “Create Successfully”. You can click “Manage Console” to Bind CNAME, domain name management, cache purging and resource monitoring, and other operations.

          Previous
          Enable CDN Service
          Next
          Bind CNAME