In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
In the previous section, we mentioned the convenience of line partitioning brought by CloudXNS's powerful subdivision lines and private lines to your multi-IP domain name configuration. In this section, we will bring you something about multi-ip load balancing.
The unique record type of 3:CloudXNS helps you load balance perfectly.
As you may have already discovered, we have several record types that are different from other DNS parsing service providers: LINK, AX, CNAMEX, so have you tried these record types? For users with multiple ip configuration requirements, the editor will focus on introducing you to AX records.
X means eXtend,AX means extended A record resolution, which is represented by load balancing of multiple A records at any specified proportion. We know that the Local DNS server cluster caches users' requests, and when you have multiple A records, it randomly feeds back one of these cached A records to the user. In this way, we will not be able to estimate the number of requests per ip, perhaps over time the number of visits to these ip will be averaged. Using CloudXNS's AX record, you can return one of its values to the user at a preset ratio when LocalDNS makes a request to CloudXNS, which is controlled by the webmaster yourself.
Let the editor take you to test it. First, configure the www.chinatesters.cn domain name in the CloudXNS system as shown below:
Priority represents the preset scale, and the ratio of record values 2.2.2.1, 1.1.1.2 and 1.1.1.1 is 30, 100, and 50 in the configuration above. Junior wrote a script to get the number of occurrences of each result by executing the same dig command multiple times. An example of test code is as follows:
#! / bin/sh
ITunes 0
Rm-f.xtest_tmp.log
While [$I-lt $1]
Do
Digwww.chinatesters.cn @ lv3ns4.ffdns.net + short > > .xtest_tmp.log
I = `expr $I + 1`
Done
Awk'{name [$1] + +}; END {for (count in name) printcount,name [count]} '.xtest _ tmp.log
Take the script with a parameter of 200, which means that the command is executed 200 times. After waiting for the execution to be completed, the results are as follows:
[root@localhost02_mytest] #. / xtest.sh 200
2.2.2.138
1.1.1.160
1.1.1.2102
We can see that it is very close to the configured 30-50-50-100. After many tests, you will find that this value is closer and closer to the configuration value as Local DNS requests CloudXNS more and more times. Therefore, when your website has multiple servers but their hardware resources vary widely, you can use AX records to set domain name resolution to different load ratios to make full use of your existing resources for load balancing.
Similarly, the priority settings in CNAMEX, 301jump, 302jump and implicit jump records in CloudXNS have the same effect as the above AX record settings, and users who need it can give it a try.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.