Data processing method, management system and related equipment
By monitoring the cloud platform event stream in the management system and automatically updating configuration files, the problem of low stability and reliability of cloud native resource management is solved, dynamic adaptability and real-time updates are achieved, and resource management efficiency and responsiveness are improved.
Patent Information
- Application Number
- CN202410612171.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-05-17
AI Technical Summary
In the existing technology, after changes in cloud native resources, manual configuration of cloud platform updates is required, resulting in low stability and reliability of management system operation and maintenance services, and the inability to effectively monitor and efficiently manage cloud native resources.
By introducing a listening module and a processing module into the management system, it monitors the event stream of the cloud platform, obtains configuration events, performs data processing and sends configuration instructions to automatically update the cloud platform configuration file, avoiding manual configuration, improving update efficiency and reducing update errors. risk.
It improves the stability and reliability of management system operation and maintenance services, dynamically adapts to resource configuration changes in the cloud native environment, ensures the accuracy and responsiveness of resource management, supports large-scale distributed resource management, and has the advantages of real-time updates and customization. .
Smart Images

Figure CN118200140B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a data processing method, a management system and related equipment. Background Art
[0002] For management systems deployed in the cloud, a cloud-native infrastructure platform, or cloud platform, is an essential part. Kubernetes, or K8S for short, has become the mainstream container orchestration platform.
[0003] In the existing technology, when cloud native resources change, they are usually updated by manually configuring the cloud platform. However, with the massive increase in data and the expansion of cluster size, it is no longer possible to effectively monitor cloud native resources and meet the requirements for efficient management, which in turn reduces the stability and reliability of the management system operation and maintenance services. Summary of the invention
[0004] The main purpose of the present invention is to provide a data processing method, a management system and related equipment, aiming to solve the technical problem of low stability and reliability of management system operation and maintenance services.
[0005] To achieve the above object, the present invention provides a data processing method, which is applied to a management system, wherein the management system includes a cloud platform, a monitoring module and a processing module, and the method includes:
[0006] Monitor the event stream corresponding to the cloud platform through a monitoring module;
[0007] In case of monitoring a configuration event in the event stream, obtaining the configuration event;
[0008] Performing data processing on the configuration event to obtain a configuration instruction, and sending the configuration instruction to the processing module;
[0009] The processing module controls the cloud platform to update the configuration file in response to the configuration instruction.
[0010] Optionally, the management system further includes a middleware module, and the step of performing data processing on the configuration event to obtain a configuration instruction and sending the configuration instruction to the processing module includes:
[0011] Processing the configuration event data through the monitoring module and the middleware module to obtain configuration instructions;
[0012] The configuration instruction is sent to the processing module through the middleware module.
[0013] Optionally, the middleware module includes a message queue and a middleware service, and the step of performing data processing on the configuration event through the monitoring module and the middleware module to obtain the configuration instruction includes:
[0014] Formatting the configuration event through the monitoring module to obtain a configuration message;
[0015] Sending the configuration message to the message queue; sorting the configuration messages in the message queue from earliest to latest according to the time of entering the queue;
[0016] The configuration messages in the message queue are called in sequence through the middleware service, and data conversion is performed on the configuration messages to obtain configuration instructions.
[0017] Optionally, in the case where a configuration event in the event stream is monitored, before acquiring the configuration event, the method further includes:
[0018] Parsing the monitored event stream corresponding to the cloud platform;
[0019] An event including a preset field in the event stream is determined as the configuration event.
[0020] Optionally, the management system further includes a database, and the method further includes:
[0021] Collect configuration data through the processing module; the configuration data is data generated by the cloud platform updating the configuration file;
[0022] The configuration data is stored in the database through the processing module so as to call the configuration data.
[0023] Optionally, collecting configuration data by the processing module includes at least one of the following:
[0024] When receiving the collection instruction, collecting configuration data through the processing module;
[0025] The configuration data is collected by the processing module at each preset time interval.
[0026] Optionally, after collecting the configuration data by the processing module, the method further includes:
[0027] Performing data verification and data cleaning on the configuration data to obtain target configuration data;
[0028] The step of storing the configuration data in the database through the processing module so as to call the configuration data includes:
[0029] The target configuration data is stored in the database through the processing module so as to call the target configuration data.
[0030] In addition, to achieve the above-mentioned purpose, the present invention also provides a management device, wherein the management system includes a cloud platform, a monitoring module and a processing module;
[0031] The monitoring module is used for the event stream corresponding to the cloud platform;
[0032] In case of monitoring a configuration event in the event stream, obtaining the configuration event;
[0033] Performing data processing on the configuration event to obtain a configuration instruction, and sending the configuration instruction to the processing module;
[0034] The processing module is used to control the cloud platform to update the configuration file in response to the configuration instruction.
[0035] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:
[0036] The computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any one of the data processing methods proposed in the embodiments of the present application are implemented.
[0037] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:
[0038] The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of any one of the data processing methods proposed in the embodiments of the present application are implemented.
[0039] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0040] The present invention provides a data processing method, management system and related equipment based on cloud computing. The above data processing method is applied to a management system, which includes a cloud platform, a monitoring module and a processing module. The above method includes: monitoring the event stream corresponding to the cloud platform through the monitoring module; obtaining the configuration event when the configuration event in the event stream is monitored; performing data processing on the configuration event to obtain the configuration instruction, and sending the configuration instruction to the processing module; the processing module controls the cloud platform to update the configuration file in response to the configuration instruction. In an embodiment of the present invention, the event stream is automatically monitored by the monitoring module, and when the configuration event is monitored, the cloud platform is controlled to update the configuration file, and there is no need to manually configure the cloud platform update, which improves the efficiency of updating the configuration file and avoids the update error caused by manual configuration, thereby improving the stability and reliability of the management system operation and maintenance service.
[0041] In addition, the management system provided by the embodiment of the present invention has the advantage of dynamic adaptability, can adapt to frequent changes in resource configuration in the cloud native environment, effectively respond to the rapid creation, update and destruction of cloud native resources, improve the accuracy of resource discovery, improve the efficiency of resource management, and ensure reliability and responsiveness in a rapidly changing cloud environment.
[0042] In addition, the management system provided by the embodiment of the present invention also has the advantage of real-time updating, and can update the status of cloud resources in real time, ensuring that the management system always makes decisions and management based on the latest and accurate data, thereby reducing resource allocation errors and performance problems caused by outdated information.
[0043] In addition, the management system provided by the embodiment of the present invention also has the advantage of scalability, supports the management of large-scale distributed resources, and is applicable to cloud environments of various sizes, from small single nodes to large-scale clusters. This high degree of scalability means that the management system can be flexibly applied to different business scenarios and requirements.
[0044] In addition, the management system provided by the embodiment of the present invention also has the advantage of customization, and the management system can be customized and optimized according to actual needs to make it more in line with specific environments and needs. This customization enhances the flexibility and applicability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0046] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0047] Figure 2 is a flow chart of a data processing method provided by an embodiment of the present invention;
[0048] Figure 3 It is an application scenario diagram of the data processing method provided by an embodiment of the present invention;
[0049] Figure 4 is a schematic diagram of the structure of an embodiment of a management system according to the present application;
[0050] Figure 5 This is a basic structural block diagram of the computer device in this embodiment. DETAILED DESCRIPTION
[0051] The data processing method provided by the embodiment of the present invention is applied to a management system. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" in the specification and claims of the present application and the above-mentioned drawings and any variations thereof are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0052] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0053] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0054] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0055] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social online platform software, etc.
[0056] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV), laptop computers, desktop computers, etc.
[0057] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .
[0058] It should be noted that the data processing method provided in the embodiment of the present application is generally executed by a server / terminal device, and accordingly, the management system is generally set in the server / terminal device.
[0059] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0060] It should be understood that the management system may also include a cloud platform, a monitoring module, a processing module, a middleware module and a database.
[0061] Continue to refer Figure 2 , shows a flow chart of an embodiment of the data processing method proposed in the present application. The data processing method provided in the embodiment of the present invention is applied to a management system, which includes a cloud platform, a monitoring module and a processing module.
[0062] The data processing method provided by the embodiment of the present invention comprises the following steps:
[0063] S210, monitoring the event stream corresponding to the cloud platform through the monitoring module.
[0064] It should be understood that the cloud platform, the monitoring module and the processing module are related to the communication connection, wherein the cloud platform is a cloud native infrastructure platform, which can be a K8S cluster; the monitoring module is also called a cloud resource collector, and the cloud resource collector includes a K8SJava API interface; the above-mentioned processing module is also called a cloud resource storage processor.
[0065] In this step, the monitoring module continuously monitors the cloud platform in real time to capture the event flow of the cloud platform.
[0066] S220: When a configuration event in the event stream is monitored, obtain the configuration event.
[0067] It should be understood that the event stream includes multiple events, and the events can reflect the resource changes that occur in the cloud platform. The resource changes reflected by the above events include but are not limited to creation operations, deletion operations, update operations, data migration operations, etc.
[0068] Optionally, events reflecting creation operations, deletion operations, and update operations may be determined as configuration events.
[0069] In this step, if the event stream monitored on the cloud platform includes a configuration event, the configuration event is captured.
[0070] S230: Perform data processing on the configuration event to obtain a configuration instruction, and send the configuration instruction to a processing module.
[0071] In this step, after the configuration event is acquired, data processing is performed on the configuration event to obtain the configuration instruction, that is, the data format of the configuration event is converted.
[0072] Furthermore, the configuration instruction is sent to the processing module through the monitoring module.
[0073] For details on how to process the configuration event data and obtain the configuration instruction implementation, please refer to the subsequent embodiments.
[0074] S240, the processing module controls the cloud platform to update a configuration file in response to the configuration instruction.
[0075] Optionally, the above processing module includes a Probe probe in K8S.
[0076] In this step, after receiving the configuration instruction, the processing module responds to the configuration instruction and sends a resource instance to the cloud platform. The cloud platform performs a creation operation, a deletion operation, or an update operation based on the resource instance.
[0077] In the embodiment of the present invention, the event stream is automatically monitored by the monitoring module. When a configuration event is monitored, the cloud platform is controlled to update the configuration file. There is no need to manually configure the cloud platform update, which improves the efficiency of updating the configuration file and avoids update errors caused by manual configuration, thereby improving the stability and reliability of the management system operation and maintenance service.
[0078] Optionally, the management system further includes a middleware module, and the step of performing data processing on the configuration event to obtain a configuration instruction and sending the configuration instruction to the processing module includes:
[0079] Processing the configuration event data through the monitoring module and the middleware module to obtain configuration instructions;
[0080] The configuration instruction is sent to the processing module through the middleware module.
[0081] It should be noted that the management system provided by the embodiment of the present invention also includes a middleware module. The configuration event can be processed by the monitoring module and the middleware module to obtain the configuration instruction, and then the configuration instruction is sent to the processing module through the middleware module.
[0082] In the above embodiment, the monitoring module only performs a partial function of processing data of the configuration event, and the middleware module performs the function of processing data of the configuration event and sending the configuration instruction to the processing module.
[0083] In other embodiments, the management system may not include a middleware module, that is, the middleware module may independently process data on the configuration event and send the configuration instruction to the processing module.
[0084] Optionally, the middleware module includes a message queue and a middleware service, and the step of performing data processing on the configuration event through the monitoring module and the middleware module to obtain the configuration instruction includes:
[0085] Formatting the configuration event through the monitoring module to obtain a configuration message;
[0086] Sending the configuration message to the message queue; sorting the configuration messages in the message queue from earliest to latest according to the time of entering the queue;
[0087] The configuration messages in the message queue are called in sequence through the middleware service, and data conversion is performed on the configuration messages to obtain configuration instructions.
[0088] In this embodiment, the middleware module includes a message queue and a middleware service. The message queue may be a kafka message queue, and the middleware service may be a program written in Java.
[0089] In this embodiment, after obtaining the configuration time, the monitoring module formats the configuration event to obtain a configuration message, and sends the configuration message to the message queue. Optionally, the monitoring module publishes the configuration message to the KubernetesProbe Topic of the Kafka message queue.
[0090] It should be understood that the configuration messages in the message queue are sorted from earliest to latest according to the time they enter the queue.
[0091] Furthermore, the middleware service calls the configuration messages in the message queue in sequence according to the order of the configuration messages in the message queue, and performs data conversion on the configuration messages to obtain configuration instructions.
[0092] In this embodiment, the middleware service programmed in Java accurately parses the events generated by Kubernetes and matches them accurately according to the specific characteristics of the events, sensitively responds to changes in cloud native resources, and effectively triggers the corresponding resource management and adjustment processes. This improves the accuracy of event processing and speeds up the response to resource changes in the cloud environment, providing technical support for efficient resource management.
[0093] The following describes how to obtain configuration events in the event stream:
[0094] Optionally, in the case where a configuration event in the event stream is monitored, before acquiring the configuration event, the method further includes:
[0095] Parsing the monitored event stream corresponding to the cloud platform;
[0096] An event including a preset field in the event stream is determined as the configuration event.
[0097] In this embodiment, after monitoring the event stream, the monitoring module parses the event stream to obtain the field of each event included in the event stream.
[0098] Further, an event including a preset field is determined as a configuration event.
[0099] Optionally, the above-mentioned preset fields represent creation operations, deletion operations or update operations, that is, events including preset fields are used to reflect creation operations, deletion operations or update operations. Since configuration events are also used to represent creation operations, deletion operations or update operations, events including preset fields can be determined as configuration events.
[0100] In this embodiment, by parsing the event stream, an event including a preset field is determined as a configuration event, so that the configuration event is accurately obtained from the event stream.
[0101] It should be noted that the monitoring module collects event examples as follows:
[0102] Optionally, the management system further includes a database, and the method further includes:
[0103] Collect configuration data through the processing module; the configuration data is data generated by the cloud platform updating the configuration file;
[0104] The configuration data is stored in the database through the processing module so as to call the configuration data.
[0105] In this embodiment, the management system further includes a database. Optionally, the database is a CMDB database.
[0106] It should be understood that the cloud platform generates configuration data after updating the configuration file. In this embodiment, the processing module collects the above configuration data and stores the above configuration data in the database.
[0107] Optionally, the database provides an access interface to the configuration data to ensure that authorized users can access and modify the configuration data. At the same time, the access interface is designed to be extensible and compatible with other systems to expand the compatibility of the management system.
[0108] Optionally, collecting configuration data by the processing module includes at least one of the following:
[0109] When receiving the collection instruction, collecting configuration data through the processing module;
[0110] The configuration data is collected by the processing module at each preset time interval.
[0111] In this embodiment, the configuration data can be collected in the following ways:
[0112] An optional implementation is that the processing module receives a collection instruction, and in response to the collection instruction, the processing module collects configuration data in the cloud platform.
[0113] Another optional implementation is that the processing module collects configuration data in the cloud platform at preset time intervals.
[0114] Another optional implementation is that the processing module collects the configuration data in the cloud platform when receiving the collection instruction; or, the processing module collects the configuration data in the cloud platform at intervals of a preset time.
[0115] In this embodiment, the management system controls the processing module to collect configuration data in the above manner, so as to instantly respond to changes in the cloud infrastructure environment, such as changes in Deployment and CronJob, thereby significantly improving the speed and accuracy of cloud resource discovery.
[0116] Optionally, after collecting the configuration data by the processing module, the method further includes:
[0117] Performing data verification and data cleaning on the configuration data to obtain target configuration data;
[0118] The step of storing the configuration data in the database through the processing module so as to call the configuration data includes:
[0119] The target configuration data is stored in the database through the processing module so as to call the target configuration data.
[0120] In this embodiment, an optional implementation method is to perform data verification and data cleaning on the configuration data after the configuration data is collected to obtain the target configuration data.
[0121] The data validation can be understood as validating parameters such as the data format and data name of the configuration data to ensure that the data format and data name of the configuration data meet the requirements.
[0122] Among them, data cleaning aims to improve data quality, involving reviewing and verifying data to reduce the probability of errors in the data statistics process, including checking data consistency, handling invalid values and missing values, and other operations.
[0123] In this embodiment, the target configuration data is obtained by performing data verification and data cleaning on the configuration data, and then the target configuration data is stored in the database, thereby ensuring that the data format and data name of the target configuration data stored in the database meet the requirements and the data quality is high.
[0124] To understand the overall technical solution, please refer to Figure 3 ,like Figure 3 As shown, the management system deployed in the cloud includes a cloud platform, a monitoring module, a processing module, a middleware module and a database, wherein the middleware module includes a message queue and a middleware service.
[0125] The monitoring module monitors the cloud platform in real time. When a configuration event is detected, the monitoring module formats the configuration event to obtain a configuration message. The monitoring module sends the configuration message to the message queue. The middleware service sequentially calls the configuration message in the message queue and performs data conversion on the configuration message to obtain a configuration instruction. The middleware service sends the configuration instruction to the processing module. The processing module responds to the configuration instruction and controls the cloud platform to update the configuration file.
[0126] The processing module collects the configuration data of the cloud platform in response to the collection instruction, and / or collects the configuration data of the cloud platform at a preset interval each time, performs data verification and data cleaning on the configuration data, obtains the target configuration data, and then stores the target configuration data in the database.
[0127] Further references Figure 4 , as a response to the above Figure 2 In order to realize the method shown in the figure, the present application provides an embodiment of a management system 400, and the device embodiment is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0128] A management system 400 provided in an embodiment of the present invention includes a cloud platform 410, a monitoring module 420 and a processing module 430;
[0129] The monitoring module 420 is used for the event stream corresponding to the cloud platform 410;
[0130] In case of monitoring a configuration event in the event stream, obtaining the configuration event;
[0131] Performing data processing on the configuration event to obtain a configuration instruction, and sending the configuration instruction to the processing module 430;
[0132] The processing module 430 is used to control the cloud platform 410 to update the configuration file in response to the configuration instruction.
[0133] Optionally, the management system 400 further includes a middleware module 440, and the management system 400 is further configured to:
[0134] The monitoring module 420 and the middleware module 440 perform data processing on the configuration event to obtain a configuration instruction;
[0135] The configuration instruction is sent to the processing module 430 through the middleware module 440 .
[0136] Optionally, the middleware module 440 includes a message queue 441 and a middleware service 442, and the management system 400 is further configured as follows:
[0137] The monitoring module 420 formats the configuration event to obtain a configuration message;
[0138] Send the configuration message to the message queue 441; the configuration messages in the message queue 441 are sorted from earliest to latest according to the time of entering the queue;
[0139] The configuration messages in the message queue 441 are called in sequence through the middleware service 442, and data conversion is performed on the configuration messages to obtain configuration instructions.
[0140] Optionally, the monitoring module 420 is further configured to:
[0141] Parsing the monitored event stream corresponding to the cloud platform;
[0142] An event including a preset field in the event stream is determined as the configuration event.
[0143] Optionally, the management system 400 further includes a database 450, and the management system 400 is further configured to:
[0144] The processing module 430 collects configuration data; the configuration data is data generated by the cloud platform 410 when updating the configuration file;
[0145] The processing module 430 stores the configuration data in the database 450 so as to call the configuration data.
[0146] Optionally, the management system 400 is further configured to:
[0147] When receiving the collection instruction, the configuration data is collected by the processing module 430;
[0148] The processing module 430 collects configuration data at intervals of a preset duration.
[0149] Optionally, the management system 400 is further configured to:
[0150] Performing data verification and data cleaning on the configuration data to obtain target configuration data;
[0151] The target configuration data is stored in the database 450 through the processing module 430 so as to call the target configuration data.
[0152] To solve the above technical problems, the present application also provides a computer device. Figure 5 , Figure 5 This is a basic structural block diagram of the computer device in this embodiment.
[0153] The computer device 5 includes a memory 51, a processor 52, and a network interface 53 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 5 with components 51-53, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0154] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0155] The memory 51 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 51 can be an internal storage unit of the computer device 5, such as a hard disk or memory of the computer device 5. In other embodiments, the memory 51 can also be an external storage device of the computer device 5, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the computer device 5. Of course, the memory 51 can also include both the internal storage unit of the computer device 5 and its external storage device. In this embodiment, the memory 51 is generally used to store the operating system and various application software installed on the computer device 5, such as the program code of the data processing method, etc. In addition, the memory 51 can also be used to temporarily store various types of data that have been output or are to be output.
[0156] The processor 52 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 52 is generally used to control the overall operation of the computer device 5. In this embodiment, the processor 52 is used to run the program code stored in the memory 51 or process data, such as running the program code of the data processing method.
[0157] The network interface 53 may include a wireless network interface or a wired network interface. The network interface 53 is generally used to establish a communication connection between the computer device 5 and other electronic devices.
[0158] The present application also provides another implementation, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores the data processing program, and the data processing program can be executed by at least one processor so that the at least one processor performs the steps of the data processing method as described above.
[0159] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware online platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0160] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0161] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A data processing method, characterized in that: The data processing method is applied to a management system, the management system includes a cloud platform, a monitoring module and a processing module, and the method includes: Monitor the event stream corresponding to the cloud platform through a monitoring module; In case of monitoring a configuration event in the event stream, obtaining the configuration event; Performing data processing on the configuration event to obtain a configuration instruction, and sending the configuration instruction to the processing module; The processing module controls the cloud platform to update the configuration file in response to the configuration instruction; The management system further includes a middleware module, which processes the configuration event to obtain a configuration instruction and sends the configuration instruction to the processing module, including: Processing the configuration event data through the monitoring module and the middleware module to obtain configuration instructions; Sending the configuration instruction to the processing module through the middleware module; The middleware module includes a message queue and a middleware service, wherein the message queue is a kafka message queue, and the middleware service is a program written in Java; the configuration event is processed by the monitoring module and the middleware module to obtain a configuration instruction, including: Formatting the configuration event through the monitoring module to obtain a configuration message; Sending the configuration message to the message queue; sorting the configuration messages in the message queue from earliest to latest according to the time of entering the queue; The configuration messages in the message queue are called in sequence by the middleware service, and data conversion is performed on the configuration messages to obtain configuration instructions; The management system further comprises a database, and the method further comprises: Collect configuration data through the processing module; the configuration data is data generated by the cloud platform updating the configuration file; storing the configuration data in the database through the processing module so as to call the configuration data; After collecting the configuration data by the processing module, the method further includes: Performing data verification and data cleaning on the configuration data to obtain target configuration data; The step of storing the configuration data in the database through the processing module so as to call the configuration data includes: The target configuration data is stored in the database through the processing module so as to call the target configuration data.
2. The method according to claim 1, characterized in that In the case where a configuration event in the event stream is monitored, before acquiring the configuration event, the method further includes: Parsing the monitored event stream corresponding to the cloud platform; An event including a preset field in the event stream is determined as the configuration event.
3. The method according to claim 1, characterized in that: The collecting of configuration data by the processing module includes at least one of the following: When receiving the collection instruction, collecting configuration data through the processing module; The configuration data is collected by the processing module at each preset time interval.
4. A management system, characterized in that: The management system includes a cloud platform, a monitoring module and a processing module; The monitoring module is used for the event stream corresponding to the cloud platform; In case of monitoring a configuration event in the event stream, obtaining the configuration event; Performing data processing on the configuration event to obtain a configuration instruction, and sending the configuration instruction to the processing module; The processing module is used to control the cloud platform to update the configuration file in response to the configuration instruction; The management system further comprises a middleware module, and the management system is further configured to: Processing the configuration event data through the monitoring module and the middleware module to obtain configuration instructions; Sending the configuration instruction to the processing module through the middleware module; The middleware module includes a message queue and a middleware service, wherein the message queue is a kafka message queue, and the middleware service is a program written in java; the management system is also configured as follows: Formatting the configuration event through the monitoring module to obtain a configuration message; Sending the configuration message to the message queue; sorting the configuration messages in the message queue from earliest to latest according to the time of entering the queue; The configuration messages in the message queue are called in sequence by the middleware service, and data conversion is performed on the configuration messages to obtain configuration instructions; The management system also includes a database, and the management system is further configured to: Collect configuration data through the processing module; the configuration data is data generated by the cloud platform updating the configuration file; storing the configuration data in the database through the processing module so as to call the configuration data; The management system is also configured to: Performing data verification and data cleaning on the configuration data to obtain target configuration data; The target configuration data is stored in the database through the processing module so as to call the target configuration data.
5. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the data processing method according to any one of claims 1 to 3 when executing the computer program.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the data processing method according to any one of claims 1 to 3 are implemented.
