CN113282332A - Operation and maintenance processing method and device - Google Patents

Operation and maintenance processing method and device Download PDF

Info

Publication number
CN113282332A
CN113282332A CN202110515479.2A CN202110515479A CN113282332A CN 113282332 A CN113282332 A CN 113282332A CN 202110515479 A CN202110515479 A CN 202110515479A CN 113282332 A CN113282332 A CN 113282332A
Authority
CN
China
Prior art keywords
service deployment
basic component
version information
deployment
version
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110515479.2A
Other languages
Chinese (zh)
Inventor
李强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202110515479.2A priority Critical patent/CN113282332A/en
Publication of CN113282332A publication Critical patent/CN113282332A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an operation and maintenance processing method and device, and relates to the field of automatic program design, wherein the method comprises the following steps: acquiring a current service deployment demand parameter; determining a current service deployment basic component and version information according to a current service deployment demand parameter; determining a service deployment script corresponding to the current service deployment basic component and version information according to the current service deployment basic component and version information and the relation between the multi-type service deployment basic component and version information and the service deployment script; and performing service operation and maintenance deployment by using the current service deployment basic component and the service deployment script corresponding to the version information. The invention can improve the efficiency and accuracy of operation and maintenance processing.

Description

Operation and maintenance processing method and device
Technical Field
The invention relates to the technical field of automatic program design, in particular to an operation and maintenance processing method and device.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
At present, after the services are subjected to micro-service, the number of virtual machines is large in a virtual machine deployment mode, and basic components to be installed on each virtual machine are differentiated, so that a manual setting environment is clumsy, repetitive work is large, errors are easy to occur, and operation and maintenance efficiency and accuracy are low.
Disclosure of Invention
The embodiment of the invention provides an operation and maintenance processing method, which is used for efficiently and accurately performing operation and maintenance processing and comprises the following steps:
acquiring a current service deployment demand parameter;
determining a current service deployment basic component and version information according to a current service deployment demand parameter;
determining a service deployment script corresponding to the current service deployment basic component and version information according to the current service deployment basic component and version information and the relation between the multi-type service deployment basic component and version information and the service deployment script;
and performing service operation and maintenance deployment by using the current service deployment basic component and the service deployment script corresponding to the version information.
In one embodiment, the service operation and maintenance deployment is performed by using a current service deployment basic component and a service deployment script corresponding to version information, and the method includes: and initializing the system after the virtual machine is delivered by utilizing the current service deployment basic component and the service deployment script corresponding to the version information.
In one embodiment, obtaining the current service deployment requirement parameter includes: and acquiring the current service deployment demand parameters by using a continuous integration tool Jenkins.
In one embodiment, the operation and maintenance processing method further includes: and performing version processing on the service deployment script by using a version management tool Git.
In an embodiment, the operation and maintenance processing method further includes obtaining a relationship between the multi-type service deployment basic component and the version information and the service deployment script according to the following method:
receiving a service deployment script corresponding to a preset type deployment basic component and compiled by a system administrator;
after the received service deployment script is approved, uploading the service deployment script corresponding to the preset type deployment basic component to a version library;
and setting a version identification for the service deployment script corresponding to the preset type deployment basic component, and finally obtaining the relation.
In one embodiment, the service deployment script is written and maintained by a plurality of system administrators.
In one embodiment, the operation and maintenance processing method further includes: and forwarding the service deployment scripts written and maintained by a plurality of system administrators to a preset auditing terminal, and storing the approved service deployment scripts when an auditing result sent by the preset auditing terminal is received.
In one embodiment, the service deployment base component comprises: a jdk component, a Tomcat component, a Zookeeper component, and a create user group component.
In one embodiment, the operation and maintenance processing method further includes: and selecting the current service deployment basic component and the service deployment script corresponding to the version information through the idle-gateway role management component.
In one embodiment, the service deployment requirement parameters include different types of service environment parameters.
An embodiment of the present invention further provides an operation and maintenance processing apparatus, which is configured to efficiently and accurately perform operation and maintenance processing, and the apparatus includes:
the acquiring unit is used for acquiring the current service deployment demand parameter;
the determining unit is used for determining the current service deployment basic component and the version information according to the current service deployment demand parameter;
the processing unit is used for determining a service deployment script corresponding to the current service deployment basic component and the version information according to the current service deployment basic component and the version information and the relationship between the multi-type service deployment basic component and the version information and the service deployment script; the service deployment script is compiled and maintained by a plurality of system administrators;
and the operation and maintenance unit is used for deploying the service by utilizing the current service deployment basic component and the service deployment script corresponding to the version information.
In one embodiment, the operation and maintenance unit is specifically configured to: and initializing the system after the virtual machine is delivered by utilizing the current service deployment basic component and the service deployment script corresponding to the version information.
In one embodiment, the obtaining unit is specifically configured to: and acquiring the current service deployment demand parameters by using a continuous integration tool Jenkins.
In an embodiment, the operation and maintenance processing apparatus further includes a version processing unit, configured to: and performing version processing on the service deployment script by using a version management tool Git.
In an embodiment, the operation and maintenance processing apparatus further includes a relationship obtaining unit, configured to obtain a relationship between the multi-type service deployment basic component and the version information and the service deployment script according to the following method:
receiving a service deployment script corresponding to a preset type deployment basic component and compiled by a system administrator;
after the received service deployment script is approved, uploading the service deployment script corresponding to the preset type deployment basic component to a version library;
and setting a version identification for the service deployment script corresponding to the preset type deployment basic component, and finally obtaining the relation.
In one embodiment, the service deployment script is written and maintained by a plurality of system administrators.
In one embodiment, the operation and maintenance processing apparatus further includes: and the auditing processing unit is used for forwarding the service deployment scripts written and maintained by the system administrators to the preset auditing terminal, and storing the service deployment scripts which pass the auditing when receiving the auditing result sent by the preset auditing terminal.
In one embodiment, the service deployment base component comprises: a jdk component, a Tomcat component, a Zookeeper component, and a create user group component.
In one embodiment, the operation and maintenance processing apparatus further includes: and the selection processing unit is used for selecting the current service deployment basic component and the service deployment script corresponding to the version information through the idle-gateway role management component.
In one embodiment, the service deployment requirement parameters include different types of service environment parameters.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the operation and maintenance processing method is realized when the processor executes the computer program.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program for executing the operation and maintenance processing method.
The operation and maintenance processing scheme in the embodiment of the invention comprises the following steps: acquiring a current service deployment demand parameter; determining a current service deployment basic component and version information according to a current service deployment demand parameter; determining a service deployment script corresponding to the current service deployment basic component and version information according to the current service deployment basic component and version information and the relation between the multi-type service deployment basic component and version information and the service deployment script; the service operation and maintenance deployment is carried out by using the current service deployment basic component and the service deployment script corresponding to the version information, and the operation and maintenance processing can be efficiently and accurately carried out, so that the efficiency and the accuracy of the operation and maintenance processing can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
FIG. 1 is a schematic flow chart of an operation and maintenance processing method according to an embodiment of the present invention;
FIG. 2 is a first schematic diagram illustrating operation and maintenance processing according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a second operation and maintenance process according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an operation and maintenance processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
Before describing the embodiments of the present invention, terms related to the embodiments of the present invention will be described.
1.Ansible, chef, salttack, are all different automated tools. Wherein: the ansible is a new automatic operation and maintenance tool, is developed based on Python, integrates the advantages of a plurality of operation and maintenance tools (puppet, cfengine, chef, func and fabric), and realizes functions of batch system configuration, batch program deployment, batch operation commands and the like. ansible is based on module work and has no capability of batch deployment. What really has a batch deployment is the module that the ansable runs, and the ansable provides only one framework. Chef is an IT automation platform that allows customers to create, deploy, alter, and manage infrastructure runtime environments and applications. Chef is platform independent and can be deployed to the cloud, locally, or as a Virtual Machine (VM). Chef, also known as a deployment automation tool and DevOps enabler, is a product that can provide many integration options for different sized enterprises.
2. Git is a version management tool. Git is an open-source distributed version control system that can handle very small to very large project version management efficiently and at high speed.
3. Jenkins is a tool for continuous integration. Jenkins is an open source software project, is a continuous integration tool developed based on Java, is used for monitoring continuous and repeated work, and aims to provide an open and easy-to-use software platform so that the software project can be continuously integrated.
4. Tomcat is the application vessel. The Tomcat server is a free Web application server with open source codes, belongs to a lightweight application server, is commonly used in small and medium-sized systems and occasions where concurrent access users are not many, and is the first choice for developing and debugging JSP programs.
5. Shell is a type of script. The Shell script is similar to batch processing under Windows/Dos, namely, various commands are put into a file in advance, a program file which is convenient to execute at one time is convenient, and the program file is mainly convenient for an administrator to set or manage. But it is more powerful than batch processing under Windows and more efficient than programs compiled with other programming programs, using commands under Linux/Unix.
6. Role is a kind of organization in the infrastructure.
7. An Agent is a node.
8. Zookeeper is a distributed component. ZooKeeper is a distributed, open-source distributed application coordination service, is an open-source implementation of Chubby of Google, and is an important component of Hadoop and Hbase. It is a software that provides a consistent service for distributed applications, and the functions provided include: configuration maintenance, domain name service, distributed synchronization, group service, etc.
9. an anchor-gateway is a tool of an administration role for anchors.
10. The Component (Component) is a simple encapsulation of data and methods. In C + + Builder, a component is a specific object derived from TComponent. The components may have their own properties and methods. An attribute is a simple visitor to component data. The method is some simple and visible function of the component. The use of components can enable drag-and-drop programming, fast property handling, and true object-oriented design.
11. shell command: in computer science, Shell is colloquially called a Shell (to distinguish it from a core) and refers to software (command parser) that "provides an operation interface for a user". It is similar to command.com and later cmd.exe under DOS. It receives a user command and then invokes the corresponding application. It is also a programming language. As a command language, it interactively interprets and executes a command input by a user or automatically interprets and executes a preset series of commands; as a programming language, it defines various variables and parameters and provides many control structures that are unique in high-level languages, including loops and branches.
12. jdk: java Development Kit (JDK) is a software Development Kit for Java developers by Sun, Inc. (which is already available from Oracle). JDK has become the most widely used Java SDK (Software definition kit) since the launch of Java.
13. playbook: playbooks are a different mode from the execution mode using the interrupt command line, and have more powerful and flexible functions. Briefly, a playbook is a very simple configuration management and multi-host deployment system that, unlike any existing schema, can serve as a basis for deploying complex applications. The Playbook can be configured in a customized manner, can be executed in order according to specified operation steps, and supports a synchronous mode and an asynchronous mode. It is noted that the playbook is descriptively defined by the YAML format.
Each play in the playbook can choose which servers and with what users to accomplish, hosts can be one host group, host, multiple hosts in a row, separated by colon, and wildcard mode can be used. Where remote _ user denotes the executed user account.
14、YAML(
Figure BDA0003061788430000061
A tail tone like camel) is a format for expressing data serialization with high readability. YAML references other languages including: c language, Perl, and gets inspiration from XML, data format of email (RFC 2822). Clark Evans published this language for the first time in 2001, in addition to Ingy
Figure BDA0003061788430000062
Net and Oren Ben-Kiki are also common designers of this language. There are currently several programming languages or scripting languages that support (or say parse) such languages.
The existing operation and maintenance automation chemical industry has many applications, such as chef, available, saltstack and the like, many applications replace some shell commands, many applications also use single functions, many applications have certain automation capacity, such as the command can be executed in batches by a plurality of machines, but the automation capacity is not an automation system, so that the advantages of an automation tool cannot be fully exerted; in addition, many tools are deployed in only one environment, and for the environment deployed in many places, networks may be involved to be disconnected, or a set of tools may be redeployed, so that the workload becomes large.
The problems existing in the traditional operation and maintenance treatment are as follows:
1. the maintenance workload is large: each time a new service is on-line and delivered, the virtual machine needs to configure the environment such as jdk, tomcat, etc. on which the application depends, and the number of the virtual machines is generally large, and the virtual machine is manually operated by one machine, which results in large workload and is easy to generate errors.
2. The cooperativity was weak: each system administrator may have a set of scripts that belong to them, possibly to solve the same problem, but there is no common mechanism for collaboratively sharing scripts among administrators.
In consideration of the problems of the existing operation and maintenance processing scheme, the inventor provides an operation and maintenance processing scheme, which is an automatic operation and maintenance implementation scheme based on the ansable. The automatic operation and maintenance implementation scheme is based on the ansable compiling yaml script to achieve initialization of the system after virtual machine delivery, the system initialization can be achieved on a visual interface after simple configuration of machine information is conducted by combining Jenkins, and version iteration is achieved by taking git as version management. The automatic operation and maintenance implementation scheme is mainly implemented based on an anchor, wherein roles (role, service deployment script) are independently compiled, the roles correspond to different basic components such as jdk, tomcat, zookeeper and the like, each role corresponds to one component, and the anchor has the following advantages compared with existing tools in the market:
ansible combines the advantages of a plurality of boss operation and maintenance tools, and basically has the functions which can be realized by pubbet and saltsatck, and ansible can be realized.
2. And the agent does not need to be installed on the client, and only needs to be updated once on the operating machine during updating.
And 3, the ansable is a lightweight tool, the ansable does not need to start a service, only has one tool, and can easily realize distributed extension.
4. Batch task execution can be scripted and executed without distributed remotes.
Ansible is a lightweight automated tool for consistency, high reliability, safety design.
By using the operation and maintenance processing scheme provided by the embodiment of the invention, after a service requirement (service deployment requirement) is received, a role (service deployment script) corresponding to the version of the basic component can be selected autonomously, then the set of codes is held, a machine in a new environment is found, and after an enterprise node is installed, as long as the machine is connected to other machine networks, the effect which the system wants to achieve can be realized after the execution, so that the idea of repeated manual operation which is more and complicated, namely, the infrastructure, namely the codes is omitted, the environment is initialized and coded, and the version of the component in the new environment is selected autonomously. The operation and maintenance processing scheme is described in detail below.
Fig. 1 is a schematic flow chart of an operation and maintenance processing method in an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step 101: acquiring a current service deployment demand parameter;
step 102: determining a current service deployment basic component and version information according to a current service deployment demand parameter;
step 103: determining a service deployment script corresponding to the current service deployment basic component and version information according to the current service deployment basic component and version information and the relation between the multi-type service deployment basic component and version information and the service deployment script;
step 104: and performing service operation and maintenance deployment by using the current service deployment basic component and the service deployment script corresponding to the version information.
The operation and maintenance processing method in the embodiment of the invention works as follows: firstly, acquiring a current service deployment demand parameter; secondly, determining a current service deployment basic component and version information according to a current service deployment demand parameter; secondly, determining a service deployment script corresponding to the current service deployment basic component and version information according to the current service deployment basic component and version information and the relation between the multi-type service deployment basic component and version information and the service deployment script; then, the service operation and maintenance deployment is carried out by using the current service deployment basic component and the service deployment script corresponding to the version information, so that the operation and maintenance processing can be efficiently and accurately carried out, and the efficiency and the accuracy of the operation and maintenance processing can be improved.
The steps involved in the embodiments of the present invention are described in detail below with reference to fig. 2 to 3.
Firstly, a step of establishing a relation between a multi-type service deployment basic component and version information and a service deployment script in advance is introduced.
In an embodiment, the operation and maintenance processing method may further include obtaining a relationship between the multi-type service deployment basic component and the version information and the service deployment script according to the following method:
receiving a service deployment script corresponding to a preset type deployment basic component and compiled by a system administrator;
after the received service deployment script is approved, uploading the service deployment script corresponding to the preset type deployment basic component to a version library;
and setting a version identification for the service deployment script corresponding to the preset type deployment basic component, and finally obtaining the relation.
In specific implementation, the system is initialized by using an enterprise role (here, the role is the role in the enterprise, which is an organization mode, and a group of function implementations can be organized into one role, that is, the role corresponding to the function, such as the role for installing jdk, corresponds to each other, and is modularized and coded, and all system administrators use a set of codes to initialize environments. The role corresponding to the module in fig. 2, and the module 1, module 2, and module 3 in fig. 3 may be service deployment scripts corresponding to different basic components.
In specific implementation, as shown in fig. 2, after an anchor role is created, the role is uploaded to a git version library for management, a corresponding tag (version identifier) is marked, different versions are initialized and distinguished by using the tag, and the role is used as needed, for example, one set of environment uses a tomcat version of 8.34.5, and the other set uses a tomcat version of 9.0.35.
In one embodiment, the service deployment base component may include: a jdk component, a Tomcat component, a Zookeeper component, and a create user group component.
In specific implementation, the preset type deployment basic component may include jdk, tomcat, zookeeper, create user group, and the like.
In specific implementation, the service environment in fig. 2 may be a real service scenario environment, such as a south cloud government product, a shanxi government product, and the like.
In one embodiment, the service deployment script may be written and maintained by multiple system administrators.
During specific implementation, different administrators can write the script of the ansable, and after the audit is passed, people can share the script, so that the cooperative operation is realized, the efficiency is improved, and the environment uniformity is also ensured.
In one embodiment, the operation and maintenance processing method further includes: and forwarding the service deployment scripts written and maintained by a plurality of system administrators to a preset auditing terminal, and storing the approved service deployment scripts when an auditing result sent by the preset auditing terminal is received.
In specific implementation, the service deployment scripts written and maintained by a plurality of system administrators are forwarded to a preset auditing terminal, and after auditing by a responsible person, the service deployment scripts are stored for subsequent use, so that the accuracy and the safety of operation and maintenance processing can be further improved.
In addition, the execution of the infrastructure has idempotent property, namely, the effect of one-time execution and multiple-time execution is the same, so that great convenience is brought to the initialization work, and if a problem occurs, the script only needs to be executed after modification.
When the method is used specifically, after the basic component and the version information are deployed in front, the basic component and the version information are matched in the form to find the service deployment script corresponding to the basic component and the version information in front, the service deployment script can be found in a version library, and the script is used for completing the subsequent operation and maintenance deployment of the service.
Next, the above step 101 is described.
In specific implementation, for example, a new online service project needs to be performed by a series of initialization operations, and the service deployment needs to be mainly new service deployment and system deployment in a new place.
In one embodiment, obtaining the current service deployment requirement parameter may include: and acquiring the current service deployment demand parameters by using a continuous integration tool Jenkins.
In specific implementation, as shown in fig. 3, Jenkins calls a playbook in a role corresponding to an element of an anchor in a parameter passing manner in combination with the anchor. That is, Jenkins is combined with ansable, and corresponding parameters are transmitted to ansable, a module needing initialization is selected, for example, a machine for general application is deployed, a user needs to be created, jdk, tomcat and the like are installed, and ansable can be called in a mode of parameter transmission through Jenkins. Jenkins provides visualization, and operation and maintenance personnel can initialize the system through point pressing, so that the convenience of operation and maintenance is improved.
In one embodiment, the service deployment requirement parameters include different types of service environment parameters.
In specific implementation, as shown in fig. 2, the service deployment requirement parameters may include parameters (service environment parameters) corresponding to different types of service environments.
Third, next, the above step 102 is introduced.
In the step 102, for example, a machine for deploying a general application needs to create a user, install jdk, tomcat, and the like, and the ansable may be called in a manner of checking parameters by Jenkins, that is, the current deployment basic component and version information (for example, low version information) corresponding to the current service parameters are determined.
Fourth, next, the above step 103 is described.
In the step 103, when it is determined that the deployment basic component and the version information are currently deployed, the current deployment basic component and the version information are matched with the table to find the service deployment script corresponding to the current deployment basic component and the version information, and the service deployment script can be found in the version library, and the subsequent service operation and maintenance deployment is completed by using the script.
In one embodiment, the operation and maintenance processing apparatus further includes: and the selection processing unit is used for selecting the current service deployment basic component and the service deployment script corresponding to the version information through the idle-gateway role management component.
In specific implementation, as shown in fig. 3, role with different versions can be selected through an idle-gateway, that is, a current deployment basic component and a service deployment script corresponding to version information are selected.
During specific implementation, the ansible is an automation tool, and makes full use of role (service deployment script) in the function thereof, and then sets the system initialization process as the corresponding role, and the role is used in each execution in each set of environment.
Next, the above step 104 is described.
In one embodiment, the service operation and maintenance deployment is performed by using a current service deployment basic component and a service deployment script corresponding to version information, and the method includes: and initializing the system after the virtual machine is delivered by utilizing the current service deployment basic component and the service deployment script corresponding to the version information.
In specific implementation, an initialization module (a module for implementing initialization of the system after virtual machine delivery) written by yaml (a format for expressing data serialization) provided by ansable and a module (a simple functional module provided by ansable tool) provided by itself can be used, and if update is not required after completion, the initialization module can be used all the time, for example, jdk is installed, and update is generally slow.
In an embodiment, the operation and maintenance processing method may further include: and performing version processing on the service deployment script by using a version management tool Git.
In specific implementation, for the role design writing in the enterprise and the version management mode for the git used by the role, the design scheme corresponding to the component version can be selected autonomously through the enterprise-gateway as required.
In summary, the scheme provided by the embodiment of the invention combines the advantages of the current popular tools on the basis of the ansable, for example, Jenkins provides visualization, operation and maintenance personnel can initialize the system through point pressing, git is used as a version management tool, a complete operation and maintenance tool system is realized, and the operation and maintenance tool system can be used conveniently after being opened. For the same component, if the same version is used in each place, the component can be completely and directly reused, the reuse rate is improved on the basis of reducing complicated manual labor, the working efficiency is greatly improved, the role corresponding to each component is maintained through git, different machine managers use the same set of standard during execution, and management is convenient.
The embodiment of the invention also provides an operation and maintenance processing device, which is described in the following embodiment. Because the principle of the device for solving the problems is similar to the operation and maintenance processing method, the implementation of the device can refer to the implementation of the operation and maintenance processing method, and repeated details are not repeated.
Fig. 4 is a schematic structural diagram of an operation and maintenance processing apparatus according to an embodiment of the present invention, and as shown in fig. 4, the apparatus includes:
an obtaining unit 01, configured to obtain a current service deployment requirement parameter;
the determining unit 02 is used for determining the current service deployment basic component and the version information according to the current service deployment requirement parameter;
the processing unit 03 is configured to determine a service deployment script corresponding to the current service deployment basic component and version information according to the current service deployment basic component and version information and a relationship between the multi-type service deployment basic component and version information and the service deployment script; the service deployment script is compiled and maintained by a plurality of system administrators;
and the operation and maintenance unit 04 is configured to perform service operation and maintenance deployment by using the current service deployment basic component and the service deployment script corresponding to the version information.
The operation and maintenance processing method and device provided by the embodiment of the invention comprise the following steps: the acquiring unit 01 acquires a current service deployment requirement parameter; the determining unit 02 determines the current service deployment basic component and version information according to the current service deployment requirement parameter; the processing unit 03 determines a service deployment script corresponding to the current service deployment basic component and version information according to the current service deployment basic component and version information and the relationship between the multi-type service deployment basic component and version information and the service deployment script; and the operation and maintenance unit 04 deploys the service by using the current service deployment basic component and the service deployment script corresponding to the version information. The invention can improve the efficiency and accuracy of operation and maintenance processing.
In one embodiment, the operation and maintenance unit is specifically configured to: and initializing the system after the virtual machine is delivered by utilizing the current service deployment basic component and the service deployment script corresponding to the version information.
In specific implementation, an initialization module (a module for implementing initialization of the system after virtual machine delivery) written by yaml (a format for expressing data serialization) provided by ansable and a module (a simple functional module provided by ansable tool) provided by itself can be used, and if update is not required after completion, the initialization module can be used all the time, for example, jdk is installed, and update is generally slow.
In one embodiment, the obtaining unit is specifically configured to: and acquiring the current service deployment demand parameters by using a continuous integration tool Jenkins.
In specific implementation, as shown in fig. 3, Jenkins calls a playbook in a role corresponding to an element of an anchor in a parameter passing manner in combination with the anchor. That is, Jenkins is combined with ansable, and corresponding parameters are transmitted to ansable, a module needing initialization is selected, for example, a machine for general application is deployed, a user needs to be created, jdk, tomcat and the like are installed, and ansable can be called in a mode of parameter transmission through Jenkins. Jenkins provides visualization, and operation and maintenance personnel can initialize the system through point pressing, so that the convenience of operation and maintenance is improved.
In an embodiment, the operation and maintenance processing apparatus may further include a version processing unit, configured to: and performing version processing on the service deployment script by using a version management tool Git.
In specific implementation, for the role design writing in the enterprise and the version management mode for the git used by the role, the design scheme corresponding to the component version can be selected autonomously through the enterprise-gateway as required.
In an embodiment, the operation and maintenance processing apparatus further includes a relationship obtaining unit, configured to obtain a relationship between the multi-type service deployment basic component and the version information and the service deployment script according to the following method:
receiving a service deployment script corresponding to a preset type deployment basic component and compiled by a system administrator;
after the received service deployment script is approved, uploading the service deployment script corresponding to the preset type deployment basic component to a version library;
and setting a version identification for the service deployment script corresponding to the preset type deployment basic component, and finally obtaining the relation.
In specific implementation, the system is initialized by using an enterprise role (here, the role is the role in the enterprise, which is an organization mode, and a group of function implementations can be organized into one role, that is, the role corresponding to the function, such as the role for installing jdk, corresponds to each other, and is modularized and coded, and all system administrators use a set of codes to initialize environments. The role corresponding to the module in fig. 2, and the module 1, module 2, and module 3 in fig. 3 may be service deployment scripts corresponding to different basic components.
In specific implementation, as shown in fig. 2, after an anchor role is created, the role is uploaded to a git version library for management, a corresponding tag (version identifier) is marked, different versions are initialized and distinguished by using the tag, and the role is used as needed, for example, one set of environment uses a tomcat version of 8.34.5, and the other set uses a tomcat version of 9.0.35. In addition, the relation between the multi-type service deployment basic component and the version information and the service deployment script can be a table
In one embodiment, the service deployment script is written and maintained by a plurality of system administrators.
During specific implementation, different administrators can write the script of the ansable, and after the audit is passed, people can share the script, so that the cooperative operation is realized, the efficiency is improved, and the environment uniformity is also ensured.
In an embodiment, the operation and maintenance processing apparatus may further include: and the auditing processing unit is used for forwarding the service deployment scripts written and maintained by the system administrators to the preset auditing terminal, and storing the service deployment scripts which pass the auditing when receiving the auditing result sent by the preset auditing terminal.
In specific implementation, the service deployment scripts written and maintained by a plurality of system administrators are forwarded to a preset auditing terminal, and after auditing by a responsible person, the service deployment scripts are stored for subsequent use, so that the accuracy and the safety of operation and maintenance processing can be further improved.
In one embodiment, the service deployment base component comprises: a jdk component, a Tomcat component, a Zookeeper component, and a create user group component.
In specific implementation, the preset type deployment basic component may include jdk, tomcat, zookeeper, create user group, and the like.
In one embodiment, the operation and maintenance processing apparatus further includes: and the selection processing unit is used for selecting the current service deployment basic component and the service deployment script corresponding to the version information through the idle-gateway role management component.
In specific implementation, as shown in fig. 3, role with different versions can be selected through an idle-gateway, that is, a current deployment basic component and a service deployment script corresponding to version information are selected.
In one embodiment, the service deployment requirement parameters include different types of service environment parameters.
In specific implementation, as shown in fig. 2, the service deployment requirement parameters may include parameters (service environment parameters) corresponding to different types of service environments.
An embodiment of the present invention further provides a computer device, as shown in fig. 5, which includes a memory 302, a processor 304, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements any of the receiver circuits and the operation method of the terminal described above.
In particular, the computer device may be a computer terminal, a server or a similar computing device.
An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program for executing any of the above-mentioned receiver circuits and operating methods of a terminal.
In particular, computer-readable storage media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer-readable storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable storage medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
The operation and maintenance processing scheme provided by the embodiment of the invention has the beneficial technical effects that:
the operation and maintenance processing scheme in the embodiment of the invention comprises the following steps: acquiring a current service deployment demand parameter; determining a current service deployment basic component and version information according to a current service deployment demand parameter; determining a service deployment script corresponding to the current service deployment basic component and version information according to the current service deployment basic component and version information and the relation between the multi-type service deployment basic component and version information and the service deployment script; the service operation and maintenance deployment is carried out by using the current service deployment basic component and the service deployment script corresponding to the version information, and the operation and maintenance processing can be efficiently and accurately carried out, so that the efficiency and the accuracy of the operation and maintenance processing can be improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (18)

1.An operation and maintenance processing method is characterized by comprising the following steps:
acquiring a current service deployment demand parameter;
determining a current service deployment basic component and version information according to a current service deployment demand parameter;
determining a service deployment script corresponding to the current service deployment basic component and version information according to the current service deployment basic component and version information and the relation between the multi-type service deployment basic component and version information and the service deployment script;
and performing service operation and maintenance deployment by using the current service deployment basic component and the service deployment script corresponding to the version information.
2. The operation and maintenance processing method according to claim 1, wherein the operation and maintenance deployment of the service is performed by using a service deployment script corresponding to the current service deployment basic component and the version information, and the operation and maintenance deployment method comprises: and initializing the system after the virtual machine is delivered by utilizing the current service deployment basic component and the service deployment script corresponding to the version information.
3. The operation and maintenance processing method according to claim 1, wherein obtaining the current service deployment requirement parameter comprises: and acquiring the current service deployment demand parameters by using a continuous integration tool Jenkins.
4. The operation and maintenance processing method according to claim 1, further comprising: and performing version processing on the service deployment script by using a version management tool Git.
5. The operation and maintenance processing method according to claim 1, further comprising obtaining the relationship between the multi-type service deployment basic component and version information and the service deployment script according to the following method:
receiving a service deployment script corresponding to a preset type deployment basic component and compiled by a system administrator;
after the received service deployment script is approved, uploading the service deployment script corresponding to the preset type deployment basic component to a version library;
and setting a version identification for the service deployment script corresponding to the preset type deployment basic component, and finally obtaining the relation.
6. The operation and maintenance processing method according to claim 1, wherein the service deployment script is written and maintained by a plurality of system administrators.
7. The operation and maintenance processing method of claim 6, further comprising: and forwarding the service deployment scripts written and maintained by a plurality of system administrators to a preset auditing terminal, and storing the approved service deployment scripts when an auditing result sent by the preset auditing terminal is received.
8. The operation and maintenance processing method according to claim 1, wherein the service deployment base component comprises: a jdk component, a Tomcat component, a Zookeeper component, and a create user group component.
9. The operation and maintenance processing method according to claim 1, further comprising: and selecting the current service deployment basic component and the service deployment script corresponding to the version information through the idle-gateway role management component.
10. The operation and maintenance processing method according to claim 1, wherein the service deployment requirement parameters include different types of service environment parameters.
11. An operation and maintenance processing apparatus, comprising:
the acquiring unit is used for acquiring the current service deployment demand parameter;
the determining unit is used for determining the current service deployment basic component and the version information according to the current service deployment demand parameter;
the processing unit is used for determining a service deployment script corresponding to the current service deployment basic component and the version information according to the current service deployment basic component and the version information and the relationship between the multi-type service deployment basic component and the version information and the service deployment script; the service deployment script is compiled and maintained by a plurality of system administrators;
and the operation and maintenance unit is used for deploying the service by utilizing the current service deployment basic component and the service deployment script corresponding to the version information.
12. The operation and maintenance processing apparatus according to claim 11, wherein the operation and maintenance unit is specifically configured to: and initializing the system after the virtual machine is delivered by utilizing the current service deployment basic component and the service deployment script corresponding to the version information.
13. The operation and maintenance processing apparatus according to claim 11, wherein the obtaining unit is specifically configured to: and acquiring the current service deployment demand parameters by using a continuous integration tool Jenkins.
14. The operation and maintenance processing device of claim 11, further comprising a version processing unit to: and performing version processing on the service deployment script by using a version management tool Git.
15. The operation and maintenance processing device according to claim 11, further comprising a relationship obtaining unit, configured to obtain the relationship between the multi-type service deployment basic component and the version information and the service deployment script according to the following method:
receiving a service deployment script corresponding to a preset type deployment basic component and compiled by a system administrator;
after the received service deployment script is approved, uploading the service deployment script corresponding to the preset type deployment basic component to a version library;
and setting a version identification for the service deployment script corresponding to the preset type deployment basic component, and finally obtaining the relation.
16. The operation and maintenance processing device of claim 11, wherein the service deployment script is written and maintained by a plurality of system administrators.
17. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 10 when executing the computer program.
18. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1 to 10.
CN202110515479.2A 2021-05-12 2021-05-12 Operation and maintenance processing method and device Pending CN113282332A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110515479.2A CN113282332A (en) 2021-05-12 2021-05-12 Operation and maintenance processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110515479.2A CN113282332A (en) 2021-05-12 2021-05-12 Operation and maintenance processing method and device

Publications (1)

Publication Number Publication Date
CN113282332A true CN113282332A (en) 2021-08-20

Family

ID=77278639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110515479.2A Pending CN113282332A (en) 2021-05-12 2021-05-12 Operation and maintenance processing method and device

Country Status (1)

Country Link
CN (1) CN113282332A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114840225A (en) * 2022-04-26 2022-08-02 光大科技有限公司 Application deployment method and device, storage medium and electronic device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114840225A (en) * 2022-04-26 2022-08-02 光大科技有限公司 Application deployment method and device, storage medium and electronic device
CN114840225B (en) * 2022-04-26 2023-09-19 光大科技有限公司 Application deployment method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
US11301287B2 (en) Pattern-based orchestration of cloud provisioning tasks at runtime
CN107291438B (en) Automatic script generation method and device and electronic equipment
CN110795108B (en) Method for deploying Weblogic application based on Ansible layout
CN110362490B (en) Automatic testing method and system for integrating iOS and Android mobile applications
CN111459539A (en) Continuous integration pipeline operation method and device based on mirror layering
CN111399814A (en) Visual arrangement method and device for construction tasks
US20230401058A1 (en) Semantic functional wrappers of services
CN111459606A (en) Method for quickly creating virtual machine under virtualization and server
CN111459506A (en) Deployment method, device, medium and electronic equipment of deep learning platform cluster
CN111913889A (en) Test system building method and test system
US10990264B2 (en) User interface development in a transcompiling environment
You et al. A comparative study of cross-platform mobile application development
CN115291946A (en) Hongmong system transplanting method, device, electronic equipment and readable medium
CN113282332A (en) Operation and maintenance processing method and device
CN116569141A (en) Workflow repair
CN112328225A (en) Page operation method and operation system thereof
CN113220561A (en) Test case management method, device, equipment and medium
US11640281B2 (en) Tool for introspection in object-oriented source code
CN111858302B (en) Method and device for testing small program, electronic equipment and storage medium
US20200344305A1 (en) Commissioning a virtualised network function
CN112685051A (en) Method, device, platform and storage medium for automatically executing shell script
CN112698918A (en) Virtual machine file generation method and device based on construction environment
CN112181403A (en) Development, operation and maintenance integration realization method, device and equipment and readable storage medium
CN112130962A (en) Continuous delivery platform and method for deploying application system by using same
CN111880775A (en) Multi-module layered architecture implementation method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20221010

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 12 / F, 15 / F, No. 99, Yincheng Road, Shanghai pilot Free Trade Zone, 200120

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.