Nothing Special   »   [go: up one dir, main page]

CN106445709A - Method and system for invoking servers in distributed manner - Google Patents

Method and system for invoking servers in distributed manner Download PDF

Info

Publication number
CN106445709A
CN106445709A CN201610931327.XA CN201610931327A CN106445709A CN 106445709 A CN106445709 A CN 106445709A CN 201610931327 A CN201610931327 A CN 201610931327A CN 106445709 A CN106445709 A CN 106445709A
Authority
CN
China
Prior art keywords
server
data
service request
distributed
client
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.)
Pending
Application number
CN201610931327.XA
Other languages
Chinese (zh)
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.)
Shenzhen Science And Technology Co Ltd
Original Assignee
Shenzhen Science And 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 Shenzhen Science And Technology Co Ltd filed Critical Shenzhen Science And Technology Co Ltd
Priority to CN201610931327.XA priority Critical patent/CN106445709A/en
Publication of CN106445709A publication Critical patent/CN106445709A/en
Priority to PCT/CN2017/092970 priority patent/WO2018076802A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/549Remote execution

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention relates to a method and a system for invoking servers in a distributed manner. The method comprises a server setting step, and an assess processing step, wherein the server setting step is to perform statistic operation on access data sent by clients, segment the data and set a plurality of servers for correspondingly receiving and processing the segmented data; and the access processing step is to send a service request by a client, acquire the IP of a server receiving the sent service request and send the service request to the corresponding server. By the method, the servers are preset, the IP of the server receiving the service request is acquired while the client sends the service request, and the service request is correspondingly sent to the server, so that a middle service pool is not required to be set for judging the request; the servers accessed by the clients are distinguished, and the servers invoked in the distributed manner are set, so that different clients access different servers, a server crash phenomenon caused by concentrated access is reduced, and the service stability is improved.

Description

A kind of method of distributed invoking server and its system
Technical field
The present invention relates to the technical field of server calls, the method for especially a kind of distributed invoking server and its be System.
Background technology
Server, also referred to as servomechanism, are the equipment providing the service of calculating.Because server needs to respond service request, and Processed, therefore in general server should possess and undertakes the ability servicing and ensureing service.The composition of server includes Processor, hard disk, internal memory, system bus etc., similar with general computer architecture, but due to needing to provide highly reliable clothes Business, therefore requires higher at aspects such as disposal ability, stability, reliability, security, extensibility, manageabilitys.In network Under environment, different according to the COS that server provides, it is divided into file server, database server, application program service Device, WEB server etc..
At present, with the increase of the client of access server, the load of server is increasing, is susceptible to collapse Phenomenon, once server collapses, whole system all cannot normal work, the access request of all of client all cannot get Respond, cause the inconvenience of user.
Therefore, it is necessary to design a kind of method of distributed invoking server, realize different clients access different Server, reduces the phenomenon accessing the server crash caused by concentrating, improves the stability of service.
Content of the invention
It is an object of the invention to provide a kind of method of distributed invoking server and its system are it is intended to solve existing skill In art, with the increase of the client of access server, the load of server is increasing, be susceptible to collapse phenomenon, one Denier server collapses, whole system all cannot normal work, the access request of all of client all cannot be responded, and makes Become the problem of the inconvenience of user.
The present invention is achieved in that a kind of method of distributed invoking server, including step in detail below:
Server setting steps, the access data that statistics client sends, data is carried out after segmentation, multiple services are set Device, the corresponding data receiving and processing each segmentation;
Access process step, client sends service request, obtains the service that sent service request is accepted simultaneously The IP of device, service request is sent to corresponding server.
Further, a kind of method of described distributed invoking server also includes judging step, and it is right to judge whether to need Server is configured, and if desired server is configured, then carry out server setting steps, if not needing server is entered Row setting, then conduct interviews process step.
Further, described server setting steps include step in detail below:
Step one, data sectional step, carry out homogenous segmentations to the data of the service request that all clients send;
Step 2, server deposition step, data one server of corresponding arrangement of each segmentation.
Further, described step one data sectional step includes step in detail below:
Step 1, data collection step, the service data that all of client is sent is collected;
Step 2, data sorting step, the data of collection is sorted in a certain order successively;
Step 3, data division step, the data after sequence is divided into several segmentations according to uniform amount.
Further, described access process step includes step in detail below:
Step one, transmission request step, client sends service request;
Step 2, obtaining step, client obtains the IP of the corresponding server receiving of sent service request automatically;
Step 3, process step, client sends service request to corresponding server, and receives and returned by server Result.
Further, described step 2 obtaining step, client adopts hash algorithm to calculate sent service request and corresponds to The IP of the server receiving, and obtain this IP.
The invention provides a kind of system of distributed invoking server, including server arranging unit and access process Unit;
Described server arranging unit, for counting the access data of client transmission, is carried out to data after segmentation, setting Multiple servers, the corresponding data receiving and processing each segmentation, it is connected with described access process unit;
Described access process unit, sends service request for client, obtains sent service request simultaneously and connect The IP of the server being subject to, service request is sent to corresponding server.
Further, a kind of system of described distributed invoking server also includes judging unit;
Described judging unit, is used for judging whether to need server is configured, and arranges single respectively with described server Unit and access process unit connect.
Further, described server arranging unit also includes data segmentation module and server arrangement module;
Described data segmentation module, the data of the service request for sending to all clients carries out homogenous segmentations, point Do not arrange that module and described judging unit are connected with described server;
Described server arranges module, for data one server of corresponding arrangement of each segmentation, at described access Reason unit connects.
Further, described data segmentation module includes Data Collection submodule, data sorting submodule and data and divides Cut submodule;
Described Data Collection submodule, the service data for sending all of client is collected, respectively It is connected with described data sorting submodule and described judging unit;
Described data sorting submodule, for the data of collection sorts in a certain order successively, with described data Collect submodule to connect;
Described data splits submodule, for the data after sequence is divided into several segmentations according to uniform amount, point It is not connected with described data sorting submodule and described server arrangement module.
Compared with prior art, the method for a kind of distributed invoking server that the present invention provides, by advance to service Device is configured, and obtains the IP of accepted server while client sends service request, and corresponding transmission is to this service Device, need not arrange intermediary service pond, request is judged, the server that client is accessed makes a distinction, and setting is distributed Invoking server, realizes different clients and accesses different servers, reduces and accesses the server crash caused by concentrating Phenomenon, improves the stability of service.
Brief description
Fig. 1 is a kind of FB(flow block) of the method for distributed invoking server provided in an embodiment of the present invention;
Fig. 2 is a kind of structured flowchart of the system of distributed invoking server provided in an embodiment of the present invention.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, below in conjunction with drawings and Examples, right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only in order to explain the present invention, and It is not used in the restriction present invention.
Below in conjunction with specific embodiment, the realization of the present invention is described in detail.
With reference to Fig. 1~2, the preferred embodiment providing for the present invention.
The method of a kind of distributed invoking server that the present embodiment provides, can be used in any service system, real Existing different client accesses different servers, reduces the phenomenon accessing the server crash caused by concentrating, improves service Stability.
A kind of method of distributed invoking server, including step in detail below:
Server setting steps, the access data that statistics client sends, data is carried out after segmentation, multiple services are set Device, the corresponding data receiving and processing each segmentation;
Access process step, client sends service request, obtains the service that sent service request is accepted simultaneously The IP of device, service request is sent to corresponding server.
The method of above-mentioned a kind of distributed invoking server, by being configured to server in advance, sends out in client Send the IP obtaining accepted server while service request, corresponding transmission, to this server, need not arrange intermediary service pond, Request is judged, the server that client is accessed makes a distinction, distributed invoking server is set, realizes different visitors Family end accesses different servers, reduces the phenomenon accessing the server crash caused by concentrating, improves the stability of service.
Further, a kind of method of described distributed invoking server also includes judging step, judges whether needs Server is configured, if desired server is configured, then carry out server setting steps, if not needing to server It is configured, then conduct interviews process step.
Described server setting steps include step in detail below:
Step one, data sectional step, carry out homogenous segmentations to the data of the service request that all clients send;
Step 2, server deposition step, data one server of corresponding arrangement of each segmentation.
In addition, described step one data sectional step includes step in detail below:
Step 1, data collection step, the service data that all of client is sent is collected;
Step 2, data sorting step, the data of collection is sorted in a certain order successively;
Step 3, data division step, the data after sequence is divided into several segmentations according to uniform amount.
In the present embodiment, the data sorting step of described step 2, the data of collection is according to order from big to small successively Sequence.
Certainly, in other embodiment, the data sorting step of described step 2, the data of collection can also be according to from little Sort successively to big order.
In the present embodiment, the discrete model of the data composition of collection, by the data bulk of artificial each segmentation of selected parts, So that it is determined that the load capacity of each server.
Certainly, in other embodiment, can also be by presetting the load capacity of server, in conjunction with data bulk, logarithm According to carrying out segmentation, it is equipped with the server of respective amount according to the hop count after segmentation.
Described access process step includes step in detail below:
Step one, transmission request step, client sends service request;
Step 2, obtaining step, client obtains the IP of the corresponding server receiving of sent service request automatically;
Step 3, process step, client sends service request to corresponding server, and receives and returned by server Result.
In the present embodiment, described step 2 obtaining step, client adopts hash algorithm to calculate sent service request The IP of the corresponding server receiving, and obtain this IP.
In other embodiment, described step 2 obtaining step, client can also inquire about all clothes by the mark of itself With the IP itself identifying corresponding server in business device, obtain this IP.
Present invention also offers a kind of system of distributed invoking server, at server arranging unit and access Reason unit;Described server arranging unit, for counting the access data of client transmission, is carried out to data after segmentation, setting Multiple servers, the corresponding data receiving and processing each segmentation, it is connected with described access process unit;Described access process list Unit, sends service request for client, obtains the IP of the server that sent service request is accepted simultaneously, please by service Ask transmission to corresponding server.
A kind of system of described distributed invoking server also includes judging unit 10, described judging unit 10, is used for sentencing Break and be configured the need of to server, be connected with described server arranging unit and access process unit respectively.
Described server arranging unit also includes data segmentation module and server arrangement module 30, described data sectional Module, the data of the service request for sending to all clients carries out homogenous segmentations, arranges mould with described server respectively Block 30 and described judging unit 10 connect;Described server arranges module 30, and the data for each segmentation corresponds to arrangement one Individual server, is connected with described access process unit.
In the present embodiment, described data segmentation module include Data Collection submodule 20, data sorting submodule 21 with And data segmentation submodule 22, described Data Collection submodule 20, for the service data sending all of client It is collected, be connected with described data sorting submodule 21 and judging unit 10 respectively;Described data sorting submodule 21, uses In the data of collection sorts in a certain order successively, it is connected with described Data Collection submodule 20;Described data segmentation Submodule 22, for the data after sequence is divided into several segmentations according to uniform amount, respectively with described data sorting Module 21 and described server arrangement module 30 connect.
Described access process unit includes sending request module 40, acquisition module 41 and processing module 42;Described transmission Request module 40, sends service request for client, arranges module 30 and described judge module with described server respectively Connect;Described acquisition module 41, automatically obtains the IP of the corresponding server receiving of sent service request, with institute for client State transmission request module 40 to connect;Described processing module 42, sends service request to corresponding server for client, and Receive the result being returned by server, be connected with described acquisition module 41.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all essences in the present invention Any modification, equivalent and improvement made within god and principle etc., should be included within the scope of the present invention.

Claims (10)

1. a kind of method of distributed invoking server is it is characterised in that include step in detail below:
Server setting steps, the access data that statistics client sends, data is carried out after segmentation, multiple servers are set, The corresponding data receiving and processing each segmentation;
Access process step, client sends service request, obtains the server that sent service request is accepted simultaneously IP, service request is sent to corresponding server.
2. as claimed in claim 1 a kind of method of distributed invoking server it is characterised in that a kind of described distributed tune Also include judging step with the method for server, judge whether to need server is configured, if desired server is carried out Setting, then carry out server setting steps, if not needing server is configured, conduct interviews process step.
3. as claimed in claim 1 or 2 a kind of method of distributed invoking server it is characterised in that described server sets Put step and include step in detail below:
Step one, data sectional step, carry out homogenous segmentations to the data of the service request that all clients send;
Step 2, server deposition step, data one server of corresponding arrangement of each segmentation.
4. as claimed in claim 3 a kind of method of distributed invoking server it is characterised in that described step one data is divided Section step includes step in detail below:
Step 1, data collection step, the service data that all of client is sent is collected;
Step 2, data sorting step, the data of collection is sorted in a certain order successively;
Step 3, data division step, the data after sequence is divided into several segmentations according to uniform amount.
5. as claimed in claim 4 a kind of method of distributed invoking server it is characterised in that described access process step Including step in detail below:
Step one, transmission request step, client sends service request;
Step 2, obtaining step, client obtains the IP of the corresponding server receiving of sent service request automatically;
Step 3, process step, client sends service request to corresponding server, and receives and returned by server Reason result.
6. as claimed in claim 5 a kind of method of distributed invoking server it is characterised in that described step 2 obtain step Suddenly, client adopts hash algorithm to calculate the IP of the corresponding server receiving of sent service request, and obtains this IP.
7. a kind of system of distributed invoking server is it is characterised in that include server arranging unit and access process list Unit;
Described server arranging unit, for counting the access data of client transmission, is carried out to data after segmentation, and setting is multiple Server, the corresponding data receiving and processing each segmentation, it is connected with described access process unit;
Described access process unit, sends service request for client, obtains what sent service request was accepted simultaneously The IP of server, service request is sent to corresponding server.
8. as claimed in claim 7 a kind of system of distributed invoking server it is characterised in that a kind of described distributed tune Also include judging unit with the system of server;
Described judging unit, is used for judging whether to need server is configured, respectively with described server arranging unit with And access process unit connects.
9. as claimed in claim 8 a kind of system of distributed invoking server it is characterised in that the setting of described server is single Unit also includes data segmentation module and server arrangement module;
Described data segmentation module, the data of the service request for sending to all clients carries out homogenous segmentations, respectively with Described server arrangement module and described judging unit connect;
Described server arranges module, for data one server of corresponding arrangement of each segmentation, with described access process list Unit connects.
10. as claimed in claim 9 a kind of system of distributed invoking server it is characterised in that described data sectional mould Block includes Data Collection submodule, data sorting submodule and data segmentation submodule;
Described Data Collection submodule, the service data for sending all of client is collected, respectively with institute State data sorting submodule and described judging unit connects;
Described data sorting submodule, for the data of collection sorts in a certain order successively, with described Data Collection Submodule connects;
Described data splits submodule, for the data after sequence is divided into several segmentations according to uniform amount, respectively with Described data sorting submodule and described server arrangement module connect.
CN201610931327.XA 2016-10-24 2016-10-24 Method and system for invoking servers in distributed manner Pending CN106445709A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610931327.XA CN106445709A (en) 2016-10-24 2016-10-24 Method and system for invoking servers in distributed manner
PCT/CN2017/092970 WO2018076802A1 (en) 2016-10-24 2017-07-14 Method and system for invoking servers in distributed manner

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610931327.XA CN106445709A (en) 2016-10-24 2016-10-24 Method and system for invoking servers in distributed manner

Publications (1)

Publication Number Publication Date
CN106445709A true CN106445709A (en) 2017-02-22

Family

ID=58177473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610931327.XA Pending CN106445709A (en) 2016-10-24 2016-10-24 Method and system for invoking servers in distributed manner

Country Status (2)

Country Link
CN (1) CN106445709A (en)
WO (1) WO2018076802A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018076802A1 (en) * 2016-10-24 2018-05-03 深圳有麦科技有限公司 Method and system for invoking servers in distributed manner
CN108023936A (en) * 2017-11-07 2018-05-11 深圳市天下房仓科技有限公司 A kind of distributed interface access control method and system
CN110632888A (en) * 2019-09-18 2019-12-31 四川豪威尔信息科技有限公司 Integrated circuit programming system with wireless communication capability

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475539B (en) * 2020-03-06 2023-11-10 许昌学院 Data statistics method and data statistics device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102694866A (en) * 2012-06-01 2012-09-26 北京首钢自动化信息技术有限公司 Service request broker system in distributed network environment
CN103259739A (en) * 2012-02-15 2013-08-21 株式会社日立制作所 Load balancing device and load balancing method
CN103544045A (en) * 2013-10-16 2014-01-29 南京大学镇江高新技术研究院 HDFS-based virtual machine image storage system and construction method thereof
GB2507621A (en) * 2013-08-14 2014-05-07 Micro Focus Ip Dev Ltd Distributed transaction system using TCP/IP communication
US20160124783A1 (en) * 2014-10-31 2016-05-05 AppDynamics, Inc. Tracking asynchronous entry points for an application

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445709A (en) * 2016-10-24 2017-02-22 深圳有麦科技有限公司 Method and system for invoking servers in distributed manner

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103259739A (en) * 2012-02-15 2013-08-21 株式会社日立制作所 Load balancing device and load balancing method
CN102694866A (en) * 2012-06-01 2012-09-26 北京首钢自动化信息技术有限公司 Service request broker system in distributed network environment
GB2507621A (en) * 2013-08-14 2014-05-07 Micro Focus Ip Dev Ltd Distributed transaction system using TCP/IP communication
CN103544045A (en) * 2013-10-16 2014-01-29 南京大学镇江高新技术研究院 HDFS-based virtual machine image storage system and construction method thereof
US20160124783A1 (en) * 2014-10-31 2016-05-05 AppDynamics, Inc. Tracking asynchronous entry points for an application

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018076802A1 (en) * 2016-10-24 2018-05-03 深圳有麦科技有限公司 Method and system for invoking servers in distributed manner
CN108023936A (en) * 2017-11-07 2018-05-11 深圳市天下房仓科技有限公司 A kind of distributed interface access control method and system
CN108023936B (en) * 2017-11-07 2021-02-05 深圳市天下房仓科技有限公司 Distributed interface access control method and system
CN110632888A (en) * 2019-09-18 2019-12-31 四川豪威尔信息科技有限公司 Integrated circuit programming system with wireless communication capability

Also Published As

Publication number Publication date
WO2018076802A1 (en) 2018-05-03

Similar Documents

Publication Publication Date Title
CN109660607B (en) Service request distribution method, service request receiving method, service request distribution device, service request receiving device and server cluster
CN108737467B (en) Server log viewing method, device and system
US8700773B2 (en) Load balancing using redirect responses
CN110362473B (en) Test environment optimization method and device, storage medium and terminal
CN111225069B (en) Distributed market data processing system and method
CN106953940B (en) Dns server and configuring load application method, network system, domain name analytic method and system
CN106445709A (en) Method and system for invoking servers in distributed manner
WO2014120487A1 (en) Data stream splitting for low-latency data access
CN107835437A (en) Dispatching method and device based on more caching servers
US8418183B2 (en) Resource information collection and delivery method and system
CN111338888B (en) Data statistics method and device, electronic equipment and storage medium
CN105872082B (en) Fine granularity resource response system based on container cluster load-balancing algorithm
CN113296959B (en) Service processing method and device based on AOP functional component and computer equipment
CN103714144A (en) Device and method for information retrieval
CN112597173A (en) Distributed database cluster system peer-to-peer processing system and processing method
CN110222084B (en) Method and device for reporting monitoring information of hotspot equipment, storage medium and terminal
CN111461630B (en) Monitoring method, device, equipment and storage medium for delivering express packages
CN113297253A (en) Equipment identification method, device, equipment and readable storage medium
CN106648888A (en) Distribution type high-performance computing system based on blockchain technology and computing method thereof
CN107046581A (en) A kind of monitoring method, device and the server of service operation state
CN106649678B (en) Data processing method and system
CN115664992A (en) Network operation data processing method and device, electronic equipment and medium
CN111444156B (en) Fault diagnosis method based on cloud computing
CN111124681B (en) Cluster load distribution method and device
CN118502966B (en) Distributed massive parallel processing database load balancing management 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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170222