CN107682391A - Electronic installation, server-assignment control method and computer-readable recording medium - Google Patents
Electronic installation, server-assignment control method and computer-readable recording medium Download PDFInfo
- Publication number
- CN107682391A CN107682391A CN201710658107.9A CN201710658107A CN107682391A CN 107682391 A CN107682391 A CN 107682391A CN 201710658107 A CN201710658107 A CN 201710658107A CN 107682391 A CN107682391 A CN 107682391A
- Authority
- CN
- China
- Prior art keywords
- server
- access request
- assignment control
- received
- distributed
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1008—Server selection for load balancing based on parameters of servers, e.g. available memory or workload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1029—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers using data related to the state of servers by a load balancer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1031—Controlling of the operation of servers by a load balancer, e.g. adding or removing servers that serve requests
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/62—Establishing a time schedule for servicing the requests
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Computer And Data Communications (AREA)
Abstract
The present invention, which discloses a kind of electronic installation, server-assignment control method and storage medium, this method, to be included:Receive the first access request of one or more interconnected systems of external system request call enterprises;According to the quantity of the first access request received in the first preset time, the server process of distribution respective numbers from first server group;Receive the second access request of the operation system request batching data of enterprises;The quantity of batching data in second access request, the server process of respective numbers is distributed from second server group.Technical solution of the present invention causes the inside and outside portion's system of enterprise to be timely responded to the different service requests of server and do not disturbed mutually.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of electronic installation, server-assignment control method and calculating
Machine readable storage medium storing program for executing.
Background technology
Enterprises system also provides interface service in addition to undertaking the application of enterprises user to external system.
In addition, enterprises often have substantial amounts of batch operation.When the calling between enterprises system and external system occurs
It is abnormal, or batch processing generation exception, the server thread of enterprises can be caused to block, cause enterprises system response slow
Blunt, the demand of user can not meet with a response in time.Therefore, it is necessary to which a kind of strategy, can cause the inside and outside portion's system of enterprise to service
The different service requests of device can be timely responded to and do not disturbed mutually.
The content of the invention
The main object of the present invention is to provide a kind of electronic installation, server-assignment control method and storage medium, it is intended to
So that the inside and outside portion's system of enterprise can be timely responded to the different service requests of server and do not disturbed mutually.
To achieve the above object, electronic installation proposed by the present invention, including memory, processor and it is stored in the storage
On device and the server-assignment control system that can run on the processor, the server-assignment control system is by the place
Reason device realizes following steps when performing:
A, the first access request of one or more interconnected systems of external system request call enterprises is received;
B, according to the quantity of the first access request received in the first preset time, phase is distributed from first server group
The server of quantity is answered to handle first access request;
C, the second access request of the operation system request batching data of enterprises is received;
D, the quantity of the batching data in second access request, respective counts are distributed from second server group
The server of amount handles second access request.
Preferably, the processor is additionally operable to perform the server-assignment control system, to realize following steps:
E, the 3rd access request of one or more interconnected system request call external systems of enterprises is received;
F, according to the quantity of the 3rd access request received in the second preset time, phase is distributed from the 3rd server group
The server of quantity is answered to handle the 3rd access request.
Preferably, the step F is replaced with:
According to the quantity of the 3rd access request received in the second preset time, and with reference to the data of the external system
Disposal ability, the server that respective numbers are distributed from the 3rd server group handle the 3rd access request.
Preferably, the step D is replaced with:
The plan of batching data in second access request performs time and quantity, from second server group
The server for distributing respective numbers handles second access request.
Preferably, the processor can also be used to perform the server-assignment control system, to realize following steps:
Idle server is obtained in real time, and the idle server got is divided into by preset rules and comprised at least
Multiple server groups of first server group, second server group and the 3rd server group.
The present invention also provides a kind of server-assignment control method, and the method comprising the steps of:
A, the first access request of one or more interconnected systems of external system request call enterprises is received;
B, according to the quantity of the first access request received in the first preset time, phase is distributed from first server group
The server of quantity is answered to handle first access request;
C, the second access request of the operation system request batching data of enterprises is received;
D, the quantity of the batching data in second access request, respective counts are distributed from second server group
The server of amount handles second access request;
Preferably, the server-assignment control method also includes:
E, the 3rd access request of one or more interconnected system request call external systems of enterprises is received;
F, according to the quantity of the 3rd access request received in the second preset time, phase is distributed from the 3rd server group
The server of quantity is answered to handle the 3rd access request.
Preferably, the step F is replaced with:
According to the quantity of the 3rd access request received in the second preset time, and with reference to the data of the external system
Disposal ability, the server that respective numbers are distributed from the 3rd server group handle the 3rd access request.
Preferably, the step D is replaced with:
The plan of batching data in second access request performs time and quantity, from second server group
The server for distributing respective numbers handles second access request.
The present invention also provides a kind of computer-readable recording medium, and the computer-readable recording medium storage has server
Control system is distributed, the server-assignment control system can be by least one computing device, so that at least one place
Manage the server-assignment control method described in device execution any of the above-described.
Technical solution of the present invention marks off multiple server groups by using by the server in business system, is directed to and connects
The different types of access request received goes to handle from the server of corresponding server group, middle distribution respective numbers respectively, from
And the processing on the access request of each type is not interfered and is influenceed, so avoid server and handle certain
The situation of influence is brought to occur because producing abnormal and to other types request processing during type requests.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Structure according to these accompanying drawings obtains other accompanying drawings.
Fig. 1 is the schematic flow sheet of server-assignment control method first embodiment of the present invention;
Fig. 2 is the schematic flow sheet of server-assignment control method second embodiment of the present invention;
Fig. 3 is the schematic flow sheet of server-assignment control method 3rd embodiment of the present invention;
Fig. 4 is the running environment schematic diagram of server-assignment control system preferred embodiment of the present invention;
Fig. 5 is the structural representation of server-assignment control system first embodiment of the present invention;
Fig. 6 is the structural representation of server-assignment control system second embodiment of the present invention;
Fig. 7 is the structural representation of server-assignment control system 3rd embodiment of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
The principle and feature of the present invention are described below in conjunction with accompanying drawing, the given examples are served only to explain the present invention, and
It is non-to be used to limit the scope of the present invention.
As shown in figure 1, Fig. 1 is the schematic flow sheet of server-assignment control method first embodiment of the present invention.
In the present embodiment, the server-assignment control method includes:
Step S10, the first access for receiving one or more interconnected systems of external system request call enterprises please
Ask;
Enterprises system connects enterprise external system by external network, by interior between multiple systems of built-in system
Portion's network service;Enterprises system includes multiple servers, server communication connection database;The multiple servers include enterprise
Portion staff one or more operation systems (Apps) used in everyday in the industry, and one or more interconnected systems
(Apps);The client of enterprises user passes through internal network login service device access service system or interconnected system.When having
When external system sends the first access request of the interconnected system of request call enterprises to enterprises system, server point
First access request is received with control system.
Step S20, according to the quantity of the first access request received in the first preset time, from first server group
The server for distributing respective numbers handles first access request;
In the present embodiment, the multiple servers of enterprises system are divided into including at least first server group, the second clothes
Multiple server groups of device group of being engaged in and the 3rd server group;Wherein, the first access request is corresponding by the clothes in first server group
Device be engaged in handle.First preset time (for example, 5 seconds) is that server-assignment control system carries out server to the first access request
Distribute the interval duration of processing, i.e., server-assignment control system every the first preset time just to received in the time the
One access request carries out server-assignment processing.The first visit that server-assignment control system receives according to the first preset time
Ask the quantity (quantity of the first i.e. pending access request) of request, and according to corresponding allocation rule from first server group
The server of middle distribution respective amount handles the first access request received;Wherein, distribution server includes specified services
The IP address of device and port.The allocation rule is for example:When the first access request quantity be less than or equal to the first predetermined threshold value (such as
30) when, the access request of server process first of distribution A quantity (such as 1);When the quantity of the first access request is more than
After one predetermined threshold value, the quantity of the first access request is often incremented by the first increment (such as 50), then divides again on the basis of A quantity
First access request described in server process with B quantity (such as 2).
Step S30, receive the second access request of the operation system request batching data of enterprises;
Step S40, according to the quantity of batching data, distributed from second server group respective numbers server come from
Manage second access request;
When the operation system of enterprises needs to carry out batching data, operation system is to server-assignment control system
Send the second access request of request batching data, server-assignment system receives second access request, analyze this second
The quantity of the batching data included in access request, further according to batching data quantity at predetermined regular from second service
The server for distributing respective numbers in device goes to handle second access request;The predetermined rule can be that predetermined mapping is closed
System or Else Rule algorithm.
Further, the server-assignment control method of the present embodiment also includes:
Step S50, the 3rd access for receiving one or more interconnected system request call external systems of enterprises please
Ask;
Step S60, according to the quantity of the 3rd access request received in the second preset time, from the 3rd server group
The server for distributing respective numbers handles the 3rd access request.
When one or more interconnected system request call external systems of enterprises, interconnected system is to server-assignment
Control system sends the 3rd access request for calling external system, and server-assignment control system receives the 3rd access request.The
Two preset times (for example, 5 seconds) are distribution processing interval duration of the server-assignment control system to the 3rd access request, that is, are taken
Business device distribution control system carries out server-assignment every the second preset time to the 3rd access request received in the time;
The quantity of the 3rd access request received in the preset time of server-assignment control system analysis second, according to the 3rd obtained
The quantity of square access request, these the 3rd access requests are handled by the server of predetermined manner distribution respective numbers;Wherein, should
Predetermined manner can be default mapping relations or other preset algorithms, etc..
In the present embodiment, because the reception of the first access request, the second access request and the 3rd access request is by accessing
The sender of request determines that receiving the first access request, the second access request and the 3rd access request does not have sequencing, i.e., originally
Step S10, S20 of embodiment, step S30, S40, step S50, S60, there is no priority execution sequence limit between this three groups of steps
Determine, such as step S30, S40 may perform before step S10, S20, step S50, S60 may be in step S30, S40
Above perform.
Compared with prior art, this embodiment scheme marks off multiple services by using by the server in business system
Device group, the different types of access request received is directed to respectively from the clothes of corresponding server group, middle distribution respective numbers
Business device goes to handle, so that the processing on the access request of each type will not be interfered and influenceed, so avoids clothes
Business device is during certain type requests is handled because producing situation abnormal and that influence is brought to the processing that other types are asked
Occur.
Further, refering to Fig. 2, in the server-assignment control method of the present embodiment, above-mentioned steps S40 is replaced with:
Step S70, the plan of the batching data in second access request perform time and quantity, from the second clothes
The server that respective numbers are distributed in business device group handles second access request.
The quantity comprising batching data and plan perform the time in the second access request that operation system is sent, wherein, intend
The execution time refers to that operation system requires to complete the time of batching data.Server-assignment control system receives the second access
After request, first analyze the quantity of the batching data in second access request and intend performing the time, taken further according to separate unit
Business device performs the quantity for being capable of processing data in the time in the plan, and the number of servers at least needing to distribute is calculated;Most
The number of servers being calculated afterwards according to this, the server that respective numbers are distributed from second server group go to handle described the
Two access requests.For example, the quantity of the batching data in the second access request that operation system is sent is 20000, intends holding
The row time is 10 seconds, and the speed of single server processing data is 600 per second, i.e., single server is being intended performing energy in the time
Handle 6000 data, then can be calculated will handle this 20000 data intending performing in the time, then at least needs
4 servers of distribution are gone to handle second access request, then server-assignment control system is then divided from second server group
With 4 server process, second access request.
Required distribution is calculated most by performing T/A according to the plan of batching data in this embodiment scheme
The server of small number, so as to ensure to intend performing the number for the batching data that above-mentioned second access request can be completed in the time
On the premise of amount, distribute minimal number of server process second access request from second server group;So it may be such that
Remaining more idle server processing subsequent access requests, are reduced due to some the second access request in second server group
The server of distribution is excessive, and the situation for causing the server for handling subsequent access request inadequate occurs, and ensureing please to each access
The processing asked it is ageing.
Further, refering to Fig. 2, in the server-assignment control method of the present embodiment, above-mentioned steps S60 is replaced with:
Step S80, according to the quantity of the 3rd access request received in the second preset time, and with reference to the outside system
The data-handling capacity of system, the server that respective numbers are distributed from the 3rd server group handle the 3rd access request.
In the present embodiment, the data-handling capacity of the external system for the current concurrent capability of the external system (i.e.
Can be simultaneously for the connection quantity of access).If the quantity of the 3rd access request received in the second preset time is without departing from described
The current concurrent capability of external system, then server-assignment control system by predetermined allocation rule (for example, mapping relations) from
The 3rd access request described in the server process of respective numbers is distributed in 3rd server group;If received in the second preset time
The 3rd access request quantity beyond the current concurrent capability of the external system, then server-assignment control system is according to institute
State the current concurrent capability of external system the 3rd access request received is divided at the multiple batches of server-assignment of progress successively
Reason, the outer not current concurrent capability of system is no more than per a batch of 3rd access request quantity.
Further, the present embodiment server-assignment control method is after the step S60, in addition to:
The relevant information of the server of distribution is fed back into corresponding access request side;
Server-assignment control system is after each access request distributes server, and the correlation of the server of distribution is believed
Breath feeds back to corresponding access request side;Wherein, the relevant information of server includes IP address and port information.
The result of each access request is fed back into corresponding access request side.
After each server has handled corresponding access request, corresponding result is sent to by each server
Server-assignment control system, after server-assignment control system receives the result of each server, the processing is tied
Fruit feeds back to corresponding access request side.
Refering to Fig. 3, the server-assignment control method of the present embodiment also includes:
Step S90, idle server is obtained in real time, and the idle server got is divided into by preset rules
Including at least multiple server groups of first server group, second server group and the 3rd server group.
Because the distributed number of all kinds of access requests is over time in change, therefore, some periods possible first
Access request is especially more, and the data volume of some period batching datas is especially more, and some periods, then possible 3rd access please
Ask especially more.When a certain type of access in certain time period asks (for example, the first access request or the 3rd access request)
Quantity it is especially more, the request of other type of access especially less or it is relatively fewer when, the now then especially more access request pair of quantity
Server utilization rate in the server group answered can be very big, it is possible that server not enough influences the type access request
Processing progress and efficiency;But now, the request of remaining type of access is due to negligible amounts, the free time in corresponding server group
Server is more, causes server resource most cannot efficiently distribute use.In order to improve such case, the present embodiment passes through
Using going to obtain idle server in real time, and the server of acquisition is divided into including at least first server by preset rules
Multiple server groups of group, second server group and the 3rd server group;In this way, it is especially more in certain type of access number of requests,
When server in server group corresponding to the type access request is widely used, server-assignment control system can obtain it
Idle server in remaining server group, and server group is repartitioned according to preset rules, in the idle server got
Part can be divided into server group corresponding to the especially more access request of the quantity, ensure that the especially more access of the quantity please
The corresponding server group asked has enough servers to go to handle the type access request.In the present embodiment, the preset rules can
Think mean allocation rule, or distributed by default accounting, or be Else Rule.
The present embodiment is by dynamically adjusting the idle server quantity divided in each server group so that server
Utilization rate is maximum, while avoids the occurrence of some server group and do not have enough servers in the peak period of its corresponding access request
Occur for the situation of distribution processing, ensure that the treatment effeciency to all types of requests.
Further, on the basis of the scheme of above-mentioned first embodiment, the multiple servers in enterprises system can be drawn
It is divided into first server group, second server group, the 3rd server group and standby server group, so as to the step in scheme
S20, S40 and S60 can use following scheme:
The step S20 includes:
According to predetermined number of requests section and the mapping relations of the first quantity, it is determined that first visit received
Ask the first quantity corresponding to the number of requests section where the quantity of request;
If the first quantity of the determination is less than or equal to idle number of servers in the first server group, from the
The idle server of the first quantity of the determination is distributed in one server group to handle first access request;
If the first quantity of the determination is more than number of servers idle in the first server group, from standby clothes
The server of the first supplemental amount is obtained in business device group, by server idle in the first server and described is got
The server of the first supplemental amount first access request is handled;Wherein, first supplemental amount is equal to institute
State the difference of the first quantity and number of servers idle in the first server group of determination.
The step S40 includes:
According to the quantity section of predetermined batching data and the mapping relations of the second quantity, it is determined that described receive
The second access request in batching data quantity where quantity section corresponding to the second quantity;
If the second quantity of the determination is less than or equal to idle number of servers in the second server group, from the
The idle server of the second quantity of the determination is distributed in two server groups to handle second access request;
If the second quantity of the determination is more than number of servers idle in the second server group, from standby clothes
The server of the second supplemental amount is obtained in business device group, by server idle in the second server and described is got
The server of the second supplemental amount second access request is handled;Wherein, second supplemental amount is equal to institute
State the difference of the second quantity and number of servers idle in the second server group of determination.
The step S60 includes:
According to predetermined number of requests section and the mapping relations of the 3rd quantity, it is determined that the 3rd visit received
Ask the 3rd quantity corresponding to the number of requests section where the quantity of request;
If the 3rd quantity of the determination is less than or equal to idle number of servers in the 3rd server group, from the
The idle server of the 3rd quantity of the determination is distributed in three server groups to handle the 3rd access request;
If the 3rd quantity of the determination is more than number of servers idle in the 3rd server group, from standby clothes
The server of the 3rd supplemental amount is obtained in device group of being engaged in, by server idle in the 3rd server and described is got
The server of the 3rd supplemental amount the 3rd access request is handled;Wherein, the 3rd supplemental amount is equal to institute
State the difference of the 3rd quantity and number of servers idle in the 3rd server group of determination.
In this embodiment scheme, the quantity allotted of server passes through the respective number of request of first, second, third access request
Measure and drawn with the mapping table of number of servers;Server in standby server group, in first, second or third clothes
Server in device group of being engaged in during access request, is called not enough corresponding to processing for server-assignment control system.
The present invention also proposes a kind of server-assignment control system.
Referring to Fig. 4, it is the running environment schematic diagram of the preferred embodiment of server-assignment control system 10 of the present invention.
In the present embodiment, server-assignment control system 10 is installed and run in electronic installation 1.Electronic installation 1 can
To be the computing devices such as desktop PC, notebook, palm PC and server.The electronic installation 1 may include, but not only limit
In memory 11, processor 12 and display 13.Fig. 3 illustrate only the electronic installation 1 with component 11-13, but should manage
Solution is, it is not required that implements all components shown, the more or less component of the implementation that can be substituted.
Memory 11 can be the internal storage unit of electronic installation 1 in certain embodiments, such as the electronic installation 1
Hard disk or internal memory.Memory 11 can also be the External memory equipment of electronic installation 1 in further embodiments, such as electronics dress
Put the plug-in type hard disk being equipped with 1, intelligent memory card (Smart Media Card, SMC), secure digital (Secure
Digital, SD) card, flash card (Flash Card) etc..Further, memory 11 can also both include electronic installation 1
Internal storage unit also includes External memory equipment.Memory 11 is used to storing the application software that is installed on electronic installation 1 and each
Class data, such as program code of server-assignment control system 10 etc..Memory 11 can be also used for temporarily storing
Output or the data that will be exported.
Processor 12 can be in certain embodiments a central processing unit (Central Processing Unit,
CPU), microprocessor or other data processing chips, for the program code or processing data stored in run memory 11, example
Such as execute server distribution control system 10.
Display 13 can be in certain embodiments light-emitting diode display, liquid crystal display, touch-control liquid crystal display and
OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) touches device etc..Display 13 is used to be shown in
The information that is handled in electronic installation 1 and for showing visual user interface, such as business customizing interface etc..Electronic installation
1 part 11-13 is in communication with each other by system bus.
Referring to Fig. 5, it is the functional block diagram of the preferred embodiment of server-assignment control system 10 of the present invention.In this implementation
In example, server-assignment control system 10 can be divided into one or more modules, and one or more module is stored in
In memory 11, and it is performed by one or more processors (the present embodiment is processor 12), to complete the present invention.For example,
In Figure 5, server-assignment control system 10 can be divided into the first receiving module 101, the first distribute module 102, second
The distribute module 104 of receiving module 103 and second.Module alleged by the present invention is the series of computation for referring to complete specific function
Machine programmed instruction section, than program more suitable for describing the implementation procedure of server-assignment control system 10 in the electronic apparatus 1, its
In:
First receiving module 101, for receiving one or more interconnected systems of external system request call enterprises
The first access request;
Enterprises system connects enterprise external system by external network, by interior between multiple systems of built-in system
Portion's network service;Enterprises system includes multiple servers, server communication connection database;The multiple servers include enterprise
Portion staff one or more operation systems (Apps) used in everyday in the industry, and one or more interconnected systems
(Apps);The client of enterprises user passes through internal network login service device access service system or interconnected system.When having
When external system sends the first access request of the interconnected system of request call enterprises to enterprises system, server point
First access request is received with control system.
First distribute module 102, for the quantity according to the first access request received in the first preset time, from
The server that respective numbers are distributed in one server group handles first access request;
In the present embodiment, the multiple servers of enterprises system are divided into including at least first server group, the second clothes
Multiple server groups of device group of being engaged in and the 3rd server group;Wherein, the first access request is corresponding by the clothes in first server group
Device be engaged in handle.First preset time (for example, 5 seconds) is that server-assignment control system carries out server to the first access request
Distribute the interval duration of processing, i.e., server-assignment control system every the first preset time just to received in the time the
One access request carries out server-assignment processing.The first visit that server-assignment control system receives according to the first preset time
Ask the quantity (quantity of the first i.e. pending access request) of request, and according to corresponding allocation rule from first server group
The server of middle distribution respective amount handles the first access request received;Wherein, distribution server includes specified services
The IP address of device and port.The allocation rule is for example:When the first access request quantity be less than or equal to the first predetermined threshold value (such as
30) when, the access request of server process first of distribution A quantity (such as 1);When the quantity of the first access request is more than
After one predetermined threshold value, the quantity of the first access request is often incremented by the first increment (such as 50), then divides again on the basis of A quantity
First access request described in server process with B quantity (such as 2).
Second receiving module 103, the operation system for receiving enterprises ask the second access of batching data please
Ask;
Second distribute module 104, for the quantity according to batching data, respective numbers are distributed from second server group
Server handle second access request;
When the operation system of enterprises needs to carry out batching data, operation system is to server-assignment control system
Send the second access request of request batching data, server-assignment system receives second access request, analyze this second
The quantity of the batching data included in access request, further according to batching data quantity at predetermined regular from second service
The server for distributing respective numbers in device goes to handle second access request;The predetermined rule can be that predetermined mapping is closed
System or Else Rule algorithm.
Further, the present embodiment server-assignment control system 10 also includes:
3rd receiving module 105, for receiving one or more interconnected system request call external systems of enterprises
The 3rd access request;
3rd distribute module 106, for the quantity according to the 3rd access request received in the second preset time, from
The server that respective numbers are distributed in three server groups handles the 3rd access request.
When one or more interconnected system request call external systems of enterprises, interconnected system is to server-assignment
Control system sends the 3rd access request for calling external system, and server-assignment control system receives the 3rd access request.The
Two preset times (for example, 5 seconds) are distribution processing interval duration of the server-assignment control system to the 3rd access request, that is, are taken
Business device distribution control system carries out server-assignment every the second preset time to the 3rd access request received in the time;
The quantity of the 3rd access request received in the preset time of server-assignment control system analysis second, according to the 3rd obtained
The quantity of square access request, these the 3rd access requests are handled by the server of predetermined manner distribution respective numbers;Wherein, should
Predetermined manner can be default mapping relations or other preset algorithms, etc..
In the present embodiment, because the reception of the first access request, the second access request and the 3rd access request is by accessing
The sender of request determines that receiving the first access request, the second access request and the 3rd access request does not have sequencing.
Compared with prior art, this embodiment scheme marks off multiple services by using by the server in business system
Device group, the different types of access request received is directed to respectively from the clothes of corresponding server group, middle distribution respective numbers
Business device goes to handle, so that the processing on the access request of each type will not be interfered and influenceed, so avoids clothes
Business device is during certain type requests is handled because producing situation abnormal and that influence is brought to the processing that other types are asked
Occur.
Refering to Fig. 6, in the server-assignment control system of the present embodiment, above-mentioned second distribute module 104 is replaced with
Four distribute modules 107;
4th distribute module 107, for the batching data in second access request plan perform the time and
Quantity, the server that respective numbers are distributed from second server group handle second access request.
The quantity comprising batching data and plan perform the time in the second access request that operation system is sent, wherein, intend
The execution time refers to that operation system requires to complete the time of batching data.Server-assignment control system receives the second access
After request, first analyze the quantity of the batching data in second access request and intend performing the time, taken further according to separate unit
Business device performs the quantity for being capable of processing data in the time in the plan, and the number of servers at least needing to distribute is calculated;Most
The number of servers being calculated afterwards according to this, the server that respective numbers are distributed from second server group go to handle described the
Two access requests.For example, the quantity of the batching data in the second access request that operation system is sent is 20000, intends holding
The row time is 10 seconds, and the speed of single server processing data is 600 per second, i.e., single server is being intended performing energy in the time
Handle 6000 data, then can be calculated will handle this 20000 data intending performing in the time, then at least needs
4 servers of distribution are gone to handle second access request, then server-assignment control system is then divided from second server group
With 4 server process, second access request.
Required distribution is calculated most by performing T/A according to the plan of batching data in this embodiment scheme
The server of small number, so as to ensure to intend performing the number for the batching data that above-mentioned second access request can be completed in the time
On the premise of amount, distribute minimal number of server process second access request from second server group;So it may be such that
Remaining more idle server processing subsequent access requests, are reduced due to some the second access request in second server group
The server of distribution is excessive, and the situation for causing the server for handling subsequent access request inadequate occurs, and ensureing please to each access
The processing asked it is ageing.
Further, refering to Fig. 6, in the server-assignment control system of the present embodiment, by above-mentioned 3rd distribute module 106
Replace with the 5th distribute module 108;
In the present embodiment, the data-handling capacity of the external system for the current concurrent capability of the external system (i.e.
Can be simultaneously for the connection quantity of access).If the quantity of the 3rd access request received in the second preset time is without departing from described
The current concurrent capability of external system, then server-assignment control system by predetermined allocation rule (for example, mapping relations) from
The 3rd access request described in the server process of respective numbers is distributed in 3rd server group;If received in the second preset time
The 3rd access request quantity beyond the current concurrent capability of the external system, then server-assignment control system is according to institute
State the current concurrent capability of external system the 3rd access request received is divided at the multiple batches of server-assignment of progress successively
Reason, the outer not current concurrent capability of system is no more than per a batch of 3rd access request quantity.
Further, the present embodiment server-assignment control system also includes:
Feedback module, for the relevant information of the server of distribution to be fed back into corresponding access request side, and will be each
The result of access request feeds back to corresponding access request side.
Server-assignment control system is after each access request distributes server, and the correlation of the server of distribution is believed
Breath feeds back to corresponding access request side;Wherein, the relevant information of server includes IP address and port information.In each service
After device has handled corresponding access request, corresponding result is sent to server-assignment control system by each server
System, after server-assignment control system receives the result of each server, feeds back to corresponding visit by the result
Ask requesting party.
Refering to Fig. 7, the server-assignment control system of the present embodiment also includes:
Division module 109, for obtaining idle server in real time, and by the idle server got by default rule
Then it is divided into multiple server groups including at least first server group, second server group and the 3rd server group.
Because the distributed number of all kinds of access requests is over time in change, therefore, some periods possible first
Access request is especially more, and the data volume of some period batching datas is especially more, and some periods, then possible 3rd access please
Ask especially more.When a certain type of access in certain time period asks (for example, the first access request or the 3rd access request)
Quantity it is especially more, the request of other type of access especially less or it is relatively fewer when, the now then especially more access request pair of quantity
Server utilization rate in the server group answered can be very big, it is possible that server not enough influences the type access request
Processing progress and efficiency;But now, the request of remaining type of access is due to negligible amounts, the free time in corresponding server group
Server is more, causes server resource most cannot efficiently distribute use.In order to improve such case, the present embodiment passes through
Using going to obtain idle server in real time, and the server of acquisition is divided into including at least first server by preset rules
Multiple server groups of group, second server group and the 3rd server group;In this way, it is especially more in certain type of access number of requests,
When server in server group corresponding to the type access request is widely used, server-assignment control system can obtain it
Idle server in remaining server group, and server group is repartitioned according to preset rules, in the idle server got
Part can be divided into server group corresponding to the especially more access request of the quantity, ensure that the especially more access of the quantity please
The corresponding server group asked has enough servers to go to handle the type access request.In the present embodiment, the preset rules can
Think mean allocation rule, or distributed by default accounting, or be Else Rule.
The present embodiment is by dynamically adjusting the idle server quantity divided in each server group so that server
Utilization rate is maximum, while avoids the occurrence of some server group and do not have enough servers in the peak period of its corresponding access request
Occur for the situation of distribution processing, ensure that the treatment effeciency to all types of requests.
The present invention also proposes a kind of computer-readable recording medium, and the computer-readable recording medium storage has server point
With control system, the server-assignment control system can be by least one computing device, so that at least one processing
Device performs the server-assignment control method in any of the above-described embodiment.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the scope of the invention, it is every at this
Under the inventive concept of invention, the equivalent structure transformation made using description of the invention and accompanying drawing content, or directly/use indirectly
It is included in other related technical areas in the scope of patent protection of the present invention.
Claims (10)
1. a kind of electronic installation, it is characterised in that the electronic installation includes memory, processor and is stored in the memory
Server-assignment control system that is upper and can running on the processor, the server-assignment control system is by the processing
Device realizes following steps when performing:
A, the first access request of one or more interconnected systems of external system request call enterprises is received;
B, according to the quantity of the first access request received in the first preset time, respective counts are distributed from first server group
The server of amount handles first access request;
C, the second access request of the operation system request batching data of enterprises is received;
D, the quantity of the batching data in second access request, respective numbers are distributed from second server group
Server handles second access request.
2. electronic installation as claimed in claim 1, it is characterised in that the processor is additionally operable to perform the server-assignment
Control system, to realize following steps:
E, the 3rd access request of one or more interconnected system request call external systems of enterprises is received;
F, according to the quantity of the 3rd access request received in the second preset time, respective counts are distributed from the 3rd server group
The server of amount handles the 3rd access request.
3. electronic installation as claimed in claim 2, it is characterised in that the step F is replaced with:
According to the quantity of the 3rd access request received in the second preset time, and with reference to the data processing of the external system
Ability, the server that respective numbers are distributed from the 3rd server group handle the 3rd access request.
4. electronic installation as claimed in claim 1, it is characterised in that the step D is replaced with:
The plan of batching data in second access request performs time and quantity, is distributed from second server group
The server of respective numbers handles second access request.
5. the electronic installation as described in any one in claim 2-4, it is characterised in that the processor can also be used to perform
The server-assignment control system, to realize following steps:
Idle server is obtained in real time, and the idle server got is divided into including at least first by preset rules
Multiple server groups of server group, second server group and the 3rd server group.
6. a kind of server-assignment control method, it is characterised in that the method comprising the steps of:
A, the first access request of one or more interconnected systems of external system request call enterprises is received;
B, according to the quantity of the first access request received in the first preset time, respective counts are distributed from first server group
The server of amount handles first access request;
C, the second access request of the operation system request batching data of enterprises is received;
D, the quantity of the batching data in second access request, respective numbers are distributed from second server group
Server handles second access request.
7. server-assignment control method as claimed in claim 6, it is characterised in that this method also includes:
E, the 3rd access request of one or more interconnected system request call external systems of enterprises is received;
F, according to the quantity of the 3rd access request received in the second preset time, respective counts are distributed from the 3rd server group
The server of amount handles the 3rd access request.
8. server-assignment control method as claimed in claim 7, it is characterised in that the step F is replaced with:
According to the quantity of the 3rd access request received in the second preset time, and with reference to the data processing of the external system
Ability, the server that respective numbers are distributed from the 3rd server group handle the 3rd access request.
9. server-assignment control method as claimed in claim 6, it is characterised in that the step D is replaced with:
The plan of batching data in second access request performs time and quantity, is distributed from second server group
The server of respective numbers handles second access request.
10. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium storage has server point
With control system, the server-assignment control system can be by least one computing device, so that at least one processing
Device performs the server-assignment control method as described in any one of claim 6-9.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710658107.9A CN107682391B (en) | 2017-08-04 | 2017-08-04 | Electronic device, server allocation control method, and computer-readable storage medium |
PCT/CN2017/105028 WO2019024235A1 (en) | 2017-08-04 | 2017-09-30 | Electronic device, server allocation control method and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710658107.9A CN107682391B (en) | 2017-08-04 | 2017-08-04 | Electronic device, server allocation control method, and computer-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107682391A true CN107682391A (en) | 2018-02-09 |
CN107682391B CN107682391B (en) | 2020-06-30 |
Family
ID=61135314
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710658107.9A Active CN107682391B (en) | 2017-08-04 | 2017-08-04 | Electronic device, server allocation control method, and computer-readable storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107682391B (en) |
WO (1) | WO2019024235A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109246071A (en) * | 2018-06-28 | 2019-01-18 | 平安科技(深圳)有限公司 | Method for processing business, calls management system and transaction processing system at operation system |
CN111669294A (en) * | 2020-06-22 | 2020-09-15 | 南方电网数字电网研究院有限公司 | Monitoring system configuration method, device, monitoring system and storage medium |
CN114500661A (en) * | 2021-12-22 | 2022-05-13 | 新奥新智科技有限公司 | Current limiting device, method and device and storage medium |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112068956A (en) * | 2020-08-24 | 2020-12-11 | 北京首汽智行科技有限公司 | Load balancing method based on redis cache and server |
CN112596899A (en) * | 2020-12-18 | 2021-04-02 | 江苏省苏力环境科技有限责任公司 | Pollution source online monitoring concurrent data processing method, system and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030041130A1 (en) * | 2001-07-12 | 2003-02-27 | Harrisville-Wolff Carol L. | Service provider system for delivering services in a distributed computing environment |
CN103516536A (en) * | 2012-06-26 | 2014-01-15 | 重庆新媒农信科技有限公司 | Server service request parallel processing method based on thread number limit and system thereof |
CN105553724A (en) * | 2015-12-17 | 2016-05-04 | 北京奇虎科技有限公司 | Method and device for processing data request and obtaining server information |
CN105930216A (en) * | 2016-04-15 | 2016-09-07 | 平安科技(深圳)有限公司 | Automatic scheduling method and system for electronic signature system and server |
CN106294261A (en) * | 2016-08-22 | 2017-01-04 | 贵州电网有限责任公司电力科学研究院 | A kind of server architecture of high-performance real-time response |
CN106453641A (en) * | 2016-11-24 | 2017-02-22 | 深圳市小满科技有限公司 | Dynamic enterprise cloud service platform expansion method, device and system |
CN106550003A (en) * | 2015-09-23 | 2017-03-29 | 腾讯科技(深圳)有限公司 | The control method of load balancing, apparatus and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103581273B (en) * | 2012-08-08 | 2017-06-06 | 阿里巴巴集团控股有限公司 | A kind of distributed system performs method, the apparatus and system of business |
-
2017
- 2017-08-04 CN CN201710658107.9A patent/CN107682391B/en active Active
- 2017-09-30 WO PCT/CN2017/105028 patent/WO2019024235A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030041130A1 (en) * | 2001-07-12 | 2003-02-27 | Harrisville-Wolff Carol L. | Service provider system for delivering services in a distributed computing environment |
CN103516536A (en) * | 2012-06-26 | 2014-01-15 | 重庆新媒农信科技有限公司 | Server service request parallel processing method based on thread number limit and system thereof |
CN106550003A (en) * | 2015-09-23 | 2017-03-29 | 腾讯科技(深圳)有限公司 | The control method of load balancing, apparatus and system |
CN105553724A (en) * | 2015-12-17 | 2016-05-04 | 北京奇虎科技有限公司 | Method and device for processing data request and obtaining server information |
CN105930216A (en) * | 2016-04-15 | 2016-09-07 | 平安科技(深圳)有限公司 | Automatic scheduling method and system for electronic signature system and server |
CN106294261A (en) * | 2016-08-22 | 2017-01-04 | 贵州电网有限责任公司电力科学研究院 | A kind of server architecture of high-performance real-time response |
CN106453641A (en) * | 2016-11-24 | 2017-02-22 | 深圳市小满科技有限公司 | Dynamic enterprise cloud service platform expansion method, device and system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109246071A (en) * | 2018-06-28 | 2019-01-18 | 平安科技(深圳)有限公司 | Method for processing business, calls management system and transaction processing system at operation system |
WO2020000807A1 (en) * | 2018-06-28 | 2020-01-02 | 平安科技(深圳)有限公司 | Service processing method, service system, call management system and service processing system |
CN111669294A (en) * | 2020-06-22 | 2020-09-15 | 南方电网数字电网研究院有限公司 | Monitoring system configuration method, device, monitoring system and storage medium |
CN111669294B (en) * | 2020-06-22 | 2023-06-30 | 南方电网数字电网研究院有限公司 | Monitoring system configuration method, device, monitoring system and storage medium |
CN114500661A (en) * | 2021-12-22 | 2022-05-13 | 新奥新智科技有限公司 | Current limiting device, method and device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107682391B (en) | 2020-06-30 |
WO2019024235A1 (en) | 2019-02-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107682391A (en) | Electronic installation, server-assignment control method and computer-readable recording medium | |
CN106209682B (en) | Business scheduling method, device and system | |
CN110308980A (en) | Batch processing method, device, equipment and the storage medium of data | |
CN108762931A (en) | Method for scheduling task, server based on distributed scheduling system and storage medium | |
CN107124472A (en) | Load-balancing method and device, computer-readable recording medium | |
CN109478147B (en) | Adaptive resource management in distributed computing systems | |
CN105516086B (en) | Method for processing business and device | |
CN113849312B (en) | Data processing task allocation method and device, electronic equipment and storage medium | |
US20100042723A1 (en) | Method and system for managing load in a network | |
US20200348977A1 (en) | Resource scheduling methods, device and system, and central server | |
CN116541134B (en) | Method and device for deploying containers in multi-architecture cluster | |
CN103036946A (en) | Method and system for processing file backup on cloud platform | |
CN111078436A (en) | Data processing method, device, equipment and storage medium | |
CN106407021A (en) | Queue-based business request processing method | |
CN107133332B (en) | Query task allocation method and device | |
US20160019089A1 (en) | Method and system for scheduling computing | |
CN107766160A (en) | Queue message processing method and terminal device | |
CN107704322A (en) | Ask distribution method and device | |
CN103516763B (en) | Method for processing resource and system and device | |
CN110300188A (en) | Data transmission system, method and apparatus | |
CN114661462A (en) | Resource allocation method, system, computer readable storage medium and electronic device | |
Huang et al. | Rush: A robust scheduler to manage uncertain completion-times in shared clouds | |
CN109347982A (en) | A kind of dispatching method and device of data center | |
CN105872082B (en) | Fine granularity resource response system based on container cluster load-balancing algorithm | |
CN109189581A (en) | A kind of job scheduling method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |