CN112965815A - Host deployment method and device, electronic equipment and computer storage medium - Google Patents

Host deployment method and device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN112965815A
CN112965815A CN202110188516.3A CN202110188516A CN112965815A CN 112965815 A CN112965815 A CN 112965815A CN 202110188516 A CN202110188516 A CN 202110188516A CN 112965815 A CN112965815 A CN 112965815A
Authority
CN
China
Prior art keywords
identification
response
host
job
operation step
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110188516.3A
Other languages
Chinese (zh)
Inventor
谢小舜
钟伟
梁皓玉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110188516.3A priority Critical patent/CN112965815A/en
Publication of CN112965815A publication Critical patent/CN112965815A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Abstract

The present disclosure provides a host deployment method and apparatus, an electronic device, and a computer storage medium, and relates to the field of cloud computing technology, and may also be used in the financial field or other fields. The host deployment method comprises the following steps: generating a job flow for deploying the host, wherein the job flow comprises an installation job step and an identification acquisition job step, and the identification acquisition job step is used for acquiring a line moving identification for representing the job completion condition of the installation job step to confirm response or skip response; after executing the current installation operation step according to the operation flow, executing a current identification acquisition operation step corresponding to the current installation operation step, and acquiring a target migration identification corresponding to the current installation operation step from a host parameter file library; and performing confirmation response or skipping response on the execution result of the current installation operation step according to the target moving identification corresponding to the current installation operation step.

Description

Host deployment method and device, electronic equipment and computer storage medium
Technical Field
The present disclosure relates to the field of cloud computing technologies, and in particular, to a host deployment method and apparatus, an electronic device, a storage medium, and a program product.
Background
Before the production of the host version integrated operation, although a production deployment worker can determine whether the relevant operation steps need to be responded when the integrated operation is generated, since a developer cannot predict in advance whether a pre-trip item exists and even if the developer knows whether the relevant operation steps need to be responded before the production, the developer cannot modify the application-side batch program, the production deployment worker can only completely respond to whether the relevant operation step pre-trip file is ready, and the manual operation of the production deployment worker is increased, so that the waste of labor and time is caused.
Disclosure of Invention
In view of the above, the present disclosure provides a host deployment method and apparatus, an electronic device, a storage medium, and a program product.
One aspect of the present disclosure provides a host deployment method, including:
generating a job flow for deploying the host, wherein the job flow comprises an installation job step and an identification acquisition job step, and the identification acquisition job step is used for acquiring a line moving identification for representing the job completion condition of the installation job step to confirm response or skip response;
after executing the current installation operation step according to the operation flow, executing a current identification acquisition operation step corresponding to the current installation operation step, and acquiring a target migration identification corresponding to the current installation operation step from a host parameter file library; and
and performing confirmation response or skipping response on the execution result of the current installation operation step according to the target moving identification corresponding to the current installation operation step.
According to an embodiment of the present disclosure, wherein generating the workflow for deploying the host comprises: and updating the migration identifier into a host parameter file library.
According to an embodiment of the present disclosure, wherein updating the migration identifier to the host parameter file library includes:
displaying an operation interface for generating a work flow, wherein the operation interface comprises a moving identification input detail;
acquiring an input operation;
filling the moving identification into the moving identification input detail in response to the input operation;
performing an identifier addition operation, an
And responding to the identification adding operation, and adding the migration identification into the host parameter file library according to the migration identification input details.
According to an embodiment of the present disclosure, wherein adding the migration identifier to the host parameter file library according to the migration identifier input details comprises:
acquiring a setting operation;
setting a migration identification storage unit in a host parameter file library in response to the setting operation;
and adding the moving identification to the moving identification storage unit according to the moving identification input detail.
According to an embodiment of the present disclosure, wherein populating the travel identification into the travel identification input detail includes:
and filling the moving identification corresponding to the preset response information of the installation operation step into the moving identification input detail according to the preset response information of the installation operation step, wherein the preset response information of each installation operation step comprises confirmation response or skip response to the operation completion condition of the installation operation step.
According to an embodiment of the present disclosure, wherein the performing a confirmation response or a skip response on the execution result of the current installation job step according to the target travel route identification corresponding to the current installation job step includes:
inputting the target moving identification into the response condition of the current installation operation step;
and if the target moving identification meets the response condition of the current installation operation step, confirming the response, and if the target moving identification does not meet the response condition of the current installation operation step, skipping the response.
Another aspect of the present disclosure provides a host deployment apparatus, including:
the system comprises a generation module, a selection module and a display module, wherein the generation module is used for generating a job flow for deploying a host, the job flow comprises an installation job step and an identification acquisition job step, and the identification acquisition job step is used for acquiring a shift identification for representing the confirmation response or the skip response of the job completion condition of the installation job step;
the identification acquisition module is used for executing a current identification acquisition operation step corresponding to the current installation operation step after executing the current installation operation step according to the operation flow, and acquiring a target migration identification corresponding to the current installation operation step from the host parameter file library; and
and the response module is used for performing confirmation response or skipping response on the execution result of the current installation operation step according to the target moving identification corresponding to the current installation operation step.
According to an embodiment of the present disclosure, the generating module includes:
and the identification updating unit is used for updating the migration identification into the host parameter file library.
According to an embodiment of the present disclosure, wherein the identification updating unit includes:
the display subunit is used for displaying an operation interface used for generating the operation flow, wherein the operation interface comprises a movement identification input detail;
an acquisition subunit configured to acquire an input operation;
the filling subunit is used for responding to the input operation and filling the moving identification into the moving identification input detail;
a first identifier adding subunit for performing an identifier adding operation, an
And the second identification adding subunit is used for responding to the identification adding operation and adding the migration identification to the host parameter file library according to the migration identification input details.
According to an embodiment of the present disclosure, wherein adding the migration identifier to the host parameter file library according to the migration identifier input details comprises:
acquiring a setting operation;
setting a migration identification storage unit in a host parameter file library in response to the setting operation;
and adding the moving identification to the moving identification storage unit according to the moving identification input detail.
According to an embodiment of the present disclosure, wherein populating the travel identification into the travel identification input detail includes: and filling the moving identification corresponding to the preset response information of the installation operation step into the moving identification input detail according to the preset response information of the installation operation step, wherein the preset response information of each installation operation step comprises confirmation response or skip response to the operation completion condition of the installation operation step.
According to an embodiment of the present disclosure, wherein the reply module comprises:
an input unit for inputting the target travel mark into a response condition of the current installation work step;
and the response unit is used for confirming the response or skipping the response, specifically, confirming the response if the target moving identification meets the response condition of the current installation operation step, and skipping the response if the target moving identification does not meet the response condition of the current installation operation step.
Another aspect of the present disclosure provides an electronic device including: one or more processors; a memory for storing one or more instructions, wherein the one or more instructions, when executed by the one or more processors, cause the one or more processors to implement the method as above.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the above method when executed.
Another aspect of the disclosure provides a computer program product comprising computer executable instructions for implementing the method as above when executed.
According to the embodiment of the disclosure, because the identifier obtaining operation step is added when the operation flow is generated, after the current installation operation step is executed according to the operation flow, the target moving identifier corresponding to the current installation operation step can be obtained from the host parameter file library through the current identifier obtaining operation step, and the execution result of the current installation operation step can be determined to carry out the required response or the automatic skip response through the target moving identifier. The method is simple and easy to implement, does not need to modify batch programs on the application side, and solves the problems that in the prior art, for the response of whether the related operation walking files are ready, production deployment personnel cannot know in advance whether the response can be skipped so that all responses are needed, and the labor and the time are wasted. The method disclosed by the embodiment of the invention can reduce redundant responses of batch operation of the application side on the premise of not modifying batch programs of the application side, reduces manual operation of production deployment personnel, and saves production time.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an exemplary system architecture to which the host deployment methods and apparatus of the present disclosure may be applied;
FIG. 2 schematically illustrates a flow chart of a host deployment method according to an embodiment of the present disclosure;
fig. 3 schematically illustrates an operation flowchart of performing a confirmation response or a skip response to the execution result of the current installation job step according to an embodiment of the present disclosure;
FIG. 4 is a flow diagram that schematically illustrates updating a migration identifier into a host parameter file repository, in accordance with an embodiment of the present disclosure;
FIG. 5 schematically illustrates a flow diagram of a host deployment method according to another embodiment of the disclosure;
FIG. 6 schematically illustrates a block diagram of a host deployment device, in accordance with an embodiment of the present disclosure; and
fig. 7 schematically shows a block diagram of an electronic device for implementing a host deployment method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
The invention provides a host deployment method and a host deployment device, and the method is adopted, wherein an identification acquisition operation step is added when an operation flow is generated, after a current installation operation step is executed according to the operation flow, a target traveling identification corresponding to the current installation operation step can be acquired from a host parameter file library through the current identification acquisition operation step, and the execution result of the current installation operation step can be determined to carry out required response or automatic skip response through the target traveling identification.
Before the embodiments of the present disclosure are explained in detail, the system structure related to the method and apparatus provided by the embodiments of the present disclosure is described as follows.
Fig. 1 schematically illustrates an exemplary system architecture 100 to which the host deployment methods and apparatus of the present disclosure may be applied. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, a system architecture 100 according to this embodiment may include a terminal device 101, a network 102, and a host server 103. Network 102 is the medium used to provide a communication link between terminal device 101 and host server 103. Network 102 may include various connection types, such as wired and/or wireless communication links, and so forth.
A user may use terminal device 101 to interact with host server 103 over network 102 to receive or send command messages and the like. An application tool for deploying host-integrated jobs may be installed on the terminal apparatus 101. The terminal device 101 may be an electronic device having a display screen and supporting input operations, including but not limited to laptop portable computers, desktop computers, and the like.
The host server 103 may be a server providing various services, such as a background management server providing support for a website browsed by a user using the terminal apparatus 101, a database server, and other types of application servers, or a combination of the above-described various types of servers. Host server 103 may analyze and otherwise process data received from a user request and feed back the processing results (e.g., web pages, information, or data obtained or generated from the user request) to the user.
It should be noted that the host deployment method provided by the embodiment of the present disclosure may be generally executed by the terminal device 101. Accordingly, the host deployment apparatus provided by the embodiment of the present disclosure may be generally disposed in the terminal device 101. The host deployment method provided by the embodiment of the present disclosure may also be executed by a server or a server cluster that is different from the terminal device 101 and is capable of communicating with the host server 103. Accordingly, the host deployment apparatus provided in the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the terminal device 101 and capable of communicating with the host server 103.
According to the embodiment of the disclosure, the terminal device 101 is provided with an application tool for deploying the host-integrated job, a user generates a job flow for deploying the host server 103 by inputting information and data related to the installation job flow of the host server 103, setting parameters and the like in a user operation interface of the application tool for the integrated job of the terminal device 101, and deploys the host server 103 (including but not limited to installing a deployment database, moving a line job, an online job, a batch head-to-tail job, an application-side program job and the like) by remotely controlling the host server 103.
It should be understood that the number of terminal devices, networks, and host servers 103 in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
It should be noted that the host deployment method and apparatus provided by the present disclosure relate to the field of cloud computing technology, and may be used in the financial field, and may also be used in any field other than the financial field.
Before the production of the host version integrated operation, although a production deployment worker can determine whether the relevant operation steps need to be responded when the integrated operation is generated, since a developer cannot predict in advance whether a pre-trip item exists and even if the developer knows whether the relevant operation steps need to be responded before the production, the developer cannot modify the application-side batch program, the production deployment worker can only completely respond to whether the relevant operation step pre-trip file is ready, and the manual operation of the production deployment worker is increased, so that the waste of labor and time is caused.
In the process of implementing the present disclosure, it is found that, on the premise of not modifying the batch program on the application side, if it is desired to implement automatic skipping of unnecessary responses, the script file may be modified to modify the content of the batch head and tail jobs, an identifier obtaining job step is added to the batch head and tail jobs, a walk identifier for indicating whether the current installation job step needs to skip responses is added in advance in the host parameter file library, the walk identifier is obtained from the host parameter file library by the identifier obtaining job step, and it is determined whether the current installation job step needs to skip responses according to the response conditions set by the current installation job step, by the above method, the purpose of the present disclosure can be achieved: namely, under the premise of not modifying the batch program at the application side, the automatic skipping of unnecessary responses can be realized.
Fig. 2 schematically shows a flow chart of a host deployment method according to an embodiment of the present disclosure.
As shown in fig. 2, the method includes operations S201 to S203.
In operation S201, a job flow for deploying the host is generated, where the job flow includes an installation job step and an identifier obtaining job step, and the identifier obtaining job step is used to obtain a migration identifier for characterizing a job completion status of the installation job step, and performing a confirmation response or a skip response.
According to an embodiment of the present disclosure, a workflow for deploying a host may be generated by an application tool (e.g., a host version management system) for deploying a host-integrated job. The job steps that make up the workflow include, but are not limited to, installation of deployment databases, migration jobs, online jobs, batch head-to-tail jobs, application-side program jobs, and the like. And managing and scheduling execution modes, such as serial, parallel, sequential and the like, of the installation work steps of the hosts by using a task scheduling tool, so that the installation work steps of the hosts form an ordered work flow. Here, it should be noted that the identifier obtaining operation step in the operation flow is a batch head and tail operation step, and the batch head and tail operation step is a set of fixed batch operations independent of the host installation operation step, and is used to concatenate host installation batch operations to form a complete operation flow.
Taking an application tool of the host integration operation as an example, adopting a host version management system, setting the operation flow in the host version management system according to some information and data related to the host installation operation flow, setting parameters and the like, and generating the operation flow for deploying the host.
In operation S202, after executing the current installation job step according to the job flow, a current identification acquisition job step corresponding to the current installation job step is executed, and a target migration identification corresponding to the current installation job step is acquired from the host parameter file library.
In operation S203, a confirmation response or a skip response is performed on the execution result of the current installation job step according to the target travel mark corresponding to the current installation job step.
After the above-mentioned job flow is generated, the application tool (for example, the host version management system) of the host integration job submits the operation, so that the job flow can be triggered. The job flow for deploying the host generated by the above operation includes, in addition to the installation job step and the identification acquisition job step, a response job step, that is, an operation of confirming a response to the completion of the current installation job step or skipping a response (the response job step is included in the above operation S203). After executing the current installation operation step according to the operation flow, acquiring a target migration identification corresponding to the current installation operation step from the host parameter file library through the identification acquisition operation step, and transmitting the target migration identification to the response operation step in the form of a return code.
In the embodiment of the disclosure, on the premise of not modifying the batch program at the application side, the content of the batch head and tail operation is modified by modifying the script file, and an identification acquisition operation step is added in the batch head and tail operation. Because the batch head-end operation can not be realized by setting operation step information through the application tool of the host machine integrated operation, the operation step is obtained through the identification to obtain the travel mark, and the travel mark is transmitted to the response operation step by utilizing the return code operation function of the application tool of the host machine integrated operation, so that the automatic response to the current operation step is realized.
According to the embodiment of the disclosure, because the identifier obtaining operation step is added when the operation flow is generated, after the current installation operation step is executed according to the operation flow, the target moving identifier corresponding to the current installation operation step can be obtained from the host parameter file library through the current identifier obtaining operation step, and the execution result of the current installation operation step can be determined to carry out the required response or the automatic skip response through the target moving identifier. The method is simple and easy to implement, does not need to modify batch programs on the application side, and solves the problems that in the prior art, for the response of whether the related operation walking files are ready, production deployment personnel cannot know in advance whether the response can be skipped so that all responses are needed, and the labor and the time are wasted. The method disclosed by the embodiment of the invention can reduce redundant responses of batch operation of the application side on the premise of not modifying batch programs of the application side, reduces manual operation of production deployment personnel, and saves production time.
Specifically, the operation S203 will be described in detail with reference to the method shown in fig. 3. Fig. 3 schematically shows an operation flowchart of performing a confirmation response or a skip response to the execution result of the current installation job step according to the embodiment of the present disclosure.
As shown in fig. 3, the method includes operations S301 to S302.
In operation S301, a target travel flag is input to a response condition of the current installation job step.
In operation S302, it is determined whether a skip response is required for the current installation job step according to the response condition of the current installation job step. Specifically, the response operation step acquires a return code (i.e., a target travel identifier) of the current installation operation step, and determines whether a response needs to be skipped for the current installation operation step according to a response condition of the current installation operation step, specifically: inputting a return code corresponding to the target traveling identification into a response condition of the current installation operation step, if the target traveling identification meets the response condition of the current installation operation step, confirming the response, confirming the completion condition of the current installation operation step through manual operation, and then continuing to execute the subsequent operation step; and if the target moving identification does not meet the response condition of the current installation operation step, automatically skipping the response and continuously executing the subsequent operation step.
According to an embodiment of the present disclosure, in the host deployment method, generating a job flow for deploying the host includes: and updating the migration identifier into a host parameter file library.
The specific operation of updating the migration identifier into the host parameter file library may refer to the flowchart shown in fig. 4, as shown in fig. 4, and the specific operation of updating the migration identifier into the host parameter file library specifically includes, as shown in fig. 3, the method including operations S401 to S405.
In operation S401, an operation interface for generating a job flow is presented, where the operation interface includes a travel identifier input detail; the user operation interface is a UI (user interface) of an application tool (such as a host version management system) installed on the terminal device and used for deploying host integration operation, and a user can generate an operation flow for deploying the host by inputting a moving identification detail, some information and data related to a host installation operation flow, setting parameters and the like in the operation interface.
In operation S402, an input operation is obtained, that is, a commissioning worker inputs a migration identification detail in an application tool (e.g., a host version management system) UI interface of the integrated job.
In operation S403, in response to the input operation, the travel identification is filled in the travel identification input details. The specific operation is as follows: and filling the moving identification corresponding to the preset response information of the installation operation step into the moving identification input detail according to the preset response information of the installation operation step, wherein the preset response information of each installation operation step is response information which is already known by an operator, and comprises confirmation response or skip response to the operation completion condition of the installation operation step.
In operation S404, an identification addition operation is performed.
In operation S405, in response to the identifier adding operation, a migration identifier is added to the host parameter file library according to the migration identifier input details. In the application side batch operation developed in advance by a developer, each installation operation step needs to acquire the parameter information corresponding to the current installation operation step from the host parameter file library, and the migration identification information corresponding to each installation operation step is not stored in the original host parameter file library, so that the default is that the migration content exists (namely all the installation operation steps need to be responded). In the embodiment of the present disclosure, if it is desired to implement that each installation job step can automatically skip an unnecessary response, the migration identifier details input in the UI interface of the host version management system need to be added and stored in the host parameter file library, so that the subsequent identifier obtaining job step can obtain the target migration identifier corresponding to the current installation job step from the host parameter file library. Therefore, in the embodiment of the present disclosure, by performing the identifier adding operation, the migration identifier is added to the host parameter file library according to the migration identifier input details. The identification adding operation is realized by additionally adding an identification updating function module before being hung to the host operation flow generating module, wherein the host operation flow generating module is used for generating the operation flow for deploying the host.
According to the embodiment of the present disclosure, in the operation S403, the specific operation of updating the migration identifier into the specific operation flow of the host parameter file library, and adding the migration identifier into the host parameter file library according to the migration identifier input details includes: acquiring a setting operation; setting a migration identification storage unit in a host parameter file library in response to the setting operation; and adding the moving identification to the moving identification storage unit according to the moving identification input detail. Through the operation, each migration identifier is stored in the corresponding storage unit in the host parameter file library, so that the subsequent identifier acquisition operation step can acquire the target migration identifier corresponding to the current installation operation step from the host parameter file library.
FIG. 5 schematically illustrates a flow diagram of a host deployment method according to another embodiment of the disclosure; the following description, in conjunction with fig. 5, illustrates a host deployment method according to an embodiment of the present disclosure. As shown in fig. 5:
(1) first, a workflow for deploying the host is generated, wherein the workflow for deploying the host is generated by an application tool (host version management system) for deploying the host-integrated job.
Specifically, the workflow for deploying the host is generated by inputting the details of the migration identifier in the UI interface of the host version management system by the user (e.g., migration identifier bit 0 corresponding to domestic partition 1, migration identifier bit 1 corresponding to asia-pacific partition 2, migration identifier bit 0 corresponding to european partition 3, etc., and migration identifier details corresponding to some information and data related to the host installation workflow, setting parameters, etc.) of each partition (domestic, asia-pacific partition, european partition, etc., which can be adjusted according to the deployment policy).
In the above operation, the delivery worker inputs the details of the shift identifier of each partition in the UI interface of the host version management system, and then fills in the information for confirming the response or skipping the response to the job completion status of the installation job step of each partition according to the response information that the delivery worker has predicted (for example, it is predicted that domestic partition 1 needs to respond, and its corresponding shift identifier bit is 0; asia-tai partition 2 does not need to respond, and its corresponding shift identifier is 1; european partition 3 needs to respond, and its corresponding shift identifier is 0).
In the above operation, the moving identification details input in the UI interface of the host version management system need to be added and stored in the host parameter file library, so that the subsequent identification obtaining operation step can obtain the target moving identification corresponding to the current installation operation step from the host parameter file library. In the embodiment of the disclosure, the migration identifier is added to the host parameter file library according to the migration identifier input details by executing the identifier adding operation. The identification adding operation is realized by additionally adding an identification updating function module before being hung to the host operation flow generating module, wherein the host operation flow generating module is used for generating the operation flow for deploying the host.
According to the embodiment of the present disclosure, the specific operation of adding and saving the migration identifier details input in the UI interface of the host version management system into the host parameter file library is as follows: firstly, setting a migration identifier storage unit in a host parameter file library, namely deploying a parameter number corresponding to each partition, and storing migration identifiers of the corresponding partitions; and then, executing an identification adding operation through the identification updating function module, and adding and storing the moving identification of the corresponding partition into the parameter number of the corresponding partition: if partition 1 is identified as transiting: 0 (indicating that the partition needs to respond); partition 2 migration identification: 1 (indicating that the partition does not need to respond); partition 3 migration identification: 0 (indicating that the partition needs to respond).
(2) After the workflow is generated, a submission operation input is executed in a UI interface of the host version management system, so that the workflow can be triggered. The operation flow generated by the operation and used for deploying the host comprises an installation operation step, an identification acquisition operation step and an answer operation step, wherein the identification acquisition operation step and the answer operation step in the operation flow are batch head-to-tail operation steps.
After executing the current installation operation step according to the operation flow, executing a current identification acquisition operation step corresponding to the current installation operation step, acquiring a target migration identification corresponding to the current installation operation step from the parameter number of the partition corresponding to the host parameter file library, and transmitting the target migration identification to the response operation step in the form of a return code.
The response operation step acquires a return code (namely a target traveling mark) of the current installation operation step, and determines whether the response needs to be skipped for the current installation operation step according to the response condition of the current installation operation step, specifically: inputting the target traveling mark into the response condition of the current installation operation step, if the target traveling mark meets the response condition of the current installation operation step, confirming the response, confirming the completion condition of the current installation operation step through manual operation, and then continuing to execute the subsequent operation step; and if the target moving identification does not meet the response condition of the current installation operation step, automatically skipping the response and continuously executing the subsequent operation step. For example: the response conditions of the current installation work step of the partition 1 are set as follows: if the return code is equal to 0, executing the response operation step and waiting for manual response execution; if the "return code" > "0" is used, the response operation step is automatically skipped (i.e. the subsequent operation step is continuously executed). When the partition 1 migration flag is 0, the return code acquired by the response job step of the partition 1 is "0", so that the response is executed.
Another aspect of the present disclosure provides a host deployment apparatus, and fig. 6 schematically shows a block diagram of a host deployment apparatus 600 according to an embodiment of the present disclosure.
The host deployment apparatus 600 may be used to implement the method described with reference to fig. 2.
As shown in fig. 6, the host deployment apparatus 600 includes: a generating module 610, an identification obtaining module 620 and a response module 630. Wherein:
the generating module 610 is configured to generate a job flow for deploying the host, where the job flow includes an installation job step and an identifier obtaining job step, and the identifier obtaining job step is used to obtain a migration identifier for characterizing a job completion condition of the installation job step, and performing a confirmation response or a skip response.
And the identifier obtaining module 620 is configured to, after executing the current installation job step according to the job flow, execute the current identifier obtaining job step corresponding to the current installation job step, and obtain the target migration identifier corresponding to the current installation job step from the host parameter file library.
The response module 630 is configured to perform a confirmation response or a skip response on the execution result of the current installation job step according to the target travel identifier corresponding to the current installation job step.
According to the embodiment of the disclosure, the generation module 610 in the host deployment device 600 generates a job flow for deploying the host, which includes an identifier obtaining job step, the identifier obtaining module 620 can obtain a target migration identifier corresponding to the current installation job step from the host parameter file library, and the response module 630 can determine the execution result of the current installation job step according to the target migration identifier to perform a required response or an automatic skip response. According to the embodiment of the disclosure, batch programs on the application side do not need to be modified, and the problem that in the prior art, for the response of whether the related operation walking files are ready or not, production deployment personnel cannot know in advance whether the response can be skipped or not, so that all responses are needed, and manpower and time are wasted is solved. The method disclosed by the embodiment of the invention can reduce redundant responses of batch operation of the application side on the premise of not modifying batch programs of the application side, reduces manual operation of production deployment personnel, and saves production time.
According to an embodiment of the present disclosure, in the host deployment apparatus 600, the generating module 610 includes: and the identification updating unit is used for updating the migration identification into the host parameter file library.
According to an embodiment of the present disclosure, the identifier updating unit includes: the device comprises a display subunit, an acquisition subunit, a filling subunit, a first identifier adding subunit and a second identifier adding subunit. Wherein:
the display subunit is used for displaying an operation interface used for generating the operation flow, wherein the operation interface comprises a movement identification input detail;
an acquisition subunit configured to acquire an input operation;
the filling subunit is used for responding to the input operation and filling the moving identification into the moving identification input detail;
a first identifier adding subunit for performing an identifier adding operation, an
And the second identification adding subunit is used for responding to the identification adding operation and adding the migration identification to the host parameter file library according to the migration identification input details.
According to an embodiment of the present disclosure, the adding a migration identifier to the host parameter file library according to the migration identifier input details includes:
acquiring a setting operation;
setting a migration identification storage unit in a host parameter file library in response to the setting operation;
and adding the moving identification to the moving identification storage unit according to the moving identification input detail.
According to an embodiment of the present disclosure, the step of populating the entry details of the migration identifier into the migration identifier in the padding subunit specifically includes: and filling the moving identification corresponding to the preset response information of the installation operation step into the moving identification input detail according to the preset response information of the installation operation step, wherein the preset response information of each installation operation step comprises confirmation response or skip response to the operation completion condition of the installation operation step.
According to an embodiment of the present disclosure, the reply module 630 in the host deployment apparatus 600 includes: an input unit and a response unit. Wherein:
an input unit for inputting the target travel mark into a response condition of the current installation work step;
and the response unit is used for confirming the response or skipping the response, specifically, confirming the response if the target moving identification meets the response condition of the current installation operation step, and skipping the response if the target moving identification does not meet the response condition of the current installation operation step.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any plurality of the generating module 610, the identity obtaining module 620 and the responding module 630 may be combined and implemented in one module/unit/sub-unit, or any one of the modules/units/sub-units may be split into a plurality of modules/units/sub-units. Alternatively, at least part of the functionality of one or more of these modules/units/sub-units may be combined with at least part of the functionality of other modules/units/sub-units and implemented in one module/unit/sub-unit. According to an embodiment of the present disclosure, at least one of the generating module 610, the identity obtaining module 620, and the responding module 630 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware by any other reasonable manner of integrating or packaging a circuit, or may be implemented in any one of three implementations of software, hardware, and firmware, or in a suitable combination of any of the three. Alternatively, at least one of the generating module 610, the identity obtaining module 620, the answering module 630 may be at least partly implemented as a computer program module, which when executed may perform a corresponding function.
Another aspect of the present disclosure provides an electronic device including: one or more processors; a memory for storing one or more instructions, wherein the one or more instructions, when executed by the one or more processors, cause the one or more processors to implement the method as above.
Fig. 7 schematically illustrates a block diagram of an electronic device suitable for implementing the host deployment method described above, in accordance with an embodiment of the present disclosure. The electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, an electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. The processor 701 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 701 may also include on-board memory for caching purposes. The processor 701 may comprise a single processing unit or a plurality of processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are stored. The processor 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. The processor 701 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 702 and/or the RAM 703. It is noted that the programs may also be stored in one or more memories other than the ROM 702 and RAM 703. The processor 701 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 700 may also include input/output (I/O) interface 705, which input/output (I/O) interface 705 is also connected to bus 704, according to an embodiment of the present disclosure. The system 700 may also include one or more of the following components connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program, when executed by the processor 701, performs the above-described functions defined in the system of the embodiment of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 702 and/or the RAM 703 and/or one or more memories other than the ROM 702 and the RAM 703 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method provided by the embodiments of the present disclosure, when the computer program product is run on an electronic device, the program code being adapted to cause the electronic device to implement the host deployment method provided by the embodiments of the present disclosure.
The computer program, when executed by the processor 701, performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted in the form of a signal on a network medium, distributed, downloaded and installed via the communication section 709, and/or installed from the removable medium 711. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (10)

1. A host deployment method, comprising:
generating a job flow for deploying a host, wherein the job flow comprises an installation job step and an identification acquisition job step, and the identification acquisition job step is used for acquiring a line shifting identification for representing the job completion condition of the installation job step to confirm or skip the response;
after executing the current installation operation step according to the operation flow, executing a current identification acquisition operation step corresponding to the current installation operation step, and acquiring a target migration identification corresponding to the current installation operation step from a host parameter file library; and
and performing confirmation response or skip response on the execution result of the current installation operation step according to the target moving identification corresponding to the current installation operation step.
2. The method of claim 1, the generating a workflow for deploying a host comprising:
and updating the migration identifier to the host parameter file library.
3. The method of claim 2, updating the travel identification to the host parameter file library comprising:
displaying an operation interface used for generating the operation flow, wherein the operation interface comprises a moving identification input detail;
acquiring an input operation;
filling the moving identification into the moving identification input detail in response to the input operation;
performing an identifier addition operation, an
And responding to the identification adding operation, and adding the migration identification to the host parameter file library according to the migration identification input details.
4. The method of claim 3, wherein adding the migration identifier to the host parameter file repository according to the migration identifier entry details comprises:
acquiring a setting operation;
responding to the setting operation, and setting a migration identification storage unit in the host parameter file library;
and adding the migration identifier into the migration identifier storage unit according to the migration identifier input details.
5. The method of claim 3, populating the travel identification to the travel identification input detail includes:
and filling the moving identification corresponding to the preset response information of the installation operation step into the moving identification input detail according to the preset response information of the installation operation step, wherein the preset response information of each installation operation step comprises confirmation response or skip response to the operation completion condition of the installation operation step.
6. The method according to claim 1, wherein the performing a confirmation response or a skip response to the execution result of the current installation job step according to the target travel route identifier corresponding to the current installation job step includes:
inputting the target moving identification into a response condition of the current installation operation step;
and if the target moving identification meets the response condition of the current installation operation step, confirming the response, and if the target moving identification does not meet the response condition of the current installation operation step, skipping the response.
7. A host deployment apparatus, comprising:
the system comprises a generation module, a selection module and a display module, wherein the generation module is used for generating a job flow for deploying a host, the job flow comprises an installation job step and an identification acquisition job step, and the identification acquisition job step is used for acquiring a migration identification for representing the confirmation response or the skipping response of the job completion condition of the installation job step;
the identification acquisition module is used for executing a current identification acquisition operation step corresponding to the current installation operation step after executing the current installation operation step according to the operation flow, and acquiring a target migration identification corresponding to the current installation operation step from a host parameter file library; and
and the response module is used for performing confirmation response or skipping response on the execution result of the current installation operation step according to the target moving identification corresponding to the current installation operation step.
8. An electronic device, comprising:
one or more processors;
a memory to store one or more instructions that,
wherein the one or more instructions, when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
9. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 1 to 6.
10. A computer program product comprising computer executable instructions for implementing the method of any one of claims 1 to 6 when executed.
CN202110188516.3A 2021-02-19 2021-02-19 Host deployment method and device, electronic equipment and computer storage medium Pending CN112965815A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110188516.3A CN112965815A (en) 2021-02-19 2021-02-19 Host deployment method and device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110188516.3A CN112965815A (en) 2021-02-19 2021-02-19 Host deployment method and device, electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN112965815A true CN112965815A (en) 2021-06-15

Family

ID=76285037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110188516.3A Pending CN112965815A (en) 2021-02-19 2021-02-19 Host deployment method and device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN112965815A (en)

Similar Documents

Publication Publication Date Title
CN101739285B (en) System and method of graphics hardware resource usage in a fully virtualized computing environment
WO2022170801A1 (en) Ios application program construction method and apparatus, electronic device, and storage medium
CN107479984B (en) Distributed spatial data processing system based on message
CN110647332A (en) Software deployment method and device based on container cloud
CN113900834A (en) Data processing method, device, equipment and storage medium based on Internet of things technology
CN113094081B (en) Software release method, device, computer system and computer readable storage medium
CN113448570A (en) Data processing method and device, electronic equipment and storage medium
CN111831567B (en) Application test environment configuration method, device, system and medium
CN113032125A (en) Job scheduling method, device, computer system and computer-readable storage medium
US11720476B2 (en) Automated end-to-end testing platform with dynamic container configuration
CN111930629A (en) Page testing method and device, electronic equipment and storage medium
CN110447018B (en) Operation management server, development operation support system, method thereof, and non-transitory computer-readable medium storing program thereof
CN112965815A (en) Host deployment method and device, electronic equipment and computer storage medium
CN114035864A (en) Interface processing method, interface processing device, electronic device, and storage medium
US20130138690A1 (en) Automatically identifying reused model artifacts in business process models
CN112506781A (en) Test monitoring method, test monitoring device, electronic device, storage medium, and program product
CN111858234A (en) Task execution method, device, equipment and medium
CN110704320A (en) Control operation method and device
CN111625326A (en) Task pipeline execution method and device and electronic equipment
US10977210B2 (en) Methods for implementing an administration and testing tool
CN114461527A (en) Test item management method, test item management apparatus, test item management device, storage medium, and program product
CN114461268A (en) Program production method, device, electronic equipment, storage medium and product
CN115080434A (en) Case execution method, device, equipment and medium
CN115344398A (en) Host job management method, device, electronic apparatus, medium, and program product
CN114385229A (en) Code processing method, device, equipment, medium and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination