Openstack load balancing management monitoring method and system, storage medium and equipment
Patent Information
- Application Number
- CN202410855101.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-11-19
AI Technical Summary
但是用户网络与管理网络通过namespace上隔离,用户网络和管理网络相互不可访问,这导致管理人员获取不到用户的监控指标,且无法监控用户负载均衡的健康状态,无法对异常情况做出迅速排查与处理
Smart Images

Figure CN118981370A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data monitoring, and more specifically to an openstack load balancing management and monitoring method, system, storage medium and device. Background Art
[0002] In the current technical solution of the load balancing project Octavia in OpenStack, the user network supports Prometheus monitoring, collects monitoring data of the OpenStack open source cloud platform, and obtains resource usage. However, the user network and the management network are isolated through the namespace, and the user network and the management network are inaccessible to each other, which results in the administrator being unable to obtain the user's monitoring indicators, unable to monitor the health status of the user's load balancing, and unable to quickly troubleshoot and handle abnormal situations.
[0003] Therefore, a completely new solution needs to be designed to solve the above technical problems. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide an openstack load balancing management and monitoring method, system, storage medium and device to solve the problem of managing network access user monitoring indicators, monitor the health of load balancing backend servers, and quickly warn and handle abnormal situations.
[0005] The openstack load balancing management and monitoring method provided by the present invention is characterized by comprising: Develop proxy services in the load balancing management network to proxy the monitoring indicator data in the user network user namespace user spacenames to the services in the management network; Developed an authentication-free API interface on octavia-api and found that it received all load balancing data; Configure prometheus to use http_sd to request the interface to synchronously obtain data and perform management and monitoring.
[0006] Preferably, the proxy service includes: The IP address and port of the prometheus access management network; The proxy service in the management network will switch the request to the user's net namespace for execution; The results are returned to prometheus.
[0007] Preferably, the load balancing situation data includes: The user load balancing change data stored in the octavia database includes the user's dynamic addition or deletion of server data.
[0008] Preferably, the management and monitoring includes: Graphical display of monitoring indicators. Introduce Grafana open source monitoring software. Obtain multi-dimensional monitoring item data of Prometheus through Grafana. Graphical display of monitoring indicators through rich dashboards and icons. Alarm notification, install and configure Alertmanager components, send alarms to Alertmanager according to the alarm rules created in prometheus, Alertmanager manages alarms for grouping and deduplication, and sends alarm notifications to managers according to reason rules.
[0009] The openstack load balancing management and monitoring system provided by the present invention is characterized by comprising: The query and collection module is used to manage network query monitoring indicator data and collect load balancing status data; the query monitoring indicator data is proxied to the monitoring indicator data in the user namespace userspacenames of the user network to the service of the management network through the proxy service developed in the load balancing management network; the collection of load balancing status data is carried out by developing an authentication-free API interface on octavia-api, discovering and receiving all load balancing status data, and prometheus is configured with http_sd method to request the interface to synchronously obtain data; The management and monitoring module is used to manage the network for graphical display of monitoring indicators and for managers to receive alarm notifications.
[0010] Preferably, the proxy service includes: The IP address and port of the prometheus access management network; The proxy service in the management network will switch the request to the user's net namespace for execution; The results are returned to prometheus.
[0011] Preferably, the load balancing situation data includes: The user load balancing change data stored in the octavia database includes the user's dynamic addition or deletion of server data.
[0012] Preferably, the management and monitoring module includes: Graphical display of monitoring indicators. Introduce Grafana open source monitoring software. Obtain multi-dimensional monitoring item data of Prometheus through Grafana. Graphical display of monitoring indicators through rich dashboards and icons. Alarm notification, install and configure Alertmanager components, send alarms to Alertmanager according to the alarm rules created in prometheus, Alertmanager manages alarms for grouping and deduplication, and sends alarm notifications to managers according to reason rules.
[0013] According to the computer-readable storage medium storing a computer program provided by the present invention, when the computer program is executed by a processor, the openstack load balancing management and monitoring method is implemented.
[0014] The electronic device provided according to the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the openstack load balancing management and monitoring method is implemented.
[0015] Compared with the prior art, the present invention queries monitoring indicator data by developing a proxy service in the load balancing management network, synchronizes load balancing status data through prometheus requesting the authentication-free API interface developed on octavia-api, manages network access user monitoring indicators, monitors the health of the load balancing backend server, and quickly warns and handles abnormal situations.
[0016] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become easily understood. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, wherein: Figure 1 A schematic diagram of a process flow of the openstack load balancing management and monitoring method in the present application is shown schematically; Figure 2 A schematic diagram of a process flow of the openstack load balancing management and monitoring system in this application is schematically shown; Figure 3 The following schematically shows a principle diagram of the openstack load balancing management and monitoring method in the present application; Figure 4 A schematic diagram of a structure of a computer storage medium according to the openstack load balancing management and monitoring method in the present application is schematically shown; Figure 5A schematic diagram of the structure of computer equipment hardware according to the openstack load balancing management and monitoring method in this application is schematically shown; In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0017] The principles of the present application will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present application, and are not intended to limit the scope of the present application in any way. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0018] Embodiment 1: This embodiment provides an openstack load balancing management and monitoring method.
[0019] Figure 1 The following is a flow chart of the openstack load balancing management and monitoring method provided in this embodiment. Figure 1 As shown, the method comprises the following steps: Step 101, developing a proxy service in the load balancing management network, proxying the monitoring indicator data in the user namespace userspacenames of the user network to the service of the management network; Step 102, develop a authentication-free API interface on octavia-api, and receive all load balancing data; Step 103, configure the http_sd method through prometheus to request the interface to synchronously obtain data and perform management and monitoring.
[0020] The agency services include: The IP address and port of the prometheus access management network; The proxy service in the management network will switch the request to the user's net namespace for execution; The results are returned to prometheus.
[0021] The load balancing data includes: The user load balancing change data stored in the octavia database includes the user's dynamic addition or deletion of server data.
[0022] The management and monitoring includes: Graphical display of monitoring indicators. Introduce Grafana open source monitoring software. Obtain multi-dimensional monitoring item data of Prometheus through Grafana. Graphical display of monitoring indicators through rich dashboards and icons. Alarm notification, install and configure Alertmanager components, send alarms to Alertmanager according to the alarm rules created in prometheus, Alertmanager manages alarms for grouping and deduplication, and sends alarm notifications to managers according to reason rules.
[0023] Embodiment 2: This embodiment provides an openstack load balancing management and monitoring system, which can be implemented by executing the process steps of the openstack load balancing management and monitoring method, that is, those skilled in the art can understand the openstack load balancing management and monitoring method as a preferred implementation of the openstack load balancing management and monitoring system.
[0024] Figure 2 The flowchart of the openstack load balancing management and monitoring system provided in this embodiment is as follows. Figure 2 As shown, the system includes: The query and collection module 201 is used to manage network query monitoring indicator data and collect load balancing status data; the query monitoring indicator data is proxied to the service of the management network by developing a proxy service in the load balancing management network; the collection of load balancing status data is carried out by developing an authentication-free API interface on octavia-api, discovering and receiving all load balancing status data, and prometheus is configured with http_sd method to request the interface to synchronously obtain data; The management and monitoring module 202 is used to manage the network to display monitoring indicators graphically and for management personnel to receive alarm notifications.
[0025] The agency services include: The IP address and port of the prometheus access management network; The proxy service in the management network will switch the request to the user's net namespace for execution; The results are returned to prometheus.
[0026] The load balancing data includes: The user load balancing change data stored in the octavia database includes the user's dynamic addition or deletion of server data.
[0027] The management and monitoring module includes: Graphical display of monitoring indicators. Introduce Grafana open source monitoring software. Obtain multi-dimensional monitoring item data of Prometheus through Grafana. Graphical display of monitoring indicators through rich dashboards and icons. Alarm notification, install and configure Alertmanager components, send alarms to Alertmanager according to the alarm rules created in prometheus, Alertmanager manages alarms for grouping and deduplication, and sends alarm notifications to managers according to reason rules.
[0028] Embodiment 3: This embodiment provides an openstack load balancing management and monitoring method, system, storage medium and device.
[0029] Figure 3 The schematic diagram of the principle of the openstack load balancing management and monitoring system provided in this embodiment. Figure 3 As shown in the figure, the dotted line represents the management network, and the solid line represents the user network. The management network and the user network are isolated by namespace and cannot access each other. In the management network, the proxy function is developed to proxy the monitoring indicators in the user namespaces to the services in the management network, such as port 9443. When Prometheus accesses the IP address 9443 port of the management network, the proxy service in the management network will switch the request to the user's net namespaces for execution, and then return the result to Prometheus. The user's load balancing is constantly changing, such as deletion and addition, so prometheus needs to perceive this dynamic change, and these change information only exists in the Octavia database. It is necessary to develop an API to discover services, and the discovery service cannot have authentication, so it is necessary to develop an authentication-free API interface on octavia-api, and this interface can discover all load balancing situations. Then configure prometheus to use http_sd to discover our load balancing situation and monitor it. When the user creates a load balancing, it can automatically discover the backend machine of the load balancing and monitor whether the machine's service is normal. If a large number of 500 or 4xx are found in the link, or the response time is abnormal, email, SMS and other instant communication platforms can be used for rapid alarm, which is conducive to rapid investigation by the alarm personnel.
[0030] Figure 4 The structure diagram of the computer-readable storage medium according to the openstack load balancing management and monitoring method provided by the embodiment of the present invention is shown. Figure 4As shown, the computer-readable storage medium 3 stores computer program instructions 31, which can be executed by a processor. When the computer program instructions 31 are executed, the above method is implemented as follows: Step 101, developing a proxy service in the load balancing management network, proxying the monitoring indicator data in the user namespace userspacenames of the user network to the service of the management network; Step 102, develop a authentication-free API interface on octavia-api, and receive all load balancing data; Step 103, configure the http_sd method through prometheus to request the interface to synchronously obtain data and perform management and monitoring.
[0031] A computer device provided in this embodiment includes a memory 402 and a processor 401. The memory stores a computer program, and when the computer program is executed by the processor, a method of any one of the above embodiments is implemented.
[0032] like Figure 5 As shown in FIG. 1 , a schematic diagram of the structure of computer equipment hardware according to the openstack load balancing management and monitoring method in this application is shown. Figure 5 Taking the computer device shown in FIG. 4 as an example, the computer device includes a processor 401 and a memory 402, and may also include: an input device 403 and an output device 404. The processor 401, the memory 402, the input device 403 and the output device 404 may be connected via a bus or other means. Figure 5 The example of the bus connection is taken as an example. The input device 403 can receive input digital or character information, and generate key signal input related to user settings and function control of the openstack load balancing management and monitoring system. The output device 404 can include a display device such as a display screen.
[0033] The memory 402, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as the program instructions / modules corresponding to the method for openstack load balancing management and monitoring in the embodiment of the present application. The memory 402 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of the method for openstack load balancing management and monitoring, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. The memory 402 may optionally include a memory remotely arranged relative to the processor 401, and these remote memories may be connected to the local module via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0034] The processor 401 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 402, that is, implements the openstack load balancing management and monitoring method of the above method embodiment.
[0035] The technical solutions provided in the embodiments of the present application are introduced in detail above. The principles and implementation methods of the embodiments of the present application are explained by using specific examples in the embodiments of the present application. The description of the above embodiments is only used to help understand the methods and core ideas of the embodiments of the present application. At the same time, for those skilled in the art, according to the ideas of the embodiments of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the embodiments of the present application.
Claims
1. An openstack load balancing management and monitoring method, characterized in that: include: Develop proxy services in the load balancing management network to proxy the monitoring indicator data in the user network user namespace user spacenames to the services in the management network; Developed an authentication-free API interface on octavia-api and found that it received all load balancing data; Configure prometheus to use http_sd to request the interface to synchronously obtain data and perform management and monitoring.
2. An openstack load balancing management and monitoring method as claimed in claim 1, characterized in that: The agency services include: The IP address and port of the prometheus access management network; The proxy service in the management network will switch the request to the user's net namespace for execution; The results are returned to prometheus.
3. An openstack load balancing management and monitoring method as claimed in claim 1, characterized in that: The load balancing data includes: The user load balancing change data stored in the octavia database includes the user's dynamic addition or deletion of server data.
4. The openstack load balancing management and monitoring method according to claim 1, characterized in that: The management and monitoring includes: Graphical display of monitoring indicators. Introduce Grafana open source monitoring software. Obtain multi-dimensional monitoring item data of Prometheus through Grafana. Graphical display of monitoring indicators through rich dashboards and icons. Alarm notification, install and configure Alertmanager components, send alarms to Alertmanager according to the alarm rules created in prometheus, Alertmanager manages alarms for grouping and deduplication, and sends alarm notifications to managers according to reason rules.
5. An openstack load balancing management and monitoring system, characterized in that: include: Query collection module, used to manage network query monitoring indicator data and collect load balancing data; The query monitoring indicator data is performed by developing a proxy service in the load balancing management network, and the monitoring indicator data in the user namespace userspacenames of the user network is proxied to the service of the management network; the collection of load balancing status data is performed by developing an authentication-free API interface on octavia-api, and receiving all load balancing status data, and prometheus is configured with http_sd method to request the interface to synchronously obtain data; The management and monitoring module is used to manage the network for graphical display of monitoring indicators and for managers to receive alarm notifications.
6. An openstack load balancing management and monitoring system as claimed in claim 5, characterized in that: The agency services include: The IP address and port of the prometheus access management network; The proxy service in the management network will switch the request to the user's net namespace for execution; The results are returned to prometheus.
7. An openstack load balancing management and monitoring system as claimed in claim 5, characterized in that: The load balancing data includes: The user load balancing change data stored in the octavia database includes the user's dynamic addition or deletion of server data.
8. An openstack load balancing management and monitoring system as claimed in claim 5, characterized in that: The management and monitoring module includes: Graphical display of monitoring indicators. Introduce Grafana open source monitoring software. Obtain multi-dimensional monitoring item data of Prometheus through Grafana. Graphical display of monitoring indicators through rich dashboards and icons. Alarm notification, install and configure Alertmanager components, send alarms to Alertmanager according to the alarm rules created in prometheus, Alertmanager manages alarms for grouping and deduplication, and sends alarm notifications to managers according to reason rules.
9. A computer-readable storage medium, characterized in that: Computer program instructions are stored, and when the computer program instructions are executed, the method according to any one of claims 1 to 4 is implemented.
10. A computer device comprising a memory and a processor, characterized in that: The memory stores a computer program, and when the computer program is executed by the processor, the method according to any one of claims 1 to 4 is performed.
