Method, system and DNS server for load balancing network servers
AssigneeTencent Technology (Shenzhen) Company Limited
InventorsYanzheng Wang, Xianneng Zou
Life of this patent
Estimating the term…
Abstract
Embodiments of the present invention provide a method, system and DNS server for load balancing network servers. The method includes: monitoring whether each network server is capable of providing a network service, deleting an IP address of a network server which is incapable of providing a network service from an IP list in a DNS server or setting the IP address as invalid in the IP list according to a monitoring result; receiving, by the DNS server, a request from a network user for accessing a network server, selecting an IP address from valid IP addresses in the IP list which corresponds to the request; providing, by a network server having the selected IP address, network services for the network user.
Claims6
A method for load balancing network servers, comprising:
- monitoring, by a network server status monitoring module, whether each network server is capable of providing a network service;
- deleting, by a Domain Name System (DNS) server from an IP list of the DNS server according to a monitoring result, an IP address of a network server incapable of providing a network service, or setting the IP address as invalid in the IP list;
- measuring, by a speed test server in each IDC, a web speed between the speed test server and each network user client, calculating an average of web speeds between the IDC and network user clients whose IP addresses belong to a same geographical location and belong to a same Internet Service Provider (ISP) according to the web speeds measured and the geographical location and ISP to which the network user clients belong;
- establishing a relation which associates the IDC, the average of the web speeds, the geographical location and ISP which the IP address of the network user client belongs to;
- receiving, by the DNS server, a request from a network user for accessing a network server, selecting, from the valid IP addresses in the IP list which corresponds to the request, an IP address of a network server in an IDC whose web speed satisfies a pre-determined condition according to the relation and the IP address of the network server client carried in the request;
- and
- monitoring, by a network server workload status monitoring module, a current workload condition of each network server;
- wherein selecting the IP address from the valid IP addresses in the IP list which corresponds to the request comprises:
- selecting an IP address of a network server whose workload condition satisfies a pre-determined condition from the valid IP addresses in the IP list which corresponds to the request.
A system for network server load balancing, comprising:
- a network server status monitoring module, a speed test module and a Domain Name System (DNS) server;
- wherein
- the network server status monitoring module is adapted to monitor whether each network server is capable of providing a network service, submitting a monitoring result to the DNS server;
- the speed test module is in each IDC and adapted to measure a web speed between the speed test server and each network user client, calculate an average of web speeds between the IDC and network user clients whose IP addresses belong to a same geographical location and belong to a same Internet Service Provider (ISP) according to the web speeds measured and the geographical location and ISP to which the network user clients belong, and establish a relation which associates the IDC, the average of the web speeds, the geographical location and ISP which the IP address of the network user client belongs to;
- the DNS server is adapted to delete an IP address of a network server incapable of providing a network service from an IP list of the DNS server or set the IP address of the network server incapable of providing a network service as invalid in the IP list according to the monitoring result;
- receive a request for accessing a network server from a network user;
- select, from the valid IP addresses in the IP list which corresponds to the request, an IP address of a network server in an IDC whose web speed satisfies a pre-determined condition according to the relation and the IP address of the network server client carried in the request;
- and
- monitoring, by a network server workload status monitoring module, a current workload condition of each network server;
- wherein selecting the IP address from the valid IP addresses in the IP list which corresponds to the request comprises:
- selecting an IP address of a network server whose workload condition satisfies a pre-determined condition from the valid IP addresses in the IP list which corresponds to the request.
Dependencies are inferred from the claim text.