Query on configuration of cdn Origin-pull to original Server

before, the user"s Mini Program had a slow delay in access to noon and evening, and then the bandwidth upgrade was still slow, because each details page needs to load several pictures, which should take up the bandwidth. Now I plan to use Aliyun cdn.
. Now I have several questions:

Aliyun"s cdn promotes national nodes. Do these nodes capture static resources periodically, so that they don"t occupy all the bandwidth for a certain period of time?

set origin-pull to ip or domain name?
before, the server used nginx to process static resources. Access picture: https://www.name.com/static/i. if origin-pull to domain name, Is it possible to access https://cdn.name.come/static/. to get pictures, and whether the two access directories correspond to each other? cnd sets the cache directory / static/ to get pictures. There is no need to change the nginx configuration.
configure origin-pull to the server public network ip,. How do I get static images on the cdn side?


Q: Aliyun's cdn promotes national nodes. Do these nodes capture static resources periodically, so that they don't occupy all the bandwidth for a certain period of time?

A: generally not, unless it is a different resource, or your CDN cache policy setting is not optimal, which may lead to a low cache hit rate. For example, different URL parameters (? Later) identify as different resources will result in a lower hit rate.

in addition, the default mechanism of CDN is to grab static resources from the source only when there is a request. Where the source contains the source server, as well as other CDN nodes in the nearest zone.

for example, the source server is in Beijing, and the CDN node may have Guangdong or Shanghai. For example, if Shanghai users visit the meeting for the first time, they will pull back to the origin server (Beijing). Users in Guangdong may give priority to the CDN node data in Shanghai because of the principle of proximity.
< hr >

with pictures to deepen understanding (picture from Yunqi Community):

noun explanation:

  • Origin Server: origin server, source server
  • User: visitors
  • Edge Server:CDN 's server
Q: set origin-pull to ip or domain name? Previously, the server used nginx to process static resources and access images: https://www.name.com/static/i.. If you go back to the domain name, can you access https://cdn.name.come/static/. to get the images? Whether the two access directories correspond to each other, cnd sets the cache directory / static/ to get pictures. There is no need to change the nginx configuration.

A: Origin-pull to IP and domain name are acceptable. The rest of your description is correct.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e41687-4492a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e41687-4492a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?