CN103974334B - Servo load balance method based on phone number - Google Patents

Servo load balance method based on phone number Download PDF

Info

Publication number
CN103974334B
CN103974334B CN201410220335.4A CN201410220335A CN103974334B CN 103974334 B CN103974334 B CN 103974334B CN 201410220335 A CN201410220335 A CN 201410220335A CN 103974334 B CN103974334 B CN 103974334B
Authority
CN
China
Prior art keywords
server
terminal
phone number
method based
load balance
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
CN201410220335.4A
Other languages
Chinese (zh)
Other versions
CN103974334A (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.)
Shanghai Smurfs Technology Co., Ltd.
Original Assignee
WUXI AWIT INFORMATION TECHNOLOGY 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 WUXI AWIT INFORMATION TECHNOLOGY Co Ltd filed Critical WUXI AWIT INFORMATION TECHNOLOGY Co Ltd
Priority to CN201410220335.4A priority Critical patent/CN103974334B/en
Publication of CN103974334A publication Critical patent/CN103974334A/en
Application granted granted Critical
Publication of CN103974334B publication Critical patent/CN103974334B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of servo load balance method based on phone number, pass through the terminal judgement for current phone number in advance, server address is determined according to its ownership place and other mathematical features, realize the balanced distribution of server load, the feature of terminal phone number cleverly make use of to solve problem of load balancing, eliminate load-balanced server, the load balancing for realizing server of low-cost high-efficiency.

Description

Servo load balance method based on phone number
Technical field
The present invention relates to servo load balance technology, particularly a kind of server load based on home zone of mobile phone number Balance method.
Background technology
In radio tracking field, the interworking of great amount of terminals and server is often related to, the load for server Pressure is very big.Current locating and tracking system server end load balancing techniques, mainly using load balancing service Device, solution is allocated come the connection to terminal and server by the loading condition of load-balanced server calculation server. Due to needing extra configuration load equalization server, greatly increase the construction cost of server end, and number of servers Increase also cause software it is more complicated, it is easy error and be difficult to safeguard.
The content of the invention
In view of the above-mentioned problems, applicant passes through Improvement, a kind of servo load balance based on phone number is proposed Method, the load balancing for realizing server by the signature analysis for terminal current Number and calculating are distributed.
Technical scheme is as follows:
Servo load balance method based on phone number, comprises the following steps:
Step a, starting up of terminal;
Step b, judge whether terminal is to start shooting for the first time;If starting shooting for the first time, then step c is transferred to;Otherwise read The server address of preservation is logged in, and is transferred to step f;
Step c, terminal connecting platform master server, currently available server Area distribution list is downloaded;
Step d, terminal calculates number attribution, connects the master server of location according to current Number;
Step e, judge that location whether there is multiple servers;If it is, according to the tail number of current Number, selection One corresponding server of this area is attached, and preserves the server address;If it is not, then taken with this unique one Business device is attached, and equally preserves the server address;
Step f, successful connection is judged whether;If connection is normal, into normal work stage;Otherwise step c is transferred to, Connecting platform master server re-downloads server list.
Its further technical scheme is:The terminal built-in has the ownership place search algorithm based on number.
Its further technical scheme is:The terminal built-in has corresponding algorithm of the number tail number with server.
Its further technical scheme is:When the number of servers in terminal seat area changes, terminal passes through institute Master server in area updates the corresponding algorithm of number tail number and server built in it.
The method have the benefit that:
The present invention is by the terminal judgement for current phone number in advance, according to its ownership place and other mathematical features Server address is determined, realizes the balanced distribution of server load.The present invention cleverly make use of the feature of terminal phone number Solve problem of load balancing, eliminate load-balanced server, the load balancing for realizing server of low-cost high-efficiency.
For example, the present invention can be applied in child mobile phone love system, by multiserver according to client terminal in various regions The distributed number in area, by adding the software of the present invention in client terminal, because the distribution of client terminal number has randomness, So very easily realize the load balancing of server.
Advantages of the present invention will provide in the description of specific embodiment part below, partly will from the following description Become obvious, or recognized by the practice of the present invention.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the present invention.
Embodiment
The embodiment of the present invention is described further below in conjunction with the accompanying drawings.
The realization of the present invention needs built-in load balancing computational algorithm in the terminal.The calculating of load balancing mainly includes two Aspect:
First, termination number ownership place is inquired about, and determines that termination number belongs to, so as to select the local server of terminal first. The algorithm for the number attribution that the present invention uses repeats no more for prior art.
2nd, there are multiple servers for terminal locality, be attached by calculating one specific server of selection, in order to The dependence to the computing capability of terminal is reduced as far as possible, typically does a division calculation remainder, for the specific clothes of remainder distribution Business device.The most frequently used algorithm is that number divided by 10 are calculated into remainder, that is, takes the tail number of number.For example, 10 can be configured simultaneously Server is No. 1 server of the distribution of tail number 1, is tail number 2 to distribute No. 2 servers ... to be that tail number 0 distributes No. 0 server.Also may be used It is that tail number 1,2 distributes No. 1 server, is that tail number 3,4 distributes No. 2 servers ..., with such to configure 5 servers simultaneously Push away.According to a certain regional terminal usage amount situation, supplier can increase and decrease the number of servers of locality, but need same The corresponding algorithm of Shi Biangeng numbers and server, so as in the connection of the master server of terminal and location, after change Corresponding algorithm is updated in these terminals.
As shown in figure 1, the starting up of terminal login service device flow of the present invention is as follows:
After starting up of terminal, judge whether terminal starts shooting for the first time.
Started shooting for first time, first, terminal selection connecting platform master server, download currently available server row Table, and the regional classification of server.Then, terminal calculates number attribution, then according to ownership place according to current Number The master server in the corresponding area of selection connection.Next, it is judged that local whether there is multiple servers, if there is multiple services Device, then according to the tail number of current Number selection corresponding to a server;If an only server, is directly connected to;Protect Deposit connected server address.
Started shooting for non-first time, the server address for directly reading preservation is logged in.
If terminal is connected normally with server, into normal workflow;Otherwise terminal connecting platform master server Re-download server list.
Above-described is only the preferred embodiment of the present invention, and the invention is not restricted to above example.It is appreciated that this Other improvement and become that art personnel directly export or associated without departing from the spirit and concept in the present invention Change, be considered as being included within protection scope of the present invention.

Claims (4)

  1. A kind of 1. servo load balance method based on phone number, in terminal, it is characterised in that comprise the following steps:
    Step a, starting up of terminal;
    Step b, judge whether terminal is to start shooting for the first time;If starting shooting for the first time, then step c is transferred to;Otherwise reading and saving Server address logged in, and be transferred to step f;
    Step c, terminal connecting platform master server, downloads currently available server list, and the platform master server is used for The regional classification of the currently available server list and server is provided;
    Step d, terminal calculates number attribution, connects the master server of location according to current Number;
    Step e, judge that location whether there is multiple servers;If it is, according to the tail number of current Number, the ground is selected One corresponding server in area is attached, and preserves the server address;If it is not, then enter with a unique server Row connection, equally preserves the server address;
    Step f, successful connection is judged whether;If connection is normal, into normal work stage;Otherwise step c is transferred to, is connected Platform master server re-downloads currently available server list.
  2. 2. the servo load balance method based on phone number according to claim 1, it is characterised in that:In the terminal It is equipped with the ownership place search algorithm based on number.
  3. 3. the servo load balance method based on phone number according to claim 1, it is characterised in that:In the terminal It is equipped with corresponding algorithm of the number tail number with server.
  4. 4. the servo load balance method based on phone number according to claim 3, it is characterised in that:Where terminal When the number of servers in area changes, terminal updates the number tail number and clothes built in it by the master server of location The corresponding algorithm of business device.
CN201410220335.4A 2014-05-22 2014-05-22 Servo load balance method based on phone number Active CN103974334B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410220335.4A CN103974334B (en) 2014-05-22 2014-05-22 Servo load balance method based on phone number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410220335.4A CN103974334B (en) 2014-05-22 2014-05-22 Servo load balance method based on phone number

Publications (2)

Publication Number Publication Date
CN103974334A CN103974334A (en) 2014-08-06
CN103974334B true CN103974334B (en) 2018-03-30

Family

ID=51243260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410220335.4A Active CN103974334B (en) 2014-05-22 2014-05-22 Servo load balance method based on phone number

Country Status (1)

Country Link
CN (1) CN103974334B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744639A (en) * 2005-09-29 2006-03-08 ***通信集团公司 Method for searching home business server address
WO2007009498A1 (en) * 2005-07-19 2007-01-25 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for distributing application server addresses in an ims
CN1992761A (en) * 2005-12-29 2007-07-04 耐通信息科技(上海)有限公司 Dynamic registration method of IP extension telephone roaming
CN101729591A (en) * 2008-10-29 2010-06-09 ***通信集团公司 User guide device, system and method
CN101765082A (en) * 2009-12-28 2010-06-30 中兴通讯股份有限公司 Method for distinguishing authentication charging point according to regions and system
CN102510407A (en) * 2011-11-22 2012-06-20 沈文策 Method and system for reading and writing microblog

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007009498A1 (en) * 2005-07-19 2007-01-25 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for distributing application server addresses in an ims
CN1744639A (en) * 2005-09-29 2006-03-08 ***通信集团公司 Method for searching home business server address
CN1992761A (en) * 2005-12-29 2007-07-04 耐通信息科技(上海)有限公司 Dynamic registration method of IP extension telephone roaming
CN101729591A (en) * 2008-10-29 2010-06-09 ***通信集团公司 User guide device, system and method
CN101765082A (en) * 2009-12-28 2010-06-30 中兴通讯股份有限公司 Method for distinguishing authentication charging point according to regions and system
CN102510407A (en) * 2011-11-22 2012-06-20 沈文策 Method and system for reading and writing microblog

Also Published As

Publication number Publication date
CN103974334A (en) 2014-08-06

Similar Documents

Publication Publication Date Title
JP2019198120A5 (en)
CN103208077B (en) A kind of collaborative booking method and equipment, system
CN110601922B (en) Method and device for realizing comparison experiment, electronic equipment and storage medium
CN109491758A (en) Docker mirror image distribution method, system, data gateway and computer readable storage medium
CN105450691A (en) Service-processing method and device, and server
WO2011082995A1 (en) Automatically synchronizing new contacts across multiple social networking sites
CN104903857A (en) Method and terminal for software upgrading
WO2012112460A3 (en) Offer insertion system
CN103916374B (en) Service gray scale dissemination method and device
CN109597643A (en) Using gray scale dissemination method, device, electronic equipment and storage medium
CN110149409A (en) Cloud host Metadata Service management method, system, equipment and storage medium
CN101542484A (en) Arrangement for comparing content identifiers of files
CN105978976A (en) Information processing system and method
WO2008102230A3 (en) System and method for balancing information loads
CN103580918B (en) A kind of configuration data processing method and device
CN110942269A (en) Distribution information processing method and device and server
CN104486202A (en) Method and system applicable to information publishing on multiple social contact platforms
CN103841157B (en) Sharing files device and method
CN104428758B (en) Information issuing method, Information issued program, information delivery server, charging device
CN103179021A (en) Method and system for aggregating heterogenous micro-blogs
JP4878149B2 (en) Advertisement delivery system and advertisement delivery method
CN110750780A (en) User role permission fusion method, device and equipment based on multi-service system
CN103974334B (en) Servo load balance method based on phone number
CN102404302A (en) Method for dispatching service and service dispatching server
CN107659652A (en) A kind of method and device of cloud backup

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CI01 Correction of invention patent gazette

Correction item: Applicant

Correct: Wuxi AWIT Information Technology Co., Ltd.

False: Ai Weite Information Technology Co., Ltd

Number: 32

Volume: 30

CI02 Correction of invention patent application

Correction item: Applicant

Correct: Wuxi AWIT Information Technology Co., Ltd.

False: Ai Weite Information Technology Co., Ltd

Number: 32

Page: The title page

Volume: 30

ERR Gazette correction

Free format text: CORRECT: APPLICANT; FROM: AIWEITE INFORMATION TECHNOLOGY CO., LTD. TO: WUXI AIWEITE INFORMATION TECHNOLOGY CO., LTD.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20191014

Address after: 200120 room 303b, No. 500, Bibo Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai

Patentee after: Shanghai Smurfs Technology Co., Ltd.

Address before: 214174 Jiangsu city of Wuxi province Huishan Xingzhi Road Economic Development Zone No. 35 WITHUB Park C District 55-5 building

Patentee before: Wuxi AWIT Information Technology Co., Ltd.

TR01 Transfer of patent right