CN115543793A - System deployment method and device of target server and operation and maintenance center station - Google Patents
System deployment method and device of target server and operation and maintenance center station Download PDFInfo
- Publication number
- CN115543793A CN115543793A CN202211176895.5A CN202211176895A CN115543793A CN 115543793 A CN115543793 A CN 115543793A CN 202211176895 A CN202211176895 A CN 202211176895A CN 115543793 A CN115543793 A CN 115543793A
- Authority
- CN
- China
- Prior art keywords
- deployment
- target server
- data
- maintenance
- code
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3604—Analysis of software for verifying properties of programs
- G06F11/3612—Analysis of software for verifying properties of programs by runtime analysis
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/362—Debugging of software
- G06F11/3624—Debugging of software by performing operations on the source code, e.g. via a compiler
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/362—Debugging of software
- G06F11/366—Debugging of software using diagnostics
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention provides a system deployment method, a system deployment device and an operation and maintenance console of a target server, which can be used in the technical field of artificial intelligence, wherein the method comprises the following steps: acquiring system data of a target server; carrying out environment deployment on the target server according to the system data through an operation and maintenance tool; in response to receiving an environment deployment completion message sent by the operation and maintenance tool, code deployment is performed on the target server through the continuous integration tool, system deployment of the target server is completed, system deployment is performed automatically, abnormal problems in the deployment process can be reduced, and deployment efficiency is improved.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for deploying a system of a target server, and an operation and maintenance console.
Background
Under the background of bank digital transformation, along with the rapid increase of operation and maintenance scale and size, higher requirements on improving configuration accuracy, monitoring effectiveness, operation automation and safety refinement are provided. In the related technology, operation and maintenance personnel issue a terminal instruction through a chat robot to realize operation and maintenance operation. However, when the system is deployed, because the interior of the system is complex, the manual work of operation and maintenance personnel is completely relied on, so that more abnormal deployment problems and low deployment efficiency are caused.
Disclosure of Invention
The invention aims to provide a system deployment method of a target server, which can automatically perform system deployment, reduce abnormal problems in the deployment process and improve the deployment efficiency. Another object of the present invention is to provide an operation and maintenance platform. It is yet another object of the present invention to provide a computer readable medium. It is a further object of the present invention to provide a computer apparatus.
In order to achieve the above object, an aspect of the present invention discloses a system deployment method for a target server, including:
acquiring system data of a target server;
through an operation and maintenance tool, environment deployment is carried out on a target server according to system data;
and responding to the received environment deployment completion message sent by the operation and maintenance tool, and performing code deployment on the target server through the continuous integration tool to complete system deployment of the target server.
Preferably, the acquiring system data of the target server includes:
and acquiring system data of the target server through the configuration center.
Preferably, the system data includes basic data and environmental data;
before the system data of the target server is acquired through the configuration center, the method further comprises the following steps:
acquiring basic data of a target server through data acquisition software;
receiving environment data of a target server input by a user;
and sending the basic data and the environmental data to a configuration center, so that the configuration center stores the basic data and the environmental data of the target server.
Preferably, the performing, by the operation and maintenance tool, the environment deployment on the target server according to the system data includes:
and according to the system data, calling an environment deployment instruction in the operation and maintenance tool so that the operation and maintenance tool sends the pre-configured environment deployment file to the target server, so that the target server performs environment deployment according to the environment deployment file.
Preferably, the code deployment is performed on the target server through a persistent integration tool, and the method comprises the following steps:
and sending a code deployment instruction to a continuous integration tool, wherein the code deployment instruction comprises a code path, so that the continuous integration tool acquires a code file to be deployed from the distributed version control system according to the code path, and compiles and deploys according to the code file to be deployed.
Preferably, after the system deployment of the target server is completed, the method further includes:
and starting the target server, and performing health verification on the target server in a health check mode to obtain a verification result.
The invention also discloses a system deployment device of the target server, which comprises:
the operation and maintenance platform comprises an operation and maintenance middle platform, an operation and maintenance tool and a continuous integration tool;
the operation and maintenance platform is used for acquiring system data of the target server; calling an operation and maintenance tool, and carrying out environment deployment on the target server according to the system data; in response to receiving an environment deployment completion message sent by the operation and maintenance tool, calling a continuous integration tool, and performing code deployment on a target server to complete system deployment of the target server;
the operation and maintenance tool is used for carrying out environment deployment on the target server according to the system data;
the persistent integration tool is used for code deployment on the target server.
Preferably, the system further comprises: a configuration center;
the configuration center is used for acquiring system data of the target server.
Preferably, the system data includes basic data and environmental data;
the operation and maintenance platform is also used for acquiring basic data of the target server through data acquisition software; receiving environment data of a target server input by a user; and sending the basic data and the environmental data to a configuration center, so that the configuration center stores the basic data and the environmental data of the target server.
Preferably, the system further comprises: a target server;
the operation and maintenance tool is used for sending the pre-configured environment deployment file to the target server;
the target server is used for carrying out environment deployment according to the environment deployment file.
Preferably, the operation and maintenance platform is further configured to send a code deployment instruction to the persistent integration tool, where the code deployment instruction includes a code path;
and the continuous integration tool is used for acquiring the code file to be deployed from the distributed version control system by the code path, and compiling and deploying according to the code file to be deployed.
Preferably, the operation and maintenance platform is further configured to start the target server, and perform health verification on the target server in a health check manner to obtain a verification result.
The invention also discloses an operation and maintenance middle platform, which comprises:
an acquisition unit configured to acquire system data of a target server;
the environment deployment unit is used for carrying out environment deployment on the target server according to the system data through the operation and maintenance tool;
and the code deployment unit is used for responding to the received environment deployment completion message sent by the operation and maintenance tool, and performing code deployment on the target server through the continuous integration tool to complete system deployment of the target server.
The invention also discloses a computer-readable medium, on which a computer program is stored which, when executed by a processor, implements a method as described above.
The invention also discloses a computer device comprising a memory for storing information comprising program instructions and a processor for controlling the execution of the program instructions, the processor implementing the method as described above when executing the program.
The invention also discloses a computer program product comprising computer programs/instructions which, when executed by a processor, implement the method as described above.
The method comprises the steps of acquiring system data of a target server; through an operation and maintenance tool, environment deployment is carried out on a target server according to system data; in response to receiving an environment deployment completion message sent by the operation and maintenance tool, code deployment is performed on the target server through the continuous integration tool, system deployment of the target server is completed, system deployment is performed automatically, abnormal problems in the deployment process can be reduced, and deployment efficiency is 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.
Fig. 1 is a schematic structural diagram of a system deployment apparatus of a target server according to an embodiment of the present invention;
fig. 2 is a flowchart of a system deployment method of a target server according to an embodiment of the present invention;
fig. 3 is a flowchart of a system deployment method of a target server according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of an operation and maintenance platform according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the method, the apparatus, and the operation and maintenance station for deploying a system of a target server disclosed in the present application may be applied to the technical field of artificial intelligence, and may also be applied to any fields other than the technical field of artificial intelligence.
In order to facilitate understanding of the technical solutions provided in the present application, the following first describes relevant contents of the technical solutions in the present application. Under the background of bank digital transformation, along with the rapid increase of operation and maintenance scale and size, higher requirements on improving configuration accuracy, monitoring effectiveness, operation automation and safety refinement are provided. Besides safety and stability, efficient operation and maintenance, refined operation and maintenance, automation and intelligent operation and maintenance have long become key requirements for improving operation and maintenance quality, an innovative mechanism with full fusion of agile development and efficient operation and maintenance needs to be established, and stable, safe, quick and accurate production operation guarantee is provided for the new-era innovation and development of banks.
The bank system has the characteristics of large number of servers, single function of each server, simple deployment of server environments, large number of servers in the same system, multiple sets of environments to be deployed in the same system and fixed code deployment modes. The server environment can be deployed in batch, and the code deployment can be automatically deployed by using a fixed mode. Aiming at the characteristics of server environment deployment and code deployment of a bank system, the invention combines operation and maintenance of server environment deployment with automatic code deployment through an operation and maintenance middle platform, realizes the environment deployment and basic operation and maintenance of a server through an operation and maintenance tool (infrastructure), and realizes the automatic code deployment through a continuous integration tool (Jenkins) and the infrastructure. The resources are monitored in real time through the monitoring system, and when problems are found, the resources of the server are allocated through the operation and maintenance middleboxes, and the like, so that the normal operation of the system is guaranteed. The intelligent automatic operation and maintenance platform is not simply integrated with the daily work of operation and maintenance personnel, and secondly, an operation and maintenance tool is adopted to summarize and refine the operation and maintenance process, so that the automatic inspection, the intelligent fault repair and the reasonable configuration of resource application and software are realized in the daily operation and maintenance work. The operation and maintenance center can share operation and maintenance service capacity, data capacity and computing capacity, operation and maintenance activities can be abstracted, operation and maintenance of the server and automatic deployment are managed in a unified mode through the operation and maintenance center, and monitoring, management, control, analysis and ministry of all major operation and maintenance deployment of the bank system are integrated by means of the center.
Fig. 1 is a schematic structural diagram of a system deployment apparatus of a target server according to an embodiment of the present invention, and as shown in fig. 1, the system includes: the operation and maintenance platform 11, the operation and maintenance tool 12 and the continuous integration tool 13, wherein the operation and maintenance platform 11 is respectively connected with the operation and maintenance tool 12 and the continuous integration tool 13.
The operation and maintenance console 11 comprises a visual operation interface, and a user can allocate resources by inputting instructions in the operation and maintenance console 11, so as to automatically complete environment deployment and code automatic deployment. The central station 11 is mainly used for central control and scheduling. Resources such as a Central Processing Unit (CPU), a memory, and a storage of the server of the operation and maintenance center 11 are configured according to actual conditions, and the operation and maintenance center 11 adopts a distributed architecture, so that the service of the operation and maintenance center 11 can be continuously and effectively operated. And ensures that the operation and maintenance platform 11 server can communicate with all other servers of the system.
The operation and maintenance platform 11 is used for acquiring system data of a target server; calling the operation and maintenance tool 12, and performing environment deployment on the target server according to the system data; and in response to receiving the environment deployment completion message sent by the operation and maintenance tool 12, calling the persistent integration tool 13 to perform code deployment on the target server, and completing system deployment of the target server.
The operation and maintenance tool 12 is used for performing environment deployment on the target server according to the system data.
The persistent integration tool 13 is used to deploy code to the target servers.
In the embodiment of the present invention, the system further includes: the configuration center 14, the configuration center 14 is connected with the operation and maintenance platform 11.
The configuration center 14 is used to obtain system data of the target server. The configuration center 14 is used for storing system data, deployment files and other variables.
In the embodiment of the invention, the system data comprises basic data and environment data; the operation and maintenance platform 11 is also used for acquiring basic data of the target server through data acquisition software; receiving environment data of a target server input by a user; the basic data and the environmental data are sent to the configuration center 14 for the configuration center 14 to store the basic data and the environmental data of the target server.
In an embodiment of the present invention, the system further includes: the target server 15. The target server 15 is respectively connected with the operation and maintenance platform 11, the operation and maintenance tool 12, the continuous integration tool 13 and the configuration center 14.
The operation and maintenance tool 12 is configured to send the pre-configured environment deployment file to the target server 15.
The target server 15 is used for environment deployment according to the environment deployment file.
In this embodiment of the present invention, the operation and maintenance console 11 is further configured to send a code deployment instruction to the persistent integration tool 13, where the code deployment instruction includes a code path.
The persistent integration tool 13 is configured to obtain a code file to be deployed from a distributed version control (GIT) system through a code path, and compile and deploy the code file according to the code file to be deployed.
In the embodiment of the present invention, the operation and maintenance console 11 is further configured to start the target server 15, and perform health verification on the target server 15 in a health check manner to obtain a verification result.
In the embodiment of the invention, the system deployment device of the target server can collect various information, and then distributes the collected result to various systems as required, so as to provide data support for different operation and maintenance management, further reduce the maintenance cost of database management and improve the efficiency of operation and maintenance operation; the execution is convenient, and the operation and maintenance personnel can flexibly operate according to the operation and maintenance requirements through the process and flexible authorization of the script, so that various system tasks can be quickly and conveniently completed; standardized operation and maintenance scenes can be flexibly selected according to actual requirements, and various operation and maintenance processes and steps can be customized according to the requirements of operation and maintenance personnel; automatic routing inspection, intelligent fault repair, resource application and reasonable software configuration can be realized in daily operation and maintenance work.
It should be noted that the system shown in fig. 1 is also used for implementing the system deployment method of the target server shown in fig. 2 or fig. 3, and details thereof are not repeated herein.
The following describes an implementation process of the system deployment method of the target server according to an embodiment of the present invention, taking the operation and maintenance center as an execution subject. It can be understood that the execution subject of the system deployment method of the target server provided by the embodiment of the present invention includes, but is not limited to, the middle station of operation and maintenance.
Fig. 2 is a flowchart of a method for deploying a system of a target server according to an embodiment of the present invention, as shown in fig. 2, the method includes:
In the embodiment of the invention, the system data comprises basic data and environment data.
And 102, carrying out environment deployment on the target server through the operation and maintenance tool according to the system data.
And 103, responding to the received environment deployment completion message sent by the operation and maintenance tool, and performing code deployment on the target server through the continuous integration tool to complete system deployment of the target server.
It should be noted that the technical solutions in the present application, such as obtaining, storing, using, and processing data, all conform to relevant regulations of national laws and regulations. The user information in the embodiment of the application is obtained through legal compliance, and the user information is obtained, stored, used, processed and the like through authorization approval of a client.
According to the technical scheme provided by the embodiment of the invention, system data of a target server is obtained; carrying out environment deployment on the target server according to the system data through an operation and maintenance tool; in response to receiving an environment deployment completion message sent by the operation and maintenance tool, code deployment is performed on the target server through the continuous integration tool, system deployment of the target server is completed, system deployment is performed automatically, abnormal problems in the deployment process can be reduced, and deployment efficiency is improved.
Fig. 3 is a flowchart of a system deployment method of a target server according to another embodiment of the present invention, as shown in fig. 3, the method includes:
In the embodiment of the invention, each step is an operation and maintenance middle station.
In the embodiment of the invention, the data acquisition software is a server cluster statistical information plug-in (nodod), including but not limited to the server model, the number of CPUs (central processing units), the memory size, the network condition and the storage size.
A distributed unified data acquisition system is constructed on an operation and maintenance platform framework, and configuration discovery and data acquisition of various resources are realized through a unified agent framework. A server cluster statistical information plug-in (nodnod) based on a full duplex communication protocol (Websocket) of a TCP is installed on all nodes, an operation and maintenance middle station sends a json request, a target server node receives basic data of a target server which is requested to be sent, the operation and maintenance middle station uniformly processes and displays the basic data on a network product Interface (Website User Interface, webUI for short) of the operation and maintenance middle station, and a User can observe information of all machines through simple operation.
In the embodiment of the invention, a user adds a target server to be controlled to an operation and maintenance intermediate station for control, and inputs the environmental data of the target server to the operation and maintenance intermediate station. The context data includes, but is not limited to, network address (IP) and usage information.
And step 203, sending the basic data and the environmental data to a configuration center, so that the configuration center stores the basic data and the environmental data of the target server.
In the embodiment of the invention, the basic data and the environmental data are used as system data and are sent to the configuration center, and the configuration center stores the system data under the target server.
In the embodiment of the invention, the configuration center is constructed on an operation and maintenance platform, the basic data and the environmental data of the target server and the basic parameters of the middleware on the target server are extracted into environment deployment variables, different environments are endowed with different values of the variables, the variables can be correlated with each other and can be modified simultaneously. The configuration center integrally adopts a C/S mode, a data storage system (Etcd) is installed as a server to store data, a configuration management tool (Confd) is installed as a client to update the Etcd by taking data, the Confd is matched with the Etcd, and the corresponding configuration files are updated in a real-time monitoring and dynamic refreshing mode to achieve the function of configuration management. The environment deployment variables in the configuration center are stored in the operation and maintenance platform, can be manually modified and increased, only the variable names are used when the configuration center is used, the trouble of modifying a large number of files due to the fact that basic configuration change is omitted is avoided, and convenience of configuration management is improved.
And step 204, acquiring system data of the target server through the configuration center.
In the embodiment of the invention, the system data comprises basic data and environment data. The configuration center stores system data corresponding to each server. Specifically, system data corresponding to the target server is obtained from the configuration center.
In the embodiment of the invention, an operation and maintenance tool (infrastructure) is constructed on an operation and maintenance middle desk, wherein the infrastructure comprises a user display layer which is displayed to a user in a webUI mode, a data processing layer which can manage user operation information and provide service for the user, and a controlled object layer of a controlled server and a controlled virtual machine. The user can select an operation object and a common operation command through the front end of the web of the operation and maintenance center station or manually input the operation command to perform batch execution. The method comprises the steps of installing an infrastructure on an operation and maintenance middle platform server, distinguishing the servers according to a data system, a deployment environment, server purposes and the like, configuring server host (host) information on the infrastructure, compiling some basic commands, scripts, operation flows and the like into go language scripts, placing the go language scripts under an infrastructure specified directory, and rapidly completing some repetitive operations by calling the go language scripts.
In the embodiment of the invention, the environment deployment instruction comprises a software installation command or a configuration file updating instruction; the environment deployment files include, but are not limited to, the base environment software installation package, middleware, and configuration files, such as: an oracle database installation package and an oracle base configuration file. Specifically, the operation and maintenance middle station calls an infrastructure environment deployment instruction according to system data; the Ansible responds to the environment deployment instruction and sends the environment deployment file to the target server; and the target server performs environment deployment according to the environment deployment file. The middleware is a type of software which can cooperate and communicate and share resources for one or more application programs and can provide related services for the application program. For example: tomcat, webshare, etc.
Further, after the environment deployment is completed, the infrastructure sends an environment deployment completion message to the operation and maintenance console.
And step 206, responding to the received environment deployment completion message sent by the operation and maintenance tool, sending a code deployment instruction to the continuous integration tool, wherein the code deployment instruction comprises a code path, so that the continuous integration tool obtains a code file to be deployed from a distributed version control (Git) system according to the code path, and compiling and deploying according to the code file to be deployed to complete system deployment of the target server.
In the embodiment of the invention, a continuous integration tool (Jenkins) is constructed on an operation and maintenance platform, business plug-ins are added on the Jenkins according to actual requirements, and a corresponding automatic deployment pipeline is constructed according to corresponding data systems, environments, deployment requirements and the like. The Jenkins automatic deployment assembly line controls the Ansine to send a code deployment command containing variable information according to system data of a target server. The automatic deployment pipeline is an automatic task which is constructed by Jenkins and is used for carrying out a series of operations such as code pulling, code compiling, code deployment and the like in a way of carrying out the process on schedule. Specifically, the compiling server pulls a corresponding code file to be deployed of the latest version on the Git system, then carries out code compiling through the compiling server, compresses and transmits the compiled code to a corresponding target server, and after the target server receives a new code packet, decompresses and deploys the code and restarts the service to enable the new code to take effect.
And step 207, starting the target server, and performing health verification on the target server in a health check mode to obtain a verification result.
In the embodiment of the invention, the operation and maintenance platform starts the service deployed on the target server, and verifies the service in a health check mode and the like to obtain a verification result so as to verify whether the service can be normally started. Health check modes include, but are not limited to, HTTP health check, TCP health check, UDP health check, and Ping health check.
In the embodiment of the invention, the operation and maintenance middle platform comprises three management parts, namely server management, configuration management and automatic deployment management. The server management is mainly to perform batch operation and maintenance management on the servers through the infrastructure and can add target servers to be controlled. Configuration management is mainly to manage server system data, basic parameters of middleware on a server and the like, and refine the system data, the basic parameters and the like into environment deployment variables and the like. The automatic deployment management is mainly used for managing the assembly lines deployed by each system and each environment. The operation and maintenance middle platform also provides a flow construction, the server operation and the automatic deployment are combined, the operation flow can be added manually, and the automation of the whole production step is realized through an automatic deployment assembly line of the infrastructure and Jenkins.
Furthermore, monitoring software is also set up on the operation and maintenance platform, and the monitoring software includes but is not limited to Prometheus or zabbix and the like; the method comprises the steps that operation indexes of all servers are periodically monitored through monitoring software, so that the resource use condition of the servers and the service operation condition on the servers are monitored in real time; if the monitoring software monitors that the operation index is abnormal, early warning information is sent to the administrator terminal through the operation and maintenance console so as to inform the administrator to carry out one-field processing on the abnormal server. Further, the operation and maintenance platform is pre-configured with an emergency plan of an abnormal server, for example: and switching disaster recovery servers, expanding server resources and the like, and pushing corresponding emergency plans to the administrator terminal according to actual conditions when the servers are abnormal. The administrator can execute the recommended emergency plan through the terminal, can check the fault log information through the operation and maintenance intermediate station, analyzes the log information, and can restore the environment through the operation and maintenance intermediate station after the server is maintained.
In the technical scheme of the system deployment method of the target server provided by the embodiment of the invention, system data of the target server is obtained; carrying out environment deployment on the target server according to the system data through an operation and maintenance tool; in response to receiving an environment deployment completion message sent by the operation and maintenance tool, code deployment is performed on the target server through the continuous integration tool, system deployment of the target server is completed, system deployment is performed automatically, abnormal problems in the deployment process can be reduced, and deployment efficiency is improved.
Fig. 4 is a schematic structural diagram of an operation and maintenance center station according to an embodiment of the present invention, configured to execute the system deployment method of the target server, as shown in fig. 4, the operation and maintenance center station includes: an acquisition unit 11, an environment deployment unit 12, and a code deployment unit 13.
The acquiring unit 11 is used for acquiring system data of a target server.
The environment deployment unit 12 is configured to perform environment deployment on the target server according to the system data through the operation and maintenance tool.
The code deployment unit 13 is configured to perform code deployment on the target server through the persistent integration tool in response to receiving the environment deployment completion message sent by the operation and maintenance tool, so as to complete system deployment of the target server.
In this embodiment of the present invention, the obtaining unit 11 is specifically configured to obtain system data of the target server through the configuration center.
In the embodiment of the invention, the system data comprises basic data and environment data; the device also includes: an acquisition unit 14, a receiving unit 15 and a transmitting unit 16.
The acquisition unit 14 is used for acquiring basic data of the target server through data acquisition software.
The receiving unit 15 is used for receiving environment data of a target server input by a user.
The sending unit 16 is configured to send the basic data and the environmental data to the configuration center, so that the configuration center stores the basic data and the environmental data of the target server.
In the embodiment of the present invention, the environment deployment unit 12 is specifically configured to invoke an environment deployment instruction in the operation and maintenance tool according to the system data, so that the operation and maintenance tool sends the pre-configured environment deployment file to the target server, so that the target server performs environment deployment according to the environment deployment file.
In this embodiment of the present invention, the code deployment unit 13 is specifically configured to send a code deployment instruction to the persistent integration tool, where the code deployment instruction includes a code path, so that the persistent integration tool obtains a code file to be deployed from the distributed version control system according to the code path, and compiles and deploys the code file according to the code file to be deployed.
In the embodiment of the present invention, the apparatus further includes: the unit 17 is started.
The starting unit 17 is configured to start the target server, and perform health verification on the target server in a health check manner to obtain a verification result.
In the scheme of the embodiment of the invention, system data of a target server is obtained; carrying out environment deployment on the target server according to the system data through an operation and maintenance tool; in response to receiving an environment deployment completion message sent by the operation and maintenance tool, code deployment is performed on the target server through the continuous integration tool, system deployment of the target server is completed, system deployment is performed automatically, abnormal problems in the deployment process can be reduced, and deployment efficiency is improved.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer device, which may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
Embodiments of the present invention provide a computer device, which includes a memory and a processor, the memory is used for storing information including program instructions, the processor is used for controlling execution of the program instructions, and the program instructions are loaded by the processor and executed to implement the steps of the embodiments of the system deployment method of the target server.
Referring now to FIG. 5, shown is a schematic diagram of a computer device 600 suitable for use in implementing embodiments of the present application.
As shown in fig. 5, the computer apparatus 600 includes a Central Processing Unit (CPU) 601 which can execute various appropriate jobs and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the computer apparatus 600 are also stored. The CPU601, ROM602, and RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output section 607 including a Cathode Ray Tube (CRT), a liquid crystal feedback (LCD), and the like, and a speaker and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted as necessary on the storage section 608.
In particular, the processes described above with reference to the flowcharts may be implemented as a computer software program according to an embodiment of the present invention. For example, embodiments of the invention include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609 and/or installed from the removable medium 611.
Computer-readable 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 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 medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
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.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
According to the technical scheme, the data acquisition, storage, use, processing and the like meet relevant regulations of national laws and regulations.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of the present application shall be included in the scope of the claims of the present application.
Claims (16)
1. A method for system deployment of a target server, the method comprising:
acquiring system data of a target server;
carrying out environment deployment on the target server according to the system data through an operation and maintenance tool;
and responding to the received environment deployment completion message sent by the operation and maintenance tool, and performing code deployment on the target server through the continuous integration tool to complete the system deployment of the target server.
2. The method for system deployment of target servers according to claim 1, wherein the obtaining of system data of target servers comprises:
and acquiring the system data of the target server through a configuration center.
3. The target server system deployment method of claim 2, wherein the system data includes base data and environment data;
before the obtaining, by the configuration center, the system data of the target server, the method further includes:
acquiring basic data of the target server through data acquisition software;
receiving environment data of the target server input by a user;
and sending the basic data and the environmental data to the configuration center so that the configuration center stores the basic data and the environmental data of the target server.
4. The method for deploying a system of target servers according to claim 1, wherein the performing, by an operation and maintenance tool, environmental deployment on the target servers according to the system data comprises:
and calling an environment deployment instruction in the operation and maintenance tool according to the system data so as to enable the operation and maintenance tool to send a pre-configured environment deployment file to the target server, so that the target server performs environment deployment according to the environment deployment file.
5. The method for system deployment of target servers according to claim 1, wherein said code deployment of said target servers by a persistent integration tool comprises:
and sending a code deployment instruction to the continuous integration tool, wherein the code deployment instruction comprises a code path, so that the continuous integration tool acquires a code file to be deployed from a distributed version control system according to the code path, and compiles and deploys according to the code file to be deployed.
6. The method for system deployment of target servers according to claim 1, further comprising, after completing the system deployment of the target servers:
and starting the target server, and carrying out health verification on the target server in a health check mode to obtain a verification result.
7. A system deployment apparatus of a target server, the system comprising: the system comprises an operation and maintenance middle platform, an operation and maintenance tool and a continuous integration tool;
the operation and maintenance platform is used for acquiring system data of a target server; calling the operation and maintenance tool, and performing environment deployment on the target server according to the system data; in response to receiving an environment deployment completion message sent by the operation and maintenance tool, calling the continuous integration tool, and performing code deployment on the target server to complete system deployment of the target server;
the operation and maintenance tool is used for carrying out environment deployment on the target server according to the system data;
the persistent integration tool is used for deploying code to the target server.
8. The target server system deployment apparatus of claim 7, wherein the system further comprises: a configuration center;
the configuration center is used for acquiring the system data of the target server.
9. The target server system deployment apparatus of claim 8, wherein the system data comprises base data and environment data;
the operation and maintenance middle station is also used for acquiring basic data of the target server through data acquisition software; receiving environment data of the target server input by a user; and sending the basic data and the environmental data to the configuration center so that the configuration center stores the basic data and the environmental data of the target server.
10. The system deployment device of target servers of claim 7, wherein the system further comprises: a target server;
the operation and maintenance tool is used for sending a pre-configured environment deployment file to the target server;
and the target server is used for carrying out environment deployment according to the environment deployment file.
11. The system deployment apparatus of target servers according to claim 7,
the operation and maintenance platform is further used for sending a code deployment instruction to the continuous integration tool, wherein the code deployment instruction comprises a code path;
and the continuous integration tool is used for acquiring a code file to be deployed from a distributed version control system by the code path, and compiling and deploying according to the code file to be deployed.
12. The system deployment apparatus of target servers according to claim 7,
the operation and maintenance platform is also used for starting the target server and carrying out health verification on the target server in a health check mode to obtain a verification result.
13. An operation and maintenance platform, comprising:
an acquisition unit configured to acquire system data of a target server;
the environment deployment unit is used for performing environment deployment on the target server according to the system data through an operation and maintenance tool;
and the code deployment unit is used for responding to the received environment deployment completion message sent by the operation and maintenance tool, and performing code deployment on the target server through the continuous integration tool to complete system deployment of the target server.
14. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of system deployment of a target server according to any one of claims 1 to 6.
15. A computer device comprising a memory for storing information including program instructions and a processor for controlling the execution of the program instructions, characterized in that the program instructions are loaded and executed by the processor to implement the system deployment method of a target server according to any one of claims 1 to 6.
16. A computer program product comprising computer programs/instructions, characterized in that said computer programs/instructions, when executed by a processor, implement the system deployment method of a target server according to any of claims 1 to 6.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211176895.5A CN115543793A (en) | 2022-09-26 | 2022-09-26 | System deployment method and device of target server and operation and maintenance center station |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211176895.5A CN115543793A (en) | 2022-09-26 | 2022-09-26 | System deployment method and device of target server and operation and maintenance center station |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115543793A true CN115543793A (en) | 2022-12-30 |
Family
ID=84728604
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211176895.5A Pending CN115543793A (en) | 2022-09-26 | 2022-09-26 | System deployment method and device of target server and operation and maintenance center station |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115543793A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116400928A (en) * | 2023-02-08 | 2023-07-07 | 广东名阳信息科技有限公司 | Method and system for improving operation and maintenance efficiency based on log data |
-
2022
- 2022-09-26 CN CN202211176895.5A patent/CN115543793A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116400928A (en) * | 2023-02-08 | 2023-07-07 | 广东名阳信息科技有限公司 | Method and system for improving operation and maintenance efficiency based on log data |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108234168B (en) | Data display method and system based on service topology | |
| US10171377B2 (en) | Orchestrating computing resources between different computing environments | |
| CN113778623B (en) | Resource processing method and device, electronic equipment and storage medium | |
| EP3128416B1 (en) | Sdn application integration, management and control method, system and device | |
| CN104021078B (en) | Software supervision device and method | |
| CN113778486B (en) | Method, device, medium and equipment for containerization processing of code pipeline | |
| US9268546B2 (en) | Deployment and hosting of platform independent applications | |
| CN113626002A (en) | Service execution method and device | |
| US9197720B2 (en) | Deployment and hosting of platform independent applications | |
| CN110865840B (en) | Application management method, device, server and storage medium | |
| CN110109684B (en) | Block chain link point management proxy service installation method, electronic device and storage medium | |
| CN105721547A (en) | Method and device for cooperative processing business | |
| CN115129574A (en) | Code testing method and device | |
| CN113419818B (en) | Basic component deployment method, device, server and storage medium | |
| CN115543793A (en) | System deployment method and device of target server and operation and maintenance center station | |
| CN110557281B (en) | Intelligent operation and maintenance method and device based on CMDB and alarm map | |
| CN114816477A (en) | Server upgrading method, device, equipment, medium and program product | |
| CN117873683A (en) | Task processing method and device | |
| CN115550424B (en) | Data caching method, device, equipment and storage medium | |
| CN113448609B (en) | Container upgrading method, device, equipment and storage medium | |
| CN116755799A (en) | Service arrangement system and method | |
| CN113010363B (en) | Container monitoring method under swarm clusters and shared service cloud platform | |
| CN111400060B (en) | Equipment linkage method, device, server and medium | |
| CN115168134A (en) | Container information processing system, method, electronic device, and storage medium | |
| CN110727457B (en) | Component management method and device, storage medium and electronic equipment |
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 |