A Method and Device for Containerized Deployment of Cloud Platform Monitoring Services

By installing fluentd and elasticsearch services on the OpenStack cloud platform and modifying the kolla-ansible components to support the deployment of these services, the problem of excessive load on the message queue, database crashes and inability to detect the health status of the server in the cloud platform monitoring service is solved, and efficient and accurate monitoring service deployment and operation is achieved.

CN113626135BActive Publication Date: 2025-06-10JINAN INSPUR DATA TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110738483.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-30
Publication Date
2025-06-10
Estimated Expiration
2041-06-30

AI Technical Summary

Technical Problem

The OpenStack cloud platform monitoring service has problems such as excessive load on message queues, database crashes and inability to detect server health status. At the same time, Kolla-ansible lacks support for fluentd and easternsearch services, which increases deployment complexity.

Method used

By installing fluentd and elasticsearch services, a container image adapted to the kolla-ansible component is built and pushed to the OpenStack cloud platform image repository, and the code of the kolla-ansible component is modified to support the deployment of fluentd and elasticsearch services to realize the collection and storage of monitoring data.

Benefits of technology

It reduces the message queue load of the cloud platform, avoids database crashes, realizes detection of server health status, simplifies the on-site deployment process of OpenStack, and improves the accuracy and reliability of monitoring services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113626135B_ABST
    Figure CN113626135B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for containerized deployment of cloud platform monitoring services. The steps of the method are as follows: Install the fluentd and elasticsearch services, build a container image adapted to the kolla-ansible component, and push the built container image to the corresponding image repository of the OpenStack cloud platform; Implement support for the fluentd and elasticsearch services by modifying the code of the kolla-ansible component; Start the deployment of the OpenStack cloud platform, determine whether to deploy the monitoring service, and when it is necessary to deploy the monitoring service, access the configuration file through port mapping and map the logs to the fluentd service, and map the monitoring data to the elasticsearch service. The present invention realizes an independent cloud platform monitoring service by modifying the configuration file and port mapping.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of cloud platform monitoring, and particularly relates to a method and device for containerized deployment of cloud platform monitoring services. Background Art

[0002] OpenStack is a free software and open-source project jointly developed and initiated by NASA (National Aeronautics and Space Administration) and Rackspace, and licensed under the Apache license. OpenStack is an open-source cloud computing management platform project, which combines several main components to complete specific tasks. OpenStack supports almost all types of cloud environments, and its project goal is to provide a cloud computing management platform that is simple to implement, highly scalable, rich, and standardized. After years of development, the technology of OpenStack has become increasingly mature and stable. While providing high availability, it also has flexible scalability. Therefore, OpenStack has been widely used in various industries.

[0003] kolla-ansible is responsible for deploying containerized OpenStack services and infrastructure components, configuring OpenStack services using kolla-ansible, and orchestrating the deployment of OpenStack service containers. By using the isolation of containers, the upgrade and rollback of OpenStack service containers can be achieved, the scope of influence of the upgrade and rollback can be controlled, and the complexity of OpenStack cluster operation and maintenance can be reduced.

[0004] Ceilometer is a sub-project in OpenStack, which is responsible for collecting events and logs occurring inside OpenStack, and then providing data support for billing, monitoring, and other services.

[0005] Fluentd is an open-source software for collecting log files. Currently, it provides hundreds of plugins for storing big data for log search, data analysis, and storage, and can collect log information of each service and the host.

[0006] Elasticsearch is a highly scalable open-source full-text search and analysis engine. It supports storing, searching, and analyzing large amounts of data quickly and near real-time.

[0007] Problems existing in the current OpenStack cloud platform monitoring service:

[0008] (1)During the operation of Ceilometer, it will use the message queue to obtain information about each component of OpenStack, increasing the load on the message queue of the cloud platform. When the data volume is large, it will cause the cloud platform to freeze. The data collected by Ceilometer and other modules are stored in the same database. With a large amount of monitored data, it is very easy to cause the database to crash. Ceilometer only collects information about each module of the cloud platform and has no way to detect the health status of the server, resulting in low accuracy of the monitored data.

[0009] (2)Kolla-ansible does not provide support for the fluentd and elasticsearch services. It is necessary to first use kolla-ansible to deploy OpenStack, and then separately deploy fluentd and elasticsearch to monitor the cluster data information, increasing the complexity and difficulty of the on-site deployment of OpenStack.

[0010] These are the deficiencies of the existing technology. Therefore, in view of the above-mentioned defects in the existing technology, it is very necessary to provide a method and device for containerized deployment of cloud platform monitoring services. Summary of the Invention

[0011] In view of the above-mentioned defects in the current OpenStack cloud platform monitoring service of the existing technology, where the ceilometer project cannot detect the health status of the server, and the deployment of the fluentd and elasticsearch services increases the complexity and difficulty of the on-site deployment of OpenStack, the present invention provides a method and device for containerized deployment of cloud platform monitoring services to solve the above technical problems.

[0012] In a first aspect, the present invention provides a method for containerized deployment of cloud platform monitoring services, including the following steps:

[0013] S1. Install the fluentd and elasticsearch services, build a container image adapted to the kolla-ansible component, and push the built container image to the corresponding image repository of the OpenStack cloud platform;

[0014] S2. Modify the code of the kolla-ansible component to implement support for the fluentd and elasticsearch services;

[0015] S3. Start the deployment of the OpenStack cloud platform, determine whether to deploy the monitoring service, and when the monitoring service needs to be deployed, access the configuration file through the mapped port and map the logs to the fluentd service, and send the monitoring data to the elasticsearch service.

[0016] Further, the specific steps of step S1 are as follows:

[0017] S11. Select a base image;

[0018] S12. Build a fluentd container image, and install the monitoring service adapted to the kolla-ansible component and the fluentd service in the fluentd container image;

[0019] S13. Build an elasticsearch container image, and install the monitoring service adapted to the kolla-ansible component and the elasticsearch service in the elasticsearch container image;

[0020] S14. Push the built fluentd container image and elasticsearch container image to the corresponding image repository of the OpenStack cloud platform. Select a base image, build the monitoring service container images of the required fluentd service and elasticsearch service, and the built container images have been pushed to the image repository for use.

[0021] Further, the specific steps of step S2 are as follows:

[0022] S21. Add a fluentd service deployment enabling field and an elasticsearch service deployment enabling field to the global control file;

[0023] S22. Add nodes for deploying the fluentd service and elasticsearch service to the host inventory file;

[0024] S23. Add fields for including the fluentd and elasticsearch services into the ansible project to the file module entry file;

[0025] S24. Add startup settings for the fluentd container and elasticsearch container under the role directory. Modify the configuration file to implement the support of kolla-ansible for the fluentd and elasticsearch services.

[0026] Further, in step S24, add settings for the fluentd service and elasticsearch service to the configuration file of the neutron service in the role directory to implement the startup of the fluentd container and elasticsearch container.

[0027] Further, the specific steps of step S3 are as follows:

[0028] S31. Start the deployment of the OpenStack cloud platform;

[0029] S32. Determine whether to deploy the monitoring service;

[0030] If yes, go to step S33;

[0031] If no, go to step S36;

[0032] S33. Map the access configuration files of the keystone port, fluentd port, and elasticsearch port;

[0033] S34. Map the server system log file and the log files of each module of the OpenStack cloud platform to the fluentd container and start the fluentd service;

[0034] S35. Inject the monitoring data into the elasticsearch container and start the elasticsearch service;

[0035] S36. Deploy each functional service of the OpenStack cloud platform. Implement information authentication through keystone port mapping, and access the configuration files through the fluentd port and elasticsearch port, so that the relevant private configurations of the OpenStack cloud platform are mapped through the configuration files.

[0036] In a second aspect, the present invention provides a containerized deployment device for a cloud platform monitoring service, including:

[0037] A container image building and pushing module, which is used to install the fluentd and elasticsearch services, build a container image adapted to the kolla-ansible component, and push the built container image to the corresponding image repository of the OpenStack cloud platform;

[0038] A service support setting module, which is used to support the fluentd and elasticsearch services by modifying the code of the kolla-ansible component;

[0039] A monitoring service enabling module, which is used to start the deployment of the OpenStack cloud platform, determine whether to deploy the monitoring service, and when the monitoring service needs to be deployed, access the configuration file by mapping the port and map the log to the fluentd service, and send the monitoring data to the elasticsearch service.

[0040] Further, the container image building and pushing module includes:

[0041] The base image selection unit is used to select the base image;

[0042] The fluentd container image building unit is used to build the fluentd container image, and install the monitoring service adapted to the kolla-ansible component and the fluentd service in the fluentd container image;

[0043] The elasticsearch container image building unit is used to build the elasticsearch container image, and install the monitoring service adapted to the kolla-ansible component and the elasticsearch service in the elasticsearch container image;

[0044] The container image pushing unit is used to push the built fluentd container image and elasticsearch container image to the corresponding image repository on the OpenStack cloud platform. Select the base image, build the monitoring service container images for the required fluentd service and elasticsearch service, and push the built container images to the image repository for use.

[0045] Furthermore, the service support setting module includes:

[0046] The global file change unit is used to add the fluentd service deployment enable field and the elasticsearch service deployment enable field to the global control file;

[0047] The host inventory change unit is used to add the nodes for deploying the fluentd service and the elasticsearch service to the host inventory file;

[0048] The entry file change unit is used to add the field of including the fluentd and elasticsearch services into the ansible project to the file module entry file;

[0049] The role directory change unit is used to add the startup settings of the fluentd container and the elasticsearch container under the role directory. Modify the configuration file to implement the support of kolla-ansible for the fluentd and elasticsearch services.

[0050] Furthermore, in the role directory change unit, add the settings of the fluentd service and the elasticsearch service to the configuration file of the neutron service in the role directory to realize the startup of the fluentd container and the elasticsearch container.

[0051] Furthermore, the monitoring service startup module includes:

[0052] A deployment and startup unit for deploying and starting the OpenStack cloud platform;

[0053] A monitoring service deployment judgment unit for judging whether a monitoring service needs to be deployed;

[0054] A configuration file access unit for mapping the keystone port, fluentd port, and elasticsearch port to access the configuration file when a monitoring server needs to be deployed;

[0055] A log file mapping unit for mapping the server system log file and the log files of each module of the OpenStack cloud platform to the fluentd container and starting the fluentd service;

[0056] A monitoring data mapping unit for injecting monitoring data into the elasticsearch container and starting the elasticsearch service;

[0057] A functional service deployment unit for deploying the functional services of the OpenStack cloud platform when the monitoring service does not need to be deployed or the monitoring service deployment is completed. Information authentication is achieved through keystone port mapping, and the configuration file is accessed through the fluentd port and elasticsearch port, so that the private configuration related to the OpenStack cloud platform is mapped through the configuration file.

[0058] The beneficial effects of the present invention are as follows.

[0059] The method and device for containerized deployment of the cloud platform monitoring service provided by the present invention add the startup configurations of the fluentd and elasticsearch containers by modifying the configuration file in kolla-ansible, so as to realize the support of kolla-ansible for the containerized deployment of the monitoring service; then, by mapping the keystone port to access the configuration file and mapping the fluentd and elasticsearch ports to access the configuration file, the personalized configuration of the monitoring service is realized. The monitoring service collects the monitoring information of the cluster through the system log mapped into the container and the logs of each service of the cloud platform, and then injects the data into the elasticsearch container to realize an independent cloud platform monitoring service.

[0060] In addition, the design principle of the present invention is reliable, the structure is simple, and it has a very wide application prospect.

[0061] It can be seen that compared with the prior art, the present invention has prominent substantive features and remarkable progress, and the beneficial effects of its implementation are also obvious. Brief Description of the Drawings

[0062] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0063] Figure 1 is a schematic flowchart of the method for containerized deployment of cloud platform monitoring services of the present invention Figure 1 .

[0064] Figure 2 is a schematic flowchart of the method for containerized deployment of cloud platform monitoring services of the present invention Figure 2 .

[0065] Figure 3 is a schematic diagram of the device for containerized deployment of cloud platform monitoring services of the present invention.

[0066] In the figure, 1 - container image building and pushing module; 1.1 - basic image selection unit; 1.2 - fluentd container image building unit; 1.3 - elasticsearch container image building unit; 1.4 - container image pushing unit; 2 - service support setting module; 2.1 - global file change unit; 2.2 - host list change unit; 2.3 - entry file change unit; 2.4 - role directory change unit; 3 - monitoring service start module; 3.1 - deployment start unit; 3.2 - monitoring service deployment judgment unit; 3.3 - configuration file access unit; 3.4 - log file mapping unit; 3.5 - monitoring data mapping unit; 3.6 - functional service deployment unit. Detailed Embodiments

[0067] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0068] Embodiment 1:

[0069] As Figure 1 shown, the present invention provides a method for containerized deployment of cloud platform monitoring services, including the following steps:

[0070] S1. Install the fluentd and elasticsearch services, build a container image adapted to the kolla-ansible component, and push the built container image to the corresponding image repository of the OpenStack cloud platform;

[0071] S2. Modify the code of the kolla-ansible component to support the fluentd and elasticsearch services;

[0072] S3. Start the deployment of the OpenStack cloud platform, determine whether to deploy the monitoring service, and when the monitoring service needs to be deployed, access the configuration file through port mapping and map the logs to the fluentd service, and map the monitoring data to the elasticsearch service.

[0073] Example 2:

[0074] As Figure 2 shown, the present invention provides a method for containerized deployment of a cloud platform monitoring service, including the following steps:

[0075] S1. Install the fluentd and elasticsearch services, build a container image adapted to the kolla-ansible component, and push the built container image to the corresponding image repository of the OpenStack cloud platform; The specific steps are as follows:

[0076] S11. Select the base image;

[0077] S12. Build the fluentd container image, and install the monitoring service adapted to the kolla-ansible component and the fluentd service in the fluentd container image;

[0078] S13. Build the elasticsearch container image, and install the monitoring service adapted to the kolla-ansible component and the elasticsearch service in the elasticsearch container image;

[0079] S14. Push the built fluentd container image and elasticsearch container image to the corresponding image repository of the OpenStack cloud platform; Select the base image, build the monitoring service container images of the required fluentd service and elasticsearch service, and the built container images have been pushed to the image repository for use;

[0080] S2. Implement support for the fluentd and elasticsearch services by modifying the code of the kolla-ansible component. The specific steps are as follows:

[0081] S21. Add the fluentd service deployment enable field and the elasticsearch service deployment enable field in the global control file;

[0082] S22. Add the nodes for deploying the fluentd service and the elasticsearch service in the host inventory file;

[0083] S23. Add the fields for including the fluentd and elasticsearch services into the ansible project in the file module entry file; ansible is an automated operation and maintenance tool;

[0084] S24. Add the startup settings for the fluentd container and the elasticsearch container in the role directory; add the settings for the fluentd and elasticsearch services in the configuration file of the neutron service in the role directory to start the fluentd container and the elasticsearch container; the neutron service provides network support for the entire OpenStack cloud platform environment; modify the configuration file to implement the support of kolla-ansible for the fluentd and elasticsearch services;

[0085] S3. Start the OpenStack cloud platform deployment, determine whether to deploy the monitoring service, and when it is necessary to deploy the monitoring service, access the configuration file through the mapped ports and map the logs to the fluentd service, and map the monitoring data to the elasticsearch service. The specific steps are as follows:

[0086] S31. Start the OpenStack cloud platform deployment;

[0087] S32. Determine whether it is necessary to deploy the monitoring service;

[0088] If so, go to step S33;

[0089] If not, go to step S36;

[0090] S33. Map the keystone port, fluentd port, and elasticsearch port to access the configuration file; keystone is an authentication service;

[0091] S34. Map the system log files of the mapping server and the log files of each module of the OpenStack cloud platform to the fluentd container, and start the fluentd service;

[0092] S35. Inject the monitoring data into the elasticsearch container, and start the elasticsearch service;

[0093] S36. Deploy each functional service of the OpenStack cloud platform; implement information authentication through the keystone port mapping, access the configuration files through the fluentd port and the elasticsearch port, so that the relevant private configurations of the OpenStack cloud platform are mapped through the configuration files.

[0094] Embodiment 3:

[0095] As Figure 2 shown, the present invention provides a method for containerized deployment of a cloud platform monitoring service, including the following steps:

[0096] S1. Install the fluentd and elasticsearch services, build a container image adapted to the kolla-ansible component, and push the built container image to the corresponding image repository of the OpenStack cloud platform; the specific steps are as follows:

[0097] S11. Select the base image;

[0098] S12. Build the fluentd container image, and install the monitoring service adapted to the kolla-ansible component and the fluentd service in the fluentd container image;

[0099] S13. Build the elasticsearch container image, and install the monitoring service adapted to the kolla-ansible component and the elasticsearch service in the elasticsearch container image;

[0100] S14. Push the built fluentd container image and elasticsearch container image to the corresponding image repository of the OpenStack cloud platform; select the base image, build the monitoring service container images of the required fluentd service and elasticsearch service, and push the built container images to the image repository for use;

[0101] S2. Implement the support for the fluentd and elasticsearch services by modifying the code of the kolla-ansible component; the specific steps are as follows:

[0102] S21. Add fields for enabling the deployment of the Fluentd service and the Elasticsearch service in the global control file globals.yml; the field for enabling the deployment of the Fluentd service can control whether to deploy the Fluentd service in the cluster, and the field for enabling the deployment of the Elasticsearch service can control whether to deploy the Elasticsearch service in the cluster;

[0103] S22. Add relevant fields in the host inventory files multinode and all-in-one to specify the nodes where the Fluentd service and the Elasticsearch service are deployed; the multinode file is for multi-node deployment, that is, the Fluentd service and the Elasticsearch service are deployed on different nodes, while the all-in-one is for single-node deployment, that is, the Fluentd service and the Elasticsearch service are deployed on one node;

[0104] S23. Add relevant fields in the file module entry file site.yml to include the Fluentd and Elasticsearch services in the Ansible project; Ansible is an automated operation and maintenance tool;

[0105] S24. Add startup settings for the Fluentd container and the Elasticsearch container under the roles directory; add settings for the Fluentd and Elasticsearch services in the configuration file of the Neutron service in the roles directory to start the Fluentd container and the Elasticsearch container; the Neutron service provides network support for the entire OpenStack cloud platform environment; modify the configuration file to enable Kolla-Ansible to support the Fluentd and Elasticsearch services;

[0106] S3. Start the deployment of the OpenStack cloud platform, determine whether to deploy the monitoring service, and when the monitoring service needs to be deployed, access the configuration file through the mapped port and map the logs to the Fluentd service, and map the monitoring data to the Elasticsearch service; the specific steps are as follows:

[0107] S31. Start the deployment of the OpenStack cloud platform;

[0108] S32. Determine whether the monitoring service needs to be deployed;

[0109] If so, go to step S33;

[0110] If not, go to step S36;

[0111] S33. Map the access configuration files of the keystone port, fluentd port, and elasticsearch port; keystone is an authentication service; map the access configuration file of the keystone port for information authentication;

[0112] S34. Map the server system log file and the log files of each module of the OpenStack cloud platform to the fluentd container and start the fluentd service; start the fluentd service to monitor the system log and the logs of each module;

[0113] S35. Inject the monitoring data into the elasticsearch container and start the elasticsearch service;

[0114] S36. Deploy each functional service of the OpenStack cloud platform; after the monitoring service is deployed, deploy other related functional services of the OpenStack cloud platform; realize information authentication through the keystone port mapping, access the configuration files through the fluentd port and the elasticsearch port, and map the relevant private configurations of the OpenStack cloud platform through the configuration files.

[0115] The containerized deployment method of the cloud platform monitoring service provided by the present invention realizes the support of kolla-ansible for the containerized deployment of the monitoring service by modifying the global control file globals.yml, the host inventory file multinode and all-in-one, the module entry file site.yml in kolla-ansible, and adding the startup configurations of the fluentd and elasticsearch containers in the roles directory roles; in addition, by mapping the access configuration file of the keystone port and the access configuration files of the fluentd and elasticsearch ports, the personalized configuration of the monitoring service is realized. The monitoring service collects the monitoring information of the cluster through the system log mapped into the container and the logs of each service of the cloud platform, and then injects the data into the elasticsearch container to realize an independent cloud platform monitoring service; realize the complete decoupling of the monitoring server and other services of the OpenStack cloud platform.

[0116] Embodiment 4:

[0117] As Figure 3 shown, the present invention provides a containerized deployment device for a cloud platform monitoring service, including:

[0118] The container image building and pushing module 1 is used to install the fluentd and elasticsearch services, build a container image adapted to the kolla-ansible component, and push the built container image to the corresponding image repository of the OpenStack cloud platform;

[0119] The service support setting module 2 is used to support the fluentd and elasticsearch services by modifying the code of the kolla-ansible component;

[0120] The monitoring service enabling module 3 is used to start the deployment of the OpenStack cloud platform, determine whether to deploy the monitoring service, and when the monitoring service needs to be deployed, access the configuration file through the mapped port and map the logs to the fluentd service, and map the monitoring data to the elasticsearch service.

[0121] Example 5:

[0122] As Figure 3 shown, the present invention provides a containerized deployment device for a cloud platform monitoring service, including:

[0123] The container image building and pushing module 1 is used to install the fluentd and elasticsearch services, build a container image adapted to the kolla-ansible component, and push the built container image to the corresponding image repository of the OpenStack cloud platform; The container image building and pushing module 1 includes:

[0124] The basic image selection unit 1.1 is used to select the basic image;

[0125] The fluentd container image building unit 1.2 is used to build the fluentd container image, and install the monitoring service adapted to the kolla-ansible component and the fluentd service in the fluentd container image;

[0126] The elasticsearch container image building unit 1.3 is used to build the elasticsearch container image, and install the monitoring service adapted to the kolla-ansible component and the elasticsearch service in the elasticsearch container image;

[0127] The container image pushing unit 1.4 is used to push the built fluentd container image and elasticsearch container image to the corresponding image repository of the OpenStack cloud platform;

[0128] Service support setting module 2 is used to support the fluentd and elasticsearch services by modifying the code of the kolla-ansible component; the service support setting module 2 includes:

[0129] Global file change unit 2.1 is used to add a fluentd service deployment enable field and an elasticsearch service deployment enable field in the global control file;

[0130] Host inventory change unit 2.2 is used to add nodes for deploying the fluentd service and the elasticsearch service in the host inventory file;

[0131] Entry file change unit 2.3 is used to add fields for including the fluentd and elasticsearch services into the ansible project in the file module entry file;

[0132] Role directory change unit 2.4 is used to add startup settings for the fluentd container and the elasticsearch container under the role directory; add settings for the fluentd service and the elasticsearch service in the configuration file of the neutron service in the role directory to start the fluentd container and the elasticsearch container;

[0133] Monitoring service enabling module 3 is used to enable the deployment of the OpenStack cloud platform, determine whether to deploy the monitoring service, and when the monitoring service needs to be deployed, access the configuration file through mapped ports and map the logs to the fluentd service, and map the monitoring data to the elasticsearch service; the monitoring service enabling module 3 includes:

[0134] Deployment startup unit 3.1 is used to start the deployment of the OpenStack cloud platform;

[0135] Monitoring service deployment judgment unit 3.2 is used to judge whether the monitoring service needs to be deployed;

[0136] Configuration file access unit 3.3 is used to map the keystone port, fluentd port, and elasticsearch port to access the configuration file when the monitoring server needs to be deployed;

[0137] Log file mapping unit 3.4 is used to map the server system log file and the log files of each module of the OpenStack cloud platform to the fluentd container and start the fluentd service;

[0138] The monitoring data mapping unit 3.5 is used to inject monitoring data into the elasticsearch container and start the elasticsearch service;

[0139] The functional service deployment unit 3.6 is used to deploy each functional service of the OpenStack cloud platform when the monitoring service does not need to be deployed or after the monitoring service is deployed.

[0140] The cloud platform monitoring service containerized deployment device provided by the present invention realizes the containerized deployment support of the kolla-ansible for the monitoring service by modifying the configuration file in the kolla-ansible to add the startup configurations of the fluentd and elasticsearch containers; and then realizes the personalized configuration of the monitoring service by mapping the keystone port access configuration file and mapping the fluentd and elasticsearch port access configuration files. The monitoring service collects the monitoring information of the system logs mapped into the container and the log collection cluster of each service of the cloud platform, and then injects the data into the elasticsearch container to implement an independent cloud platform monitoring service, realizing the complete decoupling of the monitoring server and other services of the OpenStack cloud platform.

[0141] Although the present invention has been described in detail by referring to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, those of ordinary skill in the art can make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions should all be within the scope of the present invention. / Any person skilled in the art within the technical scope disclosed by the present invention can easily think of changes or substitutions, which should all be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the said claims.

Claims

1. A method for containerized deployment of cloud platform monitoring services, characterized in that, it includes the following steps: S1. Install fluent d and elastic search services, build a container image adapted to the kolla-ansible component, and push the built container image to the corresponding image repository of the OpenStack cloud platform; S2. Support for fluent d and elastic search services is achieved by modifying the code of the kolla-ansible component; S3. Start the deployment of the OpenStack cloud platform, determine whether to deploy the monitoring service, and when the monitoring service needs to be deployed, access the configuration file through port mapping and map the logs to the fluent d service, and map the monitoring data to the elastic search service; The specific steps of step S1 are as follows: S11. Select the base image; S12. Build the fluent d container image, and install the monitoring service adapted to the kolla-ansible component and the fluent d service in the fluent d container image; S13. Build the elastic search container image, and install the monitoring service adapted to the kolla-ansible component and the elastic search service in the elastic search container image; S14. Push the built fluent d container image and elastic search container image to the corresponding image repository of the OpenStack cloud platform; The specific steps of step S2 are as follows: S21. Add a fluent d service deployment enable field and an elastic search service deployment enable field to the global control file; S22. Add nodes for deploying the fluent d service and the elastic search service to the host inventory file; S23. Add fields for including the fluent d and elastic search services in the ansible project to the file module entry file; S24. Add startup settings for the fluent d container and the elastic search container under the role directory.

2. The method for containerized deployment of cloud platform monitoring services according to claim 1, characterized in that, in step S24, settings for the fluent d service and the elastic search service are added to the configuration file of the neutron service in the role directory to start the fluent d container and the elastic search container.

3. The method for containerized deployment of cloud platform monitoring services according to claim 1, characterized in that, the specific steps of step S3 are as follows: S31. Start the deployment of the OpenStack cloud platform; S32. Determine whether the monitoring service needs to be deployed; If so, go to step S33; If not, go to step S36; S33. Map the keys to the tone port, fluent d port, and elasticsearch port to access the configuration file; S34. Map the server system log file and the log files of each module of the OpenStack cloud platform to the fluent d container, and start the fluent d service; S35. Inject the monitoring data into the elasticsearch container, and start the elasticsearch service; S36. Deploy each functional service of the OpenStack cloud platform.

4. A containerized deployment device for cloud platform monitoring services, characterized in that, it includes: A container image building and pushing module (1), which is used to install the fluent d and elasticsearch services, build a container image adapted to the kolla-ansible component, and push the built container image to the corresponding image repository of the OpenStack cloud platform; A service support setting module (2), which is used to support the fluent d and elasticsearch services by modifying the code of the kolla-ansible component; A monitoring service enabling module (3), which is used to start the deployment of the OpenStack cloud platform, determine whether to deploy the monitoring service, and when the monitoring service needs to be deployed, access the configuration file by mapping ports and map the logs to the fluent d service, and send the monitoring data to the elasticsearch service; The container image building and pushing module (1) includes: A base image selection unit (1.1), which is used to select the base image; A fluent d container image building unit (1.2), which is used to build the fluent d container image, and install the monitoring service adapted to the kolla-ansible component and the fluent d service in the fluent d container image; An elasticsearch container image building unit (1.3), which is used to build the elasticsearch container image, and install the monitoring service adapted to the kolla-ansible component and the elasticsearch service in the elasticsearch container image; A container image pushing unit (1.4), which is used to push the built fluent d container image and elasticsearch container image to the corresponding image repository of the OpenStack cloud platform; The service support setting module (2) includes: A global file modification unit (2.1), which is used to add a fluent d service deployment enabling field and an elasticsearch service deployment enabling field to the global control file; Host inventory change unit (2.2) for adding nodes for deploying fluent d service and elastic search service to the host inventory file; Entry file change unit (2.3) for adding fields for including fluent d and elastic search services into the Ansible project to the file module entry file; Role directory change unit (2.4) for adding startup settings for fluent d container and elastic search container under the role directory.

5. The containerized deployment device for cloud platform monitoring service according to claim 4, characterized in that, in the role directory change unit (2.4), settings for fluent d service and elastic search service are added to the configuration file of the neutron service in the role directory to implement the startup of the fluent d container and the elastic search container.

6. The containerized deployment device for cloud platform monitoring service according to claim 4, characterized in that, The monitoring service startup module (3) includes: Deployment startup unit (3.1) for starting the deployment of the OpenStack cloud platform; Monitoring service deployment judgment unit (3.2) for judging whether the monitoring service needs to be deployed; Configuration file access unit (3.3) for accessing the configuration file by mapping the keystone port, fluentd port and elastic search port when the monitoring server needs to be deployed; Log file mapping unit (3.4) for mapping the server system log file and the log files of each module of the OpenStack cloud platform to the fluent d container and starting the fluent d service; Monitoring data mapping unit (3.5) for injecting the monitoring data into the elastic search container and starting the elastic search service; Functional service deployment unit (3.6) for deploying each functional service of the OpenStack cloud platform when the monitoring service does not need to be deployed or when the monitoring service deployment is completed.

Citation Information

Patent Citations

  • Container service deployment method, device and equipment and readable storage medium

    CN111736956A