Operation and maintenance automation-based business system online method and system
By using operation and maintenance automation technology in the online launch of the business system, the problems of low reliability and low efficiency caused by manual operations in the existing technology are solved, and a more efficient and reliable business system launch process is achieved.
Patent Information
- Application Number
- CN202411883730.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-04-08
AI Technical Summary
The existing business system launch method relies on manual operations, resulting in low reliability and low efficiency.
Using an operation and maintenance automation method, the automatic operation and maintenance tool is used to install offline on the control host, configure the host list and variable configuration files, arrange the operation and maintenance script files, automatically execute the online tasks, and reduce manual intervention.
It improves the reliability and efficiency of the business system launch method, reduces human errors, and simplifies the operation process.
Smart Images

Figure CN119781826A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and more specifically, to a method and system for launching a business system based on operation and maintenance automation. Background Art
[0002] Executing a business system launch task usually refers to the process of deploying a new software version, functional module or service to a server in a production environment so that it can provide services to actual users. Business system launch tasks usually involve multiple operation steps, including network configuration, server configuration, application deployment, service startup, permission configuration, etc.
[0003] In the related art, the business system online method usually relies on manual operation and manual configuration. In the process of business system online tasks, on the one hand, management personnel are usually required to perform identity authentication multiple times and log in to the server to manually perform the deployment of the business system online tasks, which is easily affected by human factors, resulting in low reliability of the business system online method. On the other hand, the manual execution of the business system online tasks is highly complex, resulting in low efficiency of the business system online method.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present application provide a method and system for launching a business system based on operation and maintenance automation, so as to at least solve the technical problems of low reliability and low efficiency of the method for launching a business system in the related art.
[0006] According to one aspect of an embodiment of the present application, a method for bringing a business system online based on operation and maintenance automation is provided, including: opening a secure communication port policy, determining that a network channel between a control host of an automated operation and maintenance tool and a plurality of candidate servers in an integrated business management system remains in a connected state, and the operation and maintenance automation tool is installed on the control host in an offline installation manner; configuring a host list according to business requirements corresponding to the integrated business management system, wherein the host list is used to determine at least one server to be managed among a plurality of candidate servers and online configuration information to be deployed in the server to be managed; arranging online tasks based on the host list and a variable configuration file to obtain an operation and maintenance script file of the automated operation and maintenance tool, wherein the variable configuration file is used to record environmental parameters of the server to be managed, and the operation and maintenance script file is used to define a plurality of operation and maintenance strategies, each operation and maintenance strategy including a plurality of online tasks to be executed; responding to an online trigger event of the integrated business management system, triggering the control host to execute a plurality of online tasks according to a plurality of operation and maintenance strategies corresponding to the operation and maintenance script file.
[0007] Optionally, the business system online method also includes: after opening the secure communication port policy, using a remote login command to perform a remote login test on the secure communication ports of the control host and multiple candidate servers to ensure that the secure communication port of each candidate server remains accessible to the control host.
[0008] Optionally, communication isolation is set between the network environment of the control host and the Internet; the business system online method also includes: obtaining a dependent software package corresponding to the automated operation and maintenance tool; transmitting the dependent software package to the control host to trigger the control host to install the automated operation and maintenance tool.
[0009] Optionally, the business demand is represented by interface call data corresponding to the integrated business management system; according to the business demand corresponding to the integrated business management system, configuring the host list includes: obtaining interface call data, wherein the interface call data is used to characterize the calling of multiple business interfaces to multiple candidate servers; according to the interface call data, determining at least one server to be managed from multiple candidate servers, and determining the online configuration information corresponding to the server to be managed; based on at least one server to be managed and the online configuration information, configuring the host list, the host list is used to determine multiple virtual host groups to be managed in the integrated business management system.
[0010] Optionally, the business system online method further includes: transmitting the public key of the control host to the server to be managed, and setting the server to be managed to a password-free login mode.
[0011] Optionally, the business system online method also includes: determining the environmental parameters of the server to be managed based on the environmental information corresponding to the integrated business management system, wherein the environmental parameters include common environmental variables of multiple candidate servers and special environmental variables of the server to be managed, and the data source of the environmental information includes at least one of the following: business requirements, system architecture information of the integrated business management system, preset common operation and maintenance parameters, and operation and maintenance historical configuration corresponding to the integrated business management system; based on the environmental parameters, generating a variable configuration file.
[0012] Optionally, online tasks are orchestrated based on the host list and the variable configuration file to obtain an operation and maintenance script file of the automated operation and maintenance tool, including: online documents are orchestrated using the host list, the variable configuration file and multiple role files to obtain an intermediate orchestration result, wherein each role file in the multiple role files is used to encapsulate the servers to be managed and the online configuration information corresponding to a specific operation and maintenance function; online steps are orchestrated based on the intermediate orchestration result to obtain an operation and maintenance script file.
[0013] Optionally, the operation and maintenance script file also includes: responsive processing tasks; the business system online method also includes: using responsive processing tasks and pre-written verification scripts to verify whether multiple online tasks are successfully executed; in response to multiple online tasks not being successfully executed, rolling back the comprehensive business management system.
[0014] Optionally, performing a rollback operation on the integrated business management system includes: searching and determining from the log files corresponding to the integrated business management system some of the online tasks that were not successfully executed, and determining the configuration versions to be rolled back corresponding to some of the online tasks; and restoring the application configurations corresponding to some of the online tasks to the configuration versions to be rolled back.
[0015] According to another aspect of an embodiment of the present application, a business system online system based on operation and maintenance automation is also provided, including a memory and a processor, the memory storing a computer program, and the processor being configured to run the computer program to execute any one of the above-mentioned business system online methods based on operation and maintenance automation.
[0016] In an embodiment of the present application, a secure communication port strategy is opened to determine that the network channel between the control host of the automated operation and maintenance tool and multiple candidate servers in the integrated business management system remains in a connected state, and the operation and maintenance automation tool is installed on the control host in an offline installation mode; according to the business needs corresponding to the integrated business management system, a host list is configured, wherein the host list is used to determine at least one server to be managed among multiple candidate servers and the online configuration information to be deployed in the server to be managed; online tasks are arranged based on the host list and the variable configuration file to obtain the operation and maintenance script file of the automated operation and maintenance tool, wherein the variable configuration file is used to record the environmental parameters of the server to be managed, and the operation and maintenance script file is used to define multiple operation and maintenance strategies, each of which includes multiple online tasks to be executed; in response to the online trigger event of the integrated business management system, the control host is triggered to execute multiple online tasks according to the multiple operation and maintenance strategies corresponding to the operation and maintenance script file. Thus, the present application achieves the purpose of reducing dependence on manual labor and automatically executing the online tasks of the business system, thereby achieving the technical effect of improving the reliability and efficiency of the online method of the business system, and thus solving the technical problems of low reliability and low efficiency of the online method of the business system in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0018] Figure 1 It is a hardware structure block diagram of a terminal device for an optional method for launching a business system based on operation and maintenance automation according to an embodiment of the present application;
[0019] Figure 2 It is a flow chart of a method for launching a business system based on operation and maintenance automation according to an embodiment of the present application;
[0020] Figure 3 It is a schematic diagram of an optional business system online method process based on operation and maintenance automation according to an embodiment of the present application. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application.
[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0023] According to an embodiment of the present application, an embodiment of a method for launching a business system based on operation and maintenance automation is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0024] Figure 1 is a hardware structure block diagram of a terminal device for an optional method for launching a business system based on operation and maintenance automation according to an embodiment of the present application, such as Figure 1As shown, the terminal device may include one or more processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor (Microcontroller Unit, referred to as MCU) or a programmable logic device (Field Programmable Gate Array, referred to as FPGA)), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display device 110, an input / output device 108 (i.e., an I / O device), a Universal Serial Bus (USB) port (which may be included as one of the ports of a computer bus, not shown in the figure), a network interface (not shown in the figure), a power supply (not shown in the figure) and / or a camera (not shown in the figure). It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the above terminal device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0025] It should be noted that the one or more processors 102 and / or other data processing circuits may be embodied in whole or in part as software, hardware, firmware or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be fully or partially integrated into any of the other components in the terminal device (or mobile device).
[0026] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the method for launching a business system based on operation and maintenance automation in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, realizing the above-mentioned method for launching a business system based on operation and maintenance automation. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0027] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the terminal device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.
[0028] Under the above operating environment, the embodiment of the present application provides the following Figure 2 The business system launch method based on operation and maintenance automation is shown. Figure 2 is a flow chart of a method for launching a business system based on operation and maintenance automation according to an embodiment of the present application, such as Figure 2 As shown, the method includes the following implementation steps S201 to S204.
[0029] Step S201, opening a secure communication port policy, ensuring that the network channel between the control host of the automated operation and maintenance tool and multiple candidate servers in the integrated business management system remains connected, and the operation and maintenance automation tool is installed on the control host in an offline installation manner.
[0030] The above-mentioned secure communication port can be a port for connecting the host and the remote server, and the above-mentioned secure communication port policy can be a communication policy set between the host and the server. The secure communication port policy can be used to ensure the security of communication between the host and the remote server, as well as the reliability of data transmission between the host and the remote server.
[0031] The above-mentioned automated operation and maintenance tool may be an open source automated operation and maintenance tool, which may be used to realize automated tasks such as configuration management, application deployment, and task scheduling of network facilities. The above-mentioned control host may be a server or computer corresponding to the automated operation and maintenance tool.
[0032] The above-mentioned integrated business management system may be an integrated, multifunctional business processing platform, which may be used to process and manage a variety of business processes and business data information. The above-mentioned candidate servers may be a collection of servers to be selected for management or deployment operations.
[0033] The offline installation method may be a method in which the required software packages or tools are downloaded to the local computer in advance and then installed without a network connection.
[0034] Specifically, the operation and maintenance automation tool is installed on the control host using an offline installation method, and the security communication port policy configured between the control host of the automated operation and maintenance tool and multiple candidate servers in the integrated business management system is enabled. Using the security communication port policy, the ports in the multiple candidate servers that need to communicate with the control host are opened, and it is determined that the network channel between the control host of the automated operation and maintenance tool and the multiple candidate servers in the integrated business management system remains connected, so as to ensure efficient communication between the control host of the automated operation and maintenance tool and the server.
[0035] In case of errors in the installation process due to unstable network or limited external network access, the offline installation of the automated operation and maintenance tool can be used to install the automated operation and maintenance tool more stably and efficiently; the secure communication port strategy can ensure that the network channel between the control host of the automated operation and maintenance tool and multiple candidate servers in the integrated business management system is in a stable connection state, which can ensure that the control host of the automated operation and maintenance tool communicates with the target server in a safer and more stable environment, thereby improving the efficiency and reliability of the business launch method. Therefore, the business system launch method of the embodiment of the present application not only improves the efficiency of the business system launch, but also enhances the security and reliability of the business system launch process.
[0036] Step S202: configuring a host list according to the business requirements corresponding to the integrated business management system, wherein the host list is used to determine at least one server to be managed among a plurality of candidate servers and online configuration information to be deployed in the server to be managed.
[0037] The business requirements may be requirements corresponding to specific operations that need to be performed in order to complete the target business of the integrated business management system. The host list may be a list file containing information of servers to be managed, and by using the host list, the control host can identify, access and manage the servers to be managed.
[0038] The server to be managed may be a server among candidate servers that is about to perform automated tasks (such as software deployment, configuration update), and the server to be managed may be determined based on business needs. The online configuration information to be deployed may be the configuration information required to deploy a new software version or component on the server to be managed, such as the specific path of the application, service startup command, etc.
[0039] Specifically, according to the business needs corresponding to the comprehensive business management system, at least one server to be managed that needs to perform the online task is selected from multiple candidate servers, and the list file of the server to be managed information in the control host is edited, and the information of the server to be managed and the online configuration information to be deployed in the server to be managed are updated in the list file, so that the automated task can be executed on a specific server, thereby achieving more refined control and management.
[0040] Since the requirements corresponding to various businesses in the integrated business management system are different, the corresponding servers that need to perform online tasks are also different. Therefore, configuring the host list according to the business requirements corresponding to the integrated business management system can ensure that the control host of the automated operation and maintenance tool performs the online task for the managed server that needs to perform the online task, thereby enabling the control host to efficiently perform the online task, reducing human operation errors and improving the efficiency of the business system online method.
[0041] Step S203, arrange the online tasks based on the host list and the variable configuration file to obtain the operation and maintenance script file of the automated operation and maintenance tool, wherein the variable configuration file is used to record the environmental parameters of the server to be managed, and the operation and maintenance script file is used to define multiple operation and maintenance strategies, each operation and maintenance strategy includes multiple online tasks to be executed.
[0042] The above-mentioned environment parameter file may include system configuration parameters, security configuration parameters, resource configuration parameters, etc.
[0043] The above operation and maintenance script file may include the order and conditions for executing steps such as software deployment, service restart, and configuration file update.
[0044] The above operation and maintenance strategy can be a series of operations defined in the operation and maintenance script file of the automated operation and maintenance tool. By utilizing the operation and maintenance strategy, multiple online tasks are executed according to specific logical sequences and conditions.
[0045] Exemplarily, the operation and maintenance strategy may be to shut down the server, update the software version in the server if the server is shut down successfully, restart the server after the update is successful, and verify whether the software version in the server is successfully updated.
[0046] Specifically, based on the host list and the variable configuration file that records the environmental parameters of the server to be managed, the steps to be performed corresponding to the multiple online tasks to be executed are arranged, and the execution conditions of each step are determined, and the operation and maintenance strategies corresponding to the multiple online tasks to be executed are determined, and then, an operation and maintenance script file of the automated operation and maintenance tool that defines multiple operation and maintenance strategies is obtained.
[0047] Since the operation steps of complex online tasks are usually the same, the online tasks are arranged based on the host list and variable configuration files to obtain the operation and maintenance script file of the automated operation and maintenance tool. This can transform the complex online task operation steps into a repeatable and controllable automated process, which can not only reduce human operation errors and improve the efficiency and reliability of the business online method, but also simplify the business online operation and save labor costs.
[0048] Step S204, responding to the online triggering event of the integrated business management system, triggering the control host to execute multiple online tasks according to multiple operation and maintenance strategies corresponding to the operation and maintenance script file.
[0049] The above-mentioned online triggering events can be triggered manually or automatically, such as new version release, system upgrade, etc.
[0050] Specifically, when the integrated business management system triggers an online event, the control host of the automated operation and maintenance tool automatically reads and executes the operation and maintenance script file, and performs multiple online tasks according to multiple operation and maintenance strategies defined in the operation and maintenance script file.
[0051] By automatically triggering the control host to execute multiple online tasks according to multiple operation and maintenance strategies corresponding to the operation and maintenance script file, it can quickly respond to business needs, reduce manual operation delays, and improve the efficiency of the business online method.
[0052] Through the above steps S201 to S204, the embodiment of the present application realizes the automation and standardization of the business system online through the secure communication port strategy between the control host of the automated operation and maintenance tool and the integrated business management system server, and the online task arrangement, improves the efficiency of the business online method, reduces human errors, and improves the reliability of the business online method. Therefore, the business online method of the embodiment of the present application is more efficient and more reliable.
[0053] Optionally, the above-mentioned business system online method may also include the following method steps:
[0054] Step S205, after the secure communication port policy is enabled, a remote login command is used to perform a remote login test on the secure communication ports of the control host and multiple candidate servers to ensure that the secure communication port of each candidate server remains accessible to the control host.
[0055] The above remote login command can be a network protocol based on a text protocol. The remote login command can be used to remotely log in to a network device or server to perform configuration management, troubleshooting or monitoring. The remote login command can also be used to test the connectivity of ports in a network link.
[0056] The above-mentioned accessible state may be a state in which the port can be connected and accessed by an external entity (such as a computer).
[0057] Specifically, after activating the security communication port policy configured between the control host of the automated operation and maintenance tool and multiple candidate servers in the integrated business management system, a remote login command is used to connect the security communication ports of the control host and multiple candidate servers to test whether the security communication ports are in an accessible state. If the remote login command can successfully connect to the security communication port of each candidate server, it is determined that the security communication port of each candidate server remains accessible to the control host.
[0058] Through the above-mentioned step S205, the embodiment of the present application performs a remote login test on the security communication ports of the control host and multiple candidate servers by utilizing a remote login command to ensure that the security communication ports are in an accessible state, thereby ensuring efficient and stable communication between the control host of the automated operation and maintenance tool and each candidate server in the process of executing the business system online task, thereby improving the reliability of the business system online method.
[0059] Optionally, communication isolation is set between the network environment of the control host and the Internet; the above-mentioned business system online method may also include the following method steps:
[0060] Step S206, obtaining the dependent software package corresponding to the automated operation and maintenance tool;
[0061] Step S207: transmitting the dependent software package to the control host to trigger the control host to install the automated operation and maintenance tool.
[0062] The above-mentioned communication isolation can be used to limit the control host's direct access to the Internet. By setting up communication isolation, the security of the control host's internal network can be improved and the intrusion of potential threats from the external network can be prevented.
[0063] The above-mentioned dependent software package may be a collection of software components, libraries or tools required by an application to run normally and perform its functions.
[0064] Specifically, a machine with Internet access capability is used to obtain the dependent software package required for installing the automated operation and maintenance tool; further, the dependent software package is transmitted from the machine with Internet access capability to the control host to trigger the installation command on the control host to execute the installation of the automated operation and maintenance tool. The above transmission method can be a method of using File Transfer Protocol (FTP) for data transmission.
[0065] In order to be able to install the automated operation and maintenance tools in the control host more safely, the network environment of the control host is set in an environment isolated from the Internet, the dependent software package is transmitted to the control host, and the control host is triggered to install the automated operation and maintenance tools, so that the automated operation and maintenance tools can be installed on the control host using an offline installation method, thereby improving the reliability of the business system online method.
[0066] Optionally, the business demand is represented by interface call data corresponding to the integrated business management system; in the above step S202, according to the business demand corresponding to the integrated business management system, configuring the host list may also include the following execution steps:
[0067] Step S2021, obtaining interface call data, wherein the interface call data is used to characterize the calling conditions of multiple business interfaces to multiple candidate servers;
[0068] Step S2022, determining at least one server to be managed from multiple candidate servers according to the interface call data, and determining online configuration information corresponding to the server to be managed;
[0069] Step S2023: Based on at least one server to be managed and the online configuration information, a host list is configured, where the host list is used to determine a plurality of virtual host groups to be managed in the integrated service management system.
[0070] The above-mentioned interface call data may include but is not limited to call frequency, response time, and called server information.
[0071] The virtual host group may be a group of virtual hosts that logically have similar functions or management requirements. By defining the virtual host group in a configuration file or tool, the network management and operation process can be simplified.
[0072] Specifically, according to the business needs corresponding to the comprehensive business management system, interface call data of multiple business interfaces to multiple candidate servers are obtained; further, according to the interface call data, at least one server to be managed corresponding to the business needs is determined among the multiple candidate servers, and the online configuration information corresponding to the server to be managed is collected; further, based on at least one server to be managed and the online configuration information, the servers to be managed are grouped and a host list is configured.
[0073] Through the above steps S2021 to S2023, in the present application, on the one hand, by analyzing the interface call data, it is possible to accurately identify the servers that need to be managed or updated corresponding to the business needs, avoiding unnecessary operations on all servers, saving time and resources for executing business launch tasks, and improving the efficiency and accuracy of the business system launch method; on the other hand, based on at least one server to be managed and the online configuration information, it is possible to automatically identify and manage multiple virtual host groups to be managed in the comprehensive business management system, automatically execute business launch tasks, and improve the efficiency of the business system launch method.
[0074] Optionally, the above-mentioned business system online method may also include the following method steps:
[0075] Step S208: transmitting the public key of the control host to the server to be managed, and setting the server to be managed to a password-free login mode.
[0076] The above public key can be used to implement asymmetric encryption and digital signature.
[0077] Specifically, the public key of the control host is transmitted to the server to be managed using a network protocol management command, and the server to be managed is set to a password-free login mode to ensure that the public key of the control host is allowed to authenticate the server to be managed.
[0078] Through the above-mentioned step S208, in the present application, by setting the server to be managed to a password-free login mode and using the public key for authentication, the operation of frequently entering passwords in automated operation and maintenance operations is reduced, the steps for executing the business system online task are simplified, the efficiency of the business system online method is improved, the risk of password leakage is reduced, and the reliability of the business system online method is improved.
[0079] Optionally, the above-mentioned business system online method may also include the following method steps:
[0080] Step S209, determining the environment parameters of the server to be managed according to the environment information corresponding to the integrated business management system, wherein the environment parameters include common environment variables of multiple candidate servers and special environment variables of the server to be managed, and the data source of the environment information includes at least one of the following: business requirements, system architecture information of the integrated business management system, preset common operation and maintenance parameters, and operation and maintenance history configuration corresponding to the integrated business management system;
[0081] Step S210, generating a variable configuration file based on the environment parameters.
[0082] The above-mentioned environment information may be information about the operation of the integrated business management system, and the environment information may include but is not limited to operating system type, operating system version, network settings, installed software, database connection information, security policies, etc.
[0083] The above-mentioned universal environment variables may be environment variables suitable for universal configuration of multiple servers, and the universal environment variables may include language environment, time zone, system resource limit, etc.
[0084] The above-mentioned dedicated environment variables may be environment variables suitable for configuring the server to be managed, and the dedicated environment variables may include a database connection string, a service port, a log level, and the like.
[0085] The system architecture information of the above-mentioned integrated business management system can be used to describe the relationship, data flow, dependency, etc. between the components in the integrated business management system. The above-mentioned preset universal operation and maintenance parameters can be a set of standardized operation and maintenance parameters, and the preset universal operation and maintenance parameters can include default ports, user permission settings, log file paths, etc. The operation and maintenance history configuration corresponding to the above-mentioned integrated business management system can be configuration information obtained from historical operation and maintenance operations.
[0086] Specifically, based on at least one data source of environmental information, environmental information corresponding to the integrated business management system is obtained, and by organizing and analyzing the environmental information, configuration information of environmental variables related to multiple servers is determined, common environmental variables of multiple candidate servers and special environmental variables of the servers to be managed are determined, and environmental parameters of the servers to be managed are determined.
[0087] It is easy to understand that through the above steps S209 to S210, in the present application, by distinguishing between general environment variables and special environment variables, it is possible to achieve standardized configuration of general environment variables and adjust special environment variables for specific servers, thereby ensuring the reliability of environment variable configuration while improving the efficiency of environment variable configuration.
[0088] Optionally, in the above step S203, the online task arrangement is performed based on the host list and the variable configuration file to obtain the operation and maintenance script file of the automated operation and maintenance tool, which may also include the following execution steps:
[0089] Step S2031, using the host list, the variable configuration file and the multiple role files to perform online document arrangement, and obtain an intermediate arrangement result, wherein each role file in the multiple role files is used to encapsulate the server to be managed and the online configuration information corresponding to the specific operation and maintenance function;
[0090] Step S2032: arrange the online steps based on the intermediate arrangement result to obtain an operation and maintenance script file.
[0091] The above role file may be a script set encapsulating a specific function. The above intermediate arrangement result may be a file required to execute the online task.
[0092] Specifically, the host list, variable configuration files and multiple role files are used to arrange the online documents according to business needs, determine the online configuration information of the server to be managed and the corresponding server to be managed, and encapsulate the online configuration information of the server to be managed and the corresponding server to be managed in the role file to obtain the intermediate arrangement result; further, the online steps are arranged for the intermediate arrangement result to determine the operational details of each step of the online task, including the order of execution, condition judgment, exception handling, etc., to generate a complete and executable operation and maintenance script file.
[0093] It is easy to understand that through the above steps S2031 to S2032, in this application, by using the host list, variable configuration file and role file, the operation and maintenance script file can be flexibly adjusted according to different servers and environmental parameters, avoiding hard coding, making the operation and maintenance process more adaptable to changing business needs. In addition, by utilizing the encapsulation characteristics of the role file, specific operation and maintenance functions can be separated to form a modular script, which is not only convenient for system maintenance, but also can be reused in different environments, saving development time.
[0094] Optionally, the operation and maintenance script file further includes: responsive processing tasks; the above-mentioned business system online method may also include the following method steps:
[0095] Step S211, using the responsive processing task and the pre-written verification script to verify whether the multiple online tasks are executed successfully;
[0096] Step S212: In response to the fact that all the multiple online tasks are not successfully executed, a rollback operation is performed on the integrated business management system.
[0097] The above-mentioned responsive processing task can be used to execute tasks under specific conditions, such as restarting the service after updating the configuration file. The above-mentioned verification script can be used to check the status of the integrated business management system after executing the online task. The above-mentioned rollback operation can be a series of steps executed when multiple online tasks are not all successfully executed. The rollback operation can include revoking the online task of the integrated business management system, re-executing the online task, and restoring the software to the version before executing the online task.
[0098] Specifically, after executing multiple online tasks, the responsive processing tasks and pre-written verification scripts in the operation and maintenance script file are used to check the status of the integrated business management system to verify whether the multiple online tasks are successfully executed. In response to the fact that all the online tasks are not successfully executed, the integrated business management system is rolled back to restore the integrated business management system to the state before executing the multiple online tasks to ensure that the integrated business management system can operate normally.
[0099] Through the above-mentioned steps S211 to S212, in the present application, by combining the responsive processing tasks and the verification scripts, the execution results of the online tasks can be detected in a timely manner. When multiple online tasks are not all successfully executed, the rollback operation can be performed in a timely manner, thereby reducing the impact of the online task execution failure on the comprehensive business management system, avoiding business interruption, and ensuring the normal operation of the comprehensive business management system.
[0100] Optionally, in the above step S212, the rolling back operation on the integrated business management system may further include the following execution steps:
[0101] Step S2121, searching and determining some of the online tasks that have not been successfully executed among the multiple online tasks from the log file corresponding to the integrated business management system, and determining the configuration versions to be rolled back corresponding to some of the online tasks;
[0102] Step S2122: restore the application configuration corresponding to some online tasks to the configuration version to be rolled back.
[0103] The above-mentioned log file may be a record file generated during the operation of the integrated business management system, and the log file may include information on successful task execution, information on failed task execution, system status change information, etc.
[0104] The configuration version to be rolled back may be a stable version of the application configuration corresponding to the online task before the online task is executed.
[0105] Specifically, the log files corresponding to the integrated business management system are analyzed using automated operation and maintenance tools, and record information related to the execution of multiple online tasks is searched from the log files to identify some of the online tasks that have not been successfully executed. Based on the analysis of the log files, some of the online tasks that need to be rolled back are determined, and the configuration versions to be rolled back corresponding to some of the online tasks are determined; further, the automated operation and maintenance tools are used to restore the application configurations corresponding to some of the online tasks in the integrated business management system to the configuration versions to be rolled back.
[0106] Through the above steps S2121 to S2122, in the present application, by analyzing the log files, it is possible to accurately determine the part of the online tasks that failed to execute among multiple online tasks, and to improve the efficiency of fault diagnosis when faults occur during the execution of multiple online tasks.
[0107] In an exemplary application scenario, an embodiment of the present application may include an automated deployment module, an environment management module, an automated verification module, and a process control module, wherein the automated deployment module is used to execute multiple online tasks according to multiple operation and maintenance strategies corresponding to the operation and maintenance script file of the automated operation and maintenance tool; the environment management module is used to configure the host list according to the business requirements corresponding to the comprehensive business management system; the automated verification module is used to use the responsive processing tasks and pre-written verification scripts to verify whether the multiple online tasks are successfully executed; the process control module is used to monitor the process of executing the business system online, including service start and stop, status detection, exception handling, and automatic rollback.
[0108] In an exemplary application scenario, Figure 3 is a schematic diagram of an optional business system on-line method process based on operation and maintenance automation according to an embodiment of the present application, a secure communication port (Secure Shell, referred to as SSH) port, the automated operation and maintenance tool can be Ansible, the remote login command can be a command corresponding to the network protocol (Teletype Network, referred to as Telnet), the operation and maintenance script file can be Ansible Playbook, and the responsive processing task can be Ansible Handlers, such as Figure 3 As shown in the figure, the process of launching a business system based on operation and maintenance automation includes the following seven parts: network policy activation, dependency package download, offline installation of Ansible, host list configuration, environment variable definition, Playbook orchestration, and online success verification.
[0109] Specifically, the specific steps of the network policy activation part in the process of the business system launch method based on operation and maintenance automation are: opening the secure communication port policy between the Ansible control host and multiple candidate servers in the integrated business management system, and determining that the network channel between the control host of the automated operation and maintenance tool and the multiple candidate servers in the integrated business management system remains in a connected state; after enabling the secure communication port policy, using the Telnet command to perform a remote login test on the SSH ports of the control host and multiple candidate servers to determine that the control host can access the SSH port of each candidate server.
[0110] Specific steps for downloading dependency packages during the business system launch method based on operation and maintenance automation: Since the network environment of Ansible's control host is isolated from Internet communication during the execution of the launch task, it is necessary to download the corresponding dependency software package of Ansible in advance and transfer it to the Ansible control host.
[0111] In an exemplary application scenario, downloading the dependent software package corresponding to Ansible to a specified directory can be implemented by code 1.
[0112] Code 1: yuminstall-y ansible--downloadonly--downloaddir= / root / ansible.
[0113] Specific steps for offline installation of Ansible during the business system launch method based on operation and maintenance automation: Transfer the downloaded dependency software package corresponding to Ansible to the Ansible host, and install the Ansible software in the control host in an offline installation mode.
[0114] The specific steps of the host list configuration part in the process of the business system online method based on operation and maintenance automation are as follows: obtaining the interface call data corresponding to the business of the comprehensive business management system, determining the servers that need to be configured corresponding to different business needs based on the interface call data, determining at least one server to be managed from multiple candidate servers, and determining the online configuration information corresponding to the server to be managed, configuring the host list based on at least one server to be managed and the online configuration information, transmitting the public key of the control host to the server to be managed, and setting the server to be managed to a password-free login mode.
[0115] In an exemplary application scenario, transmitting the public key of the control host to the server to be managed can be implemented through code two.
[0116] Code 2: ssh-copy-id–i~ / .ssh / id_rsa.pub$1.
[0117] The specific steps of the environment variable definition part in the process of the business system launch method based on operation and maintenance automation are as follows: According to the environment information corresponding to the comprehensive business management system, the environment parameters of the server to be managed are determined, and the file group_var used to store specific host group variables in Ansible is used to store the environment variables applicable to the common configuration of multiple servers in the common environment variable file of the all host group in group_var, and the environment variables applicable to the configuration of the server to be managed are stored in the dedicated environment variable file of the server to be managed in group_var.
[0118] The specific steps of the Playbook orchestration part in the process of the business system online method based on operation and maintenance automation: according to business needs, use the host list, variable configuration file and Ansible Roles to arrange the online documents according to business needs, determine the online configuration information corresponding to the server to be managed and the server to be managed from the host list and variable configuration file, and encapsulate the online configuration information corresponding to the server to be managed and the server to be managed in each corresponding Ansible Role, and obtain the documents required for executing multiple online tasks (recorded as Tasks), and obtain the intermediate orchestration results; further, the steps for executing Tasks are orchestrated, and during the orchestration process, the last successful execution of the online task is found, and the corresponding code line number is recorded, and the multiple steps for executing the online task are recorded, and the operation of each step of the execution of Tasks is determined to obtain the operation and maintenance script file (ie, Playbook). The above-mentioned multiple steps for executing the online task may include: stopping the application, replacing the application software package, and starting the application. The above-mentioned stopping of the application can be stopping the application running in the server to be managed. The above-mentioned application software package replacement can be updating the application software package corresponding to the online task to the deployment directory of the application in the server to be managed. The above-mentioned starting application may be restarting an application running in the server to be managed.
[0119] The successful execution of the above-mentioned online task can be confirmed by checking whether the log file contains the word "startup successful".
[0120] The specific steps of the successful online verification part of the business system online method based on operation and maintenance automation are as follows: upload the script for executing the online task and the pre-written verification script to the server to be managed. Use Ansible Handlers and the pre-written verification script to verify whether multiple online tasks are successfully executed; in response to multiple online tasks not being successfully executed, find and determine the part of the online tasks that were not successfully executed in the multiple online tasks from the log files corresponding to the integrated business management system, and determine the configuration versions to be rolled back corresponding to the part of the online tasks; restore the application configurations corresponding to the part of the online tasks to the configuration versions to be rolled back.
[0121] According to another aspect of an embodiment of the present application, a business system online system based on operation and maintenance automation is also provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute any one of the aforementioned business system online methods based on operation and maintenance automation.
[0122] Optionally, in this embodiment, the processor can be configured to perform the following steps through a computer program: enable a secure communication port policy, determine that the network channel between the control host of the automated operation and maintenance tool and multiple candidate servers in the integrated business management system remains in a connected state, and the operation and maintenance automation tool is installed on the control host in an offline installation manner; configure a host list according to the business needs corresponding to the integrated business management system, wherein the host list is used to determine at least one server to be managed among the multiple candidate servers and the online configuration information to be deployed in the server to be managed; arrange online tasks based on the host list and the variable configuration file to obtain an operation and maintenance script file of the automated operation and maintenance tool, wherein the variable configuration file is used to record the environmental parameters of the server to be managed, and the operation and maintenance script file is used to define multiple operation and maintenance strategies, each operation and maintenance strategy includes multiple online tasks to be executed; respond to the online trigger event of the integrated business management system, and trigger the control host to execute multiple online tasks according to the multiple operation and maintenance strategies corresponding to the operation and maintenance script file.
[0123] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiment and its optional implementation manners, which will not be described in detail here.
[0124] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0125] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0126] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0127] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0128] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0129] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially or in other words contribute to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), mobile hard disk, disk or optical disk and other media that can store program codes.
[0130] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for launching a business system based on operation and maintenance automation, characterized in that: include: Opening a secure communication port policy to ensure that a network channel between a control host of an automated operation and maintenance tool and a plurality of candidate servers in an integrated business management system remains connected, wherein the operation and maintenance automation tool is installed on the control host in an offline installation manner; According to the business requirements corresponding to the integrated business management system, a host list is configured, wherein the host list is used to determine at least one server to be managed among the multiple candidate servers and online configuration information to be deployed in the server to be managed; Performing online task arrangement based on the host list and the variable configuration file to obtain an operation and maintenance script file of the automated operation and maintenance tool, wherein the variable configuration file is used to record the environmental parameters of the server to be managed, and the operation and maintenance script file is used to define multiple operation and maintenance strategies, each of which includes multiple online tasks to be executed; In response to the online triggering event of the integrated business management system, the control host is triggered to execute the multiple online tasks according to the multiple operation and maintenance strategies corresponding to the operation and maintenance script file.
2. The method for launching a business system based on operation and maintenance automation according to claim 1, characterized in that: The business system online method also includes: After the secure communication port policy is enabled, a remote login command is used to perform a remote login test on the secure communication ports of the control host and the plurality of candidate servers to determine whether the secure communication port of each candidate server remains accessible to the control host.
3. The method for launching a business system based on operation and maintenance automation according to claim 1, characterized in that: Communication isolation is set between the network environment of the control host and the Internet; The business system online method also includes: Obtain the dependent software package corresponding to the automated operation and maintenance tool; The dependent software package is transmitted to the control host to trigger the control host to install the automated operation and maintenance tool.
4. The method for launching a business system based on operation and maintenance automation according to claim 1, characterized in that: The business demand is represented by the interface call data corresponding to the integrated business management system; According to the business requirements corresponding to the integrated business management system, configuring the host list includes: Acquire the interface call data, wherein the interface call data is used to characterize the calling conditions of the multiple service interfaces on the multiple candidate servers; Determine at least one server to be managed from the multiple candidate servers according to the interface call data, and determine online configuration information corresponding to the server to be managed; The host list is configured based on at least one of the servers to be managed and the online configuration information. The host list is used to determine a plurality of virtual host groups to be managed in the integrated service management system.
5. The method for launching a business system based on operation and maintenance automation according to claim 4, characterized in that: The business system online method also includes: The public key of the control host is transmitted to the server to be managed, and the server to be managed is set to a password-free login mode.
6. The method for launching a business system based on operation and maintenance automation according to claim 1, characterized in that: The business system online method also includes: Determine the environment parameters of the server to be managed according to the environment information corresponding to the integrated business management system, wherein the environment parameters include common environment variables of the multiple candidate servers and special environment variables of the server to be managed, and the data source of the environment information includes at least one of the following: the business requirements, the system architecture information of the integrated business management system, the preset common operation and maintenance parameters, and the operation and maintenance history configuration corresponding to the integrated business management system; Based on the environmental parameters, the variable configuration file is generated.
7. The method for launching a business system based on operation and maintenance automation according to claim 1, characterized in that: The online task is arranged based on the host list and the variable configuration file, and the operation and maintenance script file of the automated operation and maintenance tool is obtained, including: Using the host list, the variable configuration file and multiple role files to perform online document arrangement to obtain an intermediate arrangement result, wherein each role file in the multiple role files is used to encapsulate the server to be managed and the online configuration information corresponding to a specific operation and maintenance function; The online steps are arranged based on the intermediate arrangement result to obtain the operation and maintenance script file.
8. The method for launching a business system based on operation and maintenance automation according to claim 1, characterized in that: The operation and maintenance script file also includes: responsive processing tasks; the business system online method also includes: Using the responsive processing task and a pre-written verification script, verify whether the multiple online tasks are executed successfully; In response to the multiple online tasks not all being executed successfully, a rollback operation is performed on the integrated business management system.
9. The method for launching a business system based on operation and maintenance automation according to claim 8, characterized in that: The rolling back operation on the integrated business management system includes: Searching and determining a portion of the multiple online tasks that have not been successfully executed from the log file corresponding to the integrated business management system, and determining the configuration versions to be rolled back corresponding to the portion of the online tasks; The application configuration corresponding to the partial online tasks is restored to the configuration version to be rolled back.
10. A business system online system based on operation and maintenance automation, characterized in that: It includes a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the business system online method based on operation and maintenance automation according to any one of claims 1 to 9.