CN110597631B - Resource management method, monitoring server, proxy server, and storage medium - Google Patents

Resource management method, monitoring server, proxy server, and storage medium Download PDF

Info

Publication number
CN110597631B
CN110597631B CN201910843338.6A CN201910843338A CN110597631B CN 110597631 B CN110597631 B CN 110597631B CN 201910843338 A CN201910843338 A CN 201910843338A CN 110597631 B CN110597631 B CN 110597631B
Authority
CN
China
Prior art keywords
proxy server
server
resource
proxy
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910843338.6A
Other languages
Chinese (zh)
Other versions
CN110597631A (en
Inventor
杨子国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201910843338.6A priority Critical patent/CN110597631B/en
Publication of CN110597631A publication Critical patent/CN110597631A/en
Application granted granted Critical
Publication of CN110597631B publication Critical patent/CN110597631B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system
    • G06F9/5088Techniques for rebalancing the load in a distributed system involving task migration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses a resource management method, a monitoring server, a proxy server and a storage medium, wherein the resource management method comprises the following steps: acquiring server information of a plurality of proxy servers associated with a monitoring server; the server information at least comprises resource use conditions; monitoring resource use conditions of a plurality of proxy servers based on server information; when the target resource use condition of a first proxy server in the plurality of proxy servers meets a preset requirement, at least a target process occupying the target resource is transferred to a second proxy server in the plurality of proxy servers to operate. By the aid of the method, automation of server resource management is achieved, on one hand, manual operation and maintenance cost is reduced, on the other hand, fault response is accelerated, and normal operation of the server is guaranteed.

Description

Resource management method, monitoring server, proxy server, and storage medium
Technical Field
The present application relates to the technical field of server management, and in particular, to a resource management method, a monitoring server, a proxy server, and a storage medium.
Background
Because the cost of server resources is high, in order to improve the utilization rate of the server resources and reduce the resource waste, a plurality of service processes are deployed in one server to achieve the purposes. However, resources which are reasonably allocated at first can cause insufficient resources after the service is continuously updated iteratively or under the condition that the service access amount is increased rapidly, and problems of memory overflow, service response delay, even abnormal process termination and the like can be caused.
Disclosure of Invention
In order to solve the problems, the application provides a resource management method, a monitoring server, a proxy server and a storage medium, so that the automation of server resource management is realized, the manual operation and maintenance cost is reduced, the fault response is accelerated, and the normal operation of the server is guaranteed.
The technical scheme adopted by the application is as follows: a resource management method is provided, the resource management method is applied to a monitoring server, and the resource management method comprises the following steps: acquiring server information of a plurality of proxy servers associated with a monitoring server; wherein, the server information at least comprises the resource use condition; monitoring resource use conditions of a plurality of proxy servers based on server information; when the target resource use condition of a first proxy server in the plurality of proxy servers meets a preset requirement, at least a target process occupying the target resource is transferred to a second proxy server in the plurality of proxy servers to operate.
When the target resource use condition of a first proxy server in the plurality of proxy servers meets a preset requirement, at least transferring a target process occupying target resources to a second proxy server in the plurality of proxy servers for operation, wherein the method comprises the following steps: when the target resource use condition of a first proxy server in a plurality of proxy servers meets a preset requirement, obtaining the use condition of all processes on the first proxy server for the target resource; determining a target process with the maximum resource usage increase amplitude for the target resource in a set time period; and transferring the target process to a second proxy server in the plurality of proxy servers to run.
The resource use condition comprises the memory use rate; when the target resource use condition of a first proxy server in the plurality of proxy servers meets a preset requirement, acquiring the use conditions of all processes on the first proxy server for the target resource, wherein the steps comprise: when the memory usage rate of a first proxy server in the plurality of proxy servers is greater than or equal to a set percentage threshold, the memory usage ratios of all processes on the first proxy server are obtained.
The method for determining the target process with the maximum resource usage increase amplitude for the target resource in the set time period comprises the following steps: acquiring the current first memory usage ratio of each process and the second memory usage ratio before a set time period; calculating the ratio of the first memory usage ratio to the second memory usage ratio to determine the resource usage increase amplitude of each process for the target resource; and determining the target process with the largest resource usage increase amplitude.
Wherein, transferring the target process occupying the target resource to a second proxy server in a plurality of proxy servers for operation, and the method comprises the following steps: determining a second proxy server meeting the target running condition based on the resource use conditions of the plurality of proxy servers; and transferring the target process to a second proxy server to run.
Wherein, transferring the target process to a second proxy server for operation comprises: and sending the IP address of the second proxy server and the IP address of the target process to the first proxy server so that the first proxy server establishes communication connection with the second proxy server based on the IP address of the second proxy server, and sending the program package address of the target process to the second proxy server based on the IP address of the target process so that the second proxy server downloads and runs the program package of the target process.
Wherein, transferring the target process to a second proxy server for operation comprises: and sending the IP address of the target process to the second proxy server so that the second proxy server downloads and runs the program package of the target process.
The application adopts another technical scheme that: providing a monitoring server, wherein the monitoring server comprises a processor, a memory and a communication module, and the memory and the communication module are connected with the processor; the communication module is used for establishing communication connection with the proxy server, the memory stores program data, and the processor is used for executing the program data to realize the resource management method.
Another technical scheme adopted by the application is as follows: a resource management method is provided, the resource management method is applied to a first proxy server, and the resource management method comprises the following steps: sending server information to a monitoring server; wherein, the server information at least comprises the resource use condition; acquiring an IP address of a second proxy server and an IP address of a target process, which are sent by a monitoring server; wherein the second proxy server is one of a plurality of proxy servers associated with the monitoring server, and the target process is a process occupying a target resource of the first proxy server; and transferring the target process to a second proxy server to run.
Wherein, transferring the target process to a second proxy server for operation comprises: establishing a communication connection with the second proxy server based on the IP address of the second proxy server; and sending the program package address of the target process to the second proxy server so that the second proxy server downloads and runs the program package of the target process.
Wherein, after sending the package address of the target process to the second proxy server to make the second proxy server download and run the package of the target process, the method further comprises: receiving notification information sent by a second proxy server; the second proxy server sends notification information after the target process is successfully operated; and stopping running the target process.
Wherein, after stopping running the target process, further comprising: acquiring a network request based on a target process; the network request is forwarded to the second proxy server to cause the second proxy server to operate the target process based on the network request.
The application adopts another technical scheme that: providing a proxy server, wherein the proxy server comprises a processor, a memory and a communication module, wherein the memory and the communication module are connected with the processor; the communication module is used for monitoring the server to establish communication connection, the memory stores program data, and the processor is used for executing the program data to realize the resource management method.
Another technical scheme adopted by the application is as follows: there is provided a computer storage medium having stored therein program data for implementing the resource management method as described above when executed by a processor.
The resource management method provided by the application comprises the following steps: acquiring server information of a plurality of proxy servers associated with a monitoring server; wherein, the server information at least comprises the resource use condition; monitoring resource use conditions of a plurality of proxy servers based on server information; when the target resource use condition of a first proxy server in the plurality of proxy servers meets a preset requirement, at least a target process occupying the target resource is transferred to a second proxy server in the plurality of proxy servers to operate. Through the mode, the resource use condition of each proxy server is monitored through a monitoring center (namely, the monitoring server), and the abnormal process is transferred in real time when the resource use rate is high, so that the automation of server resource management is realized, the manual operation and maintenance cost is reduced, the fault response is accelerated, and the normal operation of the server is ensured.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts. Wherein:
FIG. 1 is a network schematic diagram of a server monitoring system provided herein;
FIG. 2 is a flowchart illustrating a first embodiment of a resource management method provided in the present application;
FIG. 3 is a schematic flow chart of step 23;
FIG. 4 is a flowchart illustrating a resource management method according to a second embodiment of the present application;
FIG. 5 is a schematic diagram of the interaction between a proxy server and a monitoring server provided by the present application;
FIG. 6 is a schematic diagram of a monitoring server provided in the present application;
FIG. 7 is a schematic diagram of a proxy server provided herein;
fig. 8 is a schematic structural diagram of a computer storage medium provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The terms "first", "second", etc. in this application are used to distinguish between different objects and not to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 1, fig. 1 is a network schematic diagram of a server monitoring system provided in the present application, where the monitoring system 10 includes a monitoring server 11 and a plurality of proxy servers 12 connected to the monitoring server 11.
Servers, also known as servers, are devices that provide computing services. Since the server needs to respond to and process the service request, the server generally has the capability of assuming and securing the service.
In the present embodiment, the plurality of proxy servers 12 at least include a first proxy server 121 and a second proxy server 122, wherein, when the resource occupancy rate of the first proxy server 121 is too high, at least part of the processes in the first proxy server 121 are transferred to the second proxy server 122 for running, so as to reduce the pressure of the first proxy server 121. The details are given below by way of several examples.
Referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of a resource management method provided in the present application, where the method is applied to the monitoring server 11, and the method includes:
step 21: acquiring server information of a plurality of proxy servers associated with a monitoring server; wherein the server information at least comprises resource usage.
The server information may include an IP (Internet Protocol) address of the proxy server and a use condition of a resource.
In an alternative embodiment, the resource usage may include two aspects: CPU (central processing unit) information and memory information. The CPU information may include the number of CPU cores, an idle percentage (idle), a percentage (us) of the CPU occupied by the user space, and the like, and the memory information may include a total memory size (total), a used memory size (used), and a free memory size (free).
Further, each proxy server may install an agent program, and after the agent program is started, the agent program registers to the monitoring server, establishes tcp (Transmission Control Protocol) long connection with the monitoring server, and keeps alive through a heartbeat mechanism.
Step 22: and monitoring the resource use conditions of the plurality of proxy servers based on the server information.
After the connection between the proxy server and the monitoring server is established, the monitoring server can issue the monitoring rule to the proxy server. Optionally, the monitoring rule may include a frequency of uploading server information by the proxy server, a specified monitoring process, a resource alarm threshold, and the like.
Taking the frequency of uploading the server information as an example, the monitoring server designates the proxy server to upload the server information every 60 seconds, so as to perform real-time monitoring on the resource condition of each proxy server.
Taking the designated monitoring process as an example, the monitoring server designates the proxy server to perform resource monitoring on the process a and the process B, so that the proxy server may not perform resource occupation monitoring on other processes except the process a and the process B.
Step 23: when the target resource use condition of a first proxy server in the plurality of proxy servers meets a preset requirement, at least a target process occupying the target resource is transferred to a second proxy server in the plurality of proxy servers to operate.
Taking the memory occupancy rate as an example, assuming that the memory of the first proxy server is 8G, and the preset alarm threshold is 90%, that is, 7.2G, when the memory occupancy of the first proxy server is greater than or equal to 7.2G, it is considered that the resource usage condition of the first proxy server meets the preset requirement.
The determination of the target process may take a number of forms. In one embodiment, the process with the largest resource occupancy may be selected as the target process. For example, the memory of the first proxy server is 8G, where the process a occupies 3G, the process B occupies 2G, and the process C occupies 2.5G, and then the total memory occupancy is 3G +2G +2.5G — 7.5G > 7.2G, it is determined that the preset requirement is met, and at this time, the process a with the largest resource occupancy rate may be selected as the target process.
Referring to fig. 3, fig. 3 is a schematic flowchart of step 23, where step 23 may specifically include:
step 231: when the target resource use condition of a first proxy server in the plurality of proxy servers meets a preset requirement, obtaining the use conditions of all processes on the first proxy server for the target resource.
Optionally, for example, when the memory usage rate of a first proxy server in the plurality of proxy servers is greater than or equal to the set percentage threshold, the memory usage ratios of all processes on the first proxy server are obtained. Wherein the threshold may be 80%, 90%, 100%, or any value between 80% and 100%.
Step 232: and determining the target process with the largest resource usage increase amplitude for the target resource in the set time period.
Optionally, acquiring a current first memory usage ratio of each process and a second memory usage ratio before a set time period; calculating the ratio of the first memory usage ratio to the second memory usage ratio to determine the resource usage increase amplitude of each process for the target resource; and determining the target process with the largest resource usage increase amplitude.
Taking the set time period of 5 minutes as an example, the process includes process a, process B and process C, and the following statistics are performed:
process and system for managing a process Current memory occupancy ratio Memory occupancy ratio 5 minutes ago Amplitude of increase in resource usage
Process A a1 a2 a1/a2
Process B b1 b2 b1/b2
Process C c1 c2 c1/c2
And comparing the sizes of a1/a2, b1/b2 and c1/c2, and selecting the process corresponding to the maximum value as a target process.
Step 233: and transferring the target process to a second proxy server in the plurality of proxy servers to run.
And the second proxy server is a server which is selected by the monitoring server from the plurality of proxy servers and can meet the running condition of the target process.
Wherein, step 233 may specifically include: determining a second proxy server meeting the target running condition based on the resource use conditions of the plurality of proxy servers; and transferring the target process to a second proxy server to run.
A free resource pool (free pool), that is, a comparison table of the proxy server and its free resources (cpu, memory), can be obtained through the server information of each proxy server, as follows:
proxy server CPU resource Memory resources
Proxy server 1 X%,XXX GHZ X%,X G
Proxy server 2 X%,XXX GHZ X%,X G
Proxy server 3 X%,XXX GHZ X%,X G
The CPU resource may include a duty ratio, which may be a current operating frequency, the memory resource may include a total memory size and a usage duty ratio, and the monitoring server may determine a size of an idle resource of each proxy server according to the data, so as to select an optimal server for process transfer.
In an optional embodiment, when the process is transferred, the monitoring server sends the IP address of the second proxy server and the IP address of the target process to the first proxy server, so that the first proxy server establishes a communication connection with the second proxy server based on the IP address of the second proxy server, and sends the package address of the target process to the second proxy server based on the IP address of the target process, so that the second proxy server downloads the package of the target process and runs the package.
In another alternative embodiment, the monitoring server sends the IP address of the target process to the second proxy server at the time of the process transfer, so that the second proxy server downloads and runs the package of the target process.
Optionally, the second proxy server sends a notification message to the first proxy server after the target process normally runs to notify the first server that the target process has normally run, and the first proxy server stops running the target process after receiving the notification message. Further, if the first proxy server receives a network request about the target process, the first proxy server forwards the network request to the second proxy server, so that the second proxy server operates the target process based on the network request.
Different from the prior art, the resource management method provided by the embodiment includes: acquiring server information of a plurality of proxy servers associated with a monitoring server; the server information at least comprises resource use conditions; monitoring resource use conditions of a plurality of proxy servers based on server information; when the target resource use condition of a first proxy server in the plurality of proxy servers meets a preset requirement, at least a target process occupying the target resource is transferred to a second proxy server in the plurality of proxy servers to operate. Through the mode, the resource use condition of each proxy server is monitored through a monitoring center (namely, the monitoring server), and the abnormal process is transferred in real time when the resource use rate is high, so that the automation of server resource management is realized, the manual operation and maintenance cost is reduced, the fault response is accelerated, and the normal operation of the server is ensured.
Referring to fig. 4, fig. 4 is a schematic flowchart of a second embodiment of a resource management method provided in the present application, where the method is applied to a first proxy server, and the method includes:
step 41: sending server information to a monitoring server; wherein the server information at least comprises resource usage.
The server information may include an IP (Internet Protocol) address of the proxy server and a use condition of a resource.
In an alternative embodiment, the resource usage may include two aspects: CPU (central processing unit) information and memory information. The CPU information may include the number of CPU cores, idle percentage (idle), percentage (us) of CPU occupied by user space, and the like, and the memory information may include total memory size (total), used memory size (used), and free memory size (free).
Further, each proxy server may install an agent program, and after the agent program is started, the agent program registers to the monitoring server, establishes tcp (Transmission Control Protocol) long connection with the monitoring server, and keeps alive through a heartbeat mechanism.
Step 42: acquiring an IP address of a second proxy server and an IP address of a target process, which are sent by a monitoring server; wherein the second proxy server is one of a plurality of proxy servers associated with the monitoring server and the target process is a process occupying a target resource of the first proxy server.
And the second proxy server is a server which is selected by the monitoring server from the plurality of proxy servers and can meet the running condition of the target process. Specifically, a free pool (i.e., a comparison table of the proxy server and its free resources (cpu, memory) can be obtained through statistics of the server information of each proxy server.
Step 43: and transferring the target process to a second proxy server to run.
When the process is transferred, the monitoring server sends the IP address of the second proxy server and the IP address of the target process to the first proxy server so that the first proxy server establishes communication connection with the second proxy server based on the IP address of the second proxy server, and sends the program package address of the target process to the second proxy server based on the IP address of the target process so that the second proxy server downloads and runs the program package of the target process.
Optionally, the second proxy server sends a notification message to the first proxy server after the target process normally runs to notify the first server that the target process has normally run, and the first proxy server stops running the target process after receiving the notification message. Further, if the first proxy server receives a network request about the target process, the network request is forwarded to the second proxy server, so that the second proxy server operates the target process based on the network request.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating interaction between a proxy server and a monitoring server provided in the present application. The above embodiment is described below by a specific flow.
(1) A plurality of proxy servers (at least comprising a first proxy server and a second proxy server) transmit server information to a monitoring server, wherein the server information at least comprises resource use conditions;
(2) the monitoring server monitors the resource use conditions of the proxy servers;
(3) when the resource use condition of the first proxy server meets the set condition, the first proxy server sends the IP address of the second proxy server and the IP address of the target process; wherein the second proxy server is a proxy server with idle resources, and the target process is an abnormal process;
(4) the first proxy server establishes communication connection with the second proxy server;
(5) the first proxy server sends the program package address of the target process to the second proxy server;
(6) the second proxy server downloads the program package of the target process based on the program package address;
(7) the second proxy server runs the target process;
(8) the second proxy server sends the message which runs normally to the first proxy server;
(9) the first proxy server stops running the target process;
(10) the first proxy server starts a monitoring sub-process with the same port as the target process, and is used for receiving the network request of the original target process and forwarding the network request to the second proxy server so that the second proxy server can operate.
Referring to fig. 6, fig. 6 is a schematic structural diagram of the monitoring server provided in the present application, where the monitoring server 11 includes a processor 111, and a memory 112 and a first communication module 113 connected to the processor 111.
The first communication module 113 is used for establishing a communication connection with the proxy server, the memory 112 stores program data, and the processor 111 is used for executing the program data to implement the following resource management method:
acquiring server information of a plurality of proxy servers associated with a monitoring server; wherein, the server information at least comprises the resource use condition; monitoring resource use conditions of a plurality of proxy servers based on server information; when the target resource use condition of a first proxy server in the plurality of proxy servers meets a preset requirement, at least a target process occupying the target resource is transferred to a second proxy server in the plurality of proxy servers to operate.
Referring to fig. 7, fig. 7 is a schematic structural diagram of the proxy server provided in the present application, in which the proxy server 12 includes a processor 121, and a memory 122 and a second communication module 123 connected to the processor 121.
The second communication module 123 is configured to monitor the server to establish a communication connection, the memory 122 stores program data, and the processor 121 is configured to execute the program data to implement the following resource management method:
sending server information to a monitoring server; the server information at least comprises resource use conditions; acquiring an IP address of a second proxy server and an IP address of a target process, which are sent by a monitoring server; wherein the second proxy server is one of a plurality of proxy servers associated with the monitoring server, and the target process is a process occupying a target resource of the first proxy server; and transferring the target process to a second proxy server to run.
It should be understood that, in the above-mentioned embodiment, the first communication module 113 and the second communication module 123 may communicate in a wired manner, for example, a data bus, or may communicate data in a wireless manner, which is not limited herein.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a computer storage medium provided in the present application, and program data 81 is stored in the computer storage medium 80.
When the computer storage medium 80 is applied to a monitoring server, the program data 81 is used to implement the following resource management method when executed by a processor:
acquiring server information of a plurality of proxy servers associated with a monitoring server; wherein, the server information at least comprises the resource use condition; monitoring resource use conditions of a plurality of proxy servers based on server information; when the target resource use condition of a first proxy server in the plurality of proxy servers meets a preset requirement, at least a target process occupying the target resource is transferred to a second proxy server in the plurality of proxy servers to operate.
When the computer storage medium 80 is applied to a proxy server, the program data 81, when executed by a processor, is used to implement the following resource management method:
sending server information to a monitoring server; wherein, the server information at least comprises the resource use condition; acquiring an IP address of a second proxy server and an IP address of a target process, which are sent by a monitoring server; wherein the second proxy server is one of a plurality of proxy servers associated with the monitoring server, and the target process is a process occupying target resources of the first proxy server; and transferring the target process to a second proxy server to run.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other manners. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated units in the other embodiments described above may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only an embodiment of the present application, and is not intended to limit the scope of the present application, and all equivalent structures or equivalent processes performed according to the contents of the specification and the drawings, or applied directly or indirectly to other related technical fields, are all included in the scope of the present application.

Claims (14)

1. A resource management method is applied to a monitoring server, and is characterized in that the resource management method comprises the following steps:
acquiring server information of a plurality of proxy servers associated with the monitoring server; wherein the server information at least comprises resource usage;
monitoring the resource use conditions of the plurality of proxy servers by using a monitoring rule based on the server information; the monitoring rule comprises any one of the frequency of uploading the server information by the plurality of proxy servers, an appointed monitoring process and a resource alarm threshold value;
when the target resource use condition of a first proxy server in the plurality of proxy servers meets a preset requirement, at least transferring a target process occupying the target resource to a second proxy server in the plurality of proxy servers for operation; and the target process is the process with the largest resource usage increase amplitude for the target resource in a set time period.
2. The resource management method according to claim 1,
when the target resource usage of a first proxy server in the plurality of proxy servers meets a preset requirement, at least transferring a target process occupying the target resource to a second proxy server in the plurality of proxy servers for operation, wherein the method comprises the following steps:
when the target resource use condition of a first proxy server in the plurality of proxy servers meets a preset requirement, obtaining the use condition of all processes on the first proxy server for the target resource;
determining the target process;
and transferring the target process to a second proxy server in the plurality of proxy servers to run.
3. The resource management method according to claim 2,
the resource use condition comprises the memory use rate;
when the target resource usage of a first proxy server in the plurality of proxy servers meets a preset requirement, acquiring the usage of the target resource by all processes on the first proxy server, including:
and when the memory utilization rate of a first proxy server in the plurality of proxy servers is greater than or equal to a set percentage threshold, acquiring the memory utilization ratio of all processes on the first proxy server.
4. The resource management method according to claim 3,
the determining the target process comprises:
acquiring the current first memory usage ratio of each process and the second memory usage ratio before the set time period;
calculating the ratio of the first memory usage proportion to the second memory usage proportion to determine the resource usage increase amplitude of each process for the target resource;
and determining the target process with the largest resource usage increase amplitude.
5. The resource management method according to claim 1,
the transferring the target process occupying the target resource to a second proxy server of the plurality of proxy servers for operation includes:
determining a second proxy server meeting the target running condition based on the resource use conditions of the plurality of proxy servers;
and transferring the target process to the second proxy server to run.
6. The resource management method according to claim 5,
the transferring the target process to the second proxy server for running comprises the following steps:
and sending the IP address of the second proxy server and the IP address of the target process to the first proxy server so that the first proxy server establishes communication connection with the second proxy server based on the IP address of the second proxy server, and sending the program package address of the target process to the second proxy server based on the IP address of the target process so that the second proxy server downloads and runs the program package of the target process.
7. The resource management method according to claim 5,
the transferring the target process to the second proxy server to run comprises the following steps:
and sending the IP address of the target process to the second proxy server so that the second proxy server downloads and runs the program package of the target process.
8. The monitoring server is characterized by comprising a processor, a memory and a communication module, wherein the memory and the communication module are connected with the processor;
the communication module is used for the proxy server to establish communication connection, the memory stores program data, and the processor is used for executing the program data to realize the resource management method according to any one of claims 1 to 7.
9. A resource management method is applied to a first proxy server, and is characterized by comprising the following steps:
sending server information to an associated monitoring server based on a monitoring rule; wherein the server information at least comprises resource usage; the monitoring rule comprises any one of the frequency of uploading the server information by the first proxy server, a designated monitoring process and a resource alarm threshold value;
acquiring an IP address of a second proxy server and an IP address of a target process which are sent by the monitoring server; wherein the second proxy server is one of a plurality of proxy servers associated with the monitoring server, the target process is a process occupying a target resource of the first proxy server, and the target process is a process with the largest resource usage increase amplitude for the target resource within a set time period;
and transferring the target process to the second proxy server to run.
10. The resource management method according to claim 9,
the transferring the target process to the second proxy server to run comprises the following steps:
establishing a communication connection with the second proxy server based on the IP address of the second proxy server;
and sending the program package address of the target process to the second proxy server so as to enable the second proxy server to download and run the program package of the target process.
11. The resource management method according to claim 10,
after the sending the package address of the target process to the second proxy server to enable the second proxy server to download and run the package of the target process, the method further includes:
receiving notification information sent by the second proxy server; the second proxy server sends the notification information after the target process is successfully operated;
and stopping running the target process.
12. The resource management method according to claim 11,
after the stopping of the running of the target process, the method further comprises the following steps:
acquiring a network request based on the target process;
forwarding the network request to the second proxy server to cause the second proxy server to operate the target process based on the network request.
13. A proxy server is characterized in that the proxy server comprises a processor, a memory and a communication module, wherein the memory and the communication module are connected with the processor;
the communication module is used for monitoring the establishment of communication connection with the server, the memory stores program data, and the processor is used for executing the program data to realize the resource management method according to any one of claims 9 to 12.
14. A computer storage medium having stored therein program data which, when executed by a processor, is adapted to implement the method of resource management according to any one of claims 1-7 or 9-12.
CN201910843338.6A 2019-09-06 2019-09-06 Resource management method, monitoring server, proxy server, and storage medium Active CN110597631B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910843338.6A CN110597631B (en) 2019-09-06 2019-09-06 Resource management method, monitoring server, proxy server, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910843338.6A CN110597631B (en) 2019-09-06 2019-09-06 Resource management method, monitoring server, proxy server, and storage medium

Publications (2)

Publication Number Publication Date
CN110597631A CN110597631A (en) 2019-12-20
CN110597631B true CN110597631B (en) 2022-06-21

Family

ID=68858152

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910843338.6A Active CN110597631B (en) 2019-09-06 2019-09-06 Resource management method, monitoring server, proxy server, and storage medium

Country Status (1)

Country Link
CN (1) CN110597631B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114253698A (en) 2020-09-22 2022-03-29 中兴通讯股份有限公司 Resource scheduling method, system, electronic device and storage medium
CN114002488B (en) * 2021-09-29 2024-01-16 苏州浪潮智能科技有限公司 Automatic monitoring and adjusting method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104881316A (en) * 2015-05-22 2015-09-02 中国联合网络通信集团有限公司 Virtual machine transferring method and device
CN108768877A (en) * 2018-07-20 2018-11-06 网宿科技股份有限公司 A kind of distribution method of burst flow, device and proxy server
CN108804198A (en) * 2017-04-26 2018-11-13 北京邮电大学 A kind of virtual machine (vm) migration opportunity based on utilization rate trend determines method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8631066B2 (en) * 1998-09-10 2014-01-14 Vmware, Inc. Mechanism for providing virtual machines for use by multiple users
US9158589B2 (en) * 2010-04-05 2015-10-13 Futurewei Technologies, Inc. Method for dynamic migration of a process or services from one control plane processor to another
US20120266163A1 (en) * 2011-04-13 2012-10-18 International Business Machines Corporation Virtual Machine Migration
CN102508718B (en) * 2011-11-22 2015-04-15 杭州华三通信技术有限公司 Method and device for balancing load of virtual machine
CN102724277B (en) * 2012-05-04 2016-01-06 华为技术有限公司 The method of live migration of virtual machine and deployment, server and group system
CN102999317B (en) * 2012-12-30 2015-12-23 北京讯鸟软件有限公司 Towards the elasticity multi-process service processing method of many tenants

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104881316A (en) * 2015-05-22 2015-09-02 中国联合网络通信集团有限公司 Virtual machine transferring method and device
CN108804198A (en) * 2017-04-26 2018-11-13 北京邮电大学 A kind of virtual machine (vm) migration opportunity based on utilization rate trend determines method
CN108768877A (en) * 2018-07-20 2018-11-06 网宿科技股份有限公司 A kind of distribution method of burst flow, device and proxy server

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SDN中基于过程优化的交换机竞争迁移算法;胡涛等;《通信学报》;20170825;第38卷(第8期);213-222 *
Workload characteristics for process migration and load balancing;Mark Nuttall等;《Proceedings of 17th International Conference on Distributed Computing Systems》;20020806;133-140 *

Also Published As

Publication number Publication date
CN110597631A (en) 2019-12-20

Similar Documents

Publication Publication Date Title
WO2020093500A1 (en) Intelligent scheduling method, terminal device, edge node cluster and intelligent scheduling system
CN109905259B (en) Communication connection maintaining method, system and related equipment
CN103634409B (en) Realize that mobile Internet applies always online method and system
CN116547958A (en) Method, system and computer readable medium for ranking process of network function selection
CN107395572B (en) Data processing method and Internet of things gateway
CN110958281B (en) Data transmission method and communication device based on Internet of things
CN105025080B (en) A kind of overload protection method and server of distributed system
CN110597631B (en) Resource management method, monitoring server, proxy server, and storage medium
CN109769029B (en) Communication connection method based on electricity consumption information acquisition system and terminal equipment
KR102362244B1 (en) Method and apparatus for transmitting and receiving data in mission-critical data communication system
CN106506601B (en) Data transmission method and device
CN108718335A (en) A kind of load-balancing method, device, Web server and storage medium
CN111385328A (en) Service request processing method and system and electronic equipment
CN112600842A (en) Cluster shell method and device, electronic equipment and computer readable storage medium
CN108781215B (en) Network service implementation method, service controller and communication system
CN112860427A (en) Container cluster and load balancing method and device thereof
US7797368B1 (en) Managing a network of consumer-use computing devices
KR101251630B1 (en) System and method for providing push service
CN110958128B (en) Alarm reporting scheduling method and device
CN111371675B (en) Intelligent addressing method, device, equipment and storage medium thereof
CN111314163A (en) Data packet transmission method and system
CN109032813B (en) Mobile terminal, limiting method for interprocess communication of mobile terminal and storage medium
CN105099934A (en) Load balancing method and device in telecommunication product
CN116319650B (en) Port equipment data distribution method, device and system and container crane
CN111371573B (en) Message interaction 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
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20191220

Assignee: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Assignor: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

Contract record no.: X2021440000031

Denomination of invention: Resource management method, monitoring server, proxy server and storage medium

License type: Common License

Record date: 20210125

EE01 Entry into force of recordation of patent licensing contract
GR01 Patent grant
GR01 Patent grant