Operation and maintenance configuration data modeling method and device, equipment and storage medium
By establishing the relationship definition between the application model, cloud service model, and infrastructure model, the problem of being unable to quickly delineate the causes of application anomalies in existing technologies has been solved, enabling rapid delineation and improving user experience.
Patent Information
- Application Number
- CN202310954834.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-31
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-07-31
AI Technical Summary
Existing technologies that model operational configuration data based on servers or business processes cannot quickly determine whether application anomalies are caused by anomalies in associated cloud service instances, resulting in a poor user experience.
By acquiring the initial model and defining its attributes, the relationships between the initial application model, cloud service model, and infrastructure model are defined, including the correspondence between application instances, cloud service instances, and infrastructure. A triangular configuration system is constructed to ensure that cloud service instance anomalies can be quickly identified when application instance failures occur.
This enables timely identification of whether an application instance's anomaly is caused by an anomaly in its associated cloud service instance, thereby improving user experience and operational efficiency.
Smart Images

Figure CN116860654B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer network technology, and in particular to a method, apparatus, device, and storage medium for operation and maintenance configuration data modeling. Background Technology
[0002] Currently, in the cloud environment, applications are more cohesive, focusing only on the implementation of business code, while other non-business technical needs are usually met by choosing mature cloud services such as MySQL, Redis (Remote Dictionary Server), Kafka, Domain Name System (DNS), or object storage. Both applications and cloud services are built on cloud infrastructure.
[0003] Existing models for operation and maintenance configuration data are built around servers or business functions. This makes it difficult to quickly determine whether an application malfunction is caused by an abnormal cloud service instance, resulting in a poor user experience.
[0004] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention
[0005] The main objective of this invention is to provide a method, apparatus, device, and storage medium for operation and maintenance configuration data modeling, aiming to solve the technical problem in the prior art where data modeling based on servers or business is prone to problems, making it difficult to quickly determine whether the abnormality is caused by an abnormality of the associated cloud service instance when an application malfunctions, resulting in a poor user experience.
[0006] To achieve the above objectives, the present invention provides a method for modeling operation and maintenance configuration data, the method comprising the following steps:
[0007] Upon receiving a modeling instruction, an initial model is obtained, and attributes are defined for the initial model to obtain an initial application model, an initial cloud service model, and an initial infrastructure model.
[0008] The relationships between the initial application model, the initial cloud service model, and the initial infrastructure model are defined according to a preset model relationship, so that a single application instance in the initial application model corresponds to a single cloud service instance in the initial cloud service model;
[0009] The operation and maintenance configuration data are modeled based on the defined initial application model, the defined initial cloud service model, and the defined initial infrastructure model.
[0010] Optionally, the step of defining the relationship between the initial application model, the initial cloud service model, and the initial infrastructure model according to a preset model relationship, so that a single application instance in the initial application model corresponds to a single cloud service instance in the initial cloud service model, includes:
[0011] The relationship between the initial application model and the initial infrastructure model is defined according to a preset first model relationship, so that a single application instance in the initial application model corresponds to a single infrastructure in the initial infrastructure model;
[0012] Based on a preset second model relationship, a relationship is defined between the initial application model and the initial cloud service model, so that the single application instance corresponds to the single cloud service instance in the initial cloud service model;
[0013] The relationship between the initial cloud service model and the initial infrastructure model is defined by a preset third model relationship, so that a single cloud service cluster in the initial cloud service model corresponds to the infrastructure that makes up the single cloud service cluster.
[0014] Optionally, before the step of defining the relationship between the initial application model and the initial infrastructure model according to the preset first model relationship, the method further includes:
[0015] Obtain the relationship configuration corresponding to a single application instance in the initial application model, and obtain the relationship configuration corresponding to a single infrastructure in the initial infrastructure model;
[0016] A preset first model relationship is determined based on the relationship configuration corresponding to the individual application embodiment and the relationship configuration corresponding to the individual infrastructure.
[0017] Optionally, before the step of defining the relationship between the initial application model and the initial infrastructure model according to the preset first model relationship, the method further includes:
[0018] Receive the application process and obtain the calling relationship between the single application instance and the single cloud service instance in the initial cloud service model according to the application process;
[0019] A preset second model relationship is determined based on the aforementioned call relationship.
[0020] Optionally, before the step of defining the relationship between the initial application model and the initial infrastructure model according to the preset first model relationship, the method further includes:
[0021] Construct a single cloud service cluster in the initial cloud service model;
[0022] Accordingly, after the step of defining the relationship between the initial application model and the initial cloud service model based on the preset second model relationship, the method further includes:
[0023] Based on the construction results, determine the single cloud service cluster to which the single cloud service instance belongs, and execute the step of defining the relationship between the initial cloud service model and the initial infrastructure model through a preset third model relationship.
[0024] Optionally, before the step of modeling the operation and maintenance configuration data based on the defined initial application model, the defined initial cloud service model, and the defined initial infrastructure model, the method further includes:
[0025] Obtain the application information corresponding to the single application instance, and determine the application manager information corresponding to the single application instance based on the application information;
[0026] Obtain the cloud service information corresponding to the single cloud service instance, and determine the cloud service manager information corresponding to the single cloud service instance based on the cloud service information;
[0027] Obtain the infrastructure information corresponding to the individual infrastructure, and determine the infrastructure manager information corresponding to the individual infrastructure based on the infrastructure setting information;
[0028] Accordingly, after the step of modeling the operation and maintenance configuration data based on the defined initial application model, the defined initial cloud service model, and the defined initial infrastructure model, the method further includes:
[0029] When the running status of the detection modeling result is abnormal, an abnormal notification is issued based on the application manager information, the cloud service manager information, and the infrastructure manager information.
[0030] Optionally, after the step of defining the relationship between the initial application model, the initial cloud service model, and the initial infrastructure model according to the preset model relationship, the method further includes:
[0031] Data source definitions and quality rule definitions are performed for the initial application model, the initial cloud service model, and the initial infrastructure model.
[0032] Data is accessed to the defined initial application model, the defined initial cloud service model, and the initial infrastructure model according to the preset data access method.
[0033] Accordingly, the step of modeling the operation and maintenance configuration data based on the defined initial application model, the defined initial cloud service model, and the defined initial infrastructure model includes:
[0034] The operation and maintenance configuration data are modeled based on the initial application model, the initial cloud service model, and the initial infrastructure model after access.
[0035] Furthermore, to achieve the above objectives, the present invention also proposes an operation and maintenance configuration data modeling device, the device comprising:
[0036] The instruction receiving module is used to obtain an initial model when a modeling instruction is received, and to define the attributes of the initial model to obtain an initial application model, an initial cloud service model, and an initial infrastructure model.
[0037] The relationship definition module is used to define the relationship between the initial application model, the initial cloud service model, and the initial infrastructure model according to the preset model relationship, so that a single application instance in the initial application model corresponds to a single cloud service instance in the initial cloud service model.
[0038] The data modeling module is used to model operation and maintenance configuration data based on the defined initial application model, the defined initial cloud service model, and the defined initial infrastructure model.
[0039] Furthermore, to achieve the above objectives, the present invention also proposes an operation and maintenance configuration data modeling device, the device comprising: a memory, a processor, and an operation and maintenance configuration data modeling program stored in the memory and executable on the processor, the operation and maintenance configuration data modeling program being configured to implement the steps of the operation and maintenance configuration data modeling method described above.
[0040] In addition, to achieve the above objectives, the present invention also proposes a storage medium storing an operation and maintenance configuration data modeling program, wherein when the operation and maintenance configuration data modeling program is executed by a processor, it implements the steps of the operation and maintenance configuration data modeling method described above.
[0041] This invention, upon receiving a modeling instruction, acquires an initial model and defines its attributes to obtain an initial application model, an initial cloud service model, and an initial infrastructure model. It then defines relationships between these models based on preset model relationships, ensuring that a single application instance in the initial application model corresponds to a single cloud service instance in the initial cloud service model. Finally, it models operational configuration data based on these defined models. Because this invention can map a single application instance in the initial application model to a single cloud service instance in the initial cloud service model, and models operational configuration data based on these models, compared to existing methods that focus on servers or services, this invention can promptly determine whether an application instance's anomaly is caused by an anomaly in its associated cloud service instance, thereby improving user experience. Attached Figure Description
[0042] Figure 1 This is a schematic diagram of the hardware operation environment maintenance configuration data modeling device structure involved in the embodiments of the present invention;
[0043] Figure 2 This is a flowchart illustrating the first embodiment of the operation and maintenance configuration data modeling method of the present invention;
[0044] Figure 3 This is a triangular configuration system diagram of the operation and maintenance configuration data modeling method of the present invention;
[0045] Figure 4 This is a diagram illustrating the relationship between applications and infrastructure in the operation and maintenance configuration data modeling method of this invention;
[0046] Figure 5 This is a diagram showing the relationship between cloud services and the operation and maintenance configuration data modeling method of the present invention.
[0047] Figure 6 This is a diagram illustrating the relationship between cloud services and infrastructure in the operation and maintenance configuration data modeling method of this invention.
[0048] Figure 7 This is a flowchart illustrating the second embodiment of the operation and maintenance configuration data modeling method of the present invention;
[0049] Figure 8 This is a flowchart illustrating the third embodiment of the operation and maintenance configuration data modeling method of the present invention;
[0050] Figure 9 This is a structural block diagram of the first embodiment of the operation and maintenance configuration data modeling device of the present invention.
[0051] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0052] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0053] Reference Figure 1 , Figure 1 This is a schematic diagram of the hardware operation environment operation and maintenance configuration data modeling device involved in the embodiments of the present invention.
[0054] like Figure 1 As shown, the operation and maintenance configuration data modeling device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen and an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wireless-Fidelity (Wi-Fi) interface). The memory 1005 may be high-speed random access memory (RAM) or stable non-volatile memory (NVM), such as a disk storage device. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0055] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on the operation and maintenance configuration data modeling device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0056] like Figure 1 As shown, the memory 1005, which serves as a storage medium, may include an operating system, a network communication module, a user interface module, and an operation and maintenance configuration data modeling program.
[0057] exist Figure 1In the operation and maintenance configuration data modeling device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the operation and maintenance configuration data modeling device of the present invention can be set in the operation and maintenance configuration data modeling device, and the operation and maintenance configuration data modeling device calls the operation and maintenance configuration data modeling program stored in the memory 1005 through the processor 1001 and executes the operation and maintenance configuration data modeling method provided in the embodiment of the present invention.
[0058] This invention provides a method for modeling operation and maintenance configuration data, referencing... Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the operation and maintenance configuration data modeling method of the present invention.
[0059] In this embodiment, the operation and maintenance configuration data modeling method includes the following steps:
[0060] Step S10: Upon receiving the modeling instruction, obtain the initial model and define the attributes of the initial model to obtain the initial application model, the initial cloud service model, and the initial infrastructure model.
[0061] It should be noted that the method in this embodiment can be applied to scenarios involving modeling operation and maintenance configuration data, or other scenarios requiring data modeling. The executing entity in this embodiment can be an operation and maintenance configuration data modeling device with data processing, network communication, and program execution functions, such as a server, or other devices capable of performing similar or identical functions. This embodiment and the following embodiments will be specifically described using the aforementioned operation and maintenance configuration data modeling device (hereinafter referred to as the device).
[0062] Understandably, traditional operation and maintenance configuration data modeling can be mainly divided into two categories: server or operating system (OS) centered and business-centered. The server or OS-centered model is an operation and maintenance management model inherited from many years ago, which is no longer suitable in the cloud era. Operation and maintenance management should take a more holistic view, requiring information such as applications, cloud services, and container orchestration systems (Kubernetes, K8s) clusters. The business-centered model is the current business operations (BizOps) approach, which starts from the business and models it to derive information such as applications. This modeling solution is relatively idealistic because the business models of different enterprises vary greatly, and its implementation is also more difficult. At the same time, it should be emphasized that since both of the above two models cannot quickly determine whether the abnormality of the application instance is caused by the abnormality of its associated cloud service instance, it leads to a poor user experience and is not convenient for subsequent management. The operation and maintenance configuration data modeling method provided in this embodiment can be used to solve the above problems.
[0063] It should be understood that the above-mentioned modeling instructions may be instructions received when it is necessary to model the operation and maintenance configuration data. The above-mentioned initial model may be a model that preliminarily defines the operation and maintenance configuration data, relationships and attributes to be modeled, and can be used to help determine the modeling goals and scope. This embodiment does not limit the specific initial model.
[0064] It should also be noted that after obtaining the initial model, the above-mentioned device can define the attributes of the initial model, which may include required attributes and optional attributes. Required attributes may include information such as instance name, instance ID, person in charge, creation time, and update time, which may be associated with the IT object being described. This embodiment does not impose any restrictions on this.
[0065] Understandably, the aforementioned initial application model can be an initial model corresponding to a computer program that runs to achieve a specific task (usually a business requirement). The aforementioned initial application model may include several application instances (the aforementioned computer program); the aforementioned initial cloud service model can be an initial model corresponding to a certain type of general non-business requirement functional service provided to other application instances, such as data storage, query, message forwarding, and load balancing. The aforementioned initial cloud service model may include several cloud service instances and several cloud service clusters, which can run on the cloud; the aforementioned initial infrastructure model can be an initial model of the basic IT components used to support the operation of application instances and cloud service instances. It can typically include basic instances such as containers, virtual machines, physical machines, storage devices, network devices, and data center facilities, which can be in the cloud's foundation.
[0066] In practice, when the above-mentioned device receives the modeling instruction, it can define the attributes of the acquired initial model to obtain the initial application model, the initial cloud service model, and the initial infrastructure model.
[0067] Step S20: Define the relationship between the initial application model, the initial cloud service model, and the initial infrastructure model according to the preset model relationship, so that a single application instance in the initial application model corresponds to a single cloud service instance in the initial cloud service model.
[0068] It should be understood that the aforementioned pre-defined model relationships can be relationships between the initial application model, the initial cloud service model, and the initial infrastructure model, as referred to... Figure 3 , Figure 3 This is a triangular configuration system diagram of the operation and maintenance configuration data modeling method of the present invention, as shown below. Figure 3 As shown, the initial application model (i.e., ...) can be obtained through the above-mentioned preset model relationships. Figure 3 Applications in the cloud), initial cloud service model (i.e. Figure 3 Cloud services in the cloud and the initial infrastructure model (i.e. Figure 3 The infrastructure is constructed into a triangular configuration system centered on applications, and the specific process is as follows:
[0069] Step S20 above includes:
[0070] Step S21: Define the relationship between the initial application model and the initial infrastructure model according to the preset first model relationship, so that a single application instance in the initial application model corresponds to a single infrastructure in the initial infrastructure model.
[0071] It should be noted that the aforementioned preset first model relationship can be the relationship between the initial application model and the initial infrastructure model. In this embodiment, in order to focus on the application, each individual application instance in the initial application model can be mapped to each individual infrastructure in the initial infrastructure model through the aforementioned preset first model relationship. For ease of understanding, please refer to... Figure 4 To explain, Figure 4 This is a diagram illustrating the relationship between the application and infrastructure in the operation and maintenance configuration data modeling method of this invention, such as... Figure 4 As shown, the initial application model (i.e. Figure 4 The application in the application may include several individual application instances (i.e. Figure 4 Each application instance is a computer program that runs to perform a specific task (usually a business requirement). Figure 4 The document illustrates eight application examples, numbered 1 to 8; the aforementioned initial infrastructure model (i.e. Figure 4The infrastructure in the cloud can include several Regions, and each Region can include several Availability Zones (AZs). Each AZ can contain a cloud infrastructure and several individual infrastructures. Each individual infrastructure can be used as a basic IT component to support the operation of application instances and cloud service instances. This embodiment uses virtual machines for illustration, but other components can also be used. Figure 4 The infrastructure is shown in two regions, Region1 and Region2. Region1 contains AZ1 and AZ2, while Region2 contains AZ3 and AZ4. AZ1 contains one cloud base and two individual infrastructures, namely Virtual Machine 1 and Virtual Machine 2. AZ2 contains one cloud base and two individual infrastructures, namely Virtual Machine 3 and Virtual Machine 4. AZ3 contains one cloud base and two individual infrastructures, namely Virtual Machine 5 and Virtual Machine 6. AZ4 contains one cloud base and two individual infrastructures, namely Virtual Machine 7 and Virtual Machine 8.
[0072] Understandably, through the aforementioned pre-defined first model relationship, each individual application instance can be mapped to each individual infrastructure instance, and the mapping relationship can be as follows: Figure 4 As shown, this is a one-to-one correspondence, so if a certain application instance fails, it will not affect other individual infrastructure.
[0073] It should also be emphasized that, according to Figure 4 In this embodiment, each AZ is an independent physical data center, isolated from each other. Therefore, when one AZ fails or goes down, the other AZs can continue to provide services, ensuring high availability of the system.
[0074] It should be understood that in a cloud environment, applications are deployed in a distributed manner on the infrastructure as multiple application instances. Whether it is a container application or a virtual machine application, the application instances can be distributed on the infrastructure in accordance with the above relationship.
[0075] It should also be noted that this embodiment can divide multiple application instances into different clusters according to the same function, that is... Figure 4 The two application instances are divided into a cluster, which is deployed on different Availability Zones (AZs) and Regions, thus forming the application deployment architecture.
[0076] In specific implementation, the above-mentioned device can correspond a single application instance in the initial application model to a single infrastructure in the initial infrastructure according to the preset first model relationship. Thus, when a certain application instance fails, it will not affect other single infrastructures. At the same time, due to the mutual isolation between AZs, the high availability of the system is guaranteed.
[0077] Step S22: Define the relationship between the initial application model and the initial cloud service model based on the preset second model relationship, so that the single application instance corresponds to the single cloud service instance in the initial cloud service model.
[0078] It should be understood that the aforementioned preset second model relationship can be the relationship between the initial application model and the initial cloud service model. In this embodiment, in order to focus on the application, each individual application instance in the initial application model can be mapped to each individual cloud service instance in the initial cloud service model through the aforementioned preset second model relationship. For ease of understanding, please refer to... Figure 5 To explain, Figure 5 This is a diagram illustrating the relationship between cloud services and the operation and maintenance configuration data modeling method of this invention, such as... Figure 5 As shown, the initial application model (i.e. Figure 5 The application in the application may include several individual application instances (i.e. Figure 5 (Application examples in the text) Figure 5 The text describes three application examples, labeled Application Examples 1 to 3; the initial cloud service model described above (i.e. Figure 5 The cloud services in the cloud can include several individual cloud service instances (i.e. Figure 5 (cloud service instances) and several individual cloud service clusters (i.e. Figure 5 In a cloud service cluster, each individual cloud service instance can be used to host application instances, and each individual cloud service cluster can consist of multiple cloud service instances. Figure 5 The document shows two cloud service clusters, namely cloud service cluster 1 and cloud service cluster 2. Cloud service cluster 1 can be composed of cloud service instance 1 and cloud service instance 2, and cloud service cluster 2 can be composed of cloud service instance 3.
[0079] It should be noted that, through the aforementioned pre-defined second model relationship, each individual application instance can be mapped to each individual cloud service instance, and the mapping relationship can be as follows: Figure 5 As shown, this is a one-to-one correspondence, so if an application instance fails, it can be accurately and quickly determined whether the failure is caused by an abnormality in its associated cloud service instance, clearly demonstrating the relationship between the application instance and the cloud service instance.
[0080] It is understandable that the attribute configurations of the cloud service instance mentioned above may include: cloud service instance name, person in charge, and cloud service instance rules, etc.; the relationship configurations of the cloud service instance may include: the application instance name that calls the cloud service instance.
[0081] In specific implementation, the above-mentioned device can correspond a single application instance in the initial application model with a single cloud service instance in the initial cloud service model according to the preset second model relationship. Thus, when a certain application instance fails, it can accurately and quickly determine whether the failure is caused by an abnormality in its associated cloud service instance.
[0082] Step S23: Define the relationship between the initial cloud service model and the initial infrastructure model by using a preset third model relationship, so that a single cloud service cluster in the initial cloud service model corresponds to the infrastructure that makes up the single cloud service cluster.
[0083] It should be understood that the aforementioned preset third model relationship can be the relationship between the initial cloud service model and the initial infrastructure service model. In this embodiment, in order to focus on the application, each individual cloud service cluster in the initial cloud service model can be mapped to the infrastructure that makes up the individual cloud service cluster through the aforementioned preset third model relationship. For ease of understanding, please refer to... Figure 6 To explain, Figure 6 This is a diagram illustrating the relationship between cloud services and infrastructure in the operation and maintenance configuration data modeling method of this invention, such as... Figure 6 As shown, the initial cloud service model (i.e. Figure 6 The cloud services in the cloud can also include a highly available architecture for cloud service cluster deployment. This highly available architecture can be built by utilizing multiple individual cloud service instances in a cloud environment. The initial infrastructure model (i.e....) Figure 6 The infrastructure in a cloud service cluster can include several individual infrastructures, and these different individual infrastructures can be combined to form a cloud service cluster. Figure 6 The document presents an initial infrastructure model consisting of Virtual Machine 1, Virtual Machine 2, Server Load Balancer (SLB), containers, physical machines, Virtual Machine 3, Virtual Machine 4, network devices, and storage devices.
[0084] It should be noted that, through the aforementioned pre-defined second model relationship, each individual cloud service cluster can be mapped to the infrastructure that makes up the individual cloud service cluster. The mapping relationship can be as follows: Figure 5 As shown, cloud service cluster 1 can be composed of virtual machine 1 and virtual machine 2. Therefore, when there is an anomaly in the infrastructure, it is possible to quickly and accurately identify which clusters are affected. That is, if virtual machine 1 and virtual machine 2 are abnormal, it can be clearly determined that cloud service cluster 1 will be affected.
[0085] Understandably, the relationship between cloud services and infrastructure reflects the deployment status of cloud services. A cloud service instance is a logical service associated with the core information of the cloud base. For an application, a cloud service instance can be a logical object such as a connection string, access IP, Topic, forwarding rules, etc. A cloud service instance can be created by a cloud service cluster, which can be built from a bunch of physical machines, virtual machines, and other cloud services.
[0086] It should be understood that the attribute configurations included in the above cloud service cluster may include: cluster name, cluster owner, and cluster specifications; the relationship configurations included in the cloud service cluster may include: which infrastructure components (containers, virtual machines, and physical machines, etc.) make up the cloud service cluster.
[0087] In practical implementation, the above-mentioned device can match the individual cloud service clusters in the initial cloud service model with the infrastructure that makes up the individual cloud service clusters according to the preset third model relationship. Thus, when there is an anomaly in the infrastructure, it can quickly and accurately identify which clusters are affected.
[0088] Step S30: Model the operation and maintenance configuration data based on the defined initial application model, the defined initial cloud service model, and the defined initial infrastructure model.
[0089] In practice, once the initial application model, initial cloud service model, and initial technical infrastructure model are defined, the above-mentioned devices can obtain the modeling results of the operation and maintenance configuration data.
[0090] In this embodiment, when the device receives a modeling instruction, it can define attributes of the acquired initial model to obtain an initial application model, an initial cloud service model, and an initial infrastructure model. Based on a preset first model relationship, a single application instance in the initial application model is mapped to a single infrastructure instance in the initial infrastructure model. This ensures that if an application instance fails, other individual infrastructure instances will not be affected. Furthermore, the isolation between Availability Zones (AZs) guarantees high system availability. Based on a preset second model relationship, a single application instance in the initial application model is mapped to a single cloud service instance in the initial cloud service model. This ensures that if an application instance fails, it can be accurately and quickly determined whether the failure is caused by an anomaly in its associated cloud service instance. Based on a preset third model relationship, a single cloud service cluster in the initial cloud service model is mapped to the infrastructure that makes up the single cloud service cluster. This ensures that if an infrastructure anomaly occurs, it can quickly and accurately identify which clusters are affected. After defining the initial application model, initial cloud service model, and initial infrastructure model, the modeling results for the operation and maintenance configuration data can be obtained.
[0091] refer to Figure 7 , Figure 7This is a flowchart illustrating the second embodiment of the operation and maintenance configuration data modeling method of the present invention.
[0092] To determine the aforementioned pre-defined first model relationship, such as Figure 7 As shown, in this embodiment, before the step of defining the relationship between the initial application model and the initial infrastructure model based on the preset first model relationship, the method further includes:
[0093] Step S201: Obtain the relationship configuration corresponding to a single application embodiment in the initial application model, and obtain the relationship configuration corresponding to a single infrastructure in the initial infrastructure model.
[0094] Step S202: Determine a preset first model relationship based on the relationship configuration corresponding to the single application embodiment and the relationship configuration corresponding to the single infrastructure.
[0095] It should be noted that the relationship configuration corresponding to the above single application embodiment can be the configuration of which single application instance is deployed in which single infrastructure, and the relationship configuration corresponding to the above single infrastructure can be the configuration between various single infrastructures. In this embodiment, the relationship configuration corresponding to the above single application instance can include: the virtual machine / container Pod where it is deployed; the relationship configuration corresponding to the above single infrastructure can include: the relationship between container Pod-virtual machine-physical machine and the relationship between physical machine-network device and data center facilities.
[0096] It is understood that, in this embodiment, the above-mentioned single application instance may also include corresponding attribute configurations, and the above-mentioned single infrastructure may also include corresponding attribute configurations. The corresponding attribute configurations of the single application instance may include: application name, person in charge, and application specifications, etc.; the corresponding attribute configurations of the single infrastructure may also include: AZ and Region.
[0097] It should be understood that the relationship configuration corresponding to a single application instance, the relationship configuration corresponding to a single infrastructure, the attribute configuration corresponding to a single application instance, and the attribute configuration corresponding to a single infrastructure can all be set according to the actual situation, and this embodiment does not impose any restrictions.
[0098] In a specific implementation, the aforementioned device can obtain the relationship configuration corresponding to a single application instance in the initial application model and the relationship configuration corresponding to a single infrastructure in the initial infrastructure model, and determine the aforementioned preset first model relationship based on the obtained relationship configuration.
[0099] Furthermore, in order to determine the preset second model relationship, in this embodiment, before the step of defining the relationship between the initial application model and the initial infrastructure model based on the preset first model relationship, the method further includes:
[0100] Step S203: Receive the application process and obtain the calling relationship between the single application instance and the single cloud service instance in the initial cloud service model according to the application process;
[0101] Step S204: Determine the preset second model relationship based on the calling relationship.
[0102] It should be noted that the above application process can be a process created by the user based on the cloud service instances required by the application instance. During the design phase, the user determines the functions and requirements of each application instance and determines which cloud service instances need to be called to meet the requirements. Then, the application process is generated based on the requirements. After receiving the application process, the device can determine the calling relationship between the application instance and the cloud service instance based on the application process, and then determine the preset second model relationship based on the calling relationship.
[0103] Understandably, in addition to determining the call relationship during the design phase, this embodiment can also obtain the call relationship during the release or runtime phase. During the release phase, the application instance will be released to the production environment. At this time, the call relationship can be declared as an application configuration. For K8s application instances, it can be declared in a YAML file. For virtual machine application instances, the specification can be specified and implemented in a standard configuration file.
[0104] It should be understood that, during the release phase, in order to more accurately fill in and call information and ensure that the connection and interaction with cloud services can proceed normally, the release state can be used relative to the request state. This can avoid problems caused by inaccurate or expired configuration information, and improve the stability and reliability of the application. By declaring the call information as application configuration and implementing it in a standardized manner, the authenticity of the data can be ensured, the deployment and maintenance process can be simplified, and the manageability and traceability of the application environment can be improved.
[0105] It should also be noted that during the runtime phase, since the runtime cannot be constrained by the process, it is necessary to use tools such as traffic collection and log collection to obtain connection information (usually IP:port access relationship) from the runtime environment, and then convert it into more readable names such as service instance names based on the configuration information, so as to determine the call relationship based on the connection information.
[0106] In specific implementation, the above-mentioned devices can obtain the calling relationship between application instances and cloud service instances during the design phase, release phase and operation phase respectively, and determine the preset second model relationship based on the calling relationship.
[0107] Furthermore, in order to determine the relationship between cloud service instances and cloud service clusters, in this embodiment, before the step of defining the relationship between the initial application model and the initial infrastructure model based on the preset first model relationship, the following is also included:
[0108] Step S205: Construct a single cloud service cluster in the initial cloud service model;
[0109] Accordingly, after the step of defining the relationship between the initial application model and the initial cloud service model based on the preset second model relationship, the method further includes:
[0110] Step S221: Determine the single cloud service cluster to which the single cloud service instance belongs based on the construction result, and execute the step of defining the relationship between the initial cloud service model and the initial infrastructure model through a preset third model relationship.
[0111] Understandably, when building a single cloud service cluster, the aforementioned devices can determine the components, services, and relationships between each individual cloud service cluster based on the user's required functions and needs. Upon completion of the construction, the devices can determine which cloud service instances were created by the cloud service cluster based on the construction results, and thus determine the relationship between each individual cloud service instance and the individual cloud service cluster.
[0112] In this embodiment, the device can obtain the relationship configuration corresponding to a single application instance in the initial application model and the relationship configuration corresponding to a single infrastructure in the initial infrastructure model, and determine the aforementioned preset first model relationship based on the obtained relationship configuration; at the same time, it can obtain the call relationship between the application instance and the cloud service instance in the design stage, the release stage and the operation stage respectively, and determine the preset second model relationship based on the call relationship; it can also determine the relationship between a single cloud service instance and a single cloud service cluster based on the construction result when building a single cloud service cluster.
[0113] refer to Figure 8 , Figure 8 This is a flowchart illustrating the third embodiment of the operation and maintenance configuration data modeling method of the present invention.
[0114] To promptly notify the relevant responsible parties from an application perspective in the event of an anomaly, such as Figure 8 As shown, in this embodiment, before step S30, the following steps are also included:
[0115] Step S301: Obtain the application information corresponding to the single application instance, and determine the application manager information corresponding to the single application instance based on the application information;
[0116] Step S302: Obtain the cloud service information corresponding to the single cloud service instance, and determine the cloud service manager information corresponding to the single cloud service instance based on the cloud service information;
[0117] Step S303: Obtain the infrastructure information corresponding to the single infrastructure, and determine the infrastructure manager information corresponding to the single infrastructure based on the infrastructure setting information.
[0118] It should be noted that the application information corresponding to a single application instance may include the attribute configuration information of that single application instance. Since the attribute configuration information of a single application instance may include the person in charge, the application person in charge information corresponding to that single application instance can be determined based on the application information of that single application instance. The person in charge corresponding to the single application instance can be set by the user according to the actual situation. For example, it may include: development person in charge, testing person in charge, and operation and maintenance person in charge. It can be maintained by the application management platform. The division of the person in charge of a single application instance is usually related to the division of business, and they are only responsible for application-related development, testing, operation and maintenance work.
[0119] It is understood that the cloud service information corresponding to the aforementioned single cloud service instance may include the attribute configuration information corresponding to the single cloud service instance. Since the attribute configuration information corresponding to the single cloud service instance may include the person in charge, the cloud service person in charge information corresponding to the single cloud service instance can be determined according to the application information corresponding to the single cloud service instance. The person in charge corresponding to the aforementioned single cloud service instance can be set by the individual according to the actual situation. For example, it may include database administrators and big data administrators, etc. This information can be maintained by the corresponding cloud service management platform. The allocation of responsibilities of the person in charge of the single cloud service instance can be determined by the service provider. Some may be divided according to different clusters, and some may be divided according to the application to which the service belongs. This embodiment does not impose any restrictions.
[0120] It should be understood that the infrastructure information corresponding to the above-mentioned single infrastructure instance may include the person in charge of the technology stack corresponding to the single infrastructure instance, which can be set in advance. For example, it may include physical machine administrators, virtual machine administrators and network administrators, etc. The corresponding management platform is responsible for maintaining this information. The person in charge of a single infrastructure instance can be a person who manages a large cluster or region and can only be responsible for the management and operation of the technology stack. They do not need to be responsible for the upper-layer services and / or applications.
[0121] Accordingly, after step S30, the method further includes:
[0122] Step S40: When the running status of the detection modeling result is abnormal, an abnormal notification is issued based on the application manager information, the cloud service manager information, and the infrastructure manager information.
[0123] It should also be noted that when the above-mentioned equipment detects an anomaly in the modeling of operation and maintenance configuration data during use, the specific location of the anomaly and related locations can be accurately determined through the relationship between the initial application model, the initial cloud service model and the initial infrastructure model, so that the relevant responsible persons can be notified in a timely manner.
[0124] In specific implementation, since this embodiment can determine the application manager information based on application information, the cloud service manager information based on cloud service information, and the infrastructure manager information based on infrastructure information, it can promptly issue anomaly notifications based on the application manager information, cloud service manager information, and infrastructure manager information when anomalies occur, thereby improving the accuracy and timeliness of anomaly alarms.
[0125] Furthermore, in order to model the operation and maintenance configuration data, in this embodiment, after the step of defining the relationship between the initial application model, the initial cloud service model, and the initial infrastructure model according to the preset model relationship, the method further includes:
[0126] Step S2001: Define the data source and quality rules for the initial application model, the initial cloud service model, and the initial infrastructure model;
[0127] Step S2002: Perform data access for the defined initial application model, the defined initial cloud service model, and the initial infrastructure model according to the preset data access method;
[0128] Accordingly, the step of modeling the operation and maintenance configuration data based on the defined initial application model, the defined initial cloud service model, and the defined initial infrastructure model includes:
[0129] Step S2003: Model the operation and maintenance configuration data based on the initial application model, the initial cloud service model, and the initial infrastructure model after access.
[0130] It should be noted that before defining the data source and quality rules, the above-mentioned devices need to define metadata such as the name, person in charge, and business meaning of the initial model after obtaining the initial model. At the same time, the type of the initial model in the application-cloud service-infrastructure representation should be defined, namely, the initial application model, the initial cloud service model, or the initial infrastructure model. Then, the initial application model, the initial cloud service model, and the initial infrastructure model can be obtained. Then, the attributes of the above-mentioned initial application model, the above-mentioned initial cloud service model, and the above-mentioned initial infrastructure model can be defined.
[0131] It is understood that after defining the attributes, the relationship between the initial application model, the initial cloud service model, and the initial infrastructure model can be determined, i.e., a 1:1, 1:N, N:1, or N:N relationship, as well as the method of establishing the relationship and the type of relationship, etc. This embodiment does not impose any restrictions on the specifics.
[0132] It should be understood that after the relationship definition is completed, the source data definition and quality rule definition can be performed. The source data definition can be to define and configure the data source in the IT management system so as to obtain the required data and information from the data source. The specific data source is not limited in this embodiment. The quality rule definition can be to define quality verification rules for the relationship between the models, such as how to determine the numerator and denominator of completeness, field mapping rules for cross-model verification, etc. The specific content of the quality verification rules is not limited in this embodiment. At the same time, the defined quality verification rules can be calculated and displayed periodically in the corresponding quality management module.
[0133] It should also be noted that the above-mentioned preset data access methods can be used to access data from the data source, including via API and via Kafka. The API method can be used for batch and scheduled access, while the Kafka method can be used for near real-time access. The specific preset data access method can be set according to the actual situation.
[0134] Understandably, when the above-mentioned devices access data, they can access data according to the previously defined data source and the preset data access method. They can also define authentication information and data field mapping rules, so that data can be effectively accessed from the data source into the corresponding model for subsequent use and processing.
[0135] In practical implementation, the aforementioned equipment can define data sources and quality rules for the initial application model, initial cloud service model, and initial technical infrastructure model, and can access data after definition, so as to use it for subsequent operation and maintenance configuration data modeling.
[0136] This embodiment can determine the application manager information based on application information, the cloud service manager information based on cloud service information, and the infrastructure manager information based on infrastructure information. This allows for timely notification of anomalies based on the application manager, cloud service manager, and infrastructure manager information, improving the accuracy and timeliness of anomaly alerts. Furthermore, during data access, data can be accessed according to pre-defined data sources and preset data access methods. Authentication information and data field mapping rules can also be defined, effectively integrating data from the data source into the corresponding model for subsequent use and processing.
[0137] Furthermore, this embodiment of the invention also proposes a storage medium storing an operation and maintenance configuration data modeling program, which, when executed by a processor, implements the steps of the operation and maintenance configuration data modeling method described above.
[0138] In addition, refer to Figure 9 , Figure 9 This is a structural block diagram of the first embodiment of the operation and maintenance configuration data modeling device of the present invention. The present invention also proposes an operation and maintenance configuration data modeling device, which includes:
[0139] The instruction receiving module 901 is used to obtain an initial model when it receives a modeling instruction, and to define the attributes of the initial model to obtain an initial application model, an initial cloud service model, and an initial infrastructure model.
[0140] The relationship definition module 902 is used to define the relationship between the initial application model, the initial cloud service model and the initial infrastructure model according to the preset model relationship, so that a single application instance in the initial application model corresponds to a single cloud service instance in the initial cloud service model.
[0141] The data modeling module 903 is used to model operation and maintenance configuration data based on the defined initial application model, the defined initial cloud service model, and the defined initial infrastructure model.
[0142] In this embodiment, when the device receives a modeling instruction, it can define attributes of the acquired initial model to obtain an initial application model, an initial cloud service model, and an initial infrastructure model. Based on a preset first model relationship, a single application instance in the initial application model is mapped to a single infrastructure instance in the initial infrastructure model. This ensures that if an application instance fails, other individual infrastructure instances will not be affected. Furthermore, the isolation between Availability Zones (AZs) guarantees high system availability. Based on a preset second model relationship, a single application instance in the initial application model is mapped to a single cloud service instance in the initial cloud service model. This ensures that if an application instance fails, it can be accurately and quickly determined whether the failure is caused by an anomaly in its associated cloud service instance. Based on a preset third model relationship, a single cloud service cluster in the initial cloud service model is mapped to the infrastructure that makes up the single cloud service cluster. This ensures that if an infrastructure anomaly occurs, it can quickly and accurately identify which clusters are affected. After defining the initial application model, initial cloud service model, and initial infrastructure model, the modeling results for the operation and maintenance configuration data can be obtained.
[0143] Other embodiments or specific implementations of the operation and maintenance configuration data modeling device of the present invention can be referred to the above-described method embodiments, and will not be repeated here.
[0144] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0145] The sequence numbers of the above embodiments of the present invention are merely for description and do not represent the superiority or inferiority of the embodiments. Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as read-only memory / random access memory, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0146] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A method for modeling operation and maintenance configuration data, characterized in that, The operation and maintenance configuration data modeling method includes the following steps: Upon receiving a modeling instruction, an initial model is obtained, and attributes are defined for the initial model to obtain an initial application model, an initial cloud service model, and an initial infrastructure model. The relationships between the initial application model, the initial cloud service model, and the initial infrastructure model are defined according to a preset model relationship, so that a single application instance in the initial application model corresponds to a single cloud service instance in the initial cloud service model; Model the operation and maintenance configuration data based on the defined initial application model, the defined initial cloud service model, and the defined initial infrastructure model; The step of defining the relationships between the initial application model, the initial cloud service model, and the initial infrastructure model according to a preset model relationship, so that a single application instance in the initial application model corresponds to a single cloud service instance in the initial cloud service model, includes: The relationship between the initial application model and the initial infrastructure model is defined according to a preset first model relationship, so that a single application instance in the initial application model corresponds to a single infrastructure in the initial infrastructure model; Based on a preset second model relationship, a relationship is defined between the initial application model and the initial cloud service model, so that the single application instance corresponds to the single cloud service instance in the initial cloud service model; The relationship between the initial cloud service model and the initial infrastructure model is defined by a preset third model relationship, so that a single cloud service cluster in the initial cloud service model corresponds to the infrastructure that makes up the single cloud service cluster.
2. The operation and maintenance configuration data modeling method as described in claim 1, characterized in that, Before the step of defining the relationship between the initial application model and the initial infrastructure model according to the preset first model relationship, the method further includes: Obtain the relationship configuration corresponding to a single application instance in the initial application model, and obtain the relationship configuration corresponding to a single infrastructure in the initial infrastructure model; The preset first model relationship is determined based on the relationship configuration corresponding to the single application instance and the relationship configuration corresponding to the single infrastructure.
3. The operation and maintenance configuration data modeling method as described in claim 1, characterized in that, Before the step of defining the relationship between the initial application model and the initial infrastructure model according to the preset first model relationship, the method further includes: Receive the application process and obtain the calling relationship between the single application instance and the single cloud service instance in the initial cloud service model according to the application process; A preset second model relationship is determined based on the aforementioned call relationship.
4. The operation and maintenance configuration data modeling method as described in claim 1, characterized in that, Before the step of defining the relationship between the initial application model and the initial infrastructure model according to the preset first model relationship, the method further includes: Construct a single cloud service cluster in the initial cloud service model; Accordingly, after the step of defining the relationship between the initial application model and the initial cloud service model based on the preset second model relationship, the method further includes: Based on the construction results, determine the single cloud service cluster to which the single cloud service instance belongs, and execute the step of defining the relationship between the initial cloud service model and the initial infrastructure model through a preset third model relationship.
5. The operation and maintenance configuration data modeling method as described in any one of claims 1 to 4, characterized in that, Before the step of modeling operation and maintenance configuration data based on the defined initial application model, the defined initial cloud service model, and the defined initial infrastructure model; Also includes: Obtain the application information corresponding to the single application instance, and determine the application manager information corresponding to the single application instance based on the application information; Obtain the cloud service information corresponding to the single cloud service instance, and determine the cloud service manager information corresponding to the single cloud service instance based on the cloud service information; Obtain the infrastructure information corresponding to the individual infrastructure, and determine the infrastructure manager information corresponding to the individual infrastructure based on the infrastructure setting information; Accordingly, after the step of modeling the operation and maintenance configuration data based on the defined initial application model, the defined initial cloud service model, and the defined initial infrastructure model, the method further includes: When the running status of the detection modeling result is abnormal, an abnormal notification is issued based on the application manager information, the cloud service manager information, and the infrastructure manager information.
6. The operation and maintenance configuration data modeling method as described in claim 1, characterized in that, After the step of defining the relationship between the initial application model, the initial cloud service model, and the initial infrastructure model according to the preset model relationship, the method further includes: Data source definitions and quality rule definitions are performed for the initial application model, the initial cloud service model, and the initial infrastructure model. Data is accessed to the defined initial application model, the defined initial cloud service model, and the initial infrastructure model according to the preset data access method. Accordingly, the step of modeling the operation and maintenance configuration data based on the defined initial application model, the defined initial cloud service model, and the defined initial infrastructure model includes: The operation and maintenance configuration data are modeled based on the initial application model, the initial cloud service model, and the initial infrastructure model after access.
7. A data modeling device for operation and maintenance configuration, characterized in that, The device includes: The instruction receiving module is used to obtain an initial model when a modeling instruction is received, and to define the attributes of the initial model to obtain an initial application model, an initial cloud service model, and an initial infrastructure model. The relationship definition module is used to define the relationship between the initial application model, the initial cloud service model, and the initial infrastructure model according to the preset model relationship, so that a single application instance in the initial application model corresponds to a single cloud service instance in the initial cloud service model. The data modeling module is used to model operation and maintenance configuration data based on the defined initial application model, the defined initial cloud service model, and the defined initial infrastructure model. The relationship definition module is further configured to define a relationship between the initial application model and the initial infrastructure model based on a preset first model relationship, so that a single application instance in the initial application model corresponds to a single infrastructure in the initial infrastructure model; define a relationship between the initial application model and the initial cloud service model based on a preset second model relationship, so that a single application instance corresponds to a single cloud service instance in the initial cloud service model; and define a relationship between the initial cloud service model and the initial infrastructure model through a preset third model relationship, so that a single cloud service cluster in the initial cloud service model corresponds to the infrastructure that makes up the single cloud service cluster.
8. A data modeling device for operation and maintenance configuration, characterized in that, The device includes: a memory, a processor, and an operation and maintenance configuration data modeling program stored in the memory and executable on the processor, the operation and maintenance configuration data modeling program being configured to implement the steps of the operation and maintenance configuration data modeling method as described in any one of claims 1 to 6.
9. A storage medium, characterized in that, The storage medium stores an operation and maintenance configuration data modeling program, which, when executed by a processor, implements the steps of the operation and maintenance configuration data modeling method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Operation and maintenance configuration management system and computer storage medium
CN110784332A
Cloud service component dependencies
US20220385535A1
