Method and device for constructing application configuration model
By building an application configuration model, determining configuration items and their attribute information, and generating resource association relationships, the problem of "fault" between the application service layer and the logical resource layer is solved, and the effect of reducing maintenance costs and improving system stability is achieved.
Patent Information
- Application Number
- CN202110707115.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-24
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2041-06-24
AI Technical Summary
In the prior art, a ‘fault’ is prone to occur between the application service layer and the logical resource layer, resulting in high maintenance costs.
By determining each configuration item and its attribute information based on the pre-stored data source, determining the association relationship between different types of resources, generating configuration item relationships, building an application configuration model, and ensuring the integrity between the business application layer and the logical resource layer. and continuity.
It realizes the reduction of maintenance costs, provides high reliability and stable application configuration models, and avoids the high cost of manual maintenance.
Smart Images

Figure CN113312337B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer technology, and in particular, to a method and device for constructing an application configuration model. Background Art
[0002] A configuration management database (CMDB) is a database that stores configuration records throughout its entire life cycle. The core content of the configuration management database is the application configuration model, which is defined by configuration items (CI). Configuration items have attribute information and relationship information (called configuration item relationships) and include a logical resource layer and a business application layer.
[0003] In the prior art, a commonly used method for constructing an application configuration model is to reflect all logical resource layers with configuration items. The level and depth of configuration management are reflected in the classification of configuration items. For example, configuration items are classified according to the categories of the logical resource layers, thereby constructing an application configuration model including the classified configuration items.
[0004] However, the application configuration model constructed using the above method is prone to cause a fault between the logical resource layer and the business application layer. The possibility of a fault between the business application layer and the logical resource layer needs to be maintained manually, resulting in a technical problem of high maintenance costs. Summary of the invention
[0005] The embodiments of the present disclosure provide a method and device for constructing an application configuration model that reduces maintenance costs.
[0006] In a first aspect, an embodiment of the present disclosure provides a method for constructing an application configuration model, including:
[0007] Determine each configuration item according to a pre-stored data source, each of the configuration items having corresponding attribute information, wherein the pre-stored data source includes: management data, basic resource data corresponding to the logical resource layer, and application operation and maintenance data corresponding to the business application layer;
[0008] Determine a first association relationship between resources of different types in the logical resources, determine a second association relationship between resources of different types in the logical resources and each of the configuration items, determine a third association relationship between each of the configuration items, and generate a configuration item relationship of each of the configuration items according to the first association relationship, the second association relationship, and the third association relationship;
[0009] An application configuration model is constructed according to each of the configuration items, each of the attribute information, and each of the configuration item relationships.
[0010] In some embodiments, constructing an application configuration model according to each of the configuration items, each of the attribute information, and each of the configuration item relationships includes:
[0011] Determine each configuration item configured in the business application layer from all configuration items, and construct, in the business application layer, configuration items representing upstream and downstream relationships of each configuration item configured in the business application layer according to attribute information and configuration item relationships of each configuration item configured in the business application layer;
[0012] The application configuration model is generated according to the logical resource layer and the configuration items constructed in the business application layer.
[0013] In some embodiments, constructing an application configuration model according to each of the configuration items, each of the attribute information, and each of the configuration item relationships includes:
[0014] Determine each configuration item configured in the logical resource layer from all configuration items, and construct, in the logical resource layer, configuration items of upstream and downstream relationships of each configuration item configured in the logical resource layer according to attribute information of each configuration item configured in the logical resource layer and relationships between configuration items;
[0015] The application configuration model is generated according to the business application layer and the configuration items constructed in the logic resource layer.
[0016] In some embodiments, the configuration items constructed at the business application layer include application modules, and the configuration items constructed at the logical resource layer include: deployment units, deployment instances, and application partitions; the application module is deployed in the deployment unit, the deployment unit includes the deployment instance, the deployment instance runs in the application partition, and the application partition runs on a preset virtual machine.
[0017] In some embodiments, it also includes:
[0018] An initial data source to be stored in a configuration management database is obtained, and the initial data source is cleaned and verified, and the cleaned and verified data source is stored in the configuration management database to obtain the pre-stored data source, and the configuration management database includes the application configuration model.
[0019] In some embodiments, before the initial data source is cleaned and verified, the method further includes:
[0020] The data format for constructing the application configuration model is determined, and data in the initial data source that is different from the data format of the application configuration model is converted into data in the data format of the application configuration model.
[0021] In a second aspect, an embodiment of the present disclosure provides a device for constructing an application configuration model, including:
[0022] A first determining unit is used to determine each configuration item according to a pre-stored data source, each of the configuration items having corresponding attribute information, wherein the pre-stored data source includes: management data, basic resource data corresponding to the logical resource layer, and application operation and maintenance data corresponding to the business application layer;
[0023] A second determining unit is used to determine a first association relationship between resources of different types in the logical resources, determine a second association relationship between resources of different types in the logical resources and each of the configuration items, and determine a third association relationship between each of the configuration items;
[0024] a generating unit, configured to generate a configuration item relationship of each of the configuration items according to the first association relationship, the second association relationship, and the third association relationship;
[0025] The construction unit is used to construct an application configuration model according to each of the configuration items, each of the attribute information, and each of the configuration item relationships.
[0026] In some embodiments, the building block comprises:
[0027] A determination subunit, used to determine the configuration items configured in the business application layer from all the configuration items;
[0028] A construction subunit, configured to construct, in the business application layer, configuration items representing upstream and downstream relationships of the configuration items configured in the business application layer according to attribute information and configuration item relationships of the configuration items configured in the business application layer;
[0029] A generating subunit is used to generate the application configuration model according to the logical resource layer and the configuration items constructed in the business application layer.
[0030] In some embodiments, the determining subunit is further used to determine, from all configuration items, configuration items configured at the logical resource layer;
[0031] The construction subunit is further used to construct, in the logical resource layer, configuration items of upstream and downstream relationships of the configuration items configured in the logical resource layer according to the attribute information of the configuration items configured in the logical resource layer and the relationship between the configuration items;
[0032] The generating subunit is further used to generate the application configuration model according to the business application layer and the configuration items constructed in the logic resource layer.
[0033] In some embodiments, the configuration items constructed at the business application layer include application modules, and the configuration items constructed at the logical resource layer include: deployment units, deployment instances, and application partitions; the application module is deployed in the deployment unit, the deployment unit includes the deployment instance, the deployment instance runs in the application partition, and the application partition runs on a preset virtual machine.
[0034] In some embodiments, it also includes:
[0035] An acquisition unit, used to acquire an initial data source to be stored in the configuration management database;
[0036] A processing unit, used for cleaning and verifying the initial data source;
[0037] The storage unit is used to store the data source after the cleaning and verification processing into the configuration management database to obtain the pre-stored data source, and the configuration management database includes the application configuration model.
[0038] In some embodiments, it also includes:
[0039] The conversion unit is used to determine the data format for constructing the application configuration model, and convert the data in the initial data source that is different from the data format of the application configuration model into data in the data format of the application configuration model.
[0040] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a memory, a processor;
[0041] Memory; Memory for storing instructions executable by the processor;
[0042] The processor is configured to execute the method as described in the first aspect.
[0043] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect.
[0044] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which implements the method described in the first aspect when executed by a processor.
[0045] The method and device for constructing an application configuration model provided by the embodiments of the present disclosure determine each configuration item according to a pre-stored data source, and each configuration item has corresponding attribute information, wherein the pre-stored data source includes: management data, basic resource data corresponding to the logical resource layer, and application operation and maintenance data corresponding to the business application layer, determine a first association relationship between resources of different types in the logical resource, determine a second association relationship between resources of different types in the logical resource and each configuration item, determine a third association relationship between each configuration item, and generate a configuration item relationship for each configuration item according to the first association relationship, the second association relationship, and the third association relationship, and construct an application configuration model according to each configuration item, each attribute information, and each configuration item relationship, thereby overcoming the technical problem of a "fault" between the application service layer and the logical resource layer in the related technology, which leads to high maintenance costs, and achieving the technical effect of providing an application configuration model with high reliability and stability, reducing maintenance costs, and saving resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0047] Figure 1 A schematic diagram of a method for constructing an application configuration model according to an embodiment of the present disclosure;
[0048] Figure 2 A schematic diagram of a method for constructing an application configuration model according to another embodiment of the present disclosure;
[0049] Figure 3 A schematic diagram of a data source for a method for constructing an application configuration model according to an embodiment of the present disclosure;
[0050] Figure 4 A schematic diagram of an application configuration model of an embodiment of the present disclosure;
[0051] Figure 5 A schematic diagram of a device for constructing an application configuration model according to an embodiment of the present disclosure;
[0052] Figure 6 A schematic diagram of a device for constructing an application configuration model according to another embodiment of the present disclosure;
[0053] Figure 7 A schematic diagram of an electronic device for a method for constructing an application configuration model according to an embodiment of the present disclosure.
[0054] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0055] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0056] The nouns involved in the embodiments of the present disclosure are explained as follows:
[0057] Application configuration model: refers to the basic software and hardware resources involved in production operations and the relationships between them, including the business application layer and the logical resource layer.
[0058] Configuration item: also known as "configuration instance", is a service object, which refers to assets, human resources, service components or other logical resources under the control of configuration management, including software, hardware, various documents, operating systems, various configuration parameters of business systems, etc., such as: middleware, host, computer room, switch, etc.
[0059] Attribute information of configuration items: also known as configuration attributes. Attribute information refers to the content used to describe the configuration items. A configuration item can be described by multiple dimensions of content (or attributes).
[0060] Configuration item relationship: It can be called configuration relationship, which refers to the connection between configuration items, characterizing the association between configuration items, and describing how configuration items work together to provide services. There are various relationships between configuration items in the configuration management database, such as a fiber optic switch connecting several disk arrays, a program using the module of another program, etc.
[0061] Currently, the application configuration models of common operation and maintenance platforms focus on the resource management of the logical resource layer (i.e., the basic resource layer). Most of them are relatively simple application configuration models, which cannot well represent the service call relationship between applications. The relationship between the business application layer and the logical resource layer is not complete, which leads to the phenomenon of "faults" between the business application layer and the logical resource layer. They need to be maintained and managed manually, resulting in technical problems such as high consumption of human resources and costs.
[0062] In order to avoid the above-mentioned technical problems, the inventors of the present invention, through creative work, have obtained the inventive concept of the present invention: constructing an application configuration model centered on the business application layer, and the business application layer and the logical resource layer in the established application configuration model are independent and "continuous".
[0063] The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.
[0064] See also Figure 1 , Figure 1 A schematic diagram of a method for constructing an application configuration model according to an embodiment of the present disclosure.
[0065] like Figure 1 As shown, the method includes:
[0066] S101: Determine each configuration item according to a pre-stored data source, each configuration item having corresponding attribute information.
[0067] The pre-stored data sources include: management data, basic resource data corresponding to the logical resource layer, and application operation and maintenance data corresponding to the business application layer.
[0068] Exemplarily, the executing entity of this embodiment may be a construction device of the application configuration model (hereinafter referred to as the construction device), and the construction device may be a server (a cloud server or a local server), a terminal device, a processor, or a chip, which is not limited in this embodiment.
[0069] It is worth noting that, in this embodiment, the data of multiple dimensions in the pre-stored data source, such as the management data, basic resource data, and application operation and maintenance data described above, on the one hand, by using the pre-stored data source including data of different dimensions to determine each configuration item, the determined configuration item can represent the characteristics of more dimensions, that is, the configuration item can be characterized from more dimensions, so that the configuration item has a technical effect of higher richness and reliability; on the other hand, since the pre-stored data source includes application operation and maintenance data, it is equivalent to fully combining the data of the business application layer when determining the configuration item. Therefore, the configuration item can represent the data of the business application layer, and a high degree of fit between the logical resource layer and the business application layer can be achieved, thereby avoiding the "fault" phenomenon between the logical resource layer and the business application layer in the related technology.
[0070] In one example, the pre-stored data source is given priority to data acquired through automatic collection and automatic synchronization; in another example, the pre-stored data source is given priority to information sharing data; in another example, the pre-stored data source is given priority to data with statistical value.
[0071] In some embodiments, multiple configuration items may be determined with the business application layer as the core, for example, multiple configuration items may be determined with application operation and maintenance data as the core.
[0072] For example, the determined configuration items may include: business groups, business systems, application systems, application modules, application services, deployment units, deployment instances, application partitions, application images, application containers, program packages, configuration packages and script files, and the 13 configuration items may include more than 200 items of attribute information.
[0073] Now, each configuration item and the attribute information corresponding to each configuration item are exemplarily described in conjunction with Tables 1 to 13.
[0074] Table 1 Business groups and their attribute information
[0075]
[0076] The business group-related entities may be department entities and / or individual entities.
[0077] Table 2 Business system and its attribute information
[0078]
[0079] Similarly, business system entities can be department entities and / or personal entities.
[0080] Table 3 Application system and its attribute information
[0081]
[0082]
[0083] Among them, the application system name may include: Chinese name, Chinese abbreviation, former name, English full name, English abbreviation; the application system status includes the acceptance status and the acceptance start time; the application system identification may include important system identification and disaster recovery / active-active system identification; the application system time includes: application system service time, application system maintainable time, application system batch processing time, application system online time, application system offline time; the application system entities include: leading department, R&D leading unit, other R&D units, testing leading unit, business management department, basic software and hardware operation and maintenance unit, network operation and maintenance unit, operation and maintenance guarantee unit, operation unit, operation and maintenance contact person, operation and maintenance functional manager, development contact person, development functional manager, business contact person, third-party contact person, database administrator, and person in charge of the application system leading department; batch information includes: node number, batch template number, batch node name, batch program name, batch program contact person, and batch program entity.
[0084] Table 4 Application modules and their attribute information
[0085]
[0086] Among them, the application module name may include: Chinese name, Chinese abbreviation, English full name, English abbreviation; the application module status includes the acceptance status and the acceptance start time; the application module identification may include the important module identification and the disaster recovery / active-active module identification; the application module time may include: application module service time, application module maintainable time, application module batch processing time, application module online time, application module offline time; the application module subject may include: module leading department, R&D leading unit, other R&D units, testing leading unit, business management department, basic software and hardware operation and maintenance unit, network operation and maintenance unit, operation and maintenance guarantee unit, operation unit, operation and maintenance contact person, operation and maintenance functional manager, development contact person, development functional manager, business contact person, third-party contact person, database administrator, and person in charge of the application module leading department; batch information may include: batch template number, batch node name, batch program name, batch program contact person, and batch program functional subject.
[0087] Table 5 Application services and their attribute information
[0088]
[0089] Among them, the application service number may include the transaction number and the routing number; the application service version information may include the entity version and the data version number; the application service time may include the commissioning time and the last modification time; the password may include the current password and the historical password; the filtering information may include: the filtering condition sequence number, the filtering condition type, and the filtering keyword.
[0090] Table 6 Deployment unit and its attribute information
[0091]
[0092] Table 7 Deployment instance and its attribute information
[0093]
[0094] Table 8 Application partition (operating system) and its attribute information
[0095]
[0096] Table 9 Application image and its attribute information
[0097]
[0098] Table 10 Application container and its attribute information
[0099]
[0100] The application container operation information may include the application container operation status, operation directory, and operation environment variables.
[0101] Table 11 Package and its attribute information
[0102]
[0103] Table 12 Configuration package and its attribute information
[0104]
[0105] Table 13 Script files and their attribute information
[0106]
[0107] It is worth noting that the above examples are only used to illustrate the configuration items and their attribute information that may be included in this embodiment, and cannot be understood as a limitation on the content and / or quantity of the configuration items and their attribute information.
[0108] S102: Determine a first association relationship between resources of different types in a logical resource, determine a second association relationship between resources of different types in a logical resource and each configuration item, determine a third association relationship between each configuration item, and generate a configuration item relationship for each configuration item based on the first association relationship, the second association relationship, and the third association relationship.
[0109] In some embodiments, based on S102, different types of resources and configuration item relationships may inherit corresponding types, and associations between different types may also be considered; the interaction between configuration items, logical resource layers, and environments may also be considered.
[0110] Configuration item relationships may include: runs on, accesses, contains, calls (ie, consumes), has (ie, inline), creates, is of type, and so on.
[0111] For example, resources may include different resources represented by different encodings, such as: run (encoded as RunsOn) resources, reference (encoded as Invokes) resources, control (encoded as Contains) resources, (encoded as Consume), code (encoded as Consume) resources, embedded (encoded as Inlines) resources, type Typeis (encoded as) resources, etc. For the specific relationship between these resources and configuration items, please refer to Table 14.
[0112] Table 14 Relationship between resources and configuration items
[0113] Serial number coding Configuration item relationships 1 RunsOn Run on (deployed on) 2 Invokes access 3 Contains Include 4 Consume Consumption (call) 5 Inlines Inline (with) 6 Create create 7 Typeis Type is
[0114] For another example, the configuration item relationships for different configuration items can be found in Table 15.
[0115] Table 15 Configuration item relationships of different configuration items
[0116]
[0117]
[0118] It is worth noting that, in this embodiment, by generating various configuration item relationships through different association relationships, each configuration item relationship can more comprehensively, completely and accurately characterize the association relationship between the configuration items, thereby making the constructed application configuration model have a technical effect of higher accuracy and reliability.
[0119] S103: construct an application configuration model according to each configuration item, each attribute information, and each configuration item relationship.
[0120] Exemplarily, when each configuration item, the attribute information corresponding to each configuration item, and the relationship between each configuration item are determined, an application configuration model can be constructed that includes each configuration item, can characterize the attribute information of each configuration item, and can characterize the association relationship between each configuration item.
[0121] See also Figure 2 , Figure 2 A schematic diagram of a method for constructing an application configuration model according to another embodiment of the present disclosure.
[0122] like Figure 2 As shown, the method includes:
[0123] S201: Acquire an initial data source to be stored in a configuration management database.
[0124] Among them, the initial data sources include: management data, basic resource data, application operation and maintenance data, and the configuration management database includes the application configuration model.
[0125] It should be understood that the “initial” in the initial data source is used to distinguish it from the pre-stored data source mentioned above, and should not be understood as a limitation on the initial data source.
[0126] Combination Figure 3 It can be seen that the initial data source of this embodiment includes management data, which includes data from the management platform and data from various platforms such as the Internet Fund Market Center (ITA) platform. The management data can specifically be application service directory data, user data, change data, etc.
[0127] The initial data source also includes basic resource data, which includes partition data from the application environment basic data collection platform obtained by the configuration center, business scenarios (such as Figure 3 F5) data shown in, etc.
[0128] The initial data source also includes application operation and maintenance data, which includes delivery data, monitoring data, operation data, process data, logs, etc. from the operation and maintenance platform obtained based on the application configuration library.
[0129] Among them, the methods of collecting initial data sources can mainly include three categories: the first category is automatic collection by scripts, such as automatic collection of basic resource data through scripts; the second category is scheduled automatic synchronization, such as scheduled automatic synchronization of application operation and maintenance data; the third category is manual maintenance, such as manual collection of other application data.
[0130] S202: performing format conversion processing, cleaning processing, and verification processing on the initial data source in sequence to obtain a pre-stored data source stored in the configuration management database.
[0131] Exemplarily, the format conversion process can be understood as follows: different data may have different specifications, and a standard specification can be set in advance, and the non-standard specification data in the initial data source can be format converted so that the non-standard specification data is converted into standard specification data.
[0132] The cleaning process can be understood as: pre-setting data that meets usage requirements and eliminating data that does not meet usage requirements, such as eliminating redundant data and incomplete data.
[0133] Verification processing can be understood as: pre-setting verification rules and eliminating data that does not meet the verification rules. Verification processing can be implemented by combining automatic verification with manual verification. For example, each data in the initial data source is matched with the verification rules by automatic verification, thereby eliminating data that does not meet the verification rules. For data that cannot be eliminated based on matching, manual verification can be used to verify it again.
[0134] It is worth noting that, in this embodiment, by processing the initial data source based on the above method to obtain a pre-stored data source, the efficiency of data processing can be improved, and each data is isolated from each other and does not interfere with each other, so that the processing of the initial data source has the technical effect of effectiveness, stability and efficiency.
[0135] S203: Determine each configuration item according to the pre-stored data source, each configuration item having corresponding attribute information.
[0136] The pre-stored data sources include: management data, basic resource data corresponding to the logical resource layer, and application operation and maintenance data corresponding to the business application layer.
[0137] S204: Determine a first association relationship between resources of different types in the logical resources, determine a second association relationship between resources of different types in the logical resources and each of the configuration items, determine a third association relationship between the configuration items, and generate a configuration item relationship for each configuration item based on the first association relationship, the second association relationship, and the third association relationship.
[0138] For example, the description of S203 and S204 can be found in the above embodiments, which will not be described in detail here.
[0139] S205: Determine configuration items configured in the business application layer from all configuration items, and construct configuration items representing upstream and downstream relationships of configuration items configured in the business application layer in the business application layer according to attribute information and configuration item relationships of configuration items configured in the business application layer.
[0140] S206: Determine configuration items configured in the logical resource layer from all configuration items, and construct configuration items of upstream and downstream relationships of configuration items configured in the logical resource layer in the logical resource layer according to attribute information of the configuration items configured in the logical resource layer and configuration item relationships.
[0141] S207: Generate an application configuration model according to each configuration item constructed at the business application layer and each configuration item constructed at the logic resource layer.
[0142] For example, Figure 4As shown, in the business application layer, the configuration items constructed include: business grouping, business system, application system, application module, application service, application image, program package, configuration package and script file.
[0143] Among them, the business group has (configuration item relationship) business system; the business system has (configuration item relationship) application system; the application system has (configuration item relationship) application module; the application module has (configuration item relationship) application service; the application module contains (configuration item relationship) program package (program package is managed by artifact warehouse), configuration package and script file; the application module has (configuration item relationship) application image (application image is composed of basic image (including Tomcat, JDK, DB, etc.), basic image is composed of program package (including jar / war, etc.), and application image is managed by image warehouse).
[0144] In the logical resource layer, the configuration items built include: deployment units, deployment instances, application partitions, and application containers.
[0145] Among them, the application modules built in the business application layer are deployed in (configuration item relationship) deployment units, the deployment units include deployment instances, the deployment instances run in (configuration item relationship) application partitions (also called operating systems), and the application partitions run in preset virtual machines (vSphere integrated containers establish an environment for deploying and managing containers in lightweight virtual machines).
[0146] like Figure 4 As shown, the application partition is also deployed with: middleware (including Figure 4 IIS and WAS, etc.), databases (such as Figure 4 Oracle and Sybase, etc.), load balancing (such as Figure 4 Basic configuration resources such as F5VS shown in .
[0147] Among them, PaaS cloud management platform (i.e. Figure 4 The PaaS shown in the figure runs the application container in a virtual resource pool such as a virtual machine according to the scheduling strategy. There is no strong affinity between the application container and the virtual machine. Figure 4 The IaaS shown in Figure 1 manages basic resources such as load balancing and databases.
[0148] The above method generates Figure 4 The application configuration model shown in the , in the cloud architecture (IaaS, PaaS), fully considers the differences between on-cloud and off-cloud, and establishes an independent but not "disconnected" application configuration model on-cloud and off-cloud.
[0149] It is worth noting that in this embodiment, the business application layer can collect basic configuration resources such as middleware, database, load balancing, etc. deployed on the application partition through script automatic collection, so as to meet the needs of users to enter an application module name or an application partition IP query in the business application layer to retrieve all other configuration resource instance objects, reducing the manual maintenance costs of configuration administrators and development project teams. In other words, in this embodiment, by constructing application partitions in the logical resource layer, the logical resource layer and the business application layer are closely integrated, avoiding "faults" and reducing manual maintenance costs.
[0150] See also Figure 5 , Figure 5 A schematic diagram of a device for constructing an application configuration model according to an embodiment of the present disclosure.
[0151] like Figure 5 As shown, the construction device 500 of the application configuration model includes:
[0152] The first determination unit 501 is used to determine each configuration item according to a pre-stored data source, each of which has corresponding attribute information, wherein the pre-stored data source includes: management data, basic resource data corresponding to the logical resource layer, and application operation and maintenance data corresponding to the business application layer.
[0153] The second determining unit 502 is used to determine the first association relationship between resources of different types in the logical resources, determine the second association relationship between resources of different types in the logical resources and each of the configuration items, and determine the third association relationship between each of the configuration items.
[0154] The generating unit 503 is configured to generate a configuration item relationship of each of the configuration items according to the first association relationship, the second association relationship, and the third association relationship.
[0155] The construction unit 504 is used to construct an application configuration model according to each of the configuration items, each of the attribute information, and each of the configuration item relationships.
[0156] See also Figure 6 , Figure 6 A schematic diagram of a device for constructing an application configuration model according to another embodiment of the present disclosure.
[0157] like Figure 6 As shown, the construction device 600 of the application configuration model includes:
[0158] The acquisition unit 601 is used to acquire an initial data source to be stored in the configuration management database.
[0159] The conversion unit 602 is used to determine the data format for constructing the application configuration model, and convert the data in the initial data source that is different from the data format of the application configuration model into data in the data format of the application configuration model.
[0160] The processing unit 603 is used to perform cleaning and verification processing on the initial data source.
[0161] The storage unit 604 is used to store the cleaned and verified data source into the configuration management database to obtain the pre-stored data source, and the configuration management database includes the application configuration model.
[0162] The first determination unit 605 is used to determine each configuration item according to a pre-stored data source, each of which has corresponding attribute information, wherein the pre-stored data source includes: management data, basic resource data corresponding to the logical resource layer, and application operation and maintenance data corresponding to the business application layer.
[0163] The second determination unit 606 is used to determine the first association relationship between resources of different types in the logical resources, determine the second association relationship between resources of different types in the logical resources and each of the configuration items, and determine the third association relationship between each of the configuration items.
[0164] The generating unit 607 is configured to generate a configuration item relationship of each of the configuration items according to the first association relationship, the second association relationship, and the third association relationship.
[0165] The construction unit 608 is used to construct an application configuration model according to each of the configuration items, each of the attribute information, and each of the configuration item relationships.
[0166] Combination Figure 6 It can be seen that, in some embodiments, the construction unit 608 includes:
[0167] The determination subunit 6081 is used to determine the configuration items configured in the business application layer from all the configuration items.
[0168] The construction subunit 6082 is used to construct, in the business application layer, configuration items representing the upstream and downstream relationships of the configuration items configured in the business application layer according to the attribute information and configuration item relationships of the configuration items configured in the business application layer.
[0169] The generating subunit 6083 is used to generate the application configuration model according to the logical resource layer and the configuration items constructed in the business application layer.
[0170] In some embodiments, the determining subunit 6081 is further used to determine, from all configuration items, configuration items configured at the logical resource layer;
[0171] The construction subunit 6082 is further used to construct, in the logical resource layer, configuration items of upstream and downstream relationships of the configuration items configured in the logical resource layer according to the attribute information of the configuration items configured in the logical resource layer and the relationship between the configuration items;
[0172] The generating subunit 6083 is further used to generate the application configuration model according to the business application layer and the configuration items constructed in the logic resource layer.
[0173] In some embodiments, the configuration items constructed at the business application layer include application modules, and the configuration items constructed at the logical resource layer include: deployment units, deployment instances, and application partitions; the application module is deployed in the deployment unit, the deployment unit includes the deployment instance, the deployment instance runs in the application partition, and the application partition runs on a preset virtual machine.
[0174] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0175] According to an embodiment of the present disclosure, the present disclosure also provides a computer program product, the program product includes: a computer program, the computer program is stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the above embodiments.
[0176] like Figure 7 , is a block diagram of an electronic device according to a method for constructing an application configuration model of an embodiment of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0177] like Figure 7As shown, the electronic device includes: one or more processors 701, a memory 702, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 701 is taken as an example.
[0178] The memory 702 is a non-transitory computer-readable storage medium provided by the present disclosure. The memory stores instructions executable by at least one processor to enable the at least one processor to execute the method for constructing the application configuration model provided by the present disclosure. The non-transitory computer-readable storage medium of the present disclosure stores computer instructions, which are used to enable a computer to execute the method for constructing the application configuration model provided by the present disclosure.
[0179] The memory 702 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the method for constructing an application configuration model in the embodiment of the present disclosure. The processor 701 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 702, that is, implements the method for constructing an application configuration model in the above method embodiment.
[0180] The memory 702 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of an electronic device according to the method for constructing an application configuration model, etc. In addition, the memory 702 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 702 may optionally include a memory remotely arranged relative to the processor 701, and these remote memories may be connected to the electronic device of the method for constructing an application configuration model via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0181] The electronic device using the method for constructing an application configuration model may further include: an input device 703 and an output device 704. The processor 701, the memory 702, the input device 703 and the output device 704 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.
[0182] The input device 703 can receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device to which the construction method of the application configuration model is applied, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 704 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.
[0183] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0184] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0185] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0186] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0187] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0188] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0189] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for constructing an application configuration model, comprising: Each configuration item is determined according to a pre-stored data source, and each of the configuration items has corresponding attribute information, wherein the pre-stored data source includes: management data, basic resource data corresponding to the logical resource layer, and application operation and maintenance data corresponding to the business application layer; the configuration items determined according to the pre-stored data source include: various configuration items configured in the business application layer and various configuration items configured in the logical resource layer; the various configuration items configured in the logical resource layer include deployment units, deployment instances, application partitions, and application containers; the various configuration items configured in the business application layer include application modules; Determine a first association relationship between resources of different types in the logical resources, determine a second association relationship between resources of different types in the logical resources and each of the configuration items, determine a third association relationship between each of the configuration items, and generate a configuration item relationship of each of the configuration items according to the first association relationship, the second association relationship, and the third association relationship; the configuration item relationship of the configuration item includes: the application module is deployed in the deployment unit, the deployment unit includes the deployment instance, the deployment instance runs in the application partition, and the application partition runs in a preset virtual machine where the application container is deployed; Determine each configuration item configured in the business application layer from all configuration items, and construct, in the business application layer, configuration items representing upstream and downstream relationships of each configuration item configured in the business application layer according to attribute information and configuration item relationships of each configuration item configured in the business application layer; Determine each configuration item configured in the logical resource layer from all configuration items, and construct, in the logical resource layer, configuration items of upstream and downstream relationships of each configuration item configured in the logical resource layer according to attribute information and configuration item relationships of each configuration item configured in the logical resource layer; An application configuration model is generated according to each configuration item constructed at the business application layer and each configuration item constructed at the logic resource layer.
2. The method according to claim 1, further comprising: An initial data source to be stored in a configuration management database is obtained, and the initial data source is cleaned and verified, and the cleaned and verified data source is stored in the configuration management database to obtain the pre-stored data source, and the configuration management database includes the application configuration model.
3. The method according to claim 2, before cleaning and verifying the initial data source, further comprises: The data format for constructing the application configuration model is determined, and data in the initial data source that is different from the data format of the application configuration model is converted into data in the data format of the application configuration model.
4. A device for constructing an application configuration model, comprising: A first determination unit is used to determine each configuration item according to a pre-stored data source, each of the configuration items having corresponding attribute information, wherein the pre-stored data source includes: management data, basic resource data corresponding to the logical resource layer, and application operation and maintenance data corresponding to the business application layer; the configuration items determined according to the pre-stored data source include: various configuration items configured in the business application layer and various configuration items configured in the logical resource layer; the various configuration items configured in the logical resource layer include deployment units, deployment instances, application partitions, and application containers; the various configuration items configured in the business application layer include application modules; A second determining unit is used to determine a first association relationship between resources of different types in the logical resources, determine a second association relationship between resources of different types in the logical resources and each of the configuration items, and determine a third association relationship between each of the configuration items; a generating unit, configured to generate a configuration item relationship of each of the configuration items according to the first association relationship, the second association relationship, and the third association relationship; the configuration item relationship of the configuration item includes: the application module is deployed in the deployment unit, the deployment unit includes the deployment instance, the deployment instance runs in the application partition, and the application partition runs in a preset virtual machine where the application container is deployed; Building blocks, including: A determination subunit, used to determine the configuration items configured at the business application layer from all the configuration items; and to determine the configuration items configured at the logic resource layer from all the configuration items; A construction subunit, configured to construct, in the business application layer, configuration items representing the upstream and downstream relationships of the configuration items configured in the business application layer according to the attribute information of the configuration items configured in the business application layer and the configuration item relationships; and to construct, in the logical resource layer, configuration items representing the upstream and downstream relationships of the configuration items configured in the logical resource layer according to the attribute information of the configuration items configured in the logical resource layer and the configuration item relationships; A generating subunit is used to generate the application configuration model according to the logical resource layer and the configuration items constructed in the business application layer.
5. An electronic device comprising: Memory, processor; Memory; a memory for storing instructions executable by the processor; The processor is configured to execute the method as claimed in any one of claims 1 to 3.
6. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, wherein the computer-executable instructions are used to implement the method according to any one of claims 1 to 3 when executed by a processor.
7. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Business knowledge management based configuration management method
CN104200324A