CN104506605B - A kind of polling method between multiple servers - Google Patents

A kind of polling method between multiple servers Download PDF

Info

Publication number
CN104506605B
CN104506605B CN201410790926.5A CN201410790926A CN104506605B CN 104506605 B CN104506605 B CN 104506605B CN 201410790926 A CN201410790926 A CN 201410790926A CN 104506605 B CN104506605 B CN 104506605B
Authority
CN
China
Prior art keywords
server
facet
color value
adjacent
list
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201410790926.5A
Other languages
Chinese (zh)
Other versions
CN104506605A (en
Inventor
栾润峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jinher Software Co Ltd
Original Assignee
Beijing Jinher Software Co Ltd
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 Beijing Jinher Software Co Ltd filed Critical Beijing Jinher Software Co Ltd
Priority to CN201410790926.5A priority Critical patent/CN104506605B/en
Publication of CN104506605A publication Critical patent/CN104506605A/en
Application granted granted Critical
Publication of CN104506605B publication Critical patent/CN104506605B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses the polling method between a kind of multiple servers, including:Virtual server is divided, virtual server is associated with adjacent server;Sorted for adjacent server;In rounds of inquiries, according to the sequence, by adjacent server respond request one by one;The surface of server is divided into multiple facets;The faceted infrared measurement of temperature equipment of covering institute is set on the surface of machine box for server;Threedimensional model is established for server, and is also divided into multiple facets;Temperature value is converted into color value, and assigns corresponding color value to each facet in threedimensional model;Wherein, in poll, when the facet number more than pre-set color value exceedes default facet number, virtual server is forwarded the request to;When the facet number more than pre-set color value exceedes default facet number, the minimum adjacent server of the numerical value of the number of facet more than pre-set color value is forwarded the request to.The method of the present invention supports large user's amount, and balances the load of each server.

Description

A kind of polling method between multiple servers
Technical field
The present invention relates to a kind of method for being used to balance the load between multiple servers, more particularly to a kind of multiple services Polling method between device.
Background technology
Mobile solution refers to can be with self-defined installation and the software used, due to smart mobile phone, flat board etc. in mobile terminal The popularization of mobile communication equipment, the use of Mobile solution turn into many user's daily routines inalienable parts.User By various Mobile solutions (or " app ") with using identical mobile solution platform other people share they daily routines, shine Piece, video and idea.The exploitation of existing mobile applications is required for entrusting professional, and the construction cycle is grown, costly, Common user can not gratis oneself create the Mobile solution of oneself.Applicant of the present invention creates a platform, On the platform, using the template and parameter setting provided, domestic consumer can freely create according to the needs of oneself and make by oneself Adopted app.This has undoubtedly attracted substantial amounts of crowd to create app on the platform.And the platform how is set rapidly to receive user's Various requests, the platform how is set to keep higher operating efficiency, to support that large user's amount is that a technology urgently to be resolved hurrily is asked Topic.Also, because the load capacity of each server is different, how to balance the load between multiple servers is also to need badly The technical problem solved.
The content of the invention
It is an object of the invention to solve at least the above, and provide the advantages of at least will be described later.
It is a still further object of the present invention to provide the polling method between a kind of multiple servers, and it can balance different shaped Load balance number between multiple servers of different disposal ability, Mobile solution is set to create platform operation more steady.This Inventing the technical scheme provided is:
A kind of polling method between multiple servers, comprises the following steps:
A part in multiple servers is divided into multiple virtual servers, wherein, each virtual server and residue An adjacent server in server is associated, and the virtual server serves as the backup for the adjacent server;
Sorted for multiple adjacent servers;
In rounds of inquiries, according to the sequence of multiple adjacent servers, by multiple adjacent servers respond request one by one, directly The request is responsive to all adjacent servers, then the wheel end of polling(EOP), enters back into next round poll;
Also, the surface of each server is divided into multiple facets;
Infrared measurement of temperature equipment is set on the surface of each machine box for server, and the infrared measurement of temperature equipment covers all facets;
Threedimensional model is established for the multiple server, and the surface of the threedimensional model is also divided into multiple facets, The facet of the threedimensional model and the facet of each server correspond division;
Establish the corresponding relation of temperature value and color value;
The temperature value that infrared measurement of temperature equipment detects is converted into color value, and assigns corresponding color value to the three-dimensional mould Each corresponding facet in type;
Wherein, in poll, when the number for the facet for exceeding pre-set color value in the threedimensional model of the adjacent server During more than default facet number, the request proposed to the adjacent server is forwarded to the Virtual Service associated there Device;And
When the number for the facet for exceeding pre-set color value in the threedimensional model of the virtual server exceedes default facet During number, the minimum adjacent server of the numerical value of the number of facet more than pre-set color value is forwarded the request to.
Preferably, the polling method between described multiple servers, in addition to:
If the minimum adjacent server of the number of the facet more than pre-set color value exceedes the small of pre-set color value The number in face have also exceeded its default facet number simultaneously, then forwards the request to the Virtual Service associated there Device.
Preferably, the polling method between described multiple servers, wherein,
Before the multiple server carries out responding the request, also
Server list is established, the information of the server is loaded into the server list;
Default facet number list is established, the default facet is loaded into by facet number is preset corresponding to each server In number list, and the default facet number list is associated with the server list;
The statistics list of facet number is established, the reality of the facet of pre-set color value will be exceeded in the threedimensional model of each server Border number is added in facet number statistics list, and it is related to the server list that the facet number is counted into list Connection.
Preferably, the polling method between described multiple servers, wherein when the three-dimensional mould of the virtual server When number in type more than the facet of pre-set color value exceedes default facet number, forward the request to more than pre-set color The specific step of the minimum adjacent server of the numerical value of the number of the facet of value includes:
The reality for the facet more than pre-set color value that each adjacent server is obtained in list is counted from the facet number Border number;
The default facet number of each adjacent server is obtained from the default facet number list;
Difference is sought using the actual number and the default facet number;
The difference is sorted;
Obtain the sequence number of the adjacent server corresponding to minimum difference;
Obtain reference address corresponding to the sequence number;
Judge whether the reference address can use, if it is available, then forwarding the request to the reference address;
If the reference address is unavailable, the reference address and now minimum difference are deleted, is continued from residue Difference in obtain the difference of minimum and enter the step of performing the sequence number for obtaining the adjacent server corresponding to minimum difference.
Preferably, the polling method between described multiple servers, in addition to:Be provided with web browser, with In the threedimensional model that multiple servers are shown in webpage.
Preferably, the polling method between described multiple servers, wherein, exceed when in the threedimensional model of server The number of the facet of pre-set color value opens physical hypothermal device when exceeding default facet number.
Preferably, the polling method between described multiple servers, wherein the heat sink is air-conditioning or fan.
The present invention comprises at least following beneficial effect:At least a portion in multiple servers is divided into Virtual Service Device, and being associated with adjacent server, there is provided the backup of adjacent server, can be with once adjacent server goes wrong Received and asked using virtual server;And sorted for multiple adjacent servers, request is sequentially allocated according to sequence number, in addition, also logical The surface temperature of infrared temperature measurement apparatus measure server is crossed, is set according to the concrete condition of each server and disposal ability different Facet predetermined number, so as to balance the request according to the actual loading of each server so that the Mobile solution create Platform can quickly receive the various requests of user, and and can is asked according to the actual loading situation reasonable distribution of each server, Operating efficiency is also ensure that, for supporting large user's amount.
Further advantage, target and the feature of the present invention embodies part by following explanation, and part will also be by this The research and practice of invention and be understood by the person skilled in the art.
Brief description of the drawings
The flow chart of polling methods of the Fig. 1 between multiple servers of the present invention;
Fig. 2 is a kind of block diagram of way of realization in one embodiment of the present of invention.
Embodiment
The present invention is described in further detail below in conjunction with the accompanying drawings, to make those skilled in the art with reference to specification text Word can be implemented according to this.
Fig. 1 shows the flow chart of the polling method between multiple servers of the present invention;Fig. 2 is shown according to the present invention A kind of way of realization, show a kind of block diagram of system, the system includes distributor 10, adjacent server 1 and associated therewith Virtual server 4, adjacent server 2 and the virtual server associated there 5 and adjacent server 3 of connection and associated therewith A kind of virtual server 6 of connection, the polling method between multiple servers, comprises the following steps:
A part in multiple servers is divided into multiple virtual servers, wherein, each virtual server and residue An adjacent server in server is associated, and the virtual server serves as the backup for the adjacent server;
Sorted for multiple adjacent servers;
In rounds of inquiries, according to the sequence of multiple adjacent servers, by multiple adjacent servers respond request one by one, directly The request is responsive to all adjacent servers, then the wheel end of polling(EOP), enters back into next round poll;I.e. such as institute in Fig. 1 Show, distributor 10 is responsible for receiving request and request is forwarded into adjacent server 1, adjacent server 2 and adjacent server successively 3。
Also, the surface of each server is divided into multiple facets;
Infrared measurement of temperature equipment is set on the surface of each machine box for server, and the infrared measurement of temperature equipment covers all facets;
Threedimensional model is established for the multiple server, and the surface of the threedimensional model is also divided into multiple facets, The facet of the threedimensional model and the facet of each server correspond division;
Establish the corresponding relation of temperature value and color value;
The temperature value that infrared measurement of temperature equipment detects is converted into color value, and assigns corresponding color value to the three-dimensional mould Each corresponding facet in type;
Wherein, in poll, when the number for the facet for exceeding pre-set color value in the threedimensional model of the adjacent server During more than default facet number, the request proposed to the adjacent server is forwarded to the Virtual Service associated there Device;In Fig. 1, that is, such as when distributor 10 needs to forward the request to adjacent server 1, adjacent server is detected Number in 1 threedimensional model more than the facet of pre-set color value exceedes default facet number, then it is standby to forward the request to its In part virtual server 4.And
If now, distributor 10 detects the facet that exceedes pre-set color value in the threedimensional model of the virtual server When number exceedes default facet number, the numerical value for forwarding the request to the number of facet more than pre-set color value is minimum Adjacent server.Server is because configuration or aging etc. reason, it is possible to which running situation differs, and detects cabinet surface Temperature, can intuitively reflect disposal ability of the server under existing loading condition.Typically, the surface temperature of cabinet It is higher, it is busier work may to be handled, it is possible to and the quantity for the request that a server receives is identical with other servers, But the surface temperature of its cabinet is intended to high than other servers, at this moment, this server is not just in receiving/respond request.This Sample, distributor 10 is according to the actual loading quantity and actual loading situation of each server, with reference to the configuration feelings of each server Condition, request is distributed into each server according to various algorithms, so as to ensure the operating efficiency of maximum.
In another embodiment of the present invention, in addition to:
If the minimum adjacent server of the number of the facet more than pre-set color value exceedes the small of pre-set color value The number in face have also exceeded its default facet number simultaneously, then forwards the request to the Virtual Service associated there Device.The backup functionality of virtual server is realized again.
In yet another embodiment of the present invention, before the multiple server carries out responding the request, in addition to:
Server list is established, the information of the server is loaded into the server list;
Default facet number list is established, the default facet is loaded into by facet number is preset corresponding to each server In number list, and the default facet number list is associated with the server list;
The statistics list of facet number is established, the reality of the facet of pre-set color value will be exceeded in the threedimensional model of each server Border number is added in facet number statistics list, and it is related to the server list that the facet number is counted into list Connection.So, it is easy to the method according to the invention more rapidly to realize the poll of server.
There is one embodiment in the present invention, wherein when exceeding pre-set color in the threedimensional model of the virtual server When the number of the facet of value exceedes default facet number, the number of facet more than pre-set color value is forwarded the request to The specific step of the minimum adjacent server of numerical value includes:
The reality for the facet more than pre-set color value that each adjacent server is obtained in list is counted from the facet number Border number;
The default facet number of each adjacent server is obtained from the default facet number list;
Difference is sought using the actual number and the default facet number;
The difference is sorted;
Obtain the sequence number of the adjacent server corresponding to minimum difference;
Obtain reference address corresponding to the sequence number;
Judge whether the reference address can use, if it is available, then forwarding the request to the reference address;
If the reference address is unavailable, the reference address and now minimum difference are deleted, is continued from residue Difference in obtain the difference of minimum and enter the step of performing the sequence number for obtaining the adjacent server corresponding to minimum difference.
In an embodiment of the present invention, in addition to:Web browser is provided with, it is multiple for being shown in webpage The threedimensional model of server.So, even if user is not in office, the working condition of server can be also real-time monitored, just In its Real Time Observation and make adjustment or take corresponding measure.
In another embodiment of the present invention, as the facet for exceeding pre-set color value in the threedimensional model of server Number opens physical hypothermal device when exceeding default facet number, such as, the request being likely to be received some day is especially more, can adopt Take the mode of Physical temperature-lowering to reduce the surface temperature of server, it is radiated, to ensure its operating efficiency.
In the another embodiment of the present invention, the heat sink is air-conditioning or fan, is needing rapid cooling or temperature When degree is very high, air-conditioning temperature-reducing can be taken, generally, fan can be taken to reduce, to reduce production cost.
The present invention comprises at least following beneficial effect:At least a portion in multiple servers is divided into Virtual Service Device, and being associated with adjacent server, there is provided the backup of adjacent server, can be with once adjacent server goes wrong Received and asked using virtual server;And sorted for multiple adjacent servers, request is sequentially allocated according to sequence number, in addition, also logical The surface temperature of infrared temperature measurement apparatus measure server is crossed, is set according to the concrete condition of each server and disposal ability different Facet predetermined number, so as to balance the request according to the actual loading of each server so that the Mobile solution create Platform can quickly receive the various requests of user, and and can is asked according to the actual loading situation reasonable distribution of each server, Operating efficiency is also ensure that, for supporting large user's amount.
Obviously, those skilled in the art should be understood that above-mentioned each step of the invention can be filled with general calculating Put to realize that they can be realized with the program code that computing device can perform, so as to be stored in storage device In performed by computing device, they are either made to each integrated circuit modules respectively or by multiple modules in them Or step is fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific hardware and software knot Close.Application, modifications and variations to the distributor 10 or server of the present invention are aobvious and easy to one skilled in the art See.
Although embodiment of the present invention is disclosed as above, it is not restricted in specification and embodiment listed With it can be applied to various suitable the field of the invention completely, can be easily for those skilled in the art Other modification is realized, therefore under the universal limited without departing substantially from claim and equivalency range, it is of the invention and unlimited In specific details and shown here as the legend with description.

Claims (3)

1. the polling method between a kind of multiple servers, comprises the following steps:
A part in multiple servers is divided into multiple virtual servers, and by each virtual server and remaining server In an adjacent server be associated, the virtual server serves as the backup for the adjacent server;
Sorted for multiple adjacent servers;
In rounds of inquiries, according to the sequence of multiple adjacent servers, by multiple adjacent servers respond request one by one;
Also, the surface of each server is divided into multiple facets;
Infrared measurement of temperature equipment is set on the surface of each machine box for server, and the infrared measurement of temperature equipment covers all facets;
Threedimensional model is established for the multiple server, and the surface of the threedimensional model is also divided into multiple facets, this three The facet of dimension module and the facet of each server correspond division;
Establish the corresponding relation of temperature value and color value;
The temperature value that infrared measurement of temperature equipment detects is converted into color value, and corresponding color value is assigned in the threedimensional model Each corresponding facet;
Wherein, in poll, when the number for the facet for exceeding pre-set color value in the threedimensional model of the adjacent server exceedes During default facet number, the request proposed to the adjacent server is forwarded to the virtual server associated there; And
When exceeding the number of facet of pre-set color value in the threedimensional model of the virtual server more than default facet number, Forward the request to the numerical value minimum adjacent server of the number of the facet more than pre-set color value;
If the facet more than pre-set color value of the minimum adjacent server of the number of the facet more than pre-set color value Number have also exceeded its default facet number simultaneously, then forwards the request to the virtual server associated there;
Before the multiple server carries out responding the request, in addition to:
Server list is established, the information of the server is loaded into the server list;
Default facet number list is established, the default facet number is loaded into by facet number is preset corresponding to each server In list, and the default facet number list is associated with the server list;
The statistics list of facet number is established, actual of the facet of pre-set color value will be exceeded in the threedimensional model of each server Number is added in facet number statistics list, and it is associated with the server list that the facet number is counted into list;Its In when exceeding the number of facet of pre-set color value in the threedimensional model of the virtual server and exceeding default facet number, will The request is forwarded to the specific step bag of the adjacent server of the numerical value minimum of the number of the facet more than pre-set color value Include:
Actual of the facet more than pre-set color value that each adjacent server is obtained in list is counted from the facet number Number;
The default facet number of each adjacent server is obtained from the default facet number list;
Difference is sought using the actual number and the default facet number;
The difference is sorted;
Obtain the sequence number of the adjacent server corresponding to minimum difference;
Obtain reference address corresponding to the sequence number;
Judge whether the reference address can use, if it is available, then forwarding the request to the reference address;
If the reference address is unavailable, the reference address and now minimum difference are deleted, is continued from remaining difference The difference of minimum is obtained in value and enters the step of performing the sequence number for obtaining the adjacent server corresponding to minimum difference;
Physics is opened when exceeding the number of facet of pre-set color value in the threedimensional model of server and exceeding default facet number Heat sink.
2. the polling method between multiple servers as claimed in claim 1, in addition to:Be provided with web browser, with In the threedimensional model that multiple servers are shown in webpage.
3. the polling method between multiple servers as claimed in claim 1, wherein the heat sink is air-conditioning or fan.
CN201410790926.5A 2014-12-18 2014-12-18 A kind of polling method between multiple servers Active CN104506605B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410790926.5A CN104506605B (en) 2014-12-18 2014-12-18 A kind of polling method between multiple servers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410790926.5A CN104506605B (en) 2014-12-18 2014-12-18 A kind of polling method between multiple servers

Publications (2)

Publication Number Publication Date
CN104506605A CN104506605A (en) 2015-04-08
CN104506605B true CN104506605B (en) 2018-04-06

Family

ID=52948320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410790926.5A Active CN104506605B (en) 2014-12-18 2014-12-18 A kind of polling method between multiple servers

Country Status (1)

Country Link
CN (1) CN104506605B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102132255A (en) * 2008-05-29 2011-07-20 思杰系统有限公司 Systems and methods for load balancing via a plurality of virtual servers upon failover using metrics from a backup virtual server
CN102934412A (en) * 2010-06-18 2013-02-13 诺基亚西门子通信公司 Server cluster
CN104023087A (en) * 2014-06-26 2014-09-03 北京金和软件股份有限公司 Polling method and device among multiple servers

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5621287B2 (en) * 2010-03-17 2014-11-12 富士通株式会社 Load balancing system and computer program
CN102967373B (en) * 2012-11-09 2014-08-27 广东电网公司东莞供电局 Three-dimensional (3D) infrared temperature monitoring method and system for substation
CN103714564A (en) * 2013-12-17 2014-04-09 国网信通亿力科技有限责任公司 Machine room ambient temperature three-dimensional dynamic real-time monitoring system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102132255A (en) * 2008-05-29 2011-07-20 思杰系统有限公司 Systems and methods for load balancing via a plurality of virtual servers upon failover using metrics from a backup virtual server
CN102934412A (en) * 2010-06-18 2013-02-13 诺基亚西门子通信公司 Server cluster
CN104023087A (en) * 2014-06-26 2014-09-03 北京金和软件股份有限公司 Polling method and device among multiple servers

Also Published As

Publication number Publication date
CN104506605A (en) 2015-04-08

Similar Documents

Publication Publication Date Title
CN108683720B (en) Container cluster service configuration method and device
CN109040200B (en) Access method and device of Internet of things equipment
CN109085999B (en) Data processing method and processing system
CN110543684A (en) Indoor effect graph generation method, server and system
CN110515307B (en) Method for controlling intelligent household equipment and network equipment
CN104852990A (en) Information processing method and intelligent household control system
CN110362398A (en) The dispatching method and system of virtual machine
CN104780210A (en) Load balancing method and device
CN104980494B (en) A kind of cloud storage download shared platform and method with local cache
US20200174435A1 (en) Energy Information System, and Method and Device for Processing Energy Information
CN108933829A (en) A kind of load-balancing method and device
CN105100032A (en) Method and apparatus for preventing resource steal
CN103228005B (en) The method of testing of mobile communication network business and device
CN110889573A (en) Equipment model selection method and device thereof
Xiong et al. Design and implementation of a prototype cloud video surveillance system
CN111861221A (en) Equipment fault information pushing method and device, storage medium and electronic device
CN110149377A (en) A kind of video service node resource allocation methods, system, device and storage medium
CN104199683A (en) ISO mirror image document loading method and device
CN109561054A (en) A kind of data transmission method, controller and access device
CN105141978A (en) Video access control method, video access control device and cloud server
CN104023087A (en) Polling method and device among multiple servers
CN110445824A (en) NB-IoT data reporting method, device, system and computer readable storage medium
CN103457998A (en) Method and device for sharing images
CN105187514B (en) The management method and its system of cloud application program
CN107612847A (en) A kind of bandwidth allocation methods, device and video monitoring system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant