Automatic change method and related equipment based on cloud platform
Through the automatic change method based on the cloud platform, the problems of high risks and low efficiency during host changes are solved, and the automatic change process is realized, the change efficiency and security are improved, and it is suitable for financial-level systems.
Patent Information
- Application Number
- CN202010512944.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-08
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2040-06-08
AI Technical Summary
In the prior art, the host changes are risky and inefficient. It relies on manual writing of change tickets and logging into the host to implement changes, resulting in uncontrollable change risks and inefficient efficiency.
Using the automatic change method based on the cloud platform, by obtaining the target change template and host information selected by the user, performing host checksum group verification, generating a change parameter entry interface, performing parameter checksum circulation approval, and ultimately achieving the target host Automatically change.
Improves the efficiency of change implementation, reduces the risk of change, and provides safer and more reliable change operations through multi-layer checksum automation processes, suitable for financial-level systems.
Smart Images

Figure CN111754191B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of operation and maintenance technology, and in particular to an automatic change method based on a cloud platform and related equipment. Background Art
[0002] With the continuous development of the information age, IT operation and maintenance has become an important part of IT service. From a few servers in the early stage to a huge data center, manual labor alone can no longer meet the requirements of operation and maintenance in terms of technology, business, and management.
[0003] Although operation and maintenance management technology is constantly improving, under the current technical conditions, many operation and maintenance developers are still not truly freed. When implementing changes, they still need to manually write change work orders, and then log in to the host according to the change work orders to manually implement the changes. When there are a large number of changes, the change risk of relying solely on manual writing of change work orders and logging in to the host to implement the changes cannot be controlled, which leads to high change risks and low implementation efficiency when implementing changes to the host. Summary of the invention
[0004] The embodiment of the present invention provides a cloud platform-based automatic change method and related equipment, which can solve the problems of high change risk and low implementation efficiency when implementing changes on a host in the prior art.
[0005] On the one hand, an embodiment of the present invention provides an automatic change method based on a cloud platform, the method comprising:
[0006] Obtain the target change template, target host and target host group selected by the user, wherein the target change template defines the host selection rule, group execution rule, OA (Office Automation, office automation) flow rules, and defines collection operations, form operations, verification operations and change processes; the target host is verified according to the host selection rules of the target change template; after passing the host verification, the group execution rules selected by the user are obtained, and the groups of the target host are verified by group; after passing the group verification, the collection script associated with the target change template is sent to the target host, and the collection script is started to collect parameter information of the target host; according to the form operation of the target change template and the collected parameter information of the target host, a change parameter entry interface is generated, so that the user can enter the change parameters through the change parameter entry interface; according to the verification operation of the target change template and the collected parameter information of the target host, the entered change parameters and change content are verified; after the verification is passed, a change work order is generated according to the target change template and the entered change parameters; the change work order is circulated and approved according to the OA flow rules of the target change template; after approval, the target host is automatically changed according to the change work order.
[0007] In one embodiment of the present invention, the method further comprises:
[0008] Acquire the change template information in the template library and generate a change template list so that the user can select a target change template from the change template list; acquire the host information under the cloud platform and generate a host information list so that the user can select a target host from the host information list; generate a target host information list according to the target host selected by the user, and generate a group execution rule list according to the target change template selected by the user, so that the user can group the target hosts in the target host information list and select a group execution rule from the group execution rule list.
[0009] Specifically, the host selection rules include: only one host can be selected in one deployment unit; only all hosts can be selected in one deployment unit; any host can be selected in one deployment unit.
[0010] Specifically, the group execution rules include: non-group execution, automatic serial change execution on each group, automatic parallel change execution on each group, manual serial change execution on each group, and manual parallel change execution on each group.
[0011] Further, the verifying of the input change parameters and change contents according to the verification operation of the target change template and the collected parameter information of the target host includes:
[0012] Perform front-end validation of the entered change parameters according to the parameter validation operation under the target change template;
[0013] According to the association verification operation under the target change template and the collected parameter information of the target host, the entered change parameters and change content are globally associated with the background verification.
[0014] In one embodiment of the present invention, after approval, automatically changing the target host according to the change work order includes:
[0015] The parameter information of the target host is collected again, and the change parameters and change contents are verified again. After the verification is passed, the target host group is automatically changed according to the group execution rules; after the target host is automatically changed, the change implementation result is verified according to the change parameters.
[0016] On the other hand, an embodiment of the present invention provides an automatic change device based on a cloud platform, the device comprising:
[0017] A target acquisition module is used to obtain the target change template, target host and target host group selected by the user, wherein the target change template defines host selection rules, group execution rules, OA flow rules, and defines collection operations, form operations, verification operations and change processes; a host verification module is used to perform host verification on the target host according to the host selection rules of the target change template; a group verification module is used to obtain the group execution rules selected by the user after passing the host verification, and perform group verification on the target host group; a collection module is used to send the collection script associated with the target change template to the target host, and start the collection script to collect parameter information of the target host; a parameter entry interface A generation module is used to generate a change parameter entry interface according to the form operation of the target change template and the parameter information of the collected target host, so that the user can enter the change parameters through the change parameter entry interface; a change verification module is used to verify the entered change parameters and change content according to the verification operation of the target change template and the parameter information of the collected target host; a work order generation module is used to generate a change work order according to the target change template and the entered change parameters after the verification is passed; an OA circulation module is used to circulate the change work order for approval according to the OA circulation rules of the target change template; a change implementation module is used to implement automatic changes to the target host according to the change work order after approval.
[0018] In one embodiment of the present invention, the device further comprises:
[0019] A template list generation module is used to obtain change template information in a template library and generate a change template list so that the user can select a target change template from the change template list; a host list generation module is used to obtain host information under the cloud platform and generate a host information list so that the user can select a target host from the host information list; a host grouping module is used to generate a target host information list according to a target host selected by a user, and to generate a group execution rule list according to a target change template selected by a user, so that the user can group the target hosts in the target host information list and select a group execution rule from the group execution rule list.
[0020] Specifically, the host selection rule includes: only one host can be selected in one deployment unit, only all hosts can be selected in one deployment unit, and any host can be selected in one deployment unit.
[0021] Specifically, the group execution rules include: non-group execution, automatic serial change execution on each group, automatic parallel change execution on each group, manual serial change execution on each group, and manual parallel change execution on each group.
[0022] Furthermore, the change verification module includes:
[0023] The legitimacy verification unit is used to perform front-end legitimacy verification on the entered change parameters according to the parameter verification operation under the target change template; the association verification unit is used to perform background global association verification on the entered change parameters and change contents according to the association verification operation under the target change template and the parameter information of the collected target host.
[0024] In one embodiment of the present invention, the change implementation module includes:
[0025] A change pre-verification unit is used to collect parameter information of the target host again and verify the change parameters and change content again; a change implementation unit is used to automatically change the target host group according to the group execution rules after passing the verification of the change pre-verification module; a result verification unit is used to verify the change result according to the change parameters after the target host is automatically changed.
[0026] On the other hand, an embodiment of the present invention provides a computer storage medium on which computer instructions are stored. The computer instructions can be executed by a processor to implement the automatic change method described in any one of the above embodiments.
[0027] In yet another aspect, an embodiment of the present invention provides a computer device, comprising: a memory on which a computer program is stored; and a processor for executing the computer program to implement the automatic change method described in any one of the above embodiments.
[0028] The cloud platform-based automatic change method and related devices provided by the embodiments of the present invention have the following beneficial effects compared with the prior art:
[0029] The automatic change method provided by the embodiment of the present invention can automatically implement batch changes to the target host according to the change work order, thereby improving the efficiency of change implementation. In addition, when creating a work order, the embodiment of the present invention performs host verification and group verification on the target host selected by the user and the group of the target host, and generates a change parameter entry interface based on the collected parameter information of the target host and the target change template so that the user can enter as few change parameters as possible, and verifies the change parameters and change content entered by the user, which can reduce the change risk and batch operation risk when implementing changes to the target host. The embodiment of the present invention performs sufficient verification in each link of creating a work order and implementing changes, which can provide more secure and reliable changes for financial-level systems such as banks. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0031] Figure 1 It is a structural schematic diagram of an implementation environment involved in various embodiments of the present invention;
[0032] Figure 2 is a flow chart of an automatic change method based on a cloud platform provided by an embodiment of the present invention;
[0033] Figure 3 It is a schematic diagram of the structure of an automatic change device based on a cloud platform provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0034] To make the purpose, technical solution and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. It should be understood that the following various embodiments are only used for illustration and are not used to limit the scope of protection of the present invention.
[0035] Please refer to Figure 1 , which shows a schematic diagram of the structure of the cloud platform and the host involved in the embodiment of the present invention.
[0036] like Figure 1 As shown, the cloud platform 100 and multiple hosts 200 can be connected via a wireless network or a wired network respectively, and the multiple hosts 200 can also be connected via a wireless network or a wired network.
[0037] The cloud platform 100 may be a cloud management platform for a cloud computing data center, used to manage large and complex IT (Internet Technology) infrastructures, such as hosts, virtual servers, networks, applications, storage devices, etc.
[0038] The host 200 is a mainframe, on which a database, operating system or middleware may be deployed. The changes implemented on the host are content changes implemented on the host, which may include expanding, creating or modifying the database, changing parameters in the operating system, modifying middleware parameters, etc.
[0039] The following will introduce in detail the cloud platform-based automatic change solution provided by the embodiment of the present invention through several specific embodiments.
[0040] Please refer to Figure 2 , which shows a flow chart of an automatic change method based on a cloud platform provided by an embodiment of the present invention. The automatic change method based on a cloud platform is executed by the cloud platform and includes:
[0041] S101: Acquire a target change template, a target host, and a group of target hosts selected by a user.
[0042] Specifically, the change template information can be obtained from the template library, and a change template list can be generated according to the change template information, so that the user can select the target change template from the change template list, thereby reducing manual input and avoiding errors. The basic structure of each change template in the template library is the same. Each change template defines the host selection rules, group execution rules, OA flow rules, and defines the collection operation, form operation, verification operation and change process. Depending on the function, the change templates in the template library may include, but are not limited to: tablespace new modeling template, tablespace expansion template, swap template modification, new online log group template, etc. The template library can provide a management interface for administrators to add, delete or edit templates as needed.
[0043] The information of the change template obtained from the template library may include the name of the template, the functional description of the template, the host selection rules and grouping rules in the template, etc. The change template list may display such information of the change template for reference when the user selects the target template. At the same time, in order to further avoid errors, permissions may be set in the generated change template list according to the user's permissions to control the templates that the user can select, or the generated change template list may indicate the templates that match the user's permissions to assist the user in selecting.
[0044] After obtaining the target change template selected by the user, the host information under the cloud platform can be obtained, and a host information list can be generated for the user to select the target host from the host information list, thereby reducing manual input and avoiding errors. The acquired host information may include: host name, host IP address, host operating system name, name of the deployment unit to which the host belongs, etc. This information can be displayed in the host information list to assist the user in selecting the target host. To further facilitate the user in selecting the target host, it is also possible to display which deployment units are under the cloud platform and which hosts are under each deployment unit according to the dimension of the deployment unit, so as to facilitate the user in selecting the target host.
[0045] After obtaining the target host selected by the user, a target host information list can be generated for the user to group the target hosts in the target host information list. Among them, when grouping, a rule can be set to prevent the user from assigning hosts in the same deployment unit to the same group. After obtaining the target change template selected by the user, a group execution rule list can also be generated according to the group execution rule under the target change template, so that the user can select the group execution rule from the optional group execution rules provided by the target change template, thereby avoiding the user from selecting an inappropriate group execution rule. The group execution rule can specifically include: no group execution, automatic serial change for each group, automatic parallel change for each group, manual serial change for each group, manual parallel change for each group. Etc. For example, the user groups the target hosts to obtain Group 1, Group 2, and Group 3, and can select from the group execution rule list to automatically execute serial changes for each group, so that when executing changes, Group 1, Group 2, and Group 3 will automatically execute changes in series. For another example, it can be selected from the group execution rule list to automatically execute parallel changes for each group, so that when executing changes, Group 1, Group 2, and Group 3 will automatically execute changes in parallel. Similarly, you can choose to manually perform serial changes on each group or manually perform parallel changes on each group, so that when performing changes, you can manually trigger each group to perform changes serially or in parallel. Of course, if you choose not to perform changes in groups, the changes can be performed in any order between the groups.
[0046] This embodiment sets group execution rules between groups, which can avoid damaging the high availability of the cluster and reduce the risk of batch changes.
[0047] The display method of the acquired change template information, host information, group execution rules and other information is not limited to the list form. For example, multiple options can be generated based on the change template information, one option corresponds to one change template, and a radio button is generated before each option name for the user to select the target change template.
[0048] S102: Perform host verification on the target host according to the host selection rule of the target change template.
[0049] The host selection rule of the target change template can be: only one host can be selected in one deployment unit, only all hosts can be selected in one deployment unit, or any host can be selected in one deployment unit. Among them, a deployment unit is a collection of hosts that jointly complete a certain function, which is a cluster, and can also be a master-slave server for master-slave deployment. After obtaining the target host selected by the user, it can be determined whether the selected target host meets the host selection rule of the target change template. If it meets, it is determined that the selected target host has passed the host verification. If it does not meet, it is determined that the selected target host has not passed the host verification. For example, if the host selection rule of the target change template is that only one host can be selected in one deployment unit, if two of the target hosts selected by the user are in the same deployment unit, it is determined that the host verification has not been passed. For another example, if the host selection rule of the target change template is that only all hosts can be selected in one deployment unit, if there are other hosts in the deployment unit where the target host selected by the user is located that have not been selected, it is determined that the host verification has not been passed. For another example, if the host selection rule of the target change template is that one deployment unit can select any host, the user selects any one or more target hosts in the deployment unit, and it is determined that the host verification has been passed. When the target host passes the host verification, the next group verification can be performed. When the target host fails the host verification, a prompt or warning can be given so that the user can handle it. For example, the target host that fails the host verification can be displayed on the display.
[0050] S103: After passing the host verification, performing group verification on the group of the target host according to the group execution rule of the target change template.
[0051] After obtaining the grouping of the target host, the grouping execution rule selected by the user can be obtained, and the grouping of the target host can be grouped and verified to verify whether the grouping set by the user is appropriate, and whether the grouping execution rule selected by the user is applicable between the groups set by the user. If the grouping set by the user is appropriate and the grouping execution rule selected by the user is applicable between the groups, it is judged that the grouping verification has passed. If it is inappropriate or inapplicable, a prompt can be given so that the user can modify it.
[0052] S104: After group verification, the collection script associated with the target change template is sent to the target host, and the collection script is started to collect parameter information of the target host.
[0053] The collection script associated with the target change template can be first sent to each target host, and then a start instruction can be issued to start the collection script. The collection scripts and parameter information collected by different change templates may be different, and the specific parameter information collected can be determined by the change content. For example, for database expansion, the collection scripts sent can include: disk group available space collection script, table space information collection script, online log collection script, etc., to collect the target host's disk available space information, table space information and online log information.
[0054] S105: Generate a change parameter entry interface according to the form operation of the target change template and the collected parameter information of the target host, so that the user can enter the change parameters through the change parameter entry interface.
[0055] The parameter change entry interface generated based on the form operation and the collected parameter information of the target host is a customized interface for target host changes. The collected target host information can be written into the drop-down box, list and default options for users to choose from, so that users can enter as little parameter information as possible, reduce user misoperation, and thus reduce the risk of changes. For example, for tablespace expansion, the collected host name, tablespace information, type, total size, available space size and other parameters can be displayed in the interface, so that users only need to select the name of the tablespace to be expanded and fill in the size of the tablespace to be expanded.
[0056] S106: Verify the input change parameters and change contents according to the verification operation of the target change template and the collected parameter information of the target host.
[0057] Specifically, when the user enters the change parameters, the front-end legitimacy check can be performed on the entered change parameters according to the parameter verification operation under the change template. For example, when filling in the size of the table space to be expanded, numbers need to be filled in. At this time, if the user enters letters as parameters, the parameters entered by the user are illegal. After the change parameters entered by the user pass the front-end legitimacy check, the background global association check can be further performed on the entered change parameters and the change content according to the association verification operation under the target change template and the parameter information collected from the target host. For example, if the change content is to expand the table space, after the expansion parameters entered by the user pass the legitimacy check, it can be determined whether the table space can be expanded according to the table space name. If it can be expanded, it can be verified whether the expansion parameters entered by the user are appropriate according to the size of the existing table space and the remaining space on the disk to which it belongs.
[0058] S107: After the verification is passed, a change work order is generated according to the target change template and the entered change parameters.
[0059] The generated change work order is a change control table, which contains table change parameters and inherits the change process and associated scripts of the change template. The target host can be controlled to make changes based on the change work order.
[0060] S108: The change work order is circulated and approved according to the OA circulation rules of the target change template.
[0061] OA circulation rules specify the approval flow of work orders. For example, OA circulation rules can specify that work orders be transferred from the approval system of one department to the approval system of another department, or they can specify that work orders be transferred within the approval system within the department. Therefore, work orders can be transferred to various approval nodes according to OA circulation rules for circulation approval.
[0062] S109: After approval, the target host is automatically changed according to the change work order.
[0063] Approval may take a long time, and during this period of time, the environment of the target host may have changed and is not suitable for change. Therefore, in order to reduce the risk of change, when the target host is automatically changed according to the change work order, in an embodiment of the present invention, the parameter information of the target host can be collected again, and the change parameters and change content can be verified again. After the verification is passed, the target host group is automatically changed according to the group execution rule. If the verification fails, the change can be suspended and the user is prompted to process.
[0064] After implementing automatic changes to the target host, the change implementation results can be verified based on the change parameters to further ensure the correctness of the change. For example, for tablespace 1, the expansion parameter entered by the user is 200M, which means that tablespace 1 of the target host needs to be expanded by 200M. After implementing the expansion, it can be verified whether the expanded tablespace size is equal to the size required by the user. If it is equal, it means that there is no problem with the change. If it is not equal, it means that an error occurred during the change process, and the user can be prompted to handle it.
[0065] In the process of creating a change work order by the user, this embodiment fully verifies the user's selection and input and other operations, which can avoid errors in the work order created by the user, reduce the user's operation risk, and control the change risk from the source. In addition, in the process of implementing the change, the change is pre-verified and the result is verified again, so as to further reduce the change risk. By fully verifying each link of the change, this embodiment can provide more secure and reliable changes for financial-level systems such as banks.
[0066] Please refer to Figure 3, which shows a schematic diagram of the structure of an automatic change device based on a cloud platform provided by an embodiment of the present invention, the automatic change device is deployed on the cloud platform, and includes:
[0067] The target acquisition module 10 is used to acquire the target change template, target host and target host group selected by the user, wherein the target change template defines the host selection rule, group execution rule, OA flow rule, and defines the collection operation, form operation, verification operation and change process;
[0068] A host verification module 20, configured to perform host verification on the target host according to the host selection rule of the target change template;
[0069] The group verification module 30 is used to obtain the group execution rule selected by the user after passing the host verification, and perform group verification on the group of the target host;
[0070] The collection module 40 is used to send the collection script associated with the target change template to the target host, and start the collection script to collect parameter information of the target host;
[0071] The parameter input interface generation module 50 is used to generate a parameter change input interface according to the form operation of the target change template and the collected parameter information of the target host, so that the user can input the change parameters through the parameter change input interface;
[0072] A change verification module 60 verifies the input change parameters and change contents according to the verification operation of the target change template and the collected parameter information of the target host;
[0073] A work order generation module 70 is used to generate a change work order according to the target change template and the input change parameters after the verification is passed;
[0074] OA circulation module 80, used for circulating and approving the change work order according to the OA circulation rules of the target change template;
[0075] The change implementation module 90 is used to automatically change the target host according to the change work order after approval.
[0076] In one embodiment of the present invention, the automatic changing device may further include:
[0077] The template list generating module 11 is used to obtain the change template information in the template library and generate a change template list so that the user can select a target change template from the change template list;
[0078] The host list generating module 12 is used to obtain the host information under the cloud platform and generate a host information list so that the user can select a target host from the host information list.
[0079] The host grouping module 13 is used to generate a target host information list and generate a group execution rule list according to a target change template selected by a user, so that the user can group the target hosts in the target host information list and select a group execution rule from the group execution rule list.
[0080] Specifically, the host selection rule includes: only one host can be selected in one deployment unit, only all hosts can be selected in one deployment unit, and any host can be selected in one deployment unit.
[0081] Specifically, the group execution rules include: non-group execution, automatic serial change execution on each group, automatic parallel change execution on each group, manual serial change execution on each group, and manual parallel change execution on each group.
[0082] Furthermore, the change verification module 60 includes:
[0083] The validity checking unit 61 is used to perform a front-end validity check on the input change parameters according to the parameter checking operation under the target change template;
[0084] The association verification unit 62 is used to perform background global association verification on the input change parameters and change contents according to the association verification operation under the target change template and the collected parameter information of the target host.
[0085] In one embodiment of the present invention, the change implementation module 90 includes:
[0086] A change pre-verification unit 91 is used to collect parameter information of the target host again and verify the change parameters and change content again;
[0087] A change implementation unit 92, configured to automatically change the target host grouping according to the grouping execution rule after passing the verification of the change pre-verification module;
[0088] The result verification unit 93 is used to verify the change result according to the change parameters after the target host is automatically changed.
[0089] The processing flow and processing method of the automatic change device described in this embodiment can be found in the corresponding flow of the aforementioned automatic change method, which will not be repeated here.
[0090] Although some embodiments are described by way of example herein, various modifications may be made to these embodiments without departing from the essence of the present invention, and all such modifications still belong to the concept of the present invention and fall within the scope of protection defined by the claims of the present invention. For example, in various embodiments of the present invention, the functions of some modules in multiple modules may be combined or integrated to be implemented by one module, or the functions of a certain module may be implemented by multiple modules.
[0091] Through the description of the above implementation modes, those skilled in the art can clearly understand that the present invention can be implemented by combining software with a hardware platform. Based on such an understanding, all or part of the contribution of the technical solution of the present invention to the background technology can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various implementation modes of the present invention or some parts of the implementation modes.
[0092] Another embodiment of the present invention provides a computer storage medium, such as a hard disk, an optical disk, a flash memory, a floppy disk, a magnetic tape, etc., on which computer-readable instructions are stored. The computer-readable instructions can be executed by a processor to implement the cloud platform-based automatic change method described in any of the above embodiments.
[0093] Another embodiment of the present invention provides a computer device, comprising:
[0094] a memory having a computer program stored thereon,
[0095] A processor can execute the computer program to implement the cloud platform-based automatic change method described in any one of the above embodiments.
[0096] The terms and expressions used in this specification are for illustration only and are not intended to be limiting. It should be understood by those skilled in the art that various changes may be made to the details of the above embodiments without departing from the basic principles of the disclosed embodiments. Therefore, the scope of protection of the present invention is determined solely by the claims, and in the claims, unless otherwise specified, all terms should be understood in the broadest reasonable sense.
Claims
1. An automatic change method based on a cloud platform, characterized in that: The method comprises: Acquire the change template information in the template library and generate a change template list so that the user can select a target change template from the change template list; Acquire host information under the cloud platform and generate a host information list so that the user can select a target host from the host information list; Generate a target host information list according to the target host selected by the user, and generate a group execution rule list according to the target change template selected by the user, so that the user can group the target hosts in the target host information list and select a group execution rule from the group execution rule list; Obtaining the target change template, target host and target host grouping selected by the user, wherein the target change template defines host selection rules, group execution rules, OA flow rules, and defines collection operations, form operations, verification operations and change processes; Performing host verification on the target host according to the host selection rule of the target change template; After passing the host verification, obtaining the group execution rule selected by the user, and performing group verification on the group of the target host; After group verification, the collection script associated with the target change template is sent to the target host, and the collection script is started to collect parameter information of the target host; Generate a change parameter entry interface according to the form operation of the target change template and the collected parameter information of the target host, so that the user can enter the change parameters through the change parameter entry interface; Verifying the input change parameters and change contents according to the verification operation of the target change template and the collected parameter information of the target host; After the verification is passed, a change work order is generated according to the target change template and the entered change parameters; The change work order is circulated and approved according to the OA circulation rules of the target change template; After approval, the target host is automatically changed according to the change work order.
2. The automatic change method according to claim 1, characterized in that: The host selection rules include: Only one host can be selected in a deployment unit; Only all hosts can be selected in a deployment unit; You can select any host in a deployment unit.
3. The automatic change method according to claim 1, characterized in that: The group execution rules include: No group execution, Automatically perform serial changes on each group, Automatically perform parallel changes on each group, Manually perform serial changes on each group, Manually perform parallel changes on each group.
4. The automatic change method according to any one of claims 1 to 3, characterized in that: The verifying of the input change parameters and change contents according to the verification operation of the target change template and the collected parameter information of the target host includes: Perform front-end validation of the entered change parameters according to the parameter validation operation under the target change template; According to the association verification operation under the target change template and the collected parameter information of the target host, the entered change parameters and change content are globally associated with the background verification.
5. The automatic change method according to claim 4, characterized in that: After approval, automatically changing the target host according to the change work order includes: Collect the parameter information of the target host again, and verify the changed parameters and changed content again. After the verification is passed, the target host group is automatically changed according to the group execution rule; After the automatic changes are implemented on the target host, the change implementation results are verified based on the change parameters.
6. An automatic change device based on a cloud platform, characterized in that: The device comprises: A template list generation module, used to obtain the change template information in the template library and generate a change template list so that the user can select a target change template from the change template list; A host list generation module, used to obtain host information under the cloud platform and generate a host information list so that the user can select a target host from the host information list; A host grouping module, used to generate a target host information list according to the target host selected by the user, and to generate a group execution rule list according to the target change template selected by the user, so that the user can group the target hosts in the target host information list and select a group execution rule from the group execution rule list; The target acquisition module is used to obtain the target change template, target host and target host group selected by the user, wherein the target change template defines the host selection rule, group execution rule, OA flow rule, and defines the collection operation, form operation, verification operation and change process; A host verification module, used to perform host verification on the target host according to the host selection rule of the target change template; A group verification module is used to obtain the group execution rule selected by the user after passing the host verification, and perform group verification on the group of the target host; A collection module, used for sending a collection script associated with the target change template to a target host, and starting the collection script to collect parameter information of the target host; A parameter input interface generation module, used to generate a parameter change input interface according to the form operation of the target change template and the collected parameter information of the target host, so that the user can input the change parameters through the parameter change input interface; A change verification module verifies the input change parameters and change contents according to the verification operation of the target change template and the collected parameter information of the target host; A work order generation module is used to generate a change work order according to the target change template and the entered change parameters after the verification is passed; An OA circulation module, used to circulate and approve the change work order according to the OA circulation rules of the target change template; The change implementation module is used to automatically change the target host according to the change work order after approval.
7. The automatic changing device according to claim 6, characterized in that: The host selection rules include: Only one host can be selected in a deployment unit; Only all hosts can be selected in a deployment unit; You can select any host in a deployment unit.
8. The automatic changing device according to claim 6, characterized in that: The group execution rules include: No group execution, Automatically perform serial changes on each group, Automatically perform parallel changes on each group, Manually perform serial changes on each group, Manually perform parallel changes on each group.
9. The automatic changing device according to any one of claims 6 to 8, characterized in that: The change verification module includes: A validity check unit is used to perform front-end validity check on the input change parameters according to the parameter check operation under the target change template; The association verification unit is used to perform background global association verification on the input change parameters and change contents according to the association verification operation under the target change template and the parameter information of the collected target host.
10. The automatic changing device according to claim 9, characterized in that: The change implementation module includes: A change pre-verification unit is used to collect parameter information of the target host again and verify the change parameters and change content again; A change implementation unit, used to automatically change the target host group according to the group execution rule after passing the verification of the change pre-verification module; The result verification unit is used to verify the change result according to the change parameters after the target host is automatically changed.
11. A computer storage medium having computer instructions stored thereon, characterized in that: The computer instructions can be executed by a processor to implement the automatic change method described in any one of claims 1 to 5.
12. A computer device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program to implement the automatic change method described in any one of claims 1 to 5.
Citation Information
Patent Citations
Heterogeneous and integrated hybrid cloud resource management platform
CN109347676A
Automatic changing method, system and device for application program and storage medium
CN110471681A
Method and device for distributively deploying hadoop cluster
WO2017206667A1
