WO2011000199A1 - Method and system for intelligently scheduling cluster servers - Google Patents

Method and system for intelligently scheduling cluster servers Download PDF

Info

Publication number
WO2011000199A1
WO2011000199A1 PCT/CN2009/076279 CN2009076279W WO2011000199A1 WO 2011000199 A1 WO2011000199 A1 WO 2011000199A1 CN 2009076279 W CN2009076279 W CN 2009076279W WO 2011000199 A1 WO2011000199 A1 WO 2011000199A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
level
dns
address
cluster
Prior art date
Application number
PCT/CN2009/076279
Other languages
French (fr)
Chinese (zh)
Inventor
汤敏
Original Assignee
深圳市融创天下科技发展有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市融创天下科技发展有限公司 filed Critical 深圳市融创天下科技发展有限公司
Publication of WO2011000199A1 publication Critical patent/WO2011000199A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/535Tracking the activity of the user

Definitions

  • the present invention relates to the field of the Internet, and in particular, to a method and system for intelligent scheduling of a cluster server.
  • the cluster system can distribute all requests to multiple node servers through a load balancer, which greatly improves the system processing capability.
  • the load balancer can monitor the availability of server nodes.
  • the load balancing policies used by the load balancing scheduler are as follows: 1. Round-robin equalization: Each time a request for processing network data traffic is allocated to the internal server in turn. , from 1 to N and then restart, this equalization algorithm is suitable for all servers in the server group have the same hardware and software configuration and the average service request is relatively balanced; 2. Random equalization: ⁇ select a server with a random algorithm 3. Minimum connection number balance: Select the server with the smallest load selected from the currently working server; 4.
  • Processing capacity balance In the processing capacity balance, each server is assigned a weighting coefficient according to the processing capacity of each server, and the weighting coefficient Multiply the absolute load parameter on the server to obtain the relative load parameter, and balance the processing capability to select a server with the smallest relative load parameter. 5.
  • Dynamic Balance The so-called dynamic load balancing is based on the cluster server status (main processing part such as CPU and memory). To assign tasks. In the first and second balancing strategies, because the feedback information of the server is not introduced, the balancing strategy cannot be adjusted according to the actual situation. The load of each server will be uneven. If a server suddenly fails, the system cannot know. If the fault occurs, some users will not be able to obtain the service.
  • the fourth balancing strategy takes into account the different processing capabilities of different servers. Each server is assigned a static weighting factor, and the relative load parameter is introduced as a measure.
  • load balancing which is a balancing strategy that we usually use; the fifth balancing strategy feeds back the dynamic load information of the server back to the balancing strategy.
  • the effect of balancing is the best, but it is difficult to implement.
  • the present invention aims to provide a method and system for intelligent scheduling of cluster servers, so as to ensure that network users are allocated to servers that can be accessed, so that network users can efficiently obtain network services.
  • the present invention provides a method for intelligent scheduling of a cluster server, and the specific steps of the method are as follows:
  • [8] B Establish an IP address database, which records the IP address of each server and the corresponding information corresponding to the IP address of the server;
  • [10] D Establish a DNS server, including a cluster server IP list, assign the same domain name to the cluster server providing the same service, and perform each server according to the running status in the state database and the IP information of the visitor. Rating, resulting in a server rating rating;
  • the DNS server selects the most appropriate server IP from the cluster server IP list according to the rating level to provide network services to the user.
  • the present invention further provides a cluster server intelligent scheduling system, wherein the system comprises:
  • a group of cluster servers each of which has a feedback module for collecting actual information about the running status of each server.
  • the actual information includes the CPU usage of the server, the memory usage, the server setting load, and the remaining Number of service users;
  • a state database connected to the cluster server, based on the various servers collected by the feedback module The actual state of the row state, which is used to record the actual information of the running state of the server;
  • IP address database connected to the state database, the IP address database records the IP address of each server and the geographical location of the corresponding server IP address and network operator information, and the network operator information includes telecommunications and Netcom;
  • a DNS server connected to the IP address database, including a cluster server IP list, assigning the same domain name to the server cluster providing the same service, according to the running status in the state database and the IP information of the visitor.
  • the server scores to obtain the rating level of the server, and selects the most suitable server IP according to the rating level to provide network services for the user.
  • the present invention has the beneficial effects of collecting the running state set of the server according to the feedback module installed on the server.
  • the present invention provides the server closest to the geographical location of the visitor to serve the DNS according to the geographical location of the visitor's IP. According to the running status, the server can quickly and effectively select the server to provide services for the visitors, so that the visitor's access can be more securely responded.
  • FIG. 1 is a flow chart of a cluster server intelligent scheduling method according to the present invention
  • FIG. 2 is a schematic structural diagram of a cluster server intelligent scheduling system according to the present invention.
  • FIG. 3 is a schematic structural diagram of a cluster server intelligent scheduling system according to the present invention.
  • FIG. 1 is a schematic diagram of a cluster server intelligent scheduling method according to the present invention. As shown in the figure, the method includes
  • S10 Establish a state database, which is used to record the actual information of the running state of the server;
  • S20 Establish an IP address database, where the IP address of each server records the corresponding information of the IP address of each server and the IP address of the corresponding server; the corresponding information of the IP address of the corresponding server includes the geographical location of the server and network operation.
  • Business information, network operator information includes telecommunications and Netcom.
  • the actual information collected by the feedback module includes the service.
  • the CPU usage of the server, the memory usage, the server setting load, and the number of remaining service users, the feedback module is about 5 seconds to feed back the information and update it to the state database.
  • the feedback module will feed back the fault ID 1 to the status database, and the failed server will be marked as invalid in the cluster server IP list.
  • the user does not participate in the comparison score with other servers; after the troubleshooting, the feedback module will feed back the fault ID 0 to the status database, and the failed server will be re-marked as valid in the cluster server IP list.
  • S40 Establish a DNS server, including a cluster server IP list, assign the same domain name to the cluster server providing the same service, and perform each server according to the running status in the state database and the IP information of the visitor. Rating, resulting in a server rating rating;
  • the DNS server includes an IP automatic query module. After the DNS server receives the visitor's access request, the IP automatic query module will automatically query the geographical location of the visitor's IP. Each network server is scored by the geographic location of the IP, the specific geographic location of each network server, and the network operator information, as well as the actual information of each network server's operational status.
  • the DNS server scoring principle sequence is as follows: First, according to the CPU usage, memory usage, server setting load, and remaining service users of the server provided by the feedback module
  • the server with the largest number of remaining service users has the highest rating of the first level; the number of remaining service users of the server is lower than the set range, where the remaining number of users is set to 100 units, continue to score according to the CPU usage, and the score of the CPU usage is lower than the second level; the number of remaining service users in the server is lower than the set range, and the CPU usage is higher than the set range, where the CPU is occupied.
  • the rate setting range is 70%, and the score is continued according to the memory usage.
  • the score with less memory usage is the third level; the number of remaining service users in the server reaches a certain range, and the CPU usage is higher than the set range and memory.
  • the memory usage setting range is 70%, and then based on the visitor's IP geographic location score, the distance between the visitor's IP geographic location and the server's IP geographic location is recently rated as the fourth level.
  • the DNS server selects the most suitable server IP from the cluster server IP list according to the rating level to provide network services for the user, and the hierarchical order of the DNS server selection server is: first level, second level, third Level, fourth level.
  • FIG. 2 shows the cluster service of the present invention.
  • a group of cluster servers including server 1, server 2, server 3, and server 4, each of which is provided with a feedback module 1, 2, 3, 4 for collecting each server 1, 2, 3, 4
  • the actual information of the running status, the actual information includes the CPU usage of the server, the memory usage, the server setting load, and the number of remaining service users;
  • IP address database connected to the state database, the IP address database records the IP address of each server and the geographical location of the corresponding server and network operator information, and the network operator information includes telecommunications and Netcom;
  • a DNS server connected to the IP address database including a cluster server IP list, assigning the same domain name to the server cluster providing the same service, according to the running status in the state database and the IP information of the visitor.
  • the server performs scoring.
  • the DNS server further includes an IP automatic query module. After the DNS server receives the visitor's access request, the IP automatic query module will automatically query the geographical location of the visitor's IP.
  • Each web server is scored by the geographical location of the visitor's IP, the specific geographic location of each web server and network operator information, and the actual information of each network server's operational status.
  • the DNS server scoring principle sequence is as follows: Firstly, according to the CP U occupancy rate, memory occupancy rate, server setting load amount and remaining service users of the server provided by the feedback module, the server sets the load amount and the number of remaining service users.
  • the server score is up to the first level; after the number of remaining service users of the server is lower than the set range, the score is continued according to the CPU usage, and the score with less CPU usage is the second level; the number of remaining service users at the server If the CPU usage is lower than the set range, and the CPU usage is higher than the set range, the score will continue to be scored according to the memory usage.
  • the score with less memory usage is the third level; the remaining service users of the server are lower than the set range.
  • the DNS server selects the server in the order of rank: first level, second level, third level, fourth level. Get service The rating level of the device is based on the rating level to select the most appropriate server IP to provide users with network services.
  • the load of server 1 is 2,000, and the remaining load is 200.
  • the CPU usage is 60% and the memory usage is 71%.
  • the load set by server 2 is 2,200. There are 1 800 users accessing, the remaining load is 400, the CPU usage is 55%, the memory usage is 69%, the load set by server 3 is 1,900, and there are already 1,650 users, and the remaining load is 250.
  • the CPU usage rate is 73% and the memory usage is 71%.
  • the server 4 load is 2,100 units and has 1,800 users.
  • the remaining load is 300, the CPU usage is 64%, and the memory usage is 70%. %.
  • the load of server 1 is 2,000, and there are already 1950 users.
  • the remaining load is 50, the CPU usage is 60%, and the memory usage is 71%.
  • the load set by server 2 is 2,200. There are already 214 0 users accessing, the remaining load is 60, the CPU usage is 55%, the memory usage is 69%, and the load set by the server 3 is 1,900 users have access to 1830 users.
  • the number is 70, the CPU usage is 73%, the memory usage is 71%; and the server 4 load is 2100, which has 2020 users access, the remaining load is 300, the CPU usage is 64%, the memory is occupied.
  • the rate is 70%.
  • the load of server 1 is 2,000, and there are already 1950 users.
  • the remaining load is 50, the CPU usage is 71%, the memory usage is 67%, and the load set by server 2 is 2,200.
  • There are already 214 0 users accessing the remaining load is 60, the CPU usage is 72%, the memory usage is 66%, the monthly ⁇
  • the load capacity set by server 3 is 1,900 users have access, the remaining load is 70, the CPU usage is 73%, the memory occupancy is 65%; and the server 4 load is 2100, there are already 2020 User access, the remaining load is 300, the CPU usage is 74%, and the memory usage is 64%.
  • the above data is fed back to the status database by the feedback modules 1, 2, 3, 4, since the remaining loads of the four servers are 50, 60, 70, 80, respectively, which are greater than the set remaining load 100, and The CPU usage is 71%, 72%, 73%, 74%, respectively, which are higher than the set value of 70%.
  • the DNS will not consider the remaining load and CPU usage of the servers 1, 2, 3, and 4, respectively, according to the memory usage. If the memory usage of the server 4 is less than the set value of 70%, the score is the highest, and the score level of the server 4 is the third level, and the server 4 is directly selected to provide services for the user.
  • the load of server 1 is 2,000, and there are already 1950 users.
  • the remaining load is 50, the CPU usage is 71%, the memory usage is 71%, and the load set by server 2 is 2,200.
  • the remaining load is 60, the CPU usage is 72%, the memory occupancy is 72%, and the load set by the server 3 is 1,900 users have access to 1830 users, the remaining load
  • the number is 70, the CPU usage is 73%, the memory usage is 73%; and the server 4 load is 2100, which has 2020 users accessing, the remaining load is 300, the CPU usage is 74%, the memory is occupied.
  • the rate is 74%.
  • the above data is fed back to the state database by the feedback modules 1, 2, 3, 4, since the remaining loads of the four servers are 50, 60, 70, 80, respectively, which are greater than the set remaining load 100, and The CPU and memory usage are 71%, 72%, 73%, and 74%, respectively, which are higher than the set value of 70%.
  • the DNS will not consider the remaining load of the servers 1, 2, 3, and 4 and the CPU and memory usage.
  • the server closest to the geographical location of the visitor is selected. For example, if the server 2 is closest to the visitor, the server 2 has the highest score, and the score of the server 2 is the fourth rank. Directly select server 2 to provide services to users.
  • FIG. 3 is a modification of the intelligent scheduling system shown in FIG. 2, wherein the state database and the IP address database are both set in the DNS server.
  • an improvement (not shown) of the intelligent scheduling system shown in FIG. 3 further includes one or more standby DNS servers connected to the DN S server, and the data of the DNS server is updated synchronously with the data of the standby DNS server.
  • the DNS server fails, it continues to work by the alternate DNS server.

Abstract

A method and system for intelligently scheduling cluster servers are provided, and the system includes: a group of cluster servers, on which a feedback module is set respectively, for collecting realtime information about operation states of each server; a state database connected with the cluster servers, for recording realtime information about operation states of servers according to the realtime information about operation states of each server collected by the feedback module; an IP address database connected with the state database, in which the IP address of each server and the geographic location and network operator information corresponding to the IP address of the server are recorded; a DNS server connected with the IP address database, for allocating the same domain name to the cluster servers which provides the same service, scoring each server in real time according to the operation states in the state database and IP information of the visitor, obtaining the score level of the servers, and choosing the most suitable server IP to provide network service for users.

Description

说明书  Instruction manual
Title of Invention:集群服务器智能调度的方法及系统Title of Invention: Method and system for cluster server intelligent scheduling
#細或 #细 or
[1] 本发明涉及互联网领域, 尤其涉及一种集群服务器智能调度的方法及系统。  [1] The present invention relates to the field of the Internet, and in particular, to a method and system for intelligent scheduling of a cluster server.
[2] 在单台服务器的性能存在瓶颈的情况下, 集群系统可以通过负载均衡器釆用一 定机制将所有请求分布到多台节点服务器, 使得系统业务处理能力大大提升。 此外, 负载均衡器还能监控服务器节点的可用性, 目前负载均衡调度器釆用的 负载均衡策略有如下几种: 1.轮循均衡: 每次对于网络数据流量的处理请求轮流 分配给内部的服务器, 从 1至 N然后重新开始, 此种均衡算法适合于服务器组中 所有的服务器都有相同的软硬件配置且平均服务请求相对均衡的情况; 2.随机均 衡: 釆用随机算法选择一台服务器; 3.最少连接数均衡: 选择当前工作的服务器 中选择负载最小一台服务器; 4.处理能力均衡: 处理能力均衡中根据每台服务器 处理能力的不同为每台服务器分配一个加权系数, 加权系数乘以服务器上的绝 对负载参数得出相对负载参数, 处理能力均衡选择一个相对负载参数最小的服 务器; 5.动态均衡: 所谓动态负载均衡, 是根据集群服务器状态 (CPU, 内存等 主要处理部分) 来分配任务。 第 1、 2种均衡策略中因为没有引入服务器的反馈 信息, 均衡策略没有办法根据实际情况进行调整, 吋间一长各个服务器的负载 会不均衡, 如果某台服务器突然出现故障, 由于系统无法获知故障, 导致会有 部分用户无法获得服务; 第 3种均衡策略中虽然引入服务器的反馈信息, 但是没 有考虑到不同服务器的处理能力的不同, 釆用绝对负载作为衡量标准, 对于服 务器的处理能力相差很大的服务集群效果并不好, 第 4种均衡策略考虑到了不同 服务器的处理能力的不同, 为每台服务器分配了一个静态加权系数, 引入相对 负载参数作为衡量标准, 从一定程度上提高了负载均衡的效果, 这也是我们通 常釆用的一种均衡策略; 第 5种均衡策略将服务器的动态负载信息反馈回均衡策 略, 均衡的实吋效果是最好的, 但实现难度较大。 [2] In the case of a bottleneck in the performance of a single server, the cluster system can distribute all requests to multiple node servers through a load balancer, which greatly improves the system processing capability. In addition, the load balancer can monitor the availability of server nodes. Currently, the load balancing policies used by the load balancing scheduler are as follows: 1. Round-robin equalization: Each time a request for processing network data traffic is allocated to the internal server in turn. , from 1 to N and then restart, this equalization algorithm is suitable for all servers in the server group have the same hardware and software configuration and the average service request is relatively balanced; 2. Random equalization: 选择 select a server with a random algorithm 3. Minimum connection number balance: Select the server with the smallest load selected from the currently working server; 4. Processing capacity balance: In the processing capacity balance, each server is assigned a weighting coefficient according to the processing capacity of each server, and the weighting coefficient Multiply the absolute load parameter on the server to obtain the relative load parameter, and balance the processing capability to select a server with the smallest relative load parameter. 5. Dynamic Balance: The so-called dynamic load balancing is based on the cluster server status (main processing part such as CPU and memory). To assign tasks. In the first and second balancing strategies, because the feedback information of the server is not introduced, the balancing strategy cannot be adjusted according to the actual situation. The load of each server will be uneven. If a server suddenly fails, the system cannot know. If the fault occurs, some users will not be able to obtain the service. In the third equalization strategy, although the feedback information of the server is introduced, the processing power of different servers is not considered, and the absolute load is used as the measurement standard, and the processing capability of the server is different. A large service cluster is not effective. The fourth balancing strategy takes into account the different processing capabilities of different servers. Each server is assigned a static weighting factor, and the relative load parameter is introduced as a measure. The effect of load balancing, which is a balancing strategy that we usually use; the fifth balancing strategy feeds back the dynamic load information of the server back to the balancing strategy. The effect of balancing is the best, but it is difficult to implement.
[3] 另外, 互联网的用户分布在全国各地, 根据目前的网络现状, 存在距离、 南北 网等问题, 如何自动为用户接入一个地理位置最近, 且同属于电信或网通的服 务器, 就成为我们需要考虑的问题; 每台服务器的能力参差不齐, 且同吋为多 个用户服务后, CPU、 内存、 剩余服务用户数等互不相同, 我们需要为用户寻找 一台负载最轻的服务器; [3] In addition, users of the Internet are distributed throughout the country. According to the current status of the network, there is a distance, north and south. Problems such as the network, how to automatically access the user to a server with the closest geographical location and belonging to the telecom or China Netcom has become a problem we need to consider; the capabilities of each server are uneven, and the same service for multiple users The CPU, memory, and number of remaining service users are different. We need to find the server with the lightest load for the user.
[4] 鉴于此, 实有必要提出一种改进的方法以克服现有技术的缺陷。  [4] In view of this, it is necessary to propose an improved method to overcome the deficiencies of the prior art.
[5] 有鉴于此, 本发明目的在于提供集群服务器智能调度的方法及系统, 以保证网 络用户分配到能够访问到的服务器上, 使得网络用户能够高效地获得网络服务 [5] In view of this, the present invention aims to provide a method and system for intelligent scheduling of cluster servers, so as to ensure that network users are allocated to servers that can be accessed, so that network users can efficiently obtain network services.
[6] 为了解决上述问题本发明提供一种集群服务器智能调度的方法, 该方法具体步 骤如下: [6] In order to solve the above problems, the present invention provides a method for intelligent scheduling of a cluster server, and the specific steps of the method are as follows:
[7] A: 建立一个状态数据库, 该状态数据库用于记录服务器运行状态的实吋信息  [7] A: Establish a state database, which is used to record the actual information of the server running status.
[8] B: 建立一个 IP地址数据库, 该 IP地址数据库中记录着每个服务器的 IP地址以 及与服务器的 IP地址对应的对应信息; [8] B: Establish an IP address database, which records the IP address of each server and the corresponding information corresponding to the IP address of the server;
[9] C: 在每台服务器上设置一个反馈模块, 用于收集该服务器的运行状态的实吋 信息, 并实吋反馈并更新到状态数据库中; [9] C: Set a feedback module on each server to collect the actual information of the running status of the server, and feedback and update to the status database;
[10] D: 建立一个 DNS服务器, 包括一个集群服务器 IP列表, 为提供相同服务的集 群服务器分配相同的域名, 根据状态数据库中的运行状态以及访问者的 IP信息实 吋的为每台服务器进行评分, 得出服务器评分等级; [10] D: Establish a DNS server, including a cluster server IP list, assign the same domain name to the cluster server providing the same service, and perform each server according to the running status in the state database and the IP information of the visitor. Rating, resulting in a server rating rating;
[11] E: DNS服务器根据评分等级, 从集群服务器 IP列表中选择最合适的服务器 IP 为用户提供网络服务。  [11] E: The DNS server selects the most appropriate server IP from the cluster server IP list according to the rating level to provide network services to the user.
[12] 另外, 本发明还提供一种集群服务器智能调度的系统, 其特征在于, 该系统包 括:  [12] In addition, the present invention further provides a cluster server intelligent scheduling system, wherein the system comprises:
[13] 一组集群服务器, 每台服务器上设置一个反馈模块, 用于收集各个服务器的运 行状态的实吋信息, 实吋信息包括服务器的 CPU占用率、 内存占用率、 服务器设 置负载量以及剩余服务用户数;  [13] A group of cluster servers, each of which has a feedback module for collecting actual information about the running status of each server. The actual information includes the CPU usage of the server, the memory usage, the server setting load, and the remaining Number of service users;
[14] 一个与组集群服务器相连的状态数据库, 根据反馈模块收集的各个服务器的运 行状态的实吋信息, 该状态数据库用于记录服务器运行状态的实吋信息; [14] A state database connected to the cluster server, based on the various servers collected by the feedback module The actual state of the row state, which is used to record the actual information of the running state of the server;
[15] 一个与状态数据库相连的 IP地址数据库, 该 IP地址数据库中记录着每个服务器 的 IP地址以及对应服务器的 IP地址的地理位置和网络运营商信息, 网络运营商信 息包括电信和网通;  [15] An IP address database connected to the state database, the IP address database records the IP address of each server and the geographical location of the corresponding server IP address and network operator information, and the network operator information includes telecommunications and Netcom;
[16] 一个与 IP地址数据库相连的 DNS服务器, 包括一个集群服务器 IP列表, 为提供 相同服务的服务器集群分配相同的域名, 根据状态数据库中的运行状态以及访 问者的 IP信息实吋的为每台服务器进行评分, 得出服务器的评分等级, 根据评分 等级选择最合适的服务器 IP为用户提供网络服务。  [16] A DNS server connected to the IP address database, including a cluster server IP list, assigning the same domain name to the server cluster providing the same service, according to the running status in the state database and the IP information of the visitor. The server scores to obtain the rating level of the server, and selects the most suitable server IP according to the rating level to provide network services for the user.
[17] 本发明的有益效果在于, 根据服务器上安装的反馈模块收集服务器的运行状态 集, 另外, 本发明还根据访问者的 IP的地理位置, 提供与访问者地理位置最近的 服务器来服务 DNS服务器根据运行状态可以迅速有效的选择服务器为访问者提 供服务, 使访问者的访问得到更有保障的回应。  [17] The present invention has the beneficial effects of collecting the running state set of the server according to the feedback module installed on the server. In addition, the present invention provides the server closest to the geographical location of the visitor to serve the DNS according to the geographical location of the visitor's IP. According to the running status, the server can quickly and effectively select the server to provide services for the visitors, so that the visitor's access can be more securely responded.
國删  Country deletion
[18] 下面将结合附图及实施例对本发明作进一步说明, 附图中:  [18] The present invention will be further described below in conjunction with the accompanying drawings and embodiments, in which:
[19] 图 1为本发明集群服务器智能调度方法流程框图; [1] FIG. 1 is a flow chart of a cluster server intelligent scheduling method according to the present invention;
[20] 图 2为本发明集群服务器智能调度系统结构示意图; [20] FIG. 2 is a schematic structural diagram of a cluster server intelligent scheduling system according to the present invention;
[21] 图 3为本发明集群服务器智能调度系统结构示意图。 [21] FIG. 3 is a schematic structural diagram of a cluster server intelligent scheduling system according to the present invention.
 difficult
[22] 下面结合附图来说明本发明具体实施。 [22] The specific implementation of the present invention will be described below with reference to the accompanying drawings.
[23] 图 1为本发明提供的一种集群服务器智能调度的方法, 如图所示, 该方法包括  [23] FIG. 1 is a schematic diagram of a cluster server intelligent scheduling method according to the present invention. As shown in the figure, the method includes
[24] S10: 建立一个状态数据库, 该状态数据库用于记录服务器运行状态的实吋信 息; [24] S10: Establish a state database, which is used to record the actual information of the running state of the server;
[25] S20: 建立一个 IP地址数据库, 该 IP地址数据库中记录着每个服务器的 IP地址以 及对应服务器的 IP地址的对应信息; 对应服务器的 IP地址的对应信息包括服务器 的地理位置和网络运营商信息, 网络运营商信息包括电信和网通。  [25] S20: Establish an IP address database, where the IP address of each server records the corresponding information of the IP address of each server and the IP address of the corresponding server; the corresponding information of the IP address of the corresponding server includes the geographical location of the server and network operation. Business information, network operator information includes telecommunications and Netcom.
[26] S30: 在每台服务器上设置一个反馈模块, 用于收集该服务器的运行状态的实 吋信息, 并实吋反馈并更新到状态数据库中; 反馈模块收集的实吋信息包括服 务器的 CPU占用率、 内存占用率、 服务器设置负载量以及剩余服务用户数, 所述 反馈模块间隔 5秒即将实吋信息反馈并更新到状态数据库中。 当其中的某一服务 器出现故障吋, 反馈模块将向状态数据库反馈故障标识 1, 集群服务器 IP列表中 将该出故障的服务器标记为无效。 不参与与其它服务器的比较评分, 用户不能 访问; 故障排除后, 反馈模块将向状态数据库反馈故障标识 0, 集群服务器 IP列 表中将该出故障的服务器重新标记为有效。 [26] S30: Set a feedback module on each server to collect the actual information of the running status of the server, and feedback and update it to the status database. The actual information collected by the feedback module includes the service. The CPU usage of the server, the memory usage, the server setting load, and the number of remaining service users, the feedback module is about 5 seconds to feed back the information and update it to the state database. When one of the servers fails, the feedback module will feed back the fault ID 1 to the status database, and the failed server will be marked as invalid in the cluster server IP list. The user does not participate in the comparison score with other servers; after the troubleshooting, the feedback module will feed back the fault ID 0 to the status database, and the failed server will be re-marked as valid in the cluster server IP list.
[27] S40: 建立一个 DNS服务器, 包括一个集群服务器 IP列表, 为提供相同服务的 集群服务器分配相同的域名, 根据状态数据库中的运行状态以及访问者的 IP信息 实吋的为每台服务器进行评分, 得出服务器评分等级; [27] S40: Establish a DNS server, including a cluster server IP list, assign the same domain name to the cluster server providing the same service, and perform each server according to the running status in the state database and the IP information of the visitor. Rating, resulting in a server rating rating;
[28] 本步骤中, DNS服务器内包含一个 IP自动査询模块, DNS服务器接收到访问者 的访问请求吋, IP自动査询模块将自动査询出访问者的 IP的地理位置, DNS根据 访问者的 IP的地理位置、 每个网络服务器的具体地理位置和网络运营商信息以及 每个网络服务器运行状态的实吋信息对各个网络服务器进行评分。  [28] In this step, the DNS server includes an IP automatic query module. After the DNS server receives the visitor's access request, the IP automatic query module will automatically query the geographical location of the visitor's IP. Each network server is scored by the geographic location of the IP, the specific geographic location of each network server, and the network operator information, as well as the actual information of each network server's operational status.
[29] 在本步骤中 DNS服务器评分原则顺序具体如下: 首先优先根据反馈模块提供的 服务器的 CPU占用率、 内存占用率、 服务器设置负载量以及剩余服务用户数比较 [29] In this step, the DNS server scoring principle sequence is as follows: First, according to the CPU usage, memory usage, server setting load, and remaining service users of the server provided by the feedback module
, 根据服务器设置负载量以及剩余服务用户数, 剩余服务用户数最多的服务器 评分最高为第一等级; 在服务器的剩余服务用户数低于到设定的范围吋, 其中 用户剩余数设定范围为 100台, 根据 CPU占用率继续评分, CPU占用率少的评分 为第二等级; 在服务器的剩余服务用户数低于设定的范围, 同吋 CPU占用率高于 设定范围吋, 其中 CPU占用率设定范围为 70%, 再根据内存占用率继续评分, 内 存占用率少的评分为第三等级; 在服务器的剩余服务用户数达到一定范围, 同 吋 CPU占用率高于设定范围以及内存高于设定范围吋, 其中内存占用率设定范围 为 70% , 再根据访问者的 IP地理位置评分, 访问者的 IP地理位置与服务器的 IP地 理位置的距离最近评分为第四等级。 According to the server setting load amount and the number of remaining service users, the server with the largest number of remaining service users has the highest rating of the first level; the number of remaining service users of the server is lower than the set range, where the remaining number of users is set to 100 units, continue to score according to the CPU usage, and the score of the CPU usage is lower than the second level; the number of remaining service users in the server is lower than the set range, and the CPU usage is higher than the set range, where the CPU is occupied. The rate setting range is 70%, and the score is continued according to the memory usage. The score with less memory usage is the third level; the number of remaining service users in the server reaches a certain range, and the CPU usage is higher than the set range and memory. Above the setting range, where the memory usage setting range is 70%, and then based on the visitor's IP geographic location score, the distance between the visitor's IP geographic location and the server's IP geographic location is recently rated as the fourth level.
[30] S50: DNS服务器根据评分等级, 从集群服务器 IP列表中选择最合适的服务器 I P为用户提供网络服务,所述 DNS服务器选择服务器的等级顺序为: 第一等级、 第 二等级、 第三等级、 第四等级。  [30] S50: The DNS server selects the most suitable server IP from the cluster server IP list according to the rating level to provide network services for the user, and the hierarchical order of the DNS server selection server is: first level, second level, third Level, fourth level.
[31] 为了更具体的说明本发明方法和系统, 请同吋参考图 2, 所示为本发明集群服 务器智能调度系统的结构示意图; 系统包括: [31] In order to more specifically explain the method and system of the present invention, please refer to FIG. 2, which shows the cluster service of the present invention. Schematic diagram of the intelligent scheduling system of the server; the system includes:
[32] 一组集群服务器, 包括服务器 1、 服务器 2、 服务器 3以及服务器 4, 每台服务器 上对应设置一个反馈模块 1、 2、 3、 4, 用于收集各个服务器 1、 2、 3、 4的运行 状态的实吋信息, 实吋信息包括服务器的 CPU占用率、 内存占用率、 服务器设置 负载量以及剩余服务用户数; [32] A group of cluster servers, including server 1, server 2, server 3, and server 4, each of which is provided with a feedback module 1, 2, 3, 4 for collecting each server 1, 2, 3, 4 The actual information of the running status, the actual information includes the CPU usage of the server, the memory usage, the server setting load, and the number of remaining service users;
[33] 一个与组集群服务器相连的状态数据库, 根据反馈模块收集的各个服务器的运 行状态的实吋信息, 该状态数据库用于记录服务器运行状态的实吋信息; [33] A state database connected to the group cluster server, based on the actual information of the running status of each server collected by the feedback module, the state database is used to record the actual information of the running state of the server;
[34] 一个与状态数据库相连的 IP地址数据库, 该 IP地址数据库中记录着每个服务器 的 IP地址以及对应服务器的 IP地址的地理位置和网络运营商信息, 网络运营商信 息包括电信和网通; [34] An IP address database connected to the state database, the IP address database records the IP address of each server and the geographical location of the corresponding server and network operator information, and the network operator information includes telecommunications and Netcom;
[35] 一个与 IP地址数据库相连的 DNS服务器, 包括一个集群服务器 IP列表, 为提供 相同服务的服务器集群分配相同的域名, 根据状态数据库中的运行状态以及访 问者的 IP信息实吋的为每台服务器进行评分, 所述 DNS服务器内还包含一个 IP自 动査询模块, DNS服务器接收到访问者的访问请求吋, IP自动査询模块将自动査 询出访问者的 IP的地理位置, DNS根据访问者的 IP的地理位置、 每个网络服务器 的具体地理位置和网络运营商信息以及每个网络服务器运行状态的实吋信息对 各个网络服务器进行评分。  [35] A DNS server connected to the IP address database, including a cluster server IP list, assigning the same domain name to the server cluster providing the same service, according to the running status in the state database and the IP information of the visitor. The server performs scoring. The DNS server further includes an IP automatic query module. After the DNS server receives the visitor's access request, the IP automatic query module will automatically query the geographical location of the visitor's IP. Each web server is scored by the geographical location of the visitor's IP, the specific geographic location of each web server and network operator information, and the actual information of each network server's operational status.
[36] DNS服务器评分原则顺序具体如下: 首先优先根据反馈模块提供的服务器的 CP U占用率、 内存占用率、 服务器设置负载量以及剩余服务用户数比较, 服务器设 置负载量以及剩余服务用户数最多的服务器评分最高为第一等级; 在服务器的 剩余服务用户数低于到设定的范围吋, 根据 CPU占用率继续评分, CPU占用率少 的评分为第二等级; 在服务器的剩余服务用户数低于设定的范围, 同吋 CPU占用 率高于设定范围吋, 再根据内存占用率继续评分, 内存占用率少的评分为第三 等级; 在服务器的剩余服务用户低于设定范围, 同吋 CPU占用率高于设定范围以 及内存高于设定范围吋, 再根据访问者的 IP地理位置评分, 访问者的 IP地理位置 与服务器的 IP地理位置的距离最近评分为第四等级; 用户剩余数设定范围为 100 台, CPU占用率设定范围为 70%, 内存占用率设定范围为 70%, DNS服务器选择 服务器的等级顺序为: 第一等级、 第二等级、 第三等级、 第四等级。 得出服务 器的评分等级, 根据评分等级选择最合适的服务器 IP为用户提供网络服务。 [36] The DNS server scoring principle sequence is as follows: Firstly, according to the CP U occupancy rate, memory occupancy rate, server setting load amount and remaining service users of the server provided by the feedback module, the server sets the load amount and the number of remaining service users. The server score is up to the first level; after the number of remaining service users of the server is lower than the set range, the score is continued according to the CPU usage, and the score with less CPU usage is the second level; the number of remaining service users at the server If the CPU usage is lower than the set range, and the CPU usage is higher than the set range, the score will continue to be scored according to the memory usage. The score with less memory usage is the third level; the remaining service users of the server are lower than the set range. If the CPU usage of the peer is higher than the set range and the memory is higher than the set range, and then according to the IP geographic location of the visitor, the distance between the IP address of the visitor and the IP geographic location of the server is recently scored as the fourth level; The user remaining number is set to 100 units, the CPU usage setting range is 70%, and the memory usage setting range is With a range of 70%, the DNS server selects the server in the order of rank: first level, second level, third level, fourth level. Get service The rating level of the device is based on the rating level to select the most appropriate server IP to provide users with network services.
[37] 实施例一 [37] Embodiment 1
[38] 服务器 1设置的负载量为 2000台已经有 1800个用户访问, 剩余负载量为 200台, CPU占用率为 60% , 内存占用率为 71% ; 服务器 2设置的负载量为 2200台已经有 1 800个用户访问, 剩余负载量为 400台, CPU占用率为 55% , 内存占用率为 69%、 服务器 3设置的负载量为 1900台已经有 1650个用户访问, 剩余负载量为 250台, C PU占用率为 73% , 内存占用率为 71%; 以及服务器 4负载量为 2100台已经有 1800 个用户访问, 剩余负载量为 300台, CPU占用率为 64% , 内存占用率为 70%。  [38] The load of server 1 is 2,000, and the remaining load is 200. The CPU usage is 60% and the memory usage is 71%. The load set by server 2 is 2,200. There are 1 800 users accessing, the remaining load is 400, the CPU usage is 55%, the memory usage is 69%, the load set by server 3 is 1,900, and there are already 1,650 users, and the remaining load is 250. The CPU usage rate is 73% and the memory usage is 71%. The server 4 load is 2,100 units and has 1,800 users. The remaining load is 300, the CPU usage is 64%, and the memory usage is 70%. %.
[39] 由反馈模块 1、 2、 3、 4将上述数据反馈至状态数据库, 由于 4台服务器的剩余 负载量分别为 200、 400、 250、 300, 均大于设定的剩余负载量 100, DNS将不考 虑服务器 1、 2、 3、 4的 CPU占用率和内存占用率数据, 服务器 2的得分等级为第 一等级, 直接选定服务器 2为用户提供服务。  [39] The above data is fed back to the status database by the feedback modules 1, 2, 3, 4, because the remaining load of the four servers is 200, 400, 250, 300, respectively, which are greater than the set remaining load 100, DNS The CPU usage and memory occupancy data of the servers 1, 2, 3, and 4 will not be considered, and the score level of the server 2 is the first level, and the server 2 is directly selected to provide services for the user.
[40] 实施例二  [40] Example 2
[41] 服务器 1设置的负载量为 2000台已经有 1950个用户访问, 剩余负载量为 50台, C PU占用率为 60%, 内存占用率为 71%; 服务器 2设置的负载量为 2200台已经有 214 0个用户访问, 剩余负载量为 60台, CPU占用率为 55% , 内存占用率为 69%、 月艮 务器 3设置的负载量为 1900台已经有 1830个用户访问, 剩余负载量为 70台, CPU 占用率为 73% , 内存占用率为 71% ; 以及服务器 4负载量为 2100台已经有 2020个 用户访问, 剩余负载量为 300台, CPU占用率为 64% , 内存占用率为 70%。  [41] The load of server 1 is 2,000, and there are already 1950 users. The remaining load is 50, the CPU usage is 60%, and the memory usage is 71%. The load set by server 2 is 2,200. There are already 214 0 users accessing, the remaining load is 60, the CPU usage is 55%, the memory usage is 69%, and the load set by the server 3 is 1,900 users have access to 1830 users. The number is 70, the CPU usage is 73%, the memory usage is 71%; and the server 4 load is 2100, which has 2020 users access, the remaining load is 300, the CPU usage is 64%, the memory is occupied. The rate is 70%.
[42] 由反馈模块 1、 2、 3、 4将上述数据反馈至状态数据库, 由于 4台服务器的剩余 负载量分别为 50、 60、 70、 80, 均大于设定的剩余负载量 100, DNS将不考虑服 务器 1、 2、 3、 4的剩余负载量, 根据 CPU占用率分别为 60%、 55% 73%、 64% , 则服务器 2的 CPU占用率小于设定值 70%而且最小, 因此得分最高, 服务器 2的 得分等级为第二等级, 直接选定服务器 2为用户提供服务。  [42] The above data is fed back to the status database by the feedback modules 1, 2, 3, 4, because the remaining load of the four servers is 50, 60, 70, 80, respectively, which are greater than the set remaining load 100, DNS The remaining load of the servers 1, 2, 3, and 4 will not be considered. According to the CPU usage of 60%, 55%, 73%, and 64%, the CPU usage of the server 2 is less than the set value of 70% and the minimum, so The score is the highest, and the score of the server 2 is the second level, and the server 2 is directly selected to provide services for the user.
[43] 实施例三  [43] Example 3
[44] 服务器 1设置的负载量为 2000台已经有 1950个用户访问, 剩余负载量为 50台, C PU占用率为 71% , 内存占用率为 67%; 服务器 2设置的负载量为 2200台已经有 214 0个用户访问, 剩余负载量为 60台, CPU占用率为 72% , 内存占用率为 66%、 月艮 务器 3设置的负载量为 1900台已经有 1830个用户访问, 剩余负载量为 70台, CPU 占用率为 73% , 内存占用率为 65% ; 以及服务器 4负载量为 2100台已经有 2020个 用户访问, 剩余负载量为 300台, CPU占用率为 74% , 内存占用率为 64%。 [44] The load of server 1 is 2,000, and there are already 1950 users. The remaining load is 50, the CPU usage is 71%, the memory usage is 67%, and the load set by server 2 is 2,200. There are already 214 0 users accessing, the remaining load is 60, the CPU usage is 72%, the memory usage is 66%, the monthly 艮 The load capacity set by server 3 is 1,900 users have access, the remaining load is 70, the CPU usage is 73%, the memory occupancy is 65%; and the server 4 load is 2100, there are already 2020 User access, the remaining load is 300, the CPU usage is 74%, and the memory usage is 64%.
[45] 由反馈模块 1、 2、 3、 4将上述数据反馈至状态数据库, 由于 4台服务器的剩余 负载量分别为 50、 60、 70、 80, 均大于设定的剩余负载量 100, 且 CPU占用率分 别为 71%、 72% 73% 74% , 均高于设定值 70% , DNS将不考虑服务器 1、 2、 3 、 4的剩余负载量和 CPU占用率, 根据内存占用率分别为 67%、 66% 65% 64% , 则服务器 4的内存占用率小于设定值 70%最小, 因此得分最高, 服务器 4的得分 等级为第三等级, 直接选定服务器 4为用户提供服务。  [45] The above data is fed back to the status database by the feedback modules 1, 2, 3, 4, since the remaining loads of the four servers are 50, 60, 70, 80, respectively, which are greater than the set remaining load 100, and The CPU usage is 71%, 72%, 73%, 74%, respectively, which are higher than the set value of 70%. The DNS will not consider the remaining load and CPU usage of the servers 1, 2, 3, and 4, respectively, according to the memory usage. If the memory usage of the server 4 is less than the set value of 70%, the score is the highest, and the score level of the server 4 is the third level, and the server 4 is directly selected to provide services for the user.
[46] 实施例四  [46] Embodiment 4
[47] 服务器 1设置的负载量为 2000台已经有 1950个用户访问, 剩余负载量为 50台, C PU占用率为 71% , 内存占用率为 71%; 服务器 2设置的负载量为 2200台已经有 214 0个用户访问, 剩余负载量为 60台, CPU占用率为 72% , 内存占用率为 72%、 月艮 务器 3设置的负载量为 1900台已经有 1830个用户访问, 剩余负载量为 70台, CPU 占用率为 73% , 内存占用率为 73% ; 以及服务器 4负载量为 2100台已经有 2020个 用户访问, 剩余负载量为 300台, CPU占用率为 74% , 内存占用率为 74%。  [47] The load of server 1 is 2,000, and there are already 1950 users. The remaining load is 50, the CPU usage is 71%, the memory usage is 71%, and the load set by server 2 is 2,200. There are already 214 0 users accessing, the remaining load is 60, the CPU usage is 72%, the memory occupancy is 72%, and the load set by the server 3 is 1,900 users have access to 1830 users, the remaining load The number is 70, the CPU usage is 73%, the memory usage is 73%; and the server 4 load is 2100, which has 2020 users accessing, the remaining load is 300, the CPU usage is 74%, the memory is occupied. The rate is 74%.
[48] 由反馈模块 1、 2、 3、 4将上述数据反馈至状态数据库, 由于 4台服务器的剩余 负载量分别为 50、 60、 70、 80, 均大于设定的剩余负载量 100, 且 CPU和内存占 用率和分别为 71%、 72% 73% 74% , 均高于设定值 70% , DNS将不考虑服务 器 1、 2、 3、 4的剩余负载量和 CPU和内存占用率, 根据访问者 IP地理位置与服务 器之间的地理位置, 选择出与访问者地理位置最近的服务器, 例如服务器 2与访 问者地理位置最近, 则服务器 2得分最高, 服务器 2的得分等级为第四等级, 直 接选定服务器 2为用户提供服务。  [48] The above data is fed back to the state database by the feedback modules 1, 2, 3, 4, since the remaining loads of the four servers are 50, 60, 70, 80, respectively, which are greater than the set remaining load 100, and The CPU and memory usage are 71%, 72%, 73%, and 74%, respectively, which are higher than the set value of 70%. The DNS will not consider the remaining load of the servers 1, 2, 3, and 4 and the CPU and memory usage. According to the geographic location of the visitor IP and the geographical location between the servers, the server closest to the geographical location of the visitor is selected. For example, if the server 2 is closest to the visitor, the server 2 has the highest score, and the score of the server 2 is the fourth rank. Directly select server 2 to provide services to users.
[49] 图 3为对图 2所示的智能调度系统的一种改进, 其中所述状态数据库和 IP地址数 据库均设置于 DNS服务器内。  [49] FIG. 3 is a modification of the intelligent scheduling system shown in FIG. 2, wherein the state database and the IP address database are both set in the DNS server.
另外对图 3所示的智能调度系统的一种改进 (未图示) , 还包括一台以上与 DN S服务器相连的备用 DNS服务器, DNS服务器的数据与备用 DNS服务器的数据实 吋同步更新, 当 DNS服务器出现故障吋, 由备用 DNS服务器继续工作。 [51] 以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡在本发明的 精神和原则之内所作的任何修改、 等同替换和改进等, 均应包含在本发明的保 护范围之内。 In addition, an improvement (not shown) of the intelligent scheduling system shown in FIG. 3 further includes one or more standby DNS servers connected to the DN S server, and the data of the DNS server is updated synchronously with the data of the standby DNS server. When the DNS server fails, it continues to work by the alternate DNS server. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalents, and improvements made within the spirit and scope of the present invention should be included in the present invention. Within the scope of protection of the invention.

Claims

权利要求书 Claim
[Claim 1] 1、 一种集群服务器智能调度的方法, 其特征在于, 包括以下步骤 步骤 A: 建立一个状态数据库, 该状态数据库用于记录服务器运行 状态的实吋信息;  [Claim 1] 1. A cluster server intelligent scheduling method, comprising the following steps: Step A: establishing a state database, the state database is used to record actual information of a server running state;
步骤 B: 建立一个 IP地址数据库, 该 IP地址数据库中记录着每个服 务器的 IP地址以及与服务器的 IP地址对应的对应信息;  Step B: Establish an IP address database, where the IP address of each server records corresponding information corresponding to the IP address of the server;
C: 在每台服务器上设置一个反馈模块, 用于收集该服务器的运行 状态的实吋信息, 并实吋反馈并更新到状态数据库中;  C: Set a feedback module on each server to collect the actual information of the running status of the server, and feedback and update to the status database;
D: 建立一个 DNS服务器, 该 DNS服务器包括一个集群服务器 IP列 表, 为提供相同服务的集群服务器分配相同的域名, 根据状态数 据库中的运行状态以及访问者的 IP信息实吋的为每台服务器进行 评分, 得出服务器评分等级;  D: Establish a DNS server, which includes a cluster server IP list, assign the same domain name to the cluster server providing the same service, and perform each server according to the running status in the state database and the IP information of the visitor. Rating, resulting in a server rating rating;
E: DNS服务器根据评分等级, 从集群服务器 IP列表中选择服务器 IP为用户提供网络服务。  E: The DNS server selects the server IP from the cluster server IP list according to the rating level to provide network services for the user.
[Claim 2] 2、 如权利要求 1所述的集群服务器智能调度的方法, 其特征在于[Claim 2] 2. The cluster server intelligent scheduling method according to claim 1, characterized in that
: 所述步骤 B中, 所述与服务器的 IP地址对应的对应信息包括服务 器的地理位置和网络运营商信息, 网络运营商信息包括电信和网 通。 In the step B, the corresponding information corresponding to the IP address of the server includes the geographic location of the server and the network operator information, and the network operator information includes the telecommunications and the network communication.
[Claim 3] 3、 如权利要求 2所述的集群服务器智能调度的方法, 其特征在于 [Claim 3] 3. The cluster server intelligent scheduling method according to claim 2, characterized in that
: 所述步骤 C中反馈模块收集的实吋信息包括服务器的 CPU占用率 、 内存占用率、 服务器设置负载量以及剩余服务用户数, 所述反 馈模块间隔 5秒即将实吋信息反馈并更新到状态数据库中。 The actual information collected by the feedback module in the step C includes the CPU usage of the server, the memory usage, the server setting load, and the number of remaining service users. The feedback module is about 5 seconds to feedback and update the status to the status. In the database.
[Claim 4] 4、 如权利要求 3所述的集群服务器智能调度的方法, 其特征在于 [Claim 4] 4. The cluster server intelligent scheduling method according to claim 3, characterized in that
: 所述步骤 D中, DNS服务器内包含一个 IP自动査询模块, DNS服 务器接收到访问者的访问请求吋, IP自动査询模块将自动査询出 访问者的 IP的地理位置, DNS根据访问者的 IP的地理位置、 每个网 络服务器的具体地理位置和网络运营商信息以及每个网络服务器 运行状态的实吋信息对各个网络服务器进行评分。 In the step D, the DNS server includes an IP automatic query module. After the DNS server receives the visitor's access request, the IP automatic query module will automatically query the geographical location of the visitor's IP, and the DNS access is based on the access. Geographic location of the IP, specific geographic location of each network server and network operator information, and each network server The actual status of the running status scores each web server.
[Claim 5] 5、 如权利要求 4所述的集群服务器智能调度的方法, 其特征在于 [Claim 5] 5. The cluster server intelligent scheduling method according to claim 4, characterized in that
: 所述 DNS服务器评分等级由高到低依次为: 第一等级、 第二等 级、 第三等级和第四等级; 其中, 优先根据反馈模块提供的服务 器的 CPU占用率、 内存占用率、 服务器设置负载量以及剩余服务 用户数比较, 根据服务器设置负载量以及剩余服务用户数, 其中 剩余负载数量最多的服务器评分为第一等级; 在服务器的剩余服 务用户数低于设定范围吋, 根据 CPU占用率继续评分, CPU占用 率少的评分为第二等级; 在服务器的剩余服务用户数低于设定范 围, 同吋 CPU占用率高于设定范围吋, 再根据内存占用率继续评 分, 内存占用率少的评分为第三等级; 在服务器的剩余服务用户 数低于设定范围, 同吋 CPU占用率高于设定范围以及内存高于设 定范围吋, 再根据访问者的 IP地理位置评分, 访问者的 IP地理位置 与服务器的 IP地理位置的距离最近评分为第四等级。 The priority level of the DNS server is: first level, second level, third level, and fourth level; wherein, according to the CPU usage, memory usage, and server settings of the server provided by the feedback module The load amount and the number of remaining service users are compared. According to the server setting load amount and the number of remaining service users, the server with the largest remaining load scores the first level; after the number of remaining service users of the server is lower than the set range, according to the CPU usage Rate continues to score, the score of less CPU usage is the second level; the number of remaining service users in the server is lower than the set range, and the CPU usage is higher than the set range, and then continues to score according to the memory usage, memory usage The score with low rate is the third level; the number of remaining service users on the server is lower than the set range, the CPU usage is higher than the set range and the memory is higher than the set range, and then the IP rating of the visitor is used. , the distance between the IP location of the visitor and the IP location of the server is recently rated as The fourth level.
[Claim 6] 6、 如权利要求 5所述的集群服务器智能调度的方法, 其特征在于 [Claim 6] 6. The cluster server intelligent scheduling method according to claim 5, characterized in that
: 所述用户剩余数设定范围为 100台, 所述 CPU占用率设定范围为 70% , 所述内存占用率设定范围为 70% , 所述 DNS服务器选择服务 器的等级顺序为: 第一等级、 第二等级、 第三等级、 第四等级。 The setting of the number of remaining users is 100, the CPU usage setting range is 70%, the memory usage setting range is 70%, and the ranking order of the DNS server selection server is: Level, second level, third level, fourth level.
[Claim 7] 7、 一种多服务器智能调度的系统, 其特征在于, 该系统包括: 一组集群服务器, 每台服务器上设置一个反馈模块, 用于收集各 个服务器的运行状态的实吋信息, 实吋信息包括服务器的 CPU占 用率、 内存占用率、 服务器设置负载量以及剩余服务用户数; 一个与组集群服务器相连的状态数据库, 根据反馈模块收集的各 个服务器的运行状态的实吋信息, 该状态数据库用于记录服务器 运行状态的实吋信息;  [Claim 7] 7. A multi-server intelligent scheduling system, characterized in that: the system comprises: a group of cluster servers, each server is provided with a feedback module for collecting actual information of the running status of each server, The actual information includes the CPU usage of the server, the memory usage, the server setting load, and the number of remaining service users; a state database connected to the group cluster server, according to the actual information of the running status of each server collected by the feedback module, The state database is used to record the actual information of the running state of the server;
一个与状态数据库相连的 IP地址数据库, 该 IP地址数据库中记录着 每个服务器的 IP地址以及对应服务器的 IP地址的地理位置和网络运 营商信息, 网络运营商信息包括电信和网通; 一个与 IP地址数据库相连的 DNS服务器, 包括一个集群服务器 IP列 表, 为提供相同服务的服务器集群分配相同的域名, 根据状态数 据库中的运行状态以及访问者的 IP信息实吋的为每台服务器进行 评分, 得出服务器的评分等级, 根据评分等级选择服务器 IP为用 户提供网络服务。 An IP address database connected to the state database, the IP address database records the IP address of each server and the geographical location of the corresponding server and network operator information, and the network operator information includes telecommunications and Netcom; A DNS server connected to the IP address database, including a cluster server IP list, assigning the same domain name to the server clusters providing the same service, and performing actual operations for each server according to the running status in the state database and the IP information of the visitor. The score is obtained by the server's rating level, and the server IP is selected according to the rating level to provide the user with network services.
[Claim 8] 8、 如权利要求 7所述的多服务器智能调度的系统, 其特征在于: 所述状态数据库和 IP地址数据库均设置于 DNS服务器内, 所述 DN S服务器内还包含一个 IP自动査询模块, DNS服务器接收到访问者 的访问请求吋, IP自动査询模块将自动査询出访问者的 IP的地理位 置, DNS根据访问者的 IP的地理位置、 每个网络服务器的具体地 理位置和网络运营商信息以及每个网络服务器运行状态的实吋信 息对各个网络服务器进行评分。  [Claim 8] 8. The multi-server intelligent scheduling system according to claim 7, wherein: the state database and the IP address database are both disposed in a DNS server, and the DN S server further includes an IP automatic Query module, after the DNS server receives the visitor's access request, the IP automatic query module will automatically query the geographical location of the visitor's IP, and the DNS will be based on the geographic location of the visitor's IP and the specific geographic location of each web server. Each web server is scored by location and network operator information and actual information about the operational status of each web server.
[Claim 9] 9、 如权利要求 7所述的多服务器智能调度的系统, 其特征在于: 所述 DNS服务器评分等级由高到低依次为: 第一等级、 第二等级 、 第三等级和第四等级; 其中, 优先根据反馈模块提供的服务器 的 CPU占用率、 内存占用率、 服务器设置负载量以及剩余服务用 户数比较, 根据服务器设置负载量以及剩余服务用户数, 剩余服 务用户数最多的服务器评分为第一等级; 在服务器的剩余服务用 户数低于到设定范围吋, 根据 CPU占用率继续评分, CPU占用率 少的评分为第二等级; 在服务器的剩余服务用户数低于设定的范 围, 同吋 CPU占用率高于设定范围吋, 再根据内存占用率继续评 分, 内存占用率少的评分为第三等级; 在服务器的剩余服务用户 数低于设定范围, 同吋 CPU占用率高于设定范围内以及内存高于 设定范围吋, 再根据访问者的 IP地理位置评分, 访问者的 IP地理位 置与服务器的 IP地理位置的距离最近评分为第四等级; 所述用户 剩余数设定范围为 100台, 所述 CPU占用率设定范围为 70% , 所述 内存占用率设定范围为 70%, 所述 DNS服务器选择服务器的等级 顺序为: 第一等级、 第二等级、 第三等级、 第四等级。 [Claim 10] 10、 如权利要求 9所述的多服务器智能调度的系统, 其特征在于: [Claim 9] 9. The multi-server intelligent scheduling system according to claim 7, wherein: the rating level of the DNS server is from high to low: first level, second level, third level, and Four levels; among them, according to the CPU usage, memory usage, server setting load, and remaining service users provided by the feedback module, according to the server setting load and the number of remaining service users, the server with the largest number of remaining users The score is the first level; after the number of remaining service users of the server is lower than the set range, the score is continued according to the CPU usage, and the score of the CPU usage is less than the second level; the number of remaining service users on the server is lower than the setting. The range, the same CPU usage is higher than the set range, and then continue to score according to the memory occupancy rate, the memory occupancy rate is less than the third level; the number of remaining service users in the server is lower than the set range, the same CPU When the occupancy rate is higher than the set range and the memory is higher than the set range, the score is based on the visitor's IP location. The distance between the IP address of the IP address of the visitor and the IP address of the server is the fourth highest level; the set number of the remaining user is 100, and the CPU usage setting range is 70%, and the memory usage rate is The setting range is 70%, and the ranking order of the DNS server selection server is: first level, second level, third level, fourth level. [Claim 10] 10. The multi-server intelligent scheduling system according to claim 9, wherein:
还包括一台以上与 DNS服务器相连的备用 DNS服务器, DNS服务 器的数据与备用 DNS服务器的数据实吋同步更新, 当 DNS服务器 出现故障吋, 由备用 DNS服务器继续工作。  It also includes more than one alternate DNS server connected to the DNS server. The data of the DNS server is updated synchronously with the data of the alternate DNS server. When the DNS server fails, the backup DNS server continues to work.
PCT/CN2009/076279 2009-06-30 2009-12-30 Method and system for intelligently scheduling cluster servers WO2011000199A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2009101084198A CN101938504A (en) 2009-06-30 2009-06-30 Cluster server intelligent dispatching method and system
CN200910108419.8 2009-06-30

Publications (1)

Publication Number Publication Date
WO2011000199A1 true WO2011000199A1 (en) 2011-01-06

Family

ID=43391632

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/076279 WO2011000199A1 (en) 2009-06-30 2009-12-30 Method and system for intelligently scheduling cluster servers

Country Status (2)

Country Link
CN (1) CN101938504A (en)
WO (1) WO2011000199A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106101218A (en) * 2016-06-12 2016-11-09 乐视控股(北京)有限公司 The report method of terminal data and device
CN114675956A (en) * 2022-04-14 2022-06-28 三峡智控科技有限公司 Method for configuration and scheduling of Pod between clusters based on Kubernetes
CN115001854A (en) * 2022-07-18 2022-09-02 江苏艾盾网络科技有限公司 Big data-based tracing-prevention server cluster management and control system and method
CN116132448A (en) * 2023-02-10 2023-05-16 平安科技(深圳)有限公司 Data distribution method based on artificial intelligence and related equipment
CN116132448B (en) * 2023-02-10 2024-05-03 平安科技(深圳)有限公司 Data distribution method based on artificial intelligence and related equipment

Families Citing this family (40)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611763A (en) * 2011-01-25 2012-07-25 中国移动通信集团公司 DNS (Domain Name Server) inquiring method and equipment
CN103685469B (en) * 2011-06-15 2017-06-23 北京奇虎科技有限公司 Document down loading method and system and client based on P2P
CN102223411B (en) * 2011-06-15 2013-12-25 奇智软件(北京)有限公司 Method and system for downloading file by adopting P2P (Peer-to-Peer) technology and client side
CN102420867A (en) * 2011-12-01 2012-04-18 浪潮电子信息产业股份有限公司 Cluster storage entry resolution method based on real-time load balancing mechanism
CN102710465A (en) * 2012-06-07 2012-10-03 浪潮电子信息产业股份有限公司 Method for monitoring cluster storage interface node load
CN102932440A (en) * 2012-10-26 2013-02-13 北京奇虎科技有限公司 Data management method, equipment and system for distributed data storage system
CN103795766B (en) * 2012-11-02 2018-11-23 腾讯科技(深圳)有限公司 A kind of P2SP multi-source download system
CN103684885B (en) * 2013-12-31 2017-03-29 新浪网技术(中国)有限公司 A kind of Website server access exception determines method and device
CN103716402B (en) * 2013-12-31 2017-08-29 北京邮电大学 The selection system and method for server
CN103780715B (en) * 2014-01-29 2018-02-27 百度在线网络技术(北京)有限公司 Domain name mapping implementation method, client and Cloud Server
CN104899092B (en) * 2014-03-03 2019-08-20 上海携程商务有限公司 JOB distribution system and method
CN105335209A (en) * 2014-06-19 2016-02-17 联想(北京)有限公司 Virtual machine scheduling method, electronic device and server
CN104506609B (en) * 2014-12-22 2018-03-27 合一网络技术(北京)有限公司 Automatic monitoring server state simultaneously adaptively adjusts the method and its device of service
CN104660707B (en) * 2015-03-09 2018-06-05 浙江万朋教育科技股份有限公司 A kind of method of the proxy server equilibrium assignment based on geographical location
CN104993953B (en) * 2015-06-19 2019-02-26 北京奇虎科技有限公司 The method and apparatus for detecting network service state
CN104954189A (en) * 2015-07-07 2015-09-30 上海斐讯数据通信技术有限公司 Automatic server cluster detecting method and system
CN106487840A (en) * 2015-08-27 2017-03-08 中国移动通信集团公司 A kind of determination method of content server, platform and dispatch server
CN105282230B (en) * 2015-09-11 2018-05-04 中国人民解放军63796部队 A kind of hard real time computer cluster dynamic scheduling system
CN105553766A (en) * 2015-12-12 2016-05-04 天津南大通用数据技术股份有限公司 Monitoring method of abnormal node dynamic tracking cluster node state
CN105635263B (en) * 2015-12-25 2019-03-05 中国民航信息网络股份有限公司 Access processing method and adapter based on backstage caching
CN105721552B (en) * 2016-01-22 2019-05-17 深圳市瑞驰信息技术有限公司 A kind of method and DNS system for realizing dynamic load leveling based on DNS
CN107294922A (en) * 2016-03-31 2017-10-24 阿里巴巴集团控股有限公司 A kind of network address dispatching method and device for tackling network attack
CN105872061B (en) * 2016-04-01 2018-10-09 浪潮电子信息产业股份有限公司 A kind of server set group managing means, apparatus and system
CN106060131B (en) * 2016-05-26 2019-10-11 新华三技术有限公司 A kind of method and apparatus for distributing dns server
CN106850556A (en) * 2016-12-22 2017-06-13 北京小米移动软件有限公司 service access method, device and equipment
CN107087014B (en) * 2017-01-24 2020-12-15 无锡英威腾电梯控制技术有限公司 Load balancing method and controller thereof
CN107547643B (en) * 2017-08-29 2021-06-29 新华三技术有限公司 Load sharing method and device
CN107547563A (en) * 2017-09-25 2018-01-05 新华三信息安全技术有限公司 A kind of authentication method and device
CN107635015B (en) * 2017-10-25 2020-11-24 深圳市和讯华谷信息技术有限公司 Optimal path selection system and method for linking mobile terminal and server
CN109040197A (en) * 2018-07-13 2018-12-18 中天宽带技术有限公司 A kind of intelligent gateway management system and method based on web SiteServer LBS
CN109347944A (en) * 2018-10-11 2019-02-15 郑州云海信息技术有限公司 A kind of domain name analytic method and device
CN109819066A (en) * 2019-01-31 2019-05-28 平安科技(深圳)有限公司 A kind of intelligently parsing field name method and device based on geographical location
CN109936567A (en) * 2019-02-01 2019-06-25 国美网安科技有限公司 Detection method, device, electronic equipment and the storage medium of log-on message
CN109901927A (en) * 2019-02-21 2019-06-18 国泰君安证券股份有限公司 Intelligent Task dynamic scheduling system and its method
CN110245015B (en) * 2019-03-01 2021-07-27 浙江工业大学 Optimal binary exchange-based server optimal scheduling method
CN110266830A (en) * 2019-06-17 2019-09-20 四川长虹电器股份有限公司 The restorative procedure and system that domain name system is kidnapped
CN110362400B (en) * 2019-06-17 2022-06-17 中国平安人寿保险股份有限公司 Resource cache allocation method, device, equipment and storage medium
CN111629078A (en) * 2019-07-12 2020-09-04 国铁吉讯科技有限公司 Server scheduling method and device and server scheduling system
CN111240836A (en) * 2020-01-06 2020-06-05 北京百度网讯科技有限公司 Computing resource management method and device, electronic equipment and storage medium
CN111274029A (en) * 2020-01-15 2020-06-12 北京奇艺世纪科技有限公司 Cluster scheduling method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6119143A (en) * 1997-05-22 2000-09-12 International Business Machines Corporation Computer system and method for load balancing with selective control
CN1434393A (en) * 2003-02-24 2003-08-06 武汉大学 Dynamic loading balance method for cluster server
CN101115016A (en) * 2007-08-23 2008-01-30 创新科存储技术(深圳)有限公司 Method and system for implementing application server load balancing
CN101431520A (en) * 2008-12-24 2009-05-13 金蝶软件(中国)有限公司 Method for establishing connection, method for re-orienting connection and correlated equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1495634A (en) * 2002-06-27 2004-05-12 上海汉唐科技有限公司 Server clustering load balancing method and system
CN101079884B (en) * 2007-03-27 2010-11-10 腾讯科技(深圳)有限公司 A method, system and device for client login to service server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6119143A (en) * 1997-05-22 2000-09-12 International Business Machines Corporation Computer system and method for load balancing with selective control
CN1434393A (en) * 2003-02-24 2003-08-06 武汉大学 Dynamic loading balance method for cluster server
CN101115016A (en) * 2007-08-23 2008-01-30 创新科存储技术(深圳)有限公司 Method and system for implementing application server load balancing
CN101431520A (en) * 2008-12-24 2009-05-13 金蝶软件(中国)有限公司 Method for establishing connection, method for re-orienting connection and correlated equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106101218A (en) * 2016-06-12 2016-11-09 乐视控股(北京)有限公司 The report method of terminal data and device
CN114675956A (en) * 2022-04-14 2022-06-28 三峡智控科技有限公司 Method for configuration and scheduling of Pod between clusters based on Kubernetes
CN114675956B (en) * 2022-04-14 2022-08-30 三峡智控科技有限公司 Method for configuration and scheduling of Pod between clusters based on Kubernetes
CN115001854A (en) * 2022-07-18 2022-09-02 江苏艾盾网络科技有限公司 Big data-based tracing-prevention server cluster management and control system and method
CN116132448A (en) * 2023-02-10 2023-05-16 平安科技(深圳)有限公司 Data distribution method based on artificial intelligence and related equipment
CN116132448B (en) * 2023-02-10 2024-05-03 平安科技(深圳)有限公司 Data distribution method based on artificial intelligence and related equipment

Also Published As

Publication number Publication date
CN101938504A (en) 2011-01-05

Similar Documents

Publication Publication Date Title
WO2011000199A1 (en) Method and system for intelligently scheduling cluster servers
US10771541B2 (en) Automated management of content servers based on change in demand
US7441045B2 (en) Method and system for balancing load distribution on a wide area network
US8261116B2 (en) Distribution of network communications based on server power consumption
Cardellini et al. Redirection algorithms for load sharing in distributed Web-server systems
Colajanni et al. Analysis of task assignment policies in scalable distributed Web-server systems
WO2020019472A1 (en) Rating method for service node, domain name system (dns) scheduling method and server
US7657629B1 (en) Global server load balancing
US7949757B2 (en) Host-level policies for global server load balancing
US7086061B1 (en) Statistical tracking of global server load balancing for selecting the best network address from ordered list of network addresses based on a set of performance metrics
US20010049741A1 (en) Method and system for balancing load distribution on a wide area network
CN1921479B (en) Method and system for partaking load of flow media system
US20130007253A1 (en) Method, system and corresponding device for load balancing
CN109933431B (en) Intelligent client load balancing method and system
WO2021098407A1 (en) Mec-based service node allocation method and apparatus, and related server
US20050223096A1 (en) NAS load balancing system
US8156217B2 (en) Dynamically balancing load for servers
CN112202918B (en) Load scheduling method, device, equipment and storage medium for long connection communication
CN107835262A (en) A kind of streaming media server dynamical load distribution method
Colajanni et al. A performance study of robust load sharing strategies for distributed heterogeneous web server systems
Chang et al. Minimum latency server selection for heterogeneous cloud services
CN1625109A (en) Method and apparatus for virtualizing network resources
Moreno et al. On content delivery network implementation
Ramaswamy et al. Scalable delivery of dynamic content using a cooperative edge cache grid
CN114900524A (en) Load balancing and node delay reducing method for MQTT service

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09846727

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09846727

Country of ref document: EP

Kind code of ref document: A1