CN113051143A - Detection method, device, equipment and storage medium for service load balancing server - Google Patents

Detection method, device, equipment and storage medium for service load balancing server Download PDF

Info

Publication number
CN113051143A
CN113051143A CN201911372867.9A CN201911372867A CN113051143A CN 113051143 A CN113051143 A CN 113051143A CN 201911372867 A CN201911372867 A CN 201911372867A CN 113051143 A CN113051143 A CN 113051143A
Authority
CN
China
Prior art keywords
service
load balancing
performance index
server
shared cache
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911372867.9A
Other languages
Chinese (zh)
Inventor
刘红玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Group Henan Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Henan 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 China Mobile Communications Group Co Ltd, China Mobile Group Henan Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201911372867.9A priority Critical patent/CN113051143A/en
Publication of CN113051143A publication Critical patent/CN113051143A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3433Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment for load management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a detection method of a service load balancing server, a detection device of an electronic equipment load balancing server, a server and a computer readable storage medium, wherein the method comprises the following steps: receiving a detection processing request sent by load balancing equipment through a monitoring service; reading performance index parameters of the business service from a local shared cache; the performance index parameter is written into the local shared cache through a service; generating a detection processing result according to the performance index parameter of the business service; and feeding back the detection processing result to the load balancing equipment, so that the load balancing equipment determines the running state of the server according to the detection processing result. The embodiment of the invention can ensure that the server with balanced service load has more stable and high availability, thereby ensuring the effect of load balancing.

Description

Detection method, device, equipment and storage medium for service load balancing server
Technical Field
The present invention relates to the field of Load balancing technologies, and in particular, to a method for detecting a Service Load Balancing (SLB) Server, a device for detecting a service Load balancing Server, an electronic device, and a computer-readable storage medium.
Background
The SLB is performed by sharing system services among a plurality of operation units, for example: web servers, FTP servers, critical application servers, and other mission critical servers, etc., provide an inexpensive and efficient solution to extend the throughput and processing power of the servers.
With the development of communication technology, the number of application hosts of the system increases, various servers and system devices are continuously expanded, and under the impact of high concurrent traffic, the load balancing effect of the system also faces a huge challenge.
Disclosure of Invention
Embodiments of the present invention provide a detection method for a service load balancing server, a detection apparatus for an electronic device load balancing server, a server, and a computer-readable storage medium, which can ensure that the service load balancing server has more stable and high availability, thereby ensuring a load balancing effect.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a method for detecting a service load balancing server, including:
receiving a detection processing request sent by load balancing equipment through a monitoring service;
reading performance index parameters of the business service from a local shared cache; the performance index parameter is written into the local shared cache through a service;
generating a detection processing result according to the performance index parameter of the business service;
and feeding back the detection processing result to the load balancing equipment, so that the load balancing equipment determines the running state of the server according to the detection processing result.
In a second aspect, an embodiment of the present invention provides a detection apparatus for a service load balancing server, including:
the service module is used for writing the performance index parameters of the service into the local shared cache through the service;
the local shared cache is used for storing performance index parameters of the business service;
the monitoring service module is used for receiving a detection processing request sent by the load balancing equipment through the monitoring service; reading performance index parameters of the business service from the local shared cache; generating a detection processing result according to the performance index parameter of the business service; and feeding back the detection processing result to the load balancing equipment, so that the load balancing equipment determines the running state of the server according to the detection processing result.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus; the processor, the communication interface and the memory complete mutual communication through a bus; the memory is used for storing a computer program; the processor is configured to execute the program stored in the memory, and implement the detection method for the service load balancing server according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the detection method for the service load balancing server according to the first aspect.
The detection method of the service load balancing server, the detection device of the service load balancing server, the electronic device and the computer readable storage medium provided by the embodiment of the invention receive a detection processing request sent by the load balancing device through the monitoring service; reading performance index parameters of the business service from a local shared cache; the performance index parameter is written into a local shared cache through a service; generating a detection processing result according to the performance index parameter of the business service; feeding back a detection processing result to the load balancing equipment, so that the load balancing equipment determines the running state of the server according to the detection processing result; the performance index parameters of the service in the server can be accurately acquired by using the monitoring service added in the server, and the detection processing result generated according to the performance index parameters of the service is returned to the load balancing equipment, so that the recognition degree of the load balancing equipment to the running state of the server can be improved, the server with balanced service load is ensured to have more stable and high availability, and the effect of load balancing is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a detection method of a service load balancing server according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an implementation of writing performance indicator parameters into a local shared cache according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating an implementation manner of a detection method of a service load balancing server according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating an example of determining status information for a business service based on a performance indicator parameter in accordance with an embodiment of the present invention;
FIG. 5 is a flowchart illustrating an implementation manner of implementing message sharing inside a server according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating an implementation manner of implementing monitor control according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating another implementation manner of implementing message sharing inside a server according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram illustrating an implementation method of a detection apparatus of a service load balancing server according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device implementing an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flowchart of a detection method for a service load balancing server according to an embodiment of the present invention, where the method shown in fig. 1 may be executed by each server configured at an SLB backend, for example: the embodiments of the present invention do not limit the types of servers configured at the SLB backend, and as shown in fig. 1, the method at least includes:
s102, receiving a detection processing request sent by the load balancing equipment through the monitoring service.
In the embodiment of the present invention, the monitoring service may be preset in each server configured at the back end of the SLB, and may be a service of the same level as the service allocated to each server by the SLB. Optionally, the monitoring service may be started when the server receives a service processing request distributed by the load balancing device, and stopped when the server completes corresponding service processing; or, the monitoring service may also be started according to a start instruction sent by the load balancing device, and stopped according to a stop instruction sent by the load balancing device; or, the monitoring service may also be started according to a start instruction sent by an external device other than the load balancing device, and stopped according to a stop instruction sent by the external device; the embodiment of the present invention does not limit the implementation manner of the listening service.
In the embodiment of the present invention, after the monitoring service is started, each server configured at the back end of the SLB may receive the probe processing request sent by the load balancing device through the monitoring service, and at this time, the service in each server may still be continuously executed. Optionally, the load balancing device may periodically send a probe processing request to each server configured at the SLB backend; or, the load balancing device may also send a probe processing request to each server configured at the back end of the SLB in a polling manner; the embodiment of the present invention does not limit the manner in which the load balancing device sends out the probe processing request.
S104, reading performance index parameters of the business service from the local shared cache; and the performance index parameter is written into the local shared cache through the service.
In the embodiment of the invention, the local shared cache can support the business service and the monitoring service in the server to read and write data. Optionally, the local shared cache may be a cache area preset in a cache memory of each server configured at the back end of the SLB; or, the local shared cache may also be a cache area preset in other memories in each server configured at the back end of the SLB; the embodiment of the present invention does not limit the setting manner of the local shared cache.
In the embodiment of the invention, the performance index of the business service can be determined according to the characteristics of the business service, and the performance indexes of the business service can be the same or different for different business services. In some optional examples, the performance indicators of the business service may include a business Flow (Server Flow), a business processing efficiency (Server EFF), a system performance indicator (Server TPS), and the like. The embodiment of the invention does not limit the types and the number of the performance indexes of the business service.
Optionally, the performance index of the business service may be specified in advance by a person; alternatively, the performance index of the service may also be determined according to a preset standard, for example: the performance index of the business service can be determined according to the type, the object and the like of the business service; the embodiment of the invention does not limit the mode of determining the performance index of the business service. The embodiment of the invention determines the performance index of the business service according to the characteristics of the business service, and can realize the automatic adjustment of the performance index of the monitoring service, thereby realizing the automatic allocation of the detection index of the SLB server, enhancing the detection applicability of the SLB server, ensuring the detection accuracy of the SLB server and improving the availability of the SLB server.
And S106, generating a detection processing result according to the performance index parameter of the business service.
Optionally, the monitoring service may use a performance index parameter of the service as a detection processing result; or, the performance index parameter of the service may be processed by the monitoring service to obtain a corresponding detection processing result. In some optional examples, the performance index parameter of the service may be processed by the monitoring service to obtain the state information of the service as a detection processing result; the embodiment of the present invention does not limit the implementation manner of generating the detection processing result according to the performance index parameter of the service.
In some optional examples, the performance index parameter of the service may be compared with a preset performance index threshold by the monitoring service, so as to obtain information that the service is in a normal state or information that the service is in an abnormal state, as a detection processing result. For example: the performance indexes of the service comprise service Flow (Server Flow), service processing efficiency (Server EFF), system performance indexes (Server TPS) and the like; the monitoring service can respectively compare the service flow value, the service processing efficiency and the system performance index value with the flow threshold, the processing efficiency threshold and the system performance index threshold, and judge whether the service is overloaded, the processing efficiency of the service is normal, the system performance of the service is abnormal, and the like, so that the information that the service is in a normal state or the information that the service is in an abnormal state is obtained and used as a detection processing result.
And S108, feeding back the detection processing result to the load balancing equipment, so that the load balancing equipment determines the running state of the server according to the detection processing result.
In the embodiment of the present invention, the detection processing result is a result that can be identified by the load balancing device. Optionally, when the detection processing result is a performance index parameter of the service, the load balancing device may determine the operating state of the server by analyzing the performance index parameter of the service; optionally, when the detection processing result is obtained by processing the performance index parameter of the service, the load balancing device may determine the operating state of the server by analyzing the detection processing result. In some optional examples, when the detection processing result is status information of the service, the load balancing device may determine the operating status of the server by analyzing the status information of the service.
In the embodiment of the present invention, the load balancing device determines the operating state of the server through the detection processing result, and may distribute the service processing request to the server through the preset scheduling algorithm according to the operating state of the server, for example, distribute the service processing request to a server in a good operating state, avoid distributing the service processing request to a server in a failure, ensure the availability of the server selected by the load balancing device through the preset scheduling algorithm, and improve the reliability of service processing.
The detection method of the service load balancing server provided by the embodiment of the invention receives a detection processing request sent by the load balancing equipment through the monitoring service; reading performance index parameters of the business service from a local shared cache; the performance index parameter is written into a local shared cache through a service; generating a detection processing result according to the performance index parameter of the business service; feeding back a detection processing result to the load balancing equipment, so that the load balancing equipment determines the running state of the server according to the detection processing result; the performance index parameters of the service in the server can be accurately acquired by using the monitoring service added in the server, and the detection processing result generated according to the performance index parameters of the service is returned to the load balancing equipment, so that the recognition degree of the load balancing equipment to the running state of the server can be improved, the server with balanced service load is ensured to have more stable and high availability, and the effect of load balancing is ensured.
The following describes the probing method of the service load balancing server according to the embodiments of fig. 2 to 7 in detail.
Fig. 2 is a schematic flow chart of an implementation manner of writing a performance index parameter into a local shared cache according to an embodiment of the present invention, and as shown in fig. 2, writing a performance index parameter into a local shared cache through a service at least includes:
s202, receiving a service processing request sent by the load balancing equipment through the service.
In the embodiment of the present invention, the service processing request may be a request issued by the load balancing device to each server configured at the back end after the request issued by the client is reasonably balanced to each server configured at the back end through a preset scheduling algorithm, and each server configured at the SLB back end receives the service processing request issued by the load balancing device through the service, performs corresponding service processing through the service according to the service processing request, and completes corresponding service processing, thereby completing a task requested by the client through a synergistic effect of each server configured at the SLB back end.
S204, corresponding business processing is carried out according to the business processing request, and performance index parameters of the business service are obtained.
In the embodiment of the present invention, each server configured at the back end of the SLB performs corresponding service processing through the service according to the received service processing request sent by the load balancing device, and obtains the performance index parameter of the service through the service while performing the service processing. Optionally, each server configured at the back end of the SLB may periodically obtain the performance index parameter of the service through the service; or, each server configured at the back end of the SLB may also obtain the performance index parameter of the service through the service according to the detection processing request sent by the load balancing device; the embodiment of the invention does not limit the implementation mode of acquiring the performance index parameter of the business service through the business service.
And S206, writing the performance index parameters of the business service into the local shared cache.
In the embodiment of the present invention, after each server configured at the SLB backend acquires the performance index parameter of the service through the service, the acquired performance index parameter of the service may be written into the local shared cache through the service for the listening service to read. Optionally, each server configured at the back end of the SLB may periodically write the performance index parameter of the service into the local shared cache through the service for the listening service to read; or, each server configured at the back end of the SLB may also write the performance index parameter of the service into the local shared cache through the service according to the detection processing request sent by the load balancing device, so as to be read by the monitoring service; the embodiment of the present invention does not limit the implementation manner of writing the performance index parameter of the service into the local shared cache.
In some optional examples, when each server configured at the back end of the SLB receives a service processing request sent by the load balancing device through a service and performs corresponding service processing according to the service processing request, a service flow value, service processing efficiency, a performance index value of the system, and the like of an interface may be acquired through the service, and the acquired performance index parameter of the service is written into the local shared cache through the service; the service flow value of the interface may reflect the service volume being processed on the way, the service processing efficiency may include internal processing efficiency and interface calling efficiency, and the performance index value of the system may reflect the parameters of the environment where the service is located, and may include the performance index of the CPU, the performance index of the memory, and the like.
Fig. 3 is a flowchart illustrating an implementation manner of a detection method for a service load balancing server according to an embodiment of the present invention, and for operations in the method shown in fig. 3 that are the same as those in fig. 1, reference may be made to the relevant description in fig. 1, so that no further description is provided herein, and only differences in the method shown in fig. 3 from those in fig. 1 are described below, and as shown in fig. 3, the method at least includes:
s302, a probe processing request sent by the load balancing device is received through the monitoring service.
S304, reading performance index parameters of the business service from the local shared cache; and the performance index parameter is written into the local shared cache through the service.
S306, generating a corresponding internal instruction as a detection processing result according to the performance index parameter of the business service.
In the embodiment of the present invention, the internal instruction may be a processing instruction that is preset in each server configured at the back end of the SLB and can be determined according to a performance index parameter of the service. Optionally, the performance index parameter of the service may be processed by the monitoring service, and a corresponding internal instruction is generated according to a processing result, as a detection processing result; or, the performance index parameter of the business service can be processed through the monitoring service, the state information of the business service is determined according to the processing result, and a corresponding internal instruction is generated as a detection processing result according to the state information of the business service; the embodiment of the invention does not limit the implementation mode of generating the internal instruction according to the performance index parameter of the business service.
In some optional examples, the performance indicators of the business service may include an update time of the shared cache, a business Flow (Server Flow), a business processing efficiency (Server EFF), a performance indicator of the system (Server TPS), and the like; the updating time, the service flow value, the service processing efficiency and the system performance index value of the shared cache can be respectively compared with a preset time threshold, a preset flow threshold, a preset processing efficiency threshold and a preset system performance index threshold through the monitoring service, and the state information of the service is obtained; for example: as shown in fig. 4, the update time of the shared cache is compared with a preset time threshold, S402 determines whether the update of the shared cache is normal, and if the update time of the shared cache is greater than the preset time threshold, it is determined that the update of the shared cache is abnormal, and S410 the service is in an abnormal state; otherwise, comparing the traffic flow value with a preset traffic threshold value, S404 determining whether the traffic flow is overloaded, if the traffic flow value is greater than the preset traffic threshold value, determining that the traffic flow is overloaded, and S410 that the traffic service is in an abnormal state; otherwise, comparing the service processing efficiency with a preset processing efficiency threshold, and S406 determining whether the service processing efficiency is abnormal, if the service processing efficiency is smaller than the preset processing efficiency threshold, determining that the service processing efficiency is abnormal, and S410 the service is in an abnormal state; otherwise, comparing the performance index value of the system with a preset system performance index threshold value, S408 judging whether the performance index of the system is abnormal, if the performance index of the system is determined to be abnormal, S410 the service is in an abnormal state; otherwise, it is determined S412 that the service is in an abnormal state.
And S308, feeding back an internal instruction to the load balancing equipment, so that the load balancing equipment identifies the running state of the server according to the internal instruction.
In the embodiment of the present invention, the internal instruction is a processing instruction that can be recognized by the load balancing device. Optionally, the load balancing device may control, according to the internal instruction, to distribute the service processing instruction to each server configured at the backend, for example: when the service is in a normal state, the internal instruction is a continuous processing instruction, and the load balancing equipment can continuously distribute a service processing request to the server according to the continuous processing instruction; when the service is in an abnormal state, the internal instruction is a service interruption instruction, and the load balancing device can stop distributing the service processing request to the server according to the service interruption instruction. However, the present invention is not limited thereto.
Fig. 5 is a flowchart illustrating an implementation manner of implementing server internal message sharing according to an embodiment of the present invention, where the method illustrated in fig. 5 is executed after generating a corresponding internal instruction according to a performance index parameter of a service in fig. 3 as a detection processing result, as illustrated in fig. 5, the method at least includes:
s502, the internal instruction is written into the local shared cache through the monitoring service.
In the embodiment of the present invention, each server configured at the back end of the SLB may write the internal instruction into the local shared cache through the listening service, so as to implement message sharing inside the server, where the internal instruction is an instruction that can be identified by the service of the server.
S504, reading the internal instruction from the local shared cache through the service, and controlling the service processing state according to the internal instruction.
In the embodiment of the present invention, each server configured at the back end of the SLB may read the internal instruction from the local shared cache through the service, and control the state of the service processing of the service according to the internal instruction. For example: when the internal instruction is a continuous processing instruction, the current business processing can be continued through the business service according to the continuous processing instruction; when the internal instruction is a service interruption instruction, the current service processing can be completed as soon as possible through the service according to the interruption instruction, or the current service processing is temporarily stored and the information of the intermediate state is stored, the service processing is waited for recovering, the service processing can be continued according to the stored intermediate state after the service processing is recovered, and the continuity of the service processing can be ensured. However, the present invention is not limited thereto.
Fig. 6 is a schematic flowchart of an implementation manner of implementing snoop control according to an embodiment of the present invention, where the method shown in fig. 6 is a snoop control flow added to the method shown in fig. 1 to 5, and as shown in fig. 6, the method at least includes:
s602, receiving an external instruction sent by an external device except the load balancing device through the listening service.
In the embodiment of the present invention, each server configured at the back end of the SLB may receive, through the monitoring service, an external instruction sent by an external device other than the load balancing device, to implement control over the monitoring service in the server, where the external instruction is an instruction that can be recognized by the monitoring service of the server.
S604, controlling the state of the monitoring service according to the external instruction.
In the embodiment of the present invention, each server configured at the SLB backend can control the states of the listening service, such as starting and stopping, according to the external instruction through the listening service. For example: when the external instruction is a continuous processing instruction or an unrecognizable instruction, the current monitoring state can be continued through the monitoring service according to the external instruction; when the external instruction is an interrupt instruction, the monitoring service can send the state information of the busy service system to the load balancing equipment according to the external instruction, and the load balancing equipment is stopped from sending a detection processing request to the server, so that the monitoring service is stopped. However, the present invention is not limited thereto.
Fig. 7 is a flowchart illustrating another implementation manner of implementing server-internal message sharing according to an embodiment of the present invention, where the method shown in fig. 7 is a flow of server-internal message sharing added on the basis of the method shown in fig. 6, and as shown in fig. 7, the method at least includes:
s702, writing the external instruction into the local shared cache through the monitoring service.
In the embodiment of the present invention, after each server configured at the SLB backend receives, through the listening service, an external instruction sent by an external device other than the load balancing device, the external instruction may be written into the local shared cache through the listening service, so as to implement message sharing inside the server, where the external instruction is an instruction that can be identified by the service of the server.
S704, reading an external instruction from the local shared cache through the service, and writing the performance index parameter into the local shared cache according to the external instruction control.
In the embodiment of the invention, each server configured at the SLB back end can read the external instruction from the local shared cache through the service, and control the performance index parameter to be written into the local shared cache according to the external instruction. For example: when the external instruction is a continuous processing instruction, the performance index parameter can be continuously written into the local shared cache through the service according to the continuous processing instruction, so that the performance index parameter of the service is provided for the monitoring service, and the monitoring service is ensured to be continuously carried out; when the external instruction is an interrupt instruction, the performance index parameter is stopped being written into the local shared cache according to the interrupt instruction through the service, and the performance index parameter of the service is stopped being provided for the monitoring service. However, the present invention is not limited thereto.
Optionally, the detection method of the service load balancing server in the embodiment of the present invention may be used alone, or may be used simultaneously with the detection method of the existing service load balancing server, for example: a method of probing a service, a method of probing a server, etc. The detection method of the service load balancing server provided by the embodiment of the invention is proved by system experiments and simulation, so that the existing detection method of the SLB can be optimized. When the system is normal, the monitoring service can be used for feeding back normal detection information to the LB; when the conditions of server deadlock, insufficient link number, insufficient memory and the like occur in the service due to the pressure test, the monitoring service can be used for automatically acquiring and identifying parameters of relevant information, and feeding back abnormal detection information to the LB within the time required by the system, so that the detection method of the service load balancing server provided by the embodiment of the invention can meet the requirements of SLB detection in various scenes.
Based on the same technical concept, corresponding to the methods described in fig. 1 to fig. 7, an embodiment of the present invention further provides a detection apparatus for a service load balancing server, and fig. 8 is a schematic structural diagram of an implementation method of the detection apparatus for the service load balancing server according to the embodiment of the present invention, where the detection apparatus for the service load balancing server may be used to execute the detection method for the service load balancing server described in fig. 1 to fig. 7, and as shown in fig. 8, the detection apparatus for the service load balancing server at least includes: the system comprises a business service module 810, a local shared cache 820 and a listening service module 830, wherein the business service module 810 and the listening service module 830 are respectively connected with the local shared cache 820.
The business service module 810 is configured to write the performance index parameter of the business service into the local shared cache through the business service.
And the local shared cache 820 is used for storing the performance index parameters of the business services.
The monitoring service module 830 is configured to receive, through the monitoring service, a probe processing request sent by the load balancing device; reading performance index parameters of the business service from a local shared cache; generating a detection processing result according to the performance index parameter of the business service; and feeding back a detection processing result to the load balancing equipment, so that the load balancing equipment determines the running state of the server according to the detection processing result.
In the embodiment of the present invention, the descriptions of the business service module 810, the local shared cache 820 and the listening service module 830 can refer to the descriptions of S102 to S108 in fig. 1, and therefore, the descriptions thereof will not be repeated here.
The detection device of the service load balancing server provided by the embodiment of the invention receives a detection processing request sent by the load balancing equipment through the monitoring service; reading performance index parameters of the business service from a local shared cache; the performance index parameter is written into a local shared cache through a service; generating a detection processing result according to the performance index parameter of the business service; feeding back a detection processing result to the load balancing equipment, so that the load balancing equipment determines the running state of the server according to the detection processing result; the performance index parameters of the service in the server can be accurately acquired by using the monitoring service added in the server, and the detection processing result generated according to the performance index parameters of the service is returned to the load balancing equipment, so that the recognition degree of the load balancing equipment to the running state of the server can be improved, the server with balanced service load is ensured to have more stable and high availability, and the effect of load balancing is ensured.
Optionally, the service module 810 is configured to receive, through a service, a service processing request sent by the load balancing device; performing corresponding business processing according to the business processing request, and acquiring performance index parameters of the business service; and writing the performance index parameters of the business service into a local shared cache.
Optionally, the monitoring service module 830 is configured to generate a corresponding internal instruction as a detection processing result according to the performance index parameter of the service; and feeding back an internal instruction to the load balancing equipment, so that the load balancing equipment identifies the running state of the server according to the internal instruction.
Optionally, the monitoring service module 830 is configured to determine state information of the service according to a performance index parameter of the service; and generating a corresponding internal instruction as a detection processing result according to the state information of the business service.
Optionally, the listening service module 830 is further configured to write the internal instruction into the local shared cache through the listening service.
The service module 810 is further configured to read an internal instruction from the local shared cache through the service, and control a service processing state according to the internal instruction.
Optionally, the monitoring service module 830 is further configured to receive, through the monitoring service, an external instruction sent by an external device other than the load balancing device; and controlling the state of the monitoring service according to the external instruction.
Alternatively, the snoop service module 830 is further configured to write the external command to the local shared cache through the snoop service.
The service module 810 is further configured to read an external instruction from the local shared cache through the service, and control to write the performance index parameter into the local shared cache according to the external instruction.
Based on the same technical concept, the embodiment of the present invention further provides an electronic device for performing the interface adapting method of fig. 1 to 7 corresponding to the method described in fig. 1 to 7, and fig. 9 is a schematic structural diagram of an electronic device implementing the embodiment of the present invention, as shown in fig. 9. Electronic devices may vary widely in configuration or performance and may include one or more processors 901 and memory 902, where the memory 902 may store one or more stored applications or data. Memory 902 may be, among other things, transient storage or persistent storage. The application program stored in memory 802 may include one or more modules (not shown), each of which may include a series of computer-executable instructions for a computing device. Still further, the processor 901 may be configured to communicate with the memory 902 to execute a series of computer-executable instructions in the memory 902 on a computer device. The computer apparatus may also include one or more power supplies 903, one or more wired or wireless network interfaces 904, one or more input-output interfaces 905, one or more keyboards 906.
In this embodiment, the electronic device includes a processor, a communication interface, a memory, and a communication bus; the processor, the communication interface and the memory complete mutual communication through a bus; a memory for storing a computer program; a processor for executing the program stored in the memory, implementing the following method steps:
receiving a detection processing request sent by load balancing equipment through a monitoring service;
reading performance index parameters of the business service from a local shared cache; the performance index parameter is written into the local shared cache through a service;
generating a detection processing result according to the performance index parameter of the business service;
and feeding back the detection processing result to the load balancing equipment, so that the load balancing equipment determines the running state of the server according to the detection processing result.
The electronic device provided by the embodiment of the invention receives a detection processing request sent by the load balancing device through the monitoring service; reading performance index parameters of the business service from a local shared cache; the performance index parameter is written into a local shared cache through a service; generating a detection processing result according to the performance index parameter of the business service; feeding back a detection processing result to the load balancing equipment, so that the load balancing equipment determines the running state of the server according to the detection processing result; the performance index parameters of the service in the server can be accurately acquired by using the monitoring service added in the server, and the detection processing result generated according to the performance index parameters of the service is returned to the load balancing equipment, so that the recognition degree of the load balancing equipment to the running state of the server can be improved, the server with balanced service load is ensured to have more stable and high availability, and the effect of load balancing is ensured.
Based on the same technical concept, embodiments of the present application further provide a computer-readable storage medium storing a computer program, where the computer program is executed by a processor to implement the following method steps:
receiving a detection processing request sent by load balancing equipment through a monitoring service;
reading performance index parameters of the business service from a local shared cache; the performance index parameter is written into the local shared cache through a service;
generating a detection processing result according to the performance index parameter of the business service;
and feeding back the detection processing result to the load balancing equipment, so that the load balancing equipment determines the running state of the server according to the detection processing result.
The computer-readable storage medium provided by the embodiment of the invention receives a detection processing request sent by a load balancing device through a monitoring service; reading performance index parameters of the business service from a local shared cache; the performance index parameter is written into a local shared cache through a service; generating a detection processing result according to the performance index parameter of the business service; feeding back a detection processing result to the load balancing equipment, so that the load balancing equipment determines the running state of the server according to the detection processing result; the performance index parameters of the service in the server can be accurately acquired by using the monitoring service added in the server, and the detection processing result generated according to the performance index parameters of the service is returned to the load balancing equipment, so that the recognition degree of the load balancing equipment to the running state of the server can be improved, the server with balanced service load is ensured to have more stable and high availability, and the effect of load balancing is ensured.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for probing a service load balancing server, comprising:
receiving a detection processing request sent by load balancing equipment through a monitoring service;
reading performance index parameters of the business service from a local shared cache; the performance index parameter is written into the local shared cache through a service;
generating a detection processing result according to the performance index parameter of the business service;
and feeding back the detection processing result to the load balancing equipment, so that the load balancing equipment determines the running state of the server according to the detection processing result.
2. The method of claim 1, wherein the performance level parameter is written to the local shared cache by a business service, comprising:
receiving a service processing request sent by the load balancing equipment through the service;
performing corresponding business processing according to the business processing request, and acquiring performance index parameters of the business service;
and writing the performance index parameter of the business service into the local shared cache.
3. The method according to claim 2, wherein the generating a probe processing result according to the performance index parameter of the service comprises:
generating a corresponding internal instruction as the detection processing result according to the performance index parameter of the business service;
the feeding back the detection processing result to the load balancing device includes:
and feeding back the internal instruction to the load balancing equipment, so that the load balancing equipment identifies the running state of the server according to the internal instruction.
4. The method according to claim 3, wherein the generating a corresponding internal instruction according to the performance index parameter of the business service as the detection processing result comprises:
determining the state information of the business service according to the performance index parameter of the business service;
and generating a corresponding internal instruction as the detection processing result according to the state information of the business service.
5. The method according to claim 3, wherein the generating a corresponding internal instruction according to the performance index parameter of the business service as the result of the probing process further comprises:
writing the internal instruction into the local shared cache through the snoop service;
and reading the internal instruction from the local shared cache through the service, and controlling the state of the service processing according to the internal instruction.
6. The method of any one of claims 1 to 5, further comprising:
receiving, by the listening service, an external instruction issued by an external device other than the load balancing device;
and controlling the state of the monitoring service according to the external instruction.
7. The method of claim 6, further comprising:
writing the external instruction into the local shared cache through the snoop service;
and reading the external instruction from the local shared cache through the service, and controlling to write the performance index parameter into the local shared cache according to the external instruction.
8. A probe apparatus for a service load balancing server, comprising:
the service module is used for writing the performance index parameters of the service into the local shared cache through the service;
the local shared cache is used for storing performance index parameters of the business service;
the monitoring service module is used for receiving a detection processing request sent by the load balancing equipment through the monitoring service; reading performance index parameters of the business service from the local shared cache; generating a detection processing result according to the performance index parameter of the business service; and feeding back the detection processing result to the load balancing equipment, so that the load balancing equipment determines the running state of the server according to the detection processing result.
9. An electronic device comprising a processor, a communication interface, a memory, and a communication bus; the processor, the communication interface and the memory complete mutual communication through a bus; the memory is used for storing a computer program; the processor is used for executing the program stored on the memory to realize the detection method of the service load balancing server according to any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the probing method of a service load balancing server according to any one of claims 1 to 7.
CN201911372867.9A 2019-12-27 2019-12-27 Detection method, device, equipment and storage medium for service load balancing server Pending CN113051143A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911372867.9A CN113051143A (en) 2019-12-27 2019-12-27 Detection method, device, equipment and storage medium for service load balancing server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911372867.9A CN113051143A (en) 2019-12-27 2019-12-27 Detection method, device, equipment and storage medium for service load balancing server

Publications (1)

Publication Number Publication Date
CN113051143A true CN113051143A (en) 2021-06-29

Family

ID=76506047

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911372867.9A Pending CN113051143A (en) 2019-12-27 2019-12-27 Detection method, device, equipment and storage medium for service load balancing server

Country Status (1)

Country Link
CN (1) CN113051143A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114938377A (en) * 2022-04-20 2022-08-23 京东科技信息技术有限公司 Back-end server management method and device, readable medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973728A (en) * 2013-01-25 2014-08-06 杭州华三通信技术有限公司 Load balancing method and device under multi-data-center environment
CN106797405A (en) * 2016-12-14 2017-05-31 华为技术有限公司 Distributed load equalizing system, health examination method and service node
CN108965381A (en) * 2018-05-31 2018-12-07 康键信息技术(深圳)有限公司 Implementation of load balancing, device, computer equipment and medium based on Nginx
CN109218341A (en) * 2017-06-29 2019-01-15 北京京东尚科信息技术有限公司 For monitoring server and for the load-balancing method and device of server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973728A (en) * 2013-01-25 2014-08-06 杭州华三通信技术有限公司 Load balancing method and device under multi-data-center environment
CN106797405A (en) * 2016-12-14 2017-05-31 华为技术有限公司 Distributed load equalizing system, health examination method and service node
CN109218341A (en) * 2017-06-29 2019-01-15 北京京东尚科信息技术有限公司 For monitoring server and for the load-balancing method and device of server
CN108965381A (en) * 2018-05-31 2018-12-07 康键信息技术(深圳)有限公司 Implementation of load balancing, device, computer equipment and medium based on Nginx

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114938377A (en) * 2022-04-20 2022-08-23 京东科技信息技术有限公司 Back-end server management method and device, readable medium and electronic equipment
CN114938377B (en) * 2022-04-20 2024-05-17 京东科技信息技术有限公司 Back-end server management method and device, readable medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN107861691B (en) Load balancing method and device of multi-control storage system
CN112256433B (en) Partition migration method and device based on Kafka cluster
CN111309644B (en) Memory allocation method and device and computer readable storage medium
CN112269661B (en) Partition migration method and device based on Kafka cluster
CN109325026B (en) Data processing method, device, equipment and medium based on big data platform
CN111338779A (en) Resource allocation method, device, computer equipment and storage medium
CN111562884A (en) Data storage method and device and electronic equipment
EP4006725A1 (en) Virtual machine migration processing and strategy generation method, apparatus and device, and storage medium
CN113051143A (en) Detection method, device, equipment and storage medium for service load balancing server
CN112631994A (en) Data migration method and system
CN112667270A (en) Voice processing resource updating method, computer equipment and storage device
CN102546652B (en) System and method for server load balancing
CN106330595B (en) Heartbeat detection method and device for distributed platform
CN109286532B (en) Management method and device for alarm information in cloud computing system
CN111198756A (en) Application scheduling method and device of kubernets cluster
CN116594734A (en) Container migration method and device, storage medium and electronic equipment
CN114756451A (en) Safety testing method and device for power grid system, computer equipment and storage medium
CN115033551A (en) Database migration method and device, electronic equipment and storage medium
CN109246034B (en) Method and equipment for allocating flow resources for mobile equipment
CN110321133B (en) H5 application deployment method and device
CN111181864A (en) Method and apparatus for determining link congestion status from an application to a server
CN110955647A (en) Database assistance method, database assistance device, computer equipment and storage medium
CN115801787B (en) Road end data transmission method and device, electronic equipment and storage medium
CN115988089A (en) Data processing method, scheduler and client device
CN115622929B (en) Remote direct data access RDMA (remote direct memory Access) test method and related 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210629