Method and device for scheduling deployment service based on configuration information item, medium and equipment

By building an information item pool and generating service key packages and project value packages, and automatically matching configuration values, the problem of low deployment efficiency caused by the difference in operation and maintenance and R&D information is solved, and one-click deployment of services is realized, and deployment efficiency is improved.

CN119225859APending Publication Date: 2024-12-31福建博思数字科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411339653.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

During the service deployment process, the information difference between operation and maintenance personnel and R&D personnel leads to low deployment efficiency, and a tool that can reduce information differences is needed to improve deployment efficiency.

Method used

By building an information item pool, selecting middleware, generating service key packages and project value packages, and automatically matching configuration values ​​when specific rule conditions are met, realizing one-click deployment of services. This method includes building an information item pool, completing middleware selection, formulating information items, and generating corresponding packages based on services and projects for recording information items; deploying production environment middleware for different projects, selecting information items, and generating project value Package; select service information items for the specified project, formulate upgrade deployment rules conditions, and match the service key package and project value package when the conditions are met, and complete the replacement of configuration values.

Benefits of technology

It effectively improves the efficiency of service deployment, reduces manual interactions and improves the accuracy and speed of deployment by automatically matching information items.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119225859A_ABST
    Figure CN119225859A_ABST
Patent Text Reader

Abstract

The invention discloses a method and device for scheduling deployment service based on configuration information items, a medium and equipment. The method comprises the following steps: constructing an information item pool; selecting corresponding information items from the information item pool according to different services, and generating a service key packet corresponding to each service; for different projects, deploying production environment middleware corresponding to the projects, selecting corresponding information items from the information item pool according to the middleware, and generating project value packages corresponding to the projects; the method comprises the steps of selecting an information item of a service needing to be deployed for a specified project, formulating a rule condition of upgrade deployment, automatically matching a corresponding service key packet and a project value packet according to the information item of the service needing to be deployed currently when the rule condition of upgrade deployment is met, and completing replacement of a corresponding configuration value according to the matched service key packet and project value packet. According to the scheme, service one-key deployment can be automatically completed, and the service deployment efficiency is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, apparatus, medium and device for scheduling and deploying services based on configuration information items. Background Art

[0002] Deployment Services refers to the process of transferring software, systems or applications from a development environment to a production environment and making them run normally in the actual operating environment. In daily operation and maintenance deployment, the accuracy of configuration information is a key condition for service deployment. In this process, operation and maintenance personnel need to interact frequently with R&D personnel. There is information gap in the interaction between the two sides, which can easily cause various problems and greatly reduce the efficiency of deployment. Therefore, providing a tool that can deploy services with one click and reduce the information gap between the operation and maintenance end and the R&D end during service deployment will be of great benefit to improving the deployment efficiency of services. Summary of the invention

[0003] In view of the above problems, the present application provides a technical solution for scheduling and deploying services based on configuration information items, so as to solve the problem of low efficiency of existing service deployment methods.

[0004] To achieve the above objectives, in a first aspect, the present application provides a method for scheduling and deploying services based on configuration information items, the method comprising the following steps:

[0005] Building an information item pool, completing middleware selection, formulating information items of the middleware, and storing the information items in the information item pool;

[0006] Select corresponding information items from the information item pool according to different services, and generate service key packages corresponding to each service, wherein the service key packages are used to record the information items corresponding to the current service;

[0007] For different projects, deploy the production environment middleware corresponding to the project, select the corresponding information item from the information item pool according to the middleware, and generate the project value package corresponding to the project, wherein the project value package is used to record the information item corresponding to the current project;

[0008] Select the service information items that need to be deployed for the specified project, and formulate the rules and conditions for the upgrade deployment. When the rules and conditions for the upgrade deployment are met, automatically match the corresponding service key package and project value package according to the information items of the service that currently needs to be deployed, and replace the corresponding configuration values ​​according to the matched service key package and project value package to complete the one-click deployment of the service.

[0009] Furthermore, completing the middleware selection includes:

[0010] receiving a middleware selection instruction, and selecting a middleware corresponding to the selection instruction as the middleware of the information item pool;

[0011] Alternatively, a middleware adding instruction is received, and the newly added middleware is used as an alternative middleware for the information item pool.

[0012] Furthermore, the production environment middleware corresponding to the deployment project, selecting a corresponding information item from the information item pool according to the middleware includes:

[0013] Acquire first production environment information, input the first production environment information into the trained neural network model, and obtain information items corresponding to the production environment middleware corresponding to the deployment project;

[0014] The input of the neural network model during training is sample production environment information, and the output is information items corresponding to the production environment middleware corresponding to the deployment project.

[0015] Furthermore, the number of the first production environment information is multiple groups, and the method includes:

[0016] Arranging multiple groups of the first production environment information to obtain a first production environment information combination;

[0017] The first production environment information of each group is input into the neural network model in sequence according to the arrangement order, and the obtained information items are mapped and stored with the first production environment information of each group to obtain multiple mapping information, each mapping information corresponds to a project value package.

[0018] Furthermore, the rule conditions for the upgrade deployment include any one of the following situations:

[0019] Receive upgrade instructions;

[0020] The time since the last upgrade reaches the preset time interval;

[0021] The current timestamp reaches the set upgrade time.

[0022] Furthermore, the project value package includes the monitoring indicator name and the monitoring indicator value, and the monitoring indicator value is stored in the monitoring system and captured by the monitoring program;

[0023] The project value package corresponding to the generated project includes:

[0024] Defining first parameters corresponding to the names of the monitoring indicators in the monitoring program, and mapping the first parameters with second parameters in the monitoring system to obtain a configuration file;

[0025] Dynamically obtain the monitoring indicator value corresponding to each second parameter from the monitoring system according to the configuration file, sequentially store the obtained monitoring indicator value and the first parameter name corresponding to the second parameter, and obtain the indicator dictionary set after all monitoring indicator values ​​are obtained;

[0026] The value of the information item corresponding to the project is rendered according to the indicator dictionary set to obtain the project value package.

[0027] Furthermore, the method further comprises:

[0028] Receive a modification instruction for the monitoring indicator name of the information item corresponding to the project, and determine whether the modified monitoring indicator type has changed through a vocabulary fuzzy matching algorithm. If there is no change, keep the configuration file unchanged; if there is a change, determine a new first parameter from the monitoring program according to the modified monitoring indicator name, and map and store the new first parameter with the information item corresponding to the current project.

[0029] In a second aspect, the present application further provides a device for scheduling deployment services based on configuration information items, the device comprising:

[0030] An information item pool construction module is used to construct an information item pool, complete the middleware selection, formulate the information items of the middleware, and store the information items in the information item pool;

[0031] A service key package building module, used to select corresponding information items from the information item pool according to different services, and generate a service key package corresponding to each service, wherein the service key package is used to record the information items corresponding to the current service;

[0032] A project value package construction module deploys the production environment middleware corresponding to the project for different projects, selects corresponding information items from the information item pool according to the middleware, and generates a project value package corresponding to the project, wherein the project value package is used to record the information items corresponding to the current project;

[0033] The upgrade rule setting module is used to select the information items of the services to be deployed for the specified project and formulate the rule conditions for the upgrade deployment;

[0034] The service one-click deployment module is used to automatically match the corresponding service key package and project value package according to the information items of the service currently to be deployed when the rule conditions of the upgrade deployment are met, and complete the replacement of the corresponding configuration values ​​according to the matched service key package and project value package to complete the one-click deployment of the service.

[0035] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for scheduling and deploying services based on configuration information items as described in the first aspect of the present application.

[0036] In a fourth aspect, the present application provides an electronic device having a computer program stored thereon, comprising a processor and a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by the processor, the method for scheduling and deploying services based on configuration information items as described in the first aspect of the present application is implemented.

[0037] Different from the prior art, the above technical scheme involves a method, device, medium and equipment for scheduling and deploying services based on configuration information items. The method includes: building an information item pool, completing middleware selection, formulating information items of the middleware, and storing the information items in the information item pool; selecting corresponding information items from the information item pool according to different services, and generating service key packages corresponding to each service; for different projects, deploying the production environment middleware corresponding to the project, selecting corresponding information items from the information item pool according to the middleware, and generating a project value package corresponding to the project; selecting information items of the services to be deployed for the specified project, and formulating rules and conditions for upgrade deployment, and when the rules and conditions for upgrade deployment are met, automatically matching the corresponding service key package and project value package according to the information items of the services currently to be deployed, and completing the replacement of corresponding configuration values ​​according to the matched service key package and project value package. The above scheme can automatically match the service key package and the project value package through the information items, thereby completing the one-click deployment of the service, effectively improving the efficiency of service deployment.

[0038] The above-mentioned records related to the invention content are only an overview of the technical solution of the present application. In order to enable ordinary technicians in the field to more clearly understand the technical solution of the present application, and then implement it according to the text of the specification and the contents recorded in the drawings, and to make the above-mentioned purpose and other purposes, features and advantages of the present application easier to understand, the following is an explanation in combination with the specific implementation mode and drawings of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The drawings are only used to illustrate the principles, implementation methods, applications, characteristics and effects of the specific embodiments of the present invention and other related contents, and shall not be considered as limiting the present application.

[0040] In the drawings of the specification:

[0041] Figure 1 A flowchart of a method for scheduling and deploying services based on configuration information items according to the first exemplary embodiment of the present application;

[0042] Figure 2A flowchart of a method for scheduling and deploying services based on configuration information items according to a second exemplary embodiment of the present application;

[0043] Figure 3 A flowchart of a method for scheduling and deploying services based on configuration information items according to a third exemplary embodiment of the present application;

[0044] Figure 4 A schematic diagram of a module of an apparatus for scheduling deployment services based on configuration information items according to an exemplary embodiment of the present application;

[0045] Figure 5 A schematic diagram of an electronic device according to an exemplary embodiment of the present application;

[0046] The reference numerals in the above drawings are described as follows:

[0047] 10. Electronic equipment;

[0048] 101. Processor;

[0049] 102. Storage medium;

[0050] 20. A device for scheduling deployment services based on configuration information items;

[0051] 201, information item pool construction module;

[0052] 202. Service key package building module;

[0053] 203. Project value package construction module;

[0054] 204. Upgrade rule setting module;

[0055] 205. Service one-click deployment module. DETAILED DESCRIPTION

[0056] In order to explain in detail the possible application scenarios, technical principles, specific schemes that can be implemented, and the purposes and effects that can be achieved, the following is a detailed description of the specific embodiments listed in conjunction with the accompanying drawings. The embodiments described herein are only used to more clearly illustrate the technical solutions of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.

[0057] Reference to "embodiment" herein means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The term "embodiment" appearing in various places in the specification does not necessarily refer to the same embodiment, nor does it particularly limit its independence or association with other embodiments. In principle, in the present application, as long as there is no technical contradiction or conflict, the various technical features mentioned in the embodiments can be combined in any way to form a corresponding implementable technical solution.

[0058] Unless otherwise defined, the technical terms used in this document have the same meanings as those generally understood by those skilled in the art to which this application belongs; the use of relevant terms in this document is only for describing specific embodiments and is not intended to limit this application.

[0059] In the description of this application, the term "and / or" is an expression used to describe the logical relationship between objects, indicating that three relationships may exist, for example, A and / or B, which means: A exists, B exists, and A and B exist at the same time. In addition, the character " / " in this article generally indicates that the objects before and after are in an "or" logical relationship.

[0060] In the present application, terms such as “first” and “second” are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship of quantity, priority or sequence between these entities or operations.

[0061] Without further limitations, in this application, the words "include", "comprises", "has" or other similar open-ended expressions used in sentences are intended to cover non-exclusive inclusion. These expressions do not exclude the presence of additional elements in the process, method or product including the elements, so that the process, method or product including a series of elements may include not only those limited elements, but also other elements not explicitly listed, or also include elements inherent to such process, method or product.

[0062] Similar to the understanding in the Examination Guidelines, in this application, expressions such as "greater than", "less than", "exceed" and the like are understood to exclude the number itself; expressions such as "above", "below", "within" and the like are understood to include the number itself. In addition, in the description of the embodiments of this application, "multiple" means more than two (including two), and similar expressions related to "multiple" are also understood in this way, such as "multiple groups", "multiple times", etc., unless otherwise clearly and specifically limited.

[0063] In the description of the embodiments of the present application, space-related expressions used, such as "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "vertical", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc., indicate the orientation or position relationship based on the orientation or position relationship shown in the specific embodiments or drawings, and are only for the convenience of describing the specific embodiments of the present application or facilitating the reader's understanding, and do not indicate or imply that the referred device or component must have a specific position, a specific orientation, or be constructed or operated in a specific orientation, and therefore cannot be understood as a limitation on the embodiments of the present application.

[0064] Unless otherwise expressly specified or limited, in the description of the embodiments of the present application, the terms such as "install", "connect", "connect", "fix", "set", etc. used should be understood in a broad sense. For example, the "connection" can be a fixed connection, a detachable connection, or an integrated setting; it can be a mechanical connection, an electrical connection, or a communication connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium; it can be the internal connection of two elements or the interaction relationship between two elements. For technicians in the technical field to which the present application belongs, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.

[0065] like Figure 1 As shown, in a first aspect, a method for scheduling and deploying services based on configuration information items comprises the following steps:

[0066] S1: Build an information item pool, complete middleware selection, formulate information items of the middleware, and store the information items in the information item pool;

[0067] S2: Select corresponding information items from the information item pool according to different services, and generate a service key package corresponding to each service, wherein the service key package is used to record the information item corresponding to the current service;

[0068] S3: for different projects, deploy the production environment middleware corresponding to the project, select the corresponding information item from the information item pool according to the middleware, and generate a project value package corresponding to the project, wherein the project value package is used to record the information item corresponding to the current project;

[0069] S4: Select the information items of the services that need to be deployed for the specified project, and formulate the rules and conditions for the upgrade deployment. When the rules and conditions for the upgrade deployment are met, automatically match the corresponding service key package and project value package according to the information items of the services that currently need to be deployed, and replace the corresponding configuration values ​​according to the matched service key package and project value package to complete the one-click deployment of the service.

[0070] In this embodiment, the information item is the configuration item. Taking the database middleware MySQL as an example, there may be information items such as database jdbc connection, database user name, and database password. Then the name of these database information items (such as database user name) is the key, and the actual value corresponding to the name is the value. For example, when the key is mysql_user_name, the value can be boss, and when the key is mysql_password, the value is Bs123456.

[0071] Usually, each key has a value. In the solution of this application, the key can be the key required for service release, and then different projects have different values ​​for the keys required for service release. Then, according to the specific content of the project, the value of the corresponding project is obtained for each service key, such as the value of certain monitoring indicators.

[0072] For example, if the key is mysql_user_name, the corresponding value of project A is bossA, the corresponding value of project B is bossB, and the corresponding value of project C is bossC. When deploying the service, you can match different values ​​according to different projects. For example, for project A, the matching content is as follows: mysql_user_name = bossA, and for project B, the matching content is as follows: mysql_user_name = bossB.

[0073] In this embodiment, step S2 can be completed at the R&D end, step S3 can be completed at the operation and maintenance end, and the remaining steps can be completed at the configuration center, which is a platform, system or electronic device that establishes communication connections with both the R&D end and the operation and maintenance end.

[0074] This application stores the information items needed to deploy services in the production environment in an information item pool in advance, and then collects the information item values ​​(i.e., value) provided by the operation and maintenance end and the information item keys provided by the R&D end, and matches the corresponding keys and values ​​through the information items when the service is deployed. It can quickly and automatically complete the one-click deployment of the service and improve deployment efficiency.

[0075] In some embodiments, completing the middleware selection includes: receiving a middleware selection instruction, selecting the middleware corresponding to the selection instruction as the middleware of the information item pool; or receiving a middleware addition instruction, using the newly added middleware as the candidate middleware of the information item pool.

[0076] In the service deployment process, middleware refers to a software layer that is located between the operating system and the application and provides data management, messaging, service discovery and other functions for different applications. The main function of middleware is to simplify the interaction between applications and enhance the scalability, maintainability and flexibility of the system. The following are some common types of middleware and their functions:

[0077] (1) Message middleware: used to deliver messages in distributed systems, such as Apache Kafka, RabbitMQ, and ActiveMQ. These systems help different applications communicate asynchronously and decouple producers and consumers.

[0078] (2) Database middleware: provides access and management functions for the database. Commonly used database middleware include MySQLProxy, Oracle RAC, etc. This type of middleware can simplify database operations and provide load balancing and high availability.

[0079] (3) Application Server: Server middleware used to run, manage, and host applications, such as JBoss, GlassFish, and WebLogic. This type of middleware provides a variety of services, such as transaction management, security, and load balancing.

[0080] (4) Service Bus: Enterprise Service Bus (ESB) is an architectural pattern that allows various services to communicate through a centralized bus. Examples include MuleSoft, WSO2, etc. This type of middleware can help achieve service integration and management.

[0081] (5) API Gateway: It is used to manage, monitor and protect the access interface of microservices, such as Kong, Apigee and AWS API Gateway. This type of middleware can provide functions such as routing, current limiting and identity authentication.

[0082] (7) Authentication and authorization middleware: used to process user authentication and authorization requests, such as OAuth 2.0, OpenID Connect, and JWT (JSON Web Tokens). These middlewares ensure that only authenticated users can access specific services and resources.

[0083] By selecting or adding instructions, you can confirm the middleware corresponding to the current service, and then configure the corresponding information items to the information item pool. For example, you can select MySQL as the middleware, but in actual situations, you often use Oracle database, so you can also use Oracle database as an alternative middleware by entering the add instruction.

[0084] In some embodiments, the production environment middleware corresponding to the deployment project, selecting the corresponding information item from the information item pool according to the middleware includes:

[0085] Obtain first production environment information, input the first production environment information into the trained neural network model, and obtain the information item corresponding to the production environment middleware corresponding to the deployment project; the input of the neural network model during training is the sample production environment information, and the output is the information item corresponding to the production environment middleware corresponding to the deployment project.

[0086] In short, the first production environment information may be the production environment where the service project currently to be deployed is located, such as the production environment type, equipment resource conditions, software or system types that have been installed in the past, etc. After training on these first production environment information, the information items required for the current deployment project can be directly determined, thereby effectively simplifying the operation.

[0087] In some embodiments, Figure 2 As shown, the number of the first production environment information is multiple groups, and the method includes:

[0088] First, enter step S201 to arrange multiple groups of the first production environment information to obtain a first production environment information combination;

[0089] Then, enter step S202 to input each group of the first production environment information into the neural network model in sequence according to the arrangement order, and map the obtained information items with each group of the first production environment information to obtain multiple mapping information, each mapping information corresponds to a project value package.

[0090] In short, multiple groups of the first production environment information can be processed in batches through the neural network model, and then the synchronous deployment of corresponding services of multiple projects can be completed based on the obtained multiple mapping information.

[0091] In some embodiments, the rule condition for the upgrade deployment includes any one of the following situations:

[0092] Receive upgrade instructions;

[0093] The time since the last upgrade reaches the preset time interval;

[0094] The current timestamp reaches the set upgrade time.

[0095] In short, service deployment upgrades can be triggered by timing, setting update cycles, and command updates.

[0096] In some embodiments, the project value package includes a monitoring indicator name and a monitoring indicator value, and the monitoring indicator value is stored in the monitoring system and captured by the monitoring program;

[0097] like Figure 3 As shown, the project value package corresponding to the generated project includes:

[0098] First, enter step S301 to define the first parameters corresponding to the names of the monitoring indicators in the monitoring program, and map the first parameters with the second parameters in the monitoring system to obtain a configuration file;

[0099] Then, step S302 is performed to dynamically obtain the monitoring indicator values ​​corresponding to each second parameter from the monitoring system according to the configuration file, and sequentially store the obtained monitoring indicator values ​​and the first parameter names corresponding to the second parameters. After all monitoring indicator values ​​are obtained, an indicator dictionary set is obtained;

[0100] Then, the process proceeds to step S303 to render the value of the information item corresponding to the project according to the indicator dictionary set to obtain the project value package.

[0101] In short, the first parameter corresponding to each monitoring indicator name is defined in the monitoring program. When the user modifies or adjusts the monitoring indicator name on the visual interface, since the first parameter and the second parameter are mapped to each other, there is no need to adjust the first parameter in the monitoring program, which can effectively avoid the possibility of errors.

[0102] In some embodiments, the method further comprises:

[0103] Receive a modification instruction for the monitoring indicator name of the information item corresponding to the project, and determine whether the modified monitoring indicator type has changed through a vocabulary fuzzy matching algorithm. If there is no change, keep the configuration file unchanged; if there is a change, determine a new first parameter from the monitoring program according to the modified monitoring indicator name, and map and store the new first parameter with the information item corresponding to the current project.

[0104] In short, the monitoring indicator names are usually in the form of common languages ​​in the visualization interface, such as English or Chinese. In order to facilitate users to directly adjust the monitoring indicator names of information items in the visualization interface, the present application can perform fuzzy vocabulary matching on the content modified by the user operation. If the meaning of the content before and after the user modification has not changed, such as "traffic value" is changed to "traffic value", there is no need to adjust the mapping relationship of the parameters. If it is found that the meaning of the modified words before and after has changed, such as "traffic value" is changed to "user visits", it means that the indicator value to be obtained in the corresponding area position in the visualization interface has also changed accordingly, so it is necessary to re-match the mapping relationship, that is, to associate the first parameter corresponding to "user visits" in the monitoring program with the coordinate position of the current monitoring indicator name in the visualization interface, so as to ensure that after the value of the second parameter corresponding to the new first parameter is obtained from the monitoring system, it can be accurately filled in the coordinate area position of the visualization interface.

[0105] like Figure 4 As shown, in a second aspect, the present application further provides a device 20 for scheduling deployment services based on configuration information items, the device comprising:

[0106] An information item pool construction module 201 is used to construct an information item pool, complete middleware selection, formulate information items of the middleware, and store the information items in the information item pool;

[0107] A service key package building module 202 is used to select corresponding information items from the information item pool according to different services, and generate a service key package corresponding to each service, wherein the service key package is used to record the information items corresponding to the current service;

[0108] The project value package construction module 203 deploys the production environment middleware corresponding to the project for different projects, selects corresponding information items from the information item pool according to the middleware, and generates a project value package corresponding to the project, wherein the project value package is used to record the information items corresponding to the current project;

[0109] An upgrade rule setting module 204 is used to select information items of services to be deployed for a specified project and formulate rule conditions for upgrade deployment;

[0110] The service one-click deployment module 205 is used to automatically match the corresponding service key package and project value package according to the information items of the service currently to be deployed when the rule conditions of the upgrade deployment are met, and complete the replacement of the corresponding configuration values ​​according to the matched service key package and project value package to complete the one-click deployment of the service.

[0111] In a third aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for scheduling and deploying services based on configuration information items as described in the first aspect of the present invention.

[0112] The computer-readable storage medium may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories.

[0113] The non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a ferromagnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD ROM); the magnetic surface memory can be a disk memory or a tape memory.

[0114] The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), direct memory bus random access memory (DRRAM). The computer-readable storage medium described in the embodiments of the present invention is intended to include these and any other suitable types of memory.

[0115] like Figure 5 As shown, in a fourth aspect, the present invention provides an electronic device 10, comprising a processor 101 and a storage medium 102, wherein a computer program is stored on the storage medium, and when the computer program is executed by the processor, the method for scheduling and deploying services based on configuration information items as described in the first aspect of the present invention is implemented.

[0116] In some embodiments, the processor can be implemented through software, hardware, firmware or a combination thereof, and can use circuits, single or multiple application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), digital signal processors (Digital Signal Processor, DSP), digital signal processing devices (Digital Signal Processing Device, DSPD), programmable logic devices (Programmable Logic Device, PLD), field programmable gate arrays (Field Programmable Gate Array, FPGA), central processing units (Central Processing Unit, CPU), controllers, microcontrollers, at least one of microprocessors, so that the processor can execute some or all of the steps in the method for scheduling and deploying services based on configuration information items described in the various embodiments of the present application, or any combination of the steps therein.

[0117] Finally, it should be noted that although the above embodiments have been described in the specification and drawings of this application, this does not limit the scope of patent protection of this application. All technical solutions generated by replacing or modifying equivalent structures or equivalent processes based on the essential concept of this application using the contents recorded in the specification and drawings of this application, as well as directly or indirectly implementing the technical solutions of the above embodiments in other related technical fields, are included in the scope of patent protection of this application.

Claims

1. A method for scheduling and deploying services based on configuration information items, characterized in that: The method comprises the following steps: Building an information item pool, completing middleware selection, formulating information items of the middleware, and storing the information items in the information item pool; Select corresponding information items from the information item pool according to different services, and generate service key packages corresponding to each service, wherein the service key packages are used to record the information items corresponding to the current service; For different projects, deploy the production environment middleware corresponding to the project, select the corresponding information item from the information item pool according to the middleware, and generate the project value package corresponding to the project, wherein the project value package is used to record the information item corresponding to the current project; Select the service information items that need to be deployed for the specified project, and formulate the rules and conditions for the upgrade deployment. When the rules and conditions for the upgrade deployment are met, automatically match the corresponding service key package and project value package according to the information items of the service that currently needs to be deployed, and replace the corresponding configuration values ​​according to the matched service key package and project value package to complete the one-click deployment of the service.

2. The method for scheduling and deploying services based on configuration information items according to claim 1, characterized in that: The middleware selection process includes: receiving a middleware selection instruction, and selecting a middleware corresponding to the selection instruction as the middleware of the information item pool; Alternatively, a middleware adding instruction is received, and the newly added middleware is used as an alternative middleware for the information item pool.

3. The method for scheduling and deploying services based on configuration information items according to claim 1, characterized in that: The production environment middleware corresponding to the deployment project, selecting a corresponding information item from the information item pool according to the middleware includes: Acquire first production environment information, input the first production environment information into the trained neural network model, and obtain information items corresponding to the production environment middleware corresponding to the deployment project; The input of the neural network model during training is sample production environment information, and the output is information items corresponding to the production environment middleware corresponding to the deployment project.

4. The method for scheduling and deploying services based on configuration information items according to claim 1, characterized in that: The number of the first production environment information is multiple groups, and the method includes: Arranging multiple groups of the first production environment information to obtain a first production environment information combination; The first production environment information of each group is input into the neural network model in sequence according to the arrangement order, and the obtained information items are mapped and stored with the first production environment information of each group to obtain multiple mapping information, each mapping information corresponds to a project value package.

5. The method for scheduling and deploying services based on configuration information items according to claim 1, characterized in that: The rule conditions for the upgrade deployment include any one of the following situations: Receive upgrade instructions; The time since the last upgrade reaches the preset time interval; The current timestamp reaches the set upgrade time.

6. The method for scheduling and deploying services based on configuration information items according to claim 1, characterized in that: The project value package contains the monitoring indicator name and the monitoring indicator value, and the monitoring indicator value is stored in the monitoring system and captured by the monitoring program; The project value package corresponding to the generated project includes: Defining first parameters corresponding to the names of the monitoring indicators in the monitoring program, and mapping the first parameters with second parameters in the monitoring system to obtain a configuration file; Dynamically obtain the monitoring indicator value corresponding to each second parameter from the monitoring system according to the configuration file, sequentially store the obtained monitoring indicator value and the first parameter name corresponding to the second parameter, and obtain the indicator dictionary set after all monitoring indicator values ​​are obtained; The value of the information item corresponding to the project is rendered according to the indicator dictionary set to obtain the project value package.

7. The method for scheduling and deploying services based on configuration information items according to claim 6, characterized in that: The method further comprises: Receive a modification instruction for the monitoring indicator name of the information item corresponding to the project, and determine whether the modified monitoring indicator type has changed through a vocabulary fuzzy matching algorithm. If there is no change, keep the configuration file unchanged; if there is a change, determine a new first parameter from the monitoring program according to the modified monitoring indicator name, and map and store the new first parameter with the information item corresponding to the current project.

8. A device for scheduling and deploying services based on configuration information items, characterized in that: The device comprises: An information item pool construction module is used to construct an information item pool, complete the middleware selection, formulate the information items of the middleware, and store the information items in the information item pool; A service key package building module, used to select corresponding information items from the information item pool according to different services, and generate a service key package corresponding to each service, wherein the service key package is used to record the information items corresponding to the current service; A project value package construction module deploys the production environment middleware corresponding to the project for different projects, selects corresponding information items from the information item pool according to the middleware, and generates a project value package corresponding to the project, wherein the project value package is used to record the information items corresponding to the current project; The upgrade rule setting module is used to select the information items of the services to be deployed for the specified project and formulate the rule conditions for the upgrade deployment; The service one-click deployment module is used to automatically match the corresponding service key package and project value package according to the information items of the service currently to be deployed when the rule conditions of the upgrade deployment are met, and complete the replacement of the corresponding configuration values ​​according to the matched service key package and project value package to complete the one-click deployment of the service.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for scheduling and deploying services based on configuration information items as described in any one of claims 1 to 8 is implemented.

10. An electronic device having a computer program stored thereon, characterized in that: It comprises a processor and a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by the processor, the method for scheduling and deploying services based on configuration information items as claimed in any one of claims 1 to 8 is implemented.