FAQs about Usage
The domain name has been registered.
You need to perform the registration. When you configure the CDN service, the system checks the domain name registration. If the domain name is not registered, the service is not enabled for this domain name.
CDN Supports Domain Name Acceleration of HTTP and HTTPS Protocols.
For each Baidu AI Cloud account, you can create up to 2000 CDN accelerated domain names.
Normally, each domain name has its corresponding server address, and the domain name is bound to the CNAME record. That is, the server address record corresponding to the domain name is set as the CNAME record.
Uploading images via accelerated domain names means uploading to the origin server through the CDN node.
What is the Difference Between the Traffic Hit Rate and the Request Hit Rate in the CDN Statistical Analysis?
The traffic hit rate and the request hit rate are mainly calculated for traffic and request, respectively. The calculation method is as follows:
- Traffic hit rate: (Edge node traffic-Back-to-origin traffic) / Edge node traffic* 100%.
- Request hit rate: (Number of requests from edge nodes-Number of back-to-origin requests)/Number of requests from edge nodes* 100%..
For more information, refer to the Hit Rate Data.
The Domain Name Is Registered Elsewhere. Baidu Does Not Register the CDN Domain Name. Do You Want to Mask It?
The prerequisite for using CDN is that the domain name must have been registered (as long as it is registered, regardless of manufacturer), and there are no other special requirements. The domain names registered are not masked for adding CDN acceleration access.
If you want to know whether the access page is cached, you can use F12 and the developer tool to view the source IP of static resources on the page you access and check whether it is a CDN node IP in the CDN tool. If yes, it is CDN. Furthermore, if there is age in the message header, it indicates that it is cached. For the specific usage of CDN tools, refer to Common Tools.
CDN is mainly used to accelerate website access, and related services cannot be built. It is recommended that you use BCC products to build svn or git.
It supports the bandwidth threshold setting in the following specific operation steps:
- Enter the domain name configuration page, click [Advanced setting], and select "Bandwidth Capping Configuration".
- Edit "Bandwidth Capping Configuration" to set the bandwidth threshold and the way of processing the user requests after the threshold is exceeded. For details, refer to the document Bandwidth Threshold Setting.
You can directly refresh the "Directory" so that all resources in the directory can be refreshed. For example, refresh all resources in the root directory.
If you need to use a traffic package, you can change your accelerated domain name so that it is billed by traffic. If it is billed by traffic, the traffic package is deducted first when the traffic is consumed, and the excess is billed based on the use of traffic. No special settings are required.
If the change is required, see Documentation for the billing method.
The acceleration principle of CDN is to cache the content on the node so that the user can access the cached content on the node. Only when the cached content expires, the data is pulled from the origin server again and synchronized to the node.
It is recommended that you set the cache expiration time according to the content update frequency. The cache expiration time is longer for the low updating frequency and shorter for the high updating frequency. For some resources required for real-time synchronization, it is recommended that you set the expiration time to 0. That is, they are not cached. For more information, refer to Cache Configuration.
There are two ways to get the client IP through CDN:
- By downloading the CDN log, it contains the client IP. Refer to Log Management for details.
- After the CDN console is enabled to get the real IP option, the client IP can be got from the access log by installing X-Forwarded-For on the origin server web. For specific tutorials, you can online search the keyword "Corresponding web environment name + Configure X-Forwarded-For".
You can clear the cache configuration, and set the static resource cache in the CDN cache configuration to cache the resources in the form of suffix, such as image resource: .jpg, .png and .gif; audio and video files: .mp4,.mp3, and.avi; and style file: .js, .css, and .woff. For more information, refer to Cache Configuration.
The CDN service can be used to configure all static file cache rules of the website. Refer to the cache management document. In this way, the static files are cached to the CDN node. It returns the node directly to reduce the occupation of the origin server. If there are a large number of requests for accessing and attacking your server, it is recommended that you configure the "Access control" feature and set the anti-leech links such as refer. If you have any question, submitthe CDN ticket.
The edge node refers to the CDN node IP first requested by the user, and the central node requests the data from the origin server. For details, refer to: Acceleration principle.
Baidu AI Cloud CDN supports websocket, but the CDN dynamic acceleration feature must be enabled. Refer to the enabling of CDN dynamic acceleration feature. Configure the corresponding websocket address in the dynamic acceleration feature. If you have any question, submitthe CDN ticket.
After the origin server resources are modified, CDN still displays the legacy data, which is usually caused by the CDN cache. You can refresh the CDN cache. For more information, refer toCache Cleaning. If there are still problems, you can submitthe CDN ticket.
There is no flow rate limit on Baidu AI Cloud CDN for daily peak bandwidth billing. The upper limit of the default daily peak bandwidth is 100Gbps. If you need a bigger bandwidth, you can submit a ticket for application. For details, see Billing on the Daily Peak Bandwidth on the official website.
The CDN offline log can be stored for half a year. You can store the log in BOS. There is no time limit for storage in BOS.
After enabling the CDN HTTP/2, the HTTP/1.1 protocol is used as the origin protocol.
Generally, two or more nodes are configured for the 3-level system. It uses consistent hashes. The back-to-origin is performed normally once and at most twice.
Baidu AI Cloud CDN system recovers the domain names that have been registered for more than one year, and the cumulative traffic does not exceed 1MB. The Recovered status is the same as the Deleted status in the system. The domain name is no longer associated with any CDN service. By default, other users can perform registration, and only the original configuration information is retained. You can select the active recovery of domain names. If you want to re-add the domain name, you can perform the operation through-Console-CDN-Tools-Domain Name Trash-Click Domain Name-[Activate]. If the activation is successful, the original configuration of the domain name is automatically loaded without the need to configure it again.
Baidu AI Cloud CDN supports QUIC, which can be enabled directly on the console. The prerequisite for QUIC is that HTTPS is available.