WO2019024235A1 - 电子装置、服务器分配控制方法和计算机可读存储介质 - Google Patents
电子装置、服务器分配控制方法和计算机可读存储介质 Download PDFInfo
- Publication number
- WO2019024235A1 WO2019024235A1 PCT/CN2017/105028 CN2017105028W WO2019024235A1 WO 2019024235 A1 WO2019024235 A1 WO 2019024235A1 CN 2017105028 W CN2017105028 W CN 2017105028W WO 2019024235 A1 WO2019024235 A1 WO 2019024235A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- server
- access request
- server group
- servers
- allocation control
- Prior art date
Links
Images
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/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
-
- 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
Definitions
- the present invention relates to the field of communications technologies, and in particular, to an electronic device, a server allocation control method, and a computer readable storage medium.
- the internal system of the enterprise provides interface services to external systems.
- the server thread inside the enterprise is blocked, the internal system response is slow, and the user's demand cannot be timely responded. Therefore, a strategy is needed to enable different service requests from servers within and outside the enterprise to be responded to in a timely manner without interfering with each other.
- the main object of the present invention is to provide an electronic device, a server allocation control method, and a storage medium, which are intended to enable different service requests of the internal and external systems of the enterprise to be timely responded without interfering with each other.
- a first aspect of the present invention provides a server allocation control method, the method comprising the steps of:
- a second aspect of the present invention provides an electronic device including a memory, a processor, and a server allocation control system stored on the memory and operable on the processor, the server distribution control system being executed by the processor The following steps are implemented:
- the first service is received according to the number of first access requests received within the first preset time A corresponding number of servers are allocated in the group to process the first access request;
- a third aspect of the invention provides a computer readable storage medium having stored thereon at least one computer readable instruction executable by a processing device to:
- the technical solution of the present invention divides the servers in the enterprise system into multiple server groups, and respectively processes the different types of access requests received from the corresponding server groups, and allocates corresponding numbers of servers to process, thereby making each type
- the processing of the access requests does not interfere and affect each other, thus avoiding the situation in which the server affects the processing of other types of requests due to exceptions in the process of processing a certain type of request.
- FIG. 1 is a schematic flowchart of a first embodiment of a server allocation control method according to the present invention
- FIG. 2 is a schematic flowchart of a second embodiment of a server allocation control method according to the present invention.
- FIG. 3 is a schematic flowchart of a third embodiment of a server allocation control method according to the present invention.
- FIG. 4 is a schematic diagram of an operating environment of a server distribution control system according to a preferred embodiment of the present invention.
- FIG. 5 is a block diagram showing a program of a first embodiment of a server distribution control system according to the present invention.
- FIG. 6 is a block diagram showing a program of a second embodiment of a server allocation control system according to the present invention.
- Figure 7 is a block diagram showing the program of the third embodiment of the server distribution control system of the present invention.
- FIG. 1 is a schematic flowchart of a first embodiment of a server allocation control method according to the present invention.
- the server allocation control method includes:
- Step S10 receiving an external system request to invoke one or more contacts within the enterprise First access request
- the internal system of the enterprise connects to the external system of the enterprise through an external network, and multiple systems of the internal system communicate through the internal network;
- the internal system of the enterprise includes multiple servers, and the server communicates with the database;
- the multiple servers include one used by the internal staff of the enterprise.
- multiple business systems (Apps), and one or more associated systems (Apps); clients of internal users access the business system or associated system through the internal network login server.
- the server allocation control system receives the first access request when an external system issues a first access request to the internal system of the enterprise to invoke the associated system within the enterprise.
- Step S20 Allocating a corresponding number of servers from the first server group to process the first access request according to the number of the first access requests received in the first preset time;
- the multiple servers of the internal system of the enterprise are divided into multiple server groups including at least a first server group, a second server group, and a third server group; wherein the first access request is corresponding to the first server group.
- the first preset time (for example, 5 seconds) is an interval length of the server allocation control system performing server allocation processing on the first access request, that is, the server allocation control system receives the first time in the time interval every first preset time.
- An access request is made for server allocation processing.
- the server allocation control system allocates the first number of access requests according to the first preset time (ie, the number of first access requests to be processed), and allocates a corresponding number of servers from the first server group according to the corresponding allocation rule.
- the allocation rule is, for example, when the number of first access requests is less than or equal to a first preset threshold (for example, 30), the server that allocates the A number (for example, one) processes the first access request; when the number of the first access requests exceeds After the first preset threshold, the number of the first access request is incremented by the first increment (for example, 50), and the server of the B number (for example, 2) is allocated on the basis of the number of A to process the first access request. .
- a first preset threshold for example, 30
- the server that allocates the A number for example, one
- the number of the first access request is incremented by the first increment (for example, 50)
- the server of the B number for example, 2
- Step S30 receiving a second access request for requesting batch data of the business system in the enterprise
- Step S40 Allocating a corresponding number of servers from the second server group to process the second access request according to the quantity of batch processing data;
- the business system allocates a second access request for requesting batch data to the server, and the server distribution system receives the second access request, and analyzes the second access request. Batching the quantity of data, and then allocating a corresponding number of servers from the second server according to a predetermined rule according to the quantity of the batch data to process the second access request; the predetermined rule may be a predetermined mapping relationship or other rule algorithm .
- server allocation control method of this embodiment further includes:
- Step S50 receiving one or more associated systems in the enterprise requesting to invoke a third access request of the external system
- Step S60 Allocate a corresponding number of servers from the third server group to process the third access request according to the number of the third access requests received in the second preset time.
- the associated system When one or more associated systems within the enterprise request to call the external system, the associated system sends a third access request to the server to the server control system to call the external system, and the server allocation control system receives the third access request.
- the second preset time (for example, 5 seconds) is used by the server to allocate the control processing system to the third access request, and the server access control system receives the third access request for the time every second preset time.
- the server allocation control system analyzes the number of third access requests received in the second preset time, and allocates a corresponding number of servers to process the third access according to the obtained number of third-party access requests.
- the request may be a preset mapping relationship or other preset algorithm, and the like.
- steps S10, S20, steps S30, S40, steps S50, and S60 of the embodiment are not sequentially executed between the three sets of steps.
- steps S30 and S40 may be performed before steps S10 and S20, and step S50.
- S60 may be performed in front of steps S30, S40.
- the solution in this embodiment divides the servers in the enterprise system into multiple server groups, and allocates corresponding number of servers from the corresponding server groups for different types of access requests received. Processing, so that the processing of each type of access request does not interfere and affect each other, thus avoiding the situation that the server affects the processing of other types of requests due to the occurrence of an exception in the process of processing a certain type of request.
- step S40 is replaced with:
- Step S70 Allocate a corresponding number of servers from the second server group to process the second access request according to the planned execution time and quantity of the batch data in the second access request.
- the second access request sent by the service system includes the quantity of the batch data and the planned execution time, wherein the planned execution time refers to the time when the business system requests to complete the batch data.
- the server allocation control system After receiving the second access request, the server allocation control system first analyzes the quantity of the batch processing data and the planned execution time in the second access request, and then according to the quantity that the single server can process the data within the planned execution time. Calculate the minimum number of servers that need to be allocated; finally, according to the calculated number of servers, allocate a corresponding number of servers from the second server group to process the second access request.
- the number of batch data in the second access request sent by the service system is 20,000
- the planned execution time is 10 seconds
- the speed of processing data by a single server is 600 per second, that is, when a single server is to be executed.
- the server distribution control system is from the second Four servers are allocated in the server group to process the second access request.
- the solution of the embodiment determines the minimum number of servers to be allocated according to the planned execution time and quantity of the batch data, thereby ensuring the premise that the number of batch data of the second access request can be completed within the intended execution time.
- the second access request is processed by allocating a minimum number of servers from the second server group; thus, the more idle servers remaining in the second server group can process subsequent access requests, reducing the allocation of the second access request There are too many servers, and the server that handles subsequent access requests is insufficient, and the timeliness of processing each access request is guaranteed.
- step S60 is replaced with:
- Step S80 According to the number of third access requests received in the second preset time, combined with the data processing capability of the external system, allocate a corresponding number of servers from the third server group to process the third access request.
- the data processing capability of the external system is the current concurrent capability of the external system (the number of connections that can be accessed simultaneously). If the number of the third access requests received in the second preset time does not exceed the current concurrent capability of the external system, the server allocation control system allocates the third access group according to a predetermined allocation rule (eg, a mapping relationship). Corresponding number of servers process the third access request; if the number of third access requests received in the second preset time exceeds the current concurrent capability of the external system, the server allocation control system is based on the current external system The concurrent capability divides the received third access request into multiple batches for server allocation processing, and the number of third access requests of each batch does not exceed the current concurrent capability of the external non-system.
- a predetermined allocation rule eg, a mapping relationship
- the server allocation control method of the embodiment further includes:
- the server allocation control system allocates the server for each access request, the related information of the allocated server is fed back to the corresponding access requester; wherein the related information of the server includes the IP address and the port information.
- the processing result of each access request is fed back to the corresponding access requester.
- each server After each server processes the corresponding access request, each server sends the corresponding processing result to the server allocation control system. After receiving the processing result of each server, the server allocation control system feeds back the processing result to the corresponding access requester. .
- the server allocation control method of this embodiment further includes:
- Step S90 Acquire an idle server in real time, and divide the obtained idle server into a plurality of server groups including at least a first server group, a second server group, and a third server group according to a preset rule.
- some time periods may have a particularly large number of first access requests, and some time periods have a lot of data for batch processing data, and some time periods may be the first.
- Three access requests are particularly numerous.
- the number of access requests (for example, the first access request or the third access request) is particularly large in a certain period of time, and other types of access requests are particularly small or relatively small, the number is particularly large at this time.
- the server usage in the server group corresponding to the access request will be very large, and the server may not be enough to affect the processing progress and efficiency of the type of access request; however, at this time, the remaining types of access requests are small, and the corresponding server group There are more idle servers, resulting in the most efficient allocation of server resources.
- the embodiment obtains an idle server by using real-time, and divides the acquired server into multiple server groups including at least a first server group, a second server group, and a third server group according to a preset rule.
- the server allocation control system acquires the idle servers in the remaining server groups, and re-divides the servers according to the preset rules.
- the group, the obtained part of the idle server is divided into the server group corresponding to the particularly large number of access requests, and the corresponding server group that guarantees the number of access requests has sufficient servers to process the type of access request.
- the preset rule may be an average allocation rule, or allocated according to a preset proportion, or other rules.
- the number of idle servers in each server group is dynamically adjusted, so that the server usage rate is maximized, and a certain server group does not have enough servers for allocation processing during the peak period of its corresponding access request. , to ensure the processing efficiency of each type of request.
- multiple servers in the internal system of the enterprise may be divided into a first server group, a second server group, a third server group, and a standby server group, and thus, steps in the solution
- the S20, S40 and S60 can use the following solutions:
- the step S20 includes:
- the determined first quantity is less than or equal to the number of idle servers in the first server group, allocating the determined first number of idle servers from the first server group to process the first access request;
- the first access request is processed by the idle server in the first server and the first supplemental number of servers obtained by the first server; wherein The first supplemental amount is equal to a difference between the determined first number and the number of idle servers in the first server group.
- the step S40 includes:
- the determined second quantity is less than or equal to the number of idle servers in the second server group, the determined second number of idle servers are allocated from the second server group to process the second access request;
- the determined second quantity is greater than the number of idle servers in the second server group, acquiring a second supplementary number of servers from the standby server group, by using the idle server in the second server, and acquiring the The second supplemental number of servers processes the second access request; wherein the second supplemental amount is equal to a difference between the determined second number and the number of idle servers in the second server group.
- the step S60 includes:
- the determined third quantity is less than or equal to the number of idle servers in the third server group, allocating the determined third number of idle servers from the third server group to process the third access request;
- the determined third quantity is greater than the number of idle servers in the third server group, obtaining a third supplementary number of servers from the standby server group, by using the idle server in the third server, and acquiring the The third supplemental number of servers processes the third access request; wherein the third supplemental amount is equal to a difference between the determined third number and the number of idle servers in the third server group.
- the number of allocations of the server is obtained by using a mapping relationship between the number of requests of the first, second, and third access requests and the number of servers; the server in the standby server group is used in the first and second Or when the server in the third server group is insufficient to process the corresponding access request, it is called by the server distribution control system.
- the invention also proposes a server allocation control system.
- FIG. 4 is a schematic diagram of an operating environment of a preferred embodiment of the server distribution control system 10 of the present invention.
- the server distribution control system 10 is installed and operated in the electronic device 1.
- the electronic device 1 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a server.
- the electronic device 1 may include, but is not limited to, a memory 11, processing 12 and display 13.
- Figure 3 shows only the electronic device 1 with components 11-13, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
- the memory 11 may be an internal storage unit of the electronic device 1 in some embodiments, such as a hard disk or memory of the electronic device 1.
- the memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in hard disk equipped on the electronic device 1, a smart memory card (SMC), and a secure digital (SD). Card, flash card, etc.
- the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device.
- the memory 11 is used to store application software and various types of data installed in the electronic device 1, such as program codes of the server distribution control system 10.
- the memory 11 can also be used to temporarily store data that has been output or is about to be output.
- the processor 12 in some embodiments, may be a Central Processing Unit (CPU), microprocessor or other data processing chip for running program code or processing data stored in the memory 11, such as performing server allocation control. System 10 and so on.
- CPU Central Processing Unit
- microprocessor or other data processing chip for running program code or processing data stored in the memory 11, such as performing server allocation control. System 10 and so on.
- the display 13 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch sensor, or the like in some embodiments.
- the display 13 is for displaying information processed in the electronic device 1 and a user interface for displaying visualization, such as a business customization interface or the like.
- the components 11-13 of the electronic device 1 communicate with one another via a system bus.
- FIG. 5 is a program block diagram of the first embodiment of the server distribution control system 10 of the present invention.
- the server allocation control system 10 can be divided into one or more modules, one or more modules being stored in the memory 11, and by one or more processors (the processor 12 in this embodiment) It is performed to complete the present invention.
- the server allocation control system 10 can be divided into a first receiving module 101, a first assigning module 102, a second receiving module 103, and a second assigning module 104.
- module refers to a series of computer program instruction segments capable of performing a specific function, and is more suitable than the program for describing the execution process of the server distribution control system 10 in the electronic device 1, wherein:
- the first receiving module 101 is configured to receive, by the external system, a first access request for invoking one or more associated systems in the enterprise;
- the internal system of the enterprise connects to the external system of the enterprise through an external network, and multiple systems of the internal system communicate through the internal network;
- the internal system of the enterprise includes multiple servers, and the server communicates with the database;
- the multiple servers include one used by the internal staff of the enterprise.
- multiple business systems (Apps), and one or more associated systems (Apps); clients of internal users access the business system or associated system through the internal network login server.
- An external system makes a request to the internal system of the enterprise to call the internal association
- the server allocation control system receives the first access request when the system first requests for access.
- the first allocating module 102 is configured to allocate a corresponding number of servers from the first server group to process the first access request according to the quantity of the first access request received in the first preset time;
- the multiple servers of the internal system of the enterprise are divided into multiple server groups including at least a first server group, a second server group, and a third server group; wherein the first access request is corresponding to the first server group.
- the first preset time (for example, 5 seconds) is an interval length of the server allocation control system performing server allocation processing on the first access request, that is, the server allocation control system receives the first time in the time interval every first preset time.
- An access request is made for server allocation processing.
- the server allocation control system allocates the first number of access requests according to the first preset time (ie, the number of first access requests to be processed), and allocates a corresponding number of servers from the first server group according to the corresponding allocation rule.
- the allocation rule is, for example, when the number of first access requests is less than or equal to a first preset threshold (for example, 30), the server that allocates the A number (for example, one) processes the first access request; when the number of the first access requests exceeds After the first preset threshold, the number of the first access request is incremented by the first increment (for example, 50), and the server of the B number (for example, 2) is allocated on the basis of the number of A to process the first access request. .
- a first preset threshold for example, 30
- the server that allocates the A number for example, one
- the number of the first access request is incremented by the first increment (for example, 50)
- the server of the B number for example, 2
- the second receiving module 103 is configured to receive a second access request for requesting batch data of the business system in the enterprise;
- a second allocation module 104 configured to allocate a corresponding number of servers from the second server group to process the second access request according to the quantity of batch processing data
- the business system allocates a second access request for requesting batch data to the server, and the server distribution system receives the second access request, and analyzes the second access request. Batching the quantity of data, and then allocating a corresponding number of servers from the second server according to a predetermined rule according to the quantity of the batch data to process the second access request; the predetermined rule may be a predetermined mapping relationship or other rule algorithm .
- server distribution control system 10 of this embodiment further includes:
- the third receiving module 105 is configured to receive a third access request that the one or more associated systems in the enterprise request to invoke the external system;
- the third allocating module 106 is configured to allocate a corresponding number of servers from the third server group to process the third access request according to the number of the third access requests received in the second preset time.
- the associated system When one or more associated systems within the enterprise request to call the external system, the associated system sends a third access request to the server to the server control system to call the external system, and the server allocation control system receives the third access request.
- the second preset time (for example, 5 seconds) is the service
- the allocation processing interval of the third access request by the server allocation control system that is, the server allocation control system performs server allocation for the third access request received during the second preset time; the server allocation control system analyzes the second
- the number of the third access requests received in the preset time period is allocated according to the obtained number of third-party access requests, and the corresponding number of servers are allocated in a preset manner to process the third access requests; wherein the preset manner may be pre- Set mapping relationships or other preset algorithms, etc.
- steps S10, S20, steps S30, S40, steps S50, and S60 of the embodiment are not sequentially executed between the three sets of steps.
- steps S30 and S40 may be performed before steps S10 and S20, and step S50.
- S60 may be performed in front of steps S30, S40.
- the solution in this embodiment divides the servers in the enterprise system into multiple server groups, and allocates corresponding number of servers from the corresponding server groups for different types of access requests received. Processing, so that the processing of each type of access request does not interfere and affect each other, thus avoiding the situation that the server affects the processing of other types of requests due to the occurrence of an exception in the process of processing a certain type of request.
- the second allocation module 104 is replaced by a fourth distribution module 107;
- the fourth allocating module 107 is configured to allocate a corresponding number of servers from the second server group to process the second access request according to the planned execution time and quantity of the batch data in the second access request.
- the second access request sent by the service system includes the quantity of the batch data and the planned execution time, wherein the planned execution time refers to the time when the business system requests to complete the batch data.
- the server allocation control system After receiving the second access request, the server allocation control system first analyzes the quantity of the batch processing data and the planned execution time in the second access request, and then according to the quantity that the single server can process the data within the planned execution time. Calculate the minimum number of servers that need to be allocated; finally, according to the calculated number of servers, allocate a corresponding number of servers from the second server group to process the second access request.
- the number of batch data in the second access request sent by the service system is 20,000
- the planned execution time is 10 seconds
- the speed of processing data by a single server is 600 per second, that is, the single server is in the execution time.
- Can process 6000 data then it can be calculated that to process the 20,000 data in the intended execution time, at least 4 servers need to be allocated to process the second access request, then the server distribution control system is from the second server group. Four servers are allocated to process the second access request.
- the solution of this embodiment is calculated by calculating the time and quantity of the batch data according to the execution time. Outgoing the minimum number of servers to be allocated, thereby ensuring that the minimum number of servers are allocated from the second server group to process the second access on the premise that the number of batch data of the second access request can be completed within the execution time
- the request may be such that more idle servers in the second server group process subsequent access requests, reducing the number of servers that are allocated for a second access request, and causing insufficient processing of the server for processing subsequent access requests. Timeliness of processing each access request.
- the third allocation module 106 is replaced with the fifth distribution module 108;
- the data processing capability of the external system is the current concurrent capability of the external system (the number of connections that can be accessed simultaneously). If the number of the third access requests received in the second preset time does not exceed the current concurrent capability of the external system, the server allocation control system allocates the third access group according to a predetermined allocation rule (eg, a mapping relationship). Corresponding number of servers process the third access request; if the number of third access requests received in the second preset time exceeds the current concurrent capability of the external system, the server allocation control system is based on the current external system The concurrent capability divides the received third access request into multiple batches for server allocation processing, and the number of third access requests of each batch does not exceed the current concurrent capability of the external non-system.
- a predetermined allocation rule eg, a mapping relationship
- server allocation control system of this embodiment further includes:
- the feedback module is configured to feed back related information of the allocated server to the corresponding access requester, and feed back the processing result of each access request to the corresponding access requester.
- the server allocation control system After the server allocation control system allocates the server for each access request, the related information of the allocated server is fed back to the corresponding access requester; wherein the related information of the server includes the IP address and the port information.
- each server After each server processes the corresponding access request, each server sends the corresponding processing result to the server allocation control system. After receiving the processing result of each server, the server allocation control system feeds back the processing result to the corresponding access requester. .
- the server allocation control system of this embodiment further includes:
- the dividing module 109 is configured to acquire an idle server in real time, and divide the obtained idle server into a plurality of server groups including at least a first server group, a second server group, and a third server group according to a preset rule.
- some time periods may have a particularly large number of first access requests, and some time periods have a lot of data for batch processing data, and some time periods may be the first.
- Three access requests are particularly numerous.
- the number of access requests (for example, the first access request or the third access request) is particularly large in a certain period of time, and other types of access requests are particularly small or relatively small, the number is particularly large at this time.
- the server usage in the server group corresponding to the access request will be very large, and the service may appear.
- the server is not enough to affect the processing progress and efficiency of this type of access request; however, at this time, the remaining types of access requests are small, and there are more idle servers in the corresponding server group, resulting in the most efficient allocation of server resources. .
- the embodiment obtains an idle server by using real-time, and divides the acquired server into multiple server groups including at least a first server group, a second server group, and a third server group according to a preset rule.
- the server allocation control system acquires the idle servers in the remaining server groups, and re-divides the servers according to the preset rules.
- the group, the obtained part of the idle server is divided into the server group corresponding to the particularly large number of access requests, and the corresponding server group that guarantees the number of access requests has sufficient servers to process the type of access request.
- the preset rule may be an average allocation rule, or allocated according to a preset proportion, or other rules.
- the number of idle servers in each server group is dynamically adjusted, so that the server usage rate is maximized, and a certain server group does not have enough servers for allocation processing during the peak period of its corresponding access request. , to ensure the processing efficiency of each type of request.
- the present invention also provides a computer readable storage medium storing a server allocation control system, the server allocation control system being executable by at least one processor to cause the at least one processor to perform the above-described A server allocation control method in an embodiment.
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
Description
Claims (20)
- 一种服务器分配控制方法,其特征在于,该方法包括步骤:A1、接收外部系统请求调用企业内部的一个或多个关联系统的第一访问请求;B1、根据第一预设时间内接收到的第一访问请求的数量,从第一服务器组中分配相应数量的服务器来处理所述第一访问请求;C1、接收企业内部的业务系统请求批处理数据的第二访问请求;D1、根据所述第二访问请求中的批处理数据的数量,从第二服务器组中分配相应数量的服务器来处理所述第二访问请求。
- 如权利要求1所述的服务器分配控制方法,其特征在于,该方法还包括:E1、接收企业内部的一个或多个关联系统请求调用外部系统的第三访问请求;F1、根据第二预设时间内接收到的第三访问请求的数量,从第三服务器组中分配相应数量的服务器来处理第三访问请求。
- 如权利要求2所述的服务器分配控制方法,其特征在于,所述方法还包括:实时获取空闲的服务器,并将获取到的空闲的服务器按预设规则划分为至少包括第一服务器组、第二服务器组和第三服务器组的多个服务器组。
- 如权利要求2所述的服务器分配控制方法,其特征在于,所述步骤F1替换为:根据第二预设时间内接收到的第三访问请求的数量,并结合所述外部系统的数据处理能力,从第三服务器组中分配相应数量的服务器来处理第三访问请求。
- 如权利要求4所述的服务器分配控制方法,其特征在于,所述方法还包括:实时获取空闲的服务器,并将获取到的空闲的服务器按预设规则划分为至少包括第一服务器组、第二服务器组和第三服务器组的多个服务器组。
- 如权利要求1所述的服务器分配控制方法,其特征在于,所述步骤D1替换为:根据所述第二访问请求中的批处理数据的拟执行时间及数量,从 第二服务器组中分配相应数量的服务器来处理所述第二访问请求。
- 如权利要求6所述的服务器分配控制方法,其特征在于,所述方法还包括:实时获取空闲的服务器,并将获取到的空闲的服务器按预设规则划分为至少包括第一服务器组、第二服务器组和第三服务器组的多个服务器组。
- 一种电子装置,其特征在于,所述电子装置包括存储器、处理器及存储于所述存储器上并可在所述处理器上运行的服务器分配控制系统,所述服务器分配控制系统被所述处理器执行时实现如下步骤:A2、接收外部系统请求调用企业内部的一个或多个关联系统的第一访问请求;B2、根据第一预设时间内接收到的第一访问请求的数量,从第一服务器组中分配相应数量的服务器来处理所述第一访问请求;C2、接收企业内部的业务系统请求批处理数据的第二访问请求;D2、根据所述第二访问请求中的批处理数据的数量,从第二服务器组中分配相应数量的服务器来处理所述第二访问请求。
- 如权利要求8所述的电子装置,其特征在于,所述处理器还用于执行所述服务器分配控制系统,以实现如下步骤:E2、接收企业内部的一个或多个关联系统请求调用外部系统的第三访问请求;F2、根据第二预设时间内接收到的第三访问请求的数量,从第三服务器组中分配相应数量的服务器来处理第三访问请求。
- 如权利要求9所述的电子装置,其特征在于,所述处理器还可用于执行所述服务器分配控制系统,以实现如下步骤:实时获取空闲的服务器,并将获取到的空闲的服务器按预设规则划分为至少包括第一服务器组、第二服务器组和第三服务器组的多个服务器组。
- 如权利要求9所述的电子装置,其特征在于,所述步骤F2替换为:根据第二预设时间内接收到的第三访问请求的数量,并结合所述外部系统的数据处理能力,从第三服务器组中分配相应数量的服务器来处理第三访问请求。
- 如权利要求11所述的电子装置,其特征在于,所述处理器还可用于执行所述服务器分配控制系统,以实现如下步骤:实时获取空闲的服务器,并将获取到的空闲的服务器按预设规则划分为至少包括第一服务器组、第二服务器组和第三服务器组的多个服务器组。
- 如权利要求8所述的电子装置,其特征在于,所述步骤D2替换为:根据所述第二访问请求中的批处理数据的拟执行时间及数量,从第二服务器组中分配相应数量的服务器来处理所述第二访问请求。
- 如权利要求13所述的电子装置,其特征在于,所述处理器还可用于执行所述服务器分配控制系统,以实现如下步骤:实时获取空闲的服务器,并将获取到的空闲的服务器按预设规则划分为至少包括第一服务器组、第二服务器组和第三服务器组的多个服务器组。
- 一种计算机可读存储介质,其特征在于,其上存储有至少一个可被处理设备执行以实现以下操作的计算机可读指令:接收外部系统请求调用企业内部的一个或多个关联系统的第一访问请求;根据第一预设时间内接收到的第一访问请求的数量,从第一服务器组中分配相应数量的服务器来处理所述第一访问请求;接收企业内部的业务系统请求批处理数据的第二访问请求;根据所述第二访问请求中的批处理数据的数量,从第二服务器组中分配相应数量的服务器来处理所述第二访问请求。
- 如权利要求15所述的计算机可读存储介质,其特征在于,所述至少一个计算机可读指令还可被所述处理设备执行以实现以下操作:接收企业内部的一个或多个关联系统请求调用外部系统的第三访问请求;根据第二预设时间内接收到的第三访问请求的数量,从第三服务器组中分配相应数量的服务器来处理第三访问请求。
- 如权利要求16所述的计算机可读存储介质,其特征在于,所述至少一个计算机可读指令还可被所述处理设备执行以实现以下操作:实时获取空闲的服务器,并将获取到的空闲的服务器按预设规则 划分为至少包括第一服务器组、第二服务器组和第三服务器组的多个服务器组。
- 如权利要求16所述的计算机可读存储介质,其特征在于,所述根据第二预设时间内接收到的第三访问请求的数量,从第三服务器组中分配相应数量的服务器来处理第三访问请求的步骤替换为:根据第二预设时间内接收到的第三访问请求的数量,并结合所述外部系统的数据处理能力,从第三服务器组中分配相应数量的服务器来处理第三访问请求。
- 如权利要求18所述的计算机可读存储介质,其特征在于,所述至少一个计算机可读指令还可被所述处理设备执行以实现以下操作:实时获取空闲的服务器,并将获取到的空闲的服务器按预设规则划分为至少包括第一服务器组、第二服务器组和第三服务器组的多个服务器组。
- 如权利要求15所述的计算机可读存储介质,其特征在于,所述根据所述第二访问请求中的批处理数据的数量,从第二服务器组中分配相应数量的服务器来处理所述第二访问请求的步骤替换为:根据所述第二访问请求中的批处理数据的拟执行时间及数量,从第二服务器组中分配相应数量的服务器来处理所述第二访问请求。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710658107.9A CN107682391B (zh) | 2017-08-04 | 2017-08-04 | 电子装置、服务器分配控制方法和计算机可读存储介质 |
CN201710658107.9 | 2017-08-04 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019024235A1 true WO2019024235A1 (zh) | 2019-02-07 |
Family
ID=61135314
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/105028 WO2019024235A1 (zh) | 2017-08-04 | 2017-09-30 | 电子装置、服务器分配控制方法和计算机可读存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107682391B (zh) |
WO (1) | WO2019024235A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112068956A (zh) * | 2020-08-24 | 2020-12-11 | 北京首汽智行科技有限公司 | 一种基于redis缓存的负载均衡方法及服务器 |
CN112596899A (zh) * | 2020-12-18 | 2021-04-02 | 江苏省苏力环境科技有限责任公司 | 一种污染源在线监测并发数据处理方法、系统和存储介质 |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109246071A (zh) * | 2018-06-28 | 2019-01-18 | 平安科技(深圳)有限公司 | 业务处理方法、业务系统、调用管理系统和业务处理系统 |
CN111669294B (zh) * | 2020-06-22 | 2023-06-30 | 南方电网数字电网研究院有限公司 | 监控系统配置方法、装置、监控系统和存储介质 |
CN114500661A (zh) * | 2021-12-22 | 2022-05-13 | 新奥新智科技有限公司 | 一种限流设备、方法、装置及存储介质 |
Citations (4)
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 |
CN103581273A (zh) * | 2012-08-08 | 2014-02-12 | 阿里巴巴集团控股有限公司 | 一种分布式系统执行业务的方法、装置及系统 |
CN105553724A (zh) * | 2015-12-17 | 2016-05-04 | 北京奇虎科技有限公司 | 处理数据请求及获取服务器信息的方法及装置 |
CN106294261A (zh) * | 2016-08-22 | 2017-01-04 | 贵州电网有限责任公司电力科学研究院 | 一种高性能实时响应的服务器架构 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103516536B (zh) * | 2012-06-26 | 2017-02-22 | 重庆新媒农信科技有限公司 | 基于线程数量限制的服务器业务请求并行处理方法及系统 |
CN106550003B (zh) * | 2015-09-23 | 2020-09-11 | 腾讯科技(深圳)有限公司 | 负载均衡的控制方法、装置及系统 |
CN105930216A (zh) * | 2016-04-15 | 2016-09-07 | 平安科技(深圳)有限公司 | 电子签名系统自动排配方法、系统及服务器 |
CN106453641B (zh) * | 2016-11-24 | 2018-05-22 | 深圳市小满科技有限公司 | 企业云服务平台动态扩容方法、装置及系统 |
-
2017
- 2017-08-04 CN CN201710658107.9A patent/CN107682391B/zh active Active
- 2017-09-30 WO PCT/CN2017/105028 patent/WO2019024235A1/zh active Application Filing
Patent Citations (4)
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 |
CN103581273A (zh) * | 2012-08-08 | 2014-02-12 | 阿里巴巴集团控股有限公司 | 一种分布式系统执行业务的方法、装置及系统 |
CN105553724A (zh) * | 2015-12-17 | 2016-05-04 | 北京奇虎科技有限公司 | 处理数据请求及获取服务器信息的方法及装置 |
CN106294261A (zh) * | 2016-08-22 | 2017-01-04 | 贵州电网有限责任公司电力科学研究院 | 一种高性能实时响应的服务器架构 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112068956A (zh) * | 2020-08-24 | 2020-12-11 | 北京首汽智行科技有限公司 | 一种基于redis缓存的负载均衡方法及服务器 |
CN112596899A (zh) * | 2020-12-18 | 2021-04-02 | 江苏省苏力环境科技有限责任公司 | 一种污染源在线监测并发数据处理方法、系统和存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN107682391A (zh) | 2018-02-09 |
CN107682391B (zh) | 2020-06-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019024235A1 (zh) | 电子装置、服务器分配控制方法和计算机可读存储介质 | |
CN109983441B (zh) | 用于批作业的资源管理 | |
CN107688492B (zh) | 资源的控制方法、装置和集群资源管理系统 | |
WO2019205371A1 (zh) | 服务器、消息分配的方法及存储介质 | |
US10228737B2 (en) | Affinity-aware parallel zeroing of memory for initialization of large pages in non-uniform memory access (NUMA) servers | |
WO2019179026A1 (zh) | 电子装置、集群访问域名自动生成方法及存储介质 | |
US10505832B2 (en) | Resource coordinate system for data centers | |
CN113849312B (zh) | 数据处理任务的分配方法、装置、电子设备及存储介质 | |
JP2009251708A (ja) | I/oノード制御方式及び方法 | |
TWI747092B (zh) | 資源調度方法、設備、系統及中心伺服器 | |
CN107133332B (zh) | 一种查询任务的分配方法及装置 | |
WO2024016596A1 (zh) | 容器集群调度的方法、装置、设备及存储介质 | |
CN114155026A (zh) | 一种资源分配方法、装置、服务器及存储介质 | |
US9697047B2 (en) | Cooperation of hoarding memory allocators in a multi-process system | |
US11709707B2 (en) | Low latency distributed counters for quotas | |
WO2022142008A1 (zh) | 数据处理方法、装置、电子设备及存储介质 | |
US20120124339A1 (en) | Processor core selection based at least in part upon at least one inter-dependency | |
WO2023273502A1 (zh) | 作业处理的方法、装置、计算机设备以及存储介质 | |
CN108429780B (zh) | 关联系统间的数据调用系统及方法 | |
CN113204382B (zh) | 数据处理方法、装置、电子设备以及存储介质 | |
CN116185578A (zh) | 计算任务的调度方法和计算任务的执行方法 | |
CN115658292A (zh) | 资源调度方法、装置、计算机设备和存储介质 | |
CN111724262B (zh) | 一种应用服务器后续包查询系统及其工作方法 | |
US11233847B1 (en) | Management of allocated computing resources in networked environment | |
US9176910B2 (en) | Sending a next request to a resource before a completion interrupt for a previous request |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17920073 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17920073 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 05.08.2020) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17920073 Country of ref document: EP Kind code of ref document: A1 |