CN111352612A - Scheduling method and device for code deployment, electronic equipment and storage medium - Google Patents
Scheduling method and device for code deployment, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN111352612A CN111352612A CN202010144532.8A CN202010144532A CN111352612A CN 111352612 A CN111352612 A CN 111352612A CN 202010144532 A CN202010144532 A CN 202010144532A CN 111352612 A CN111352612 A CN 111352612A
- Authority
- CN
- China
- Prior art keywords
- work order
- maintenance platform
- received
- execution
- service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000012423 maintenance Methods 0.000 claims abstract description 58
- 238000012360 testing method Methods 0.000 claims abstract description 46
- 238000012790 confirmation Methods 0.000 claims abstract description 29
- 238000004519 manufacturing process Methods 0.000 claims description 10
- 230000002159 abnormal effect Effects 0.000 claims description 6
- 230000036541 health Effects 0.000 claims description 5
- 150000003839 salts Chemical class 0.000 claims description 5
- 238000005516 engineering process Methods 0.000 abstract description 6
- 238000011161 development Methods 0.000 abstract description 3
- 230000008569 process Effects 0.000 description 8
- 230000008859 change Effects 0.000 description 6
- 238000013515 script Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000012550 audit Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012384 transportation and delivery Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000011144 upstream manufacturing Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3664—Environments for testing or debugging software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/242—Query formulation
- G06F16/2433—Query languages
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/252—Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Computational Linguistics (AREA)
- Mathematical Physics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides a scheduling method, a scheduling device, electronic equipment and a storage medium for code deployment, wherein the scheduling method comprises the following steps: the operation and maintenance platform interface is displayed, and a work order creation instruction input by a user on the operation and maintenance platform interface is received to create a work order, wherein the work order comprises: a service work order, a structured query language work order and a configuration work order; judging whether a content approval confirmation instruction of the work order is received or not, and if the content approval confirmation instruction is received, determining that the work order is allowed to be on-line; and deploying the work order based on a code deployment button of the operation and maintenance platform interface. The operation that the work order was deployed just can be accomplished automatically to the developer only need the key point to hit code deployment button, and not only automatic completion rate is high, and user experience is high moreover, solves the work that the fortune dimension is heavy day by day, encapsulates bottom technology, gives test and development to application issue, structured query language issue etc. and lets whole flow clear reasonable through the mode that the work order was approved, replaces former fortune dimension manual operation with the automation technology simultaneously, has promoted efficiency.
Description
Technical Field
The embodiment of the invention relates to the field of code deployment, in particular to a scheduling method and device for code deployment, electronic equipment and a storage medium.
Background
In the prior art, the demand is increasingly stronger in the growing era of the internet and the continuous delivery of the continuously changing codes. The number of deployments per day in slightly larger companies is on the order of ten thousand. Even medium-sized internet companies have a demand for deployment not less than ten times a day. The operation and maintenance usually uses simple shell scripts to deploy the code on the continuous delivery. In the script era, deployment seriously depends on manual intervention, the deployment script of each service can be customized, and then parameters such as version making and deployment machines are established during the deployment, and the like, and the remote deployment is completed by using server secret-free authentication or writing passwords into the script.
The inventor discovers that in the process of implementing the invention: the code deployment is seriously dependent on manual work, the automation completion degree is low, and the user experience is poor.
Disclosure of Invention
In order to solve at least one problem existing in the prior art, embodiments of the present invention provide a scheduling method and apparatus for code deployment, an electronic device, and a storage medium.
In a first aspect, at least one embodiment of the present invention provides a scheduling method for code deployment, including:
the operation and maintenance platform interface is displayed, and a work order creation instruction input by a user on the operation and maintenance platform interface is received to create a work order, wherein the work order comprises: a service work order, a structured query language work order and a configuration work order;
judging whether a content approval confirmation instruction of the work order is received or not, and if the content approval confirmation instruction is received, determining that the work order is allowed to be on-line;
and deploying the work order based on a code deployment button of the operation and maintenance platform interface.
In some embodiments, the above further comprises:
after the work order is deployed, testing the environment corresponding to the work order;
if the environment corresponding to the test work order is not abnormal and the work order is in the test environment, judging whether an instruction for applying for online and selecting online time is received, and if the instruction for applying for online and selecting online time is received, entering the flow of the formal production environment;
and if the work order is the online environment, finishing the work order based on the confirmation test command of the user.
In some embodiments, if it is determined that the work order is allowed to be on-line, the deploying the work order based on the code deployment button of the operation and maintenance platform interface includes:
when the service work order is allowed to be on-line, after a click command aiming at a code deployment button is received, the operation and maintenance platform executes the command on a host machine corresponding to the service work order through a salt application programming interface, wherein the command comprises at least one of downloading, stopping, updating and starting and health checking; alternatively, the first and second electrodes may be,
when the structured query language work order is allowed to be on-line, the operation and maintenance platform acquires a target database to be executed by the structured query language statements through a port, and when a click command for a code deployment button is received, the operation and maintenance platform executes the structured query language statements in the structured query language work order in the target database;
after the configuration work order is on-line, the operation and maintenance platform calls a corresponding interface of disconf according to the service name, and after a click command aiming at the code deployment button is received, at least one of the following operations is carried out on the configuration of the service corresponding to the service name: add, delete, modify, and query.
In some embodiments, the above method further comprises:
returning an execution state and an execution log after the execution is finished; wherein the execution state includes: success or exception.
And viewing the execution log through a log button of the operation and maintenance platform interface.
In some embodiments, returning the execution status and the execution log after the execution is completed in the method includes:
after the execution command on the host machine corresponding to the service work order is completed, returning to the execution state and the execution log;
after the execution of the structured query language statements in the structured query language work order is completed, returning an execution state and an execution log;
and after the configuration of the service corresponding to the service name is operated and executed, returning an execution state and an execution log.
In some embodiments, in the method, after a work order creation instruction input by a user on an operation and maintenance platform interface is received to create a work order, the work order is cached by using redis.
In a second aspect, an embodiment of the present invention provides a scheduling apparatus for code deployment, including:
a display module: the system is used for displaying an operation and maintenance platform interface and receiving a work order creating instruction input by a user on the operation and maintenance platform interface to create a work order, wherein the work order comprises: a service work order, a structured query language work order and a configuration work order;
a first judgment module: the system is used for judging whether a content approval confirmation instruction of the work order is received or not, and if the content approval confirmation instruction is received, determining that the work order is allowed to be on-line;
a deployment module: and deploying the work order based on the code deployment button of the operation and maintenance platform interface.
In some embodiments, the above apparatus further comprises:
a test module: the system is used for testing the environment corresponding to the work order after the work order is deployed;
a second judging module: the system comprises a test environment, a flow path and a flow path, wherein the test environment is used for judging whether an instruction for applying for online and selecting online time is received if the environment corresponding to the test work order is not abnormal and the work order is in the test environment, and entering the formal production environment if the instruction for applying for online and selecting the online time is received;
and (3) completing a module: and if the work order is an online environment, finishing the work order based on the confirmation test command of the user.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a processor and a memory;
the processor is used to execute the steps of the scheduling method for code deployment described above by calling a program or instructions stored by the memory.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a program or instructions for causing a computer to execute the steps of the scheduling method for code deployment.
The embodiment of the invention has the advantages that: the operation and maintenance platform interface is displayed, and a work order creation instruction input by a user on the operation and maintenance platform interface is received to create a work order, wherein the work order comprises: a service work order, a structured query language work order and a configuration work order; judging whether a content approval confirmation instruction of the work order is received or not, and if the content approval confirmation instruction is received, determining that the work order is allowed to be on-line; and deploying the work order based on a code deployment button of the operation and maintenance platform interface. The operation that the work order was deployed just can be accomplished automatically to the developer only need the key point to hit the code and deploy the button, not only automatic completion rate is high, and user experience is high, solve fortune dimension heavy work day by day, let fortune dimension work standardization, the encapsulation bottom technology, issue the application, the structure inquiry language is issued etc. and is handed over relevant test and development, the mode of examining and approving through the work order lets whole flow clear reasonable, replace former fortune dimension manual operation with the automation technology simultaneously, not only the efficiency has been promoted, and the release accident has been reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a schematic flowchart of a scheduling method for code deployment according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a scheduling apparatus for code deployment according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, the present invention will be further described in detail with reference to the accompanying drawings and examples. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. The specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the invention, are within the scope of the invention.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
Fig. 1 is a flowchart illustrating a scheduling method for code deployment according to an embodiment of the present invention.
In a first aspect, at least one embodiment of the present invention provides a scheduling method for code deployment, including the following three steps:
s101: the operation and maintenance platform interface is displayed, and a work order creation instruction input by a user on the operation and maintenance platform interface is received to create a work order, wherein the work order comprises: a service work order, a structured query language work order, and a configuration work order.
Specifically, in the embodiment of the application, a work order creating instruction input by a user on the operation and maintenance platform interface is received to create a work order, if a change is initiated to one configuration on the line, the configuration work order is created, if a change is initiated to one service on the line, a service work order is created, or if a change is initiated to one structured query language SQL on the line, a structured query language work order is created, so that information corresponding to the work order is input.
S102: and judging whether a content approval confirmation instruction of the work order is received or not, and if the content approval confirmation instruction is received, determining that the work order is allowed to be on-line.
Specifically, in the embodiment of the application, the content of one work order is checked, and whether the work order is allowed to be on line is determined by receiving an approval confirmation instruction input by a user; the whole process is clear and reasonable through the work order approval mode.
S103: and deploying the work order based on a code deployment button of the operation and maintenance platform interface.
Specifically, after reading the configured task version and deploying the machine information, the code deployment in the embodiment of the application can automatically complete the operation of work order deployment only by clicking a code deployment button with one key, so that the automation completion rate is high, and the user experience is high; the problem of increasingly heavy operation and maintenance is solved, operation and maintenance work is standardized, a bottom layer technology is packaged, application release, Structured Query Language (SQL) release and the like are submitted to relevant test and development, the whole process is clear and reasonable through a work order examination and approval mode, meanwhile, the manual operation of the previous operation and maintenance is replaced by an automatic technology, the efficiency is improved, and release accidents are reduced.
In some embodiments, the above further comprises:
and after the work order is deployed, testing the environment corresponding to the work order.
If the environment corresponding to the test work order is not abnormal and the work order is in the test environment, judging whether an instruction for applying for online and selecting online time is received, and if the instruction for applying for online and selecting online time is received, entering the flow of the formal production environment; and if the work order is the online environment, finishing the work order based on the confirmation test command of the user.
Specifically, after the work order is deployed, the corresponding staff can test the environment corresponding to the test work order, find out the possible problems in the test in time, if the test has no problem, if the work order is in the test environment, namely the stage environment, the application on-line and the instruction of selecting the on-line time input by the corresponding staff are received, then the corresponding staff can click the application on-line, then select the on-line time, perform the corresponding flow of the formal production environment prod, and if the work order is already in the on-line environment, then click the confirmation test to complete the work order.
In some embodiments, if it is determined that the work order is allowed to be on-line, the deploying the work order based on the code deployment button of the operation and maintenance platform interface includes:
and when the service work order is allowed to be on-line, after a click command aiming at the code deployment button is received, the operation and maintenance platform executes the command on a host machine corresponding to the service work order through a salt application programming interface, wherein the command comprises at least one of downloading, stopping, updating and starting and health checking.
Specifically, in the embodiment of the application, a command is remotely executed on a host machine where the service is located through a salt Api, the executed command is previously recorded in a script of the service in advance, and the executed command stage includes i.downloading, pulling out a jar packet on nexus through a service name, and storing the jar packet locally; stopping, finding the pid of the service by inquiring the service name, and dropping the kill; updating, with the pre-overlay package downloaded in the first step; starting, namely starting the service v. health check through a customized starting command, and performing health check through an exposed interface of the service; and as a brand-new infrastructure management mode, the Salt is easy to deploy, can run in several minutes, has good expansibility, can easily manage tens of thousands of servers, and is fast in speed and capable of realizing second-level communication among the servers.
And when the structured query language work order is allowed to be on-line, the operation and maintenance platform acquires a target database to be executed by the structured query language statements through the port, and executes the structured query language statements in the structured query language work order in the target database after receiving a click command aiming at the code deployment button.
Specifically, in the embodiment of the application, after a structured query language SQL work order passes the audit, the operation and maintenance platform acquires, through the port, a target database to be executed by the structured query language SQL statement, and after receiving a click command for the code deployment button, the operation and maintenance platform automatically executes the structured query language SQL statement in the work order on the database.
After the configuration work order is on-line, the operation and maintenance platform calls a corresponding interface of disconf according to the service name, and after a click command aiming at the code deployment button is received, at least one of the following operations is carried out on the configuration of the service corresponding to the service name: add, delete, modify, and query.
Specifically, in the embodiment of the present application, after a configuration work order passes the audit, the operation and maintenance platform calls the corresponding interface on the disconf according to the service name, and performs operations such as adding, deleting, modifying, and querying on the configuration of the service.
In some embodiments, the above method further comprises:
returning an execution state and an execution log after the execution is finished; wherein the execution state includes: success or exception; and viewing the execution log through a log button of the operation and maintenance platform interface.
Specifically, in the embodiment of the application, the total execution log in the execution process can be viewed by clicking a log button of the operation and maintenance platform interface. The execution log may be an execution log of a service work order, an execution log of a structured query language work order, an execution log of a configuration work order.
In some embodiments, returning the execution status and the execution log after the execution is completed in the method includes:
and after the execution command on the host machine corresponding to the service work order is completed, returning the execution state and the execution log.
And returning an execution state and an execution log after the execution of the structured query language statements in the structured query language work order is completed.
And after the configuration of the service corresponding to the service name is operated and executed, returning an execution state and an execution log.
In some embodiments, in the method, after a work order creation instruction input by a user on an operation and maintenance platform interface is received to create a work order, the work order is cached by using redis.
Specifically, in the embodiment of the application, the processed request and the return of the user are decoupled through the redis cache, so that asynchronous execution of the work order is realized, the service end is divided into a consumer and a provider, the consumer is realized by using a golang, and the golang has a good goroute, so that the problem of concurrency is well solved, and the functions of concurrent release, concurrent rollback and the like are realized. And the service in the embodiment of the application utilizes the upstream of nginx to synchronously execute service updating, so that the online service is updated without stopping.
Fig. 2 is a schematic structural diagram of a scheduling apparatus for code deployment according to an embodiment of the present invention.
In a second aspect, with reference to fig. 2, an embodiment of the present invention provides a scheduling apparatus for code deployment, including a presentation module 201, a first judgment module 202, and a deployment module 203.
The display module 201: the system is used for displaying an operation and maintenance platform interface and receiving a work order creating instruction input by a user on the operation and maintenance platform interface to create a work order, wherein the work order comprises: a service work order, a structured query language work order, and a configuration work order.
Specifically, in the operation and maintenance platform interface displayed by the display module in the embodiment of the application, a work order creation instruction input by a user on the operation and maintenance platform interface is received to create a work order, if a change is initiated on one configuration on a line, a configuration work order is created, if a change is initiated on one service on the line, a service work order is created, or if a change is initiated on one structured query language SQL on the line, a structured query language work order is created, so that information corresponding to the work order is entered.
The first determining module 202: and the system is used for judging whether a content approval confirmation instruction of the work order is received or not, and if the content approval confirmation instruction is received, determining that the work order is allowed to be on-line.
Specifically, in the embodiment of the application, the first judgment module judges that a content approval confirmation instruction of a work order is received, so that the content of one work order is checked, and whether the work order is allowed to be on-line is determined by receiving the approval confirmation instruction input by a user.
The deployment module 203: and deploying the work order based on the code deployment button of the operation and maintenance platform interface.
Specifically, after reading the configured task version and deploying the machine information, the deployment module in the embodiment of the application can automatically complete the operation of work order deployment only by clicking a code deployment button by a developer, so that the automation completion rate is high, and the user experience is high.
In some embodiments, the above apparatus further comprises:
a test module: the system is used for testing the environment corresponding to the work order after the work order is deployed;
a second judging module: the system comprises a test environment, a flow path and a flow path, wherein the test environment is used for judging whether an instruction for applying for online and selecting online time is received if the environment corresponding to the test work order is not abnormal and the work order is in the test environment, and entering the formal production environment if the instruction for applying for online and selecting the online time is received;
and (3) completing a module: and if the work order is an online environment, finishing the work order based on the confirmation test command of the user.
Specifically, after the work order is deployed, the corresponding personnel can test the environment corresponding to the test work order, and find out the possible problems in the test in time, if the test is not problematic, if the work order is in the test environment, namely the stage environment, the application on-line and the instruction of selecting the on-line time input by the corresponding personnel are received, then the corresponding personnel can click the application on-line, then select the on-line time, and perform the corresponding process of the formal production environment, namely the prod, and if the work order is already in the on-line environment, then click the confirmation test to complete the work order.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a processor and a memory.
The processor is used to execute the steps of the scheduling method for code deployment described above by calling a program or instructions stored by the memory.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores a program or instructions, and the program or instructions cause a computer to execute the steps of the scheduling method for code deployment.
Fig. 3 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention, as shown in fig. 3, the electronic device may include a mobile phone and a PAD intelligent terminal, and the electronic device includes:
one or more processors 301, one processor 301 being illustrated in FIG. 3; a memory 302; the electronic device may further include: an input device 303 and an output device 304.
The processor 301, the memory 302, the input device 303 and the output device 304 in the electronic apparatus may be connected by a bus or other means, and fig. 2 illustrates the example of connection by a bus.
The memory 302 is a non-transitory computer-readable storage medium, and can be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the interface display method of the application program in the embodiment of the present invention (for example, the presentation module 201, the first determination module 202, and the deployment module 203 shown in fig. 2). The processor 301 executes various functional applications of the server and data processing by running software programs, instructions and modules stored in the memory 302, i.e. implements the scheduling method for code deployment of the above-described method embodiments.
The memory 302 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 302 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 302 optionally includes memory located remotely from processor 301, which may be connected to a terminal device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 303 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus. The output device 804 may include a display device such as a display screen.
An embodiment of the present invention further provides a computer-readable storage medium, which stores a program or an instruction, where the program or the instruction is used to cause a computer to execute a scheduling method for code deployment, where the method includes:
the operation and maintenance platform interface is displayed, and a work order creation instruction input by a user on the operation and maintenance platform interface is received to create a work order, wherein the work order comprises: a service work order, a structured query language work order, and a configuration work order.
And judging whether a content approval confirmation instruction of the work order is received or not, and if the content approval confirmation instruction is received, determining that the work order is allowed to be on-line.
And deploying the work order based on a code deployment button of the operation and maintenance platform interface.
Optionally, the computer-executable instructions, when executed by a computer processor, may also be used to implement the technical solution of the scheduling method for code deployment provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Those skilled in the art will appreciate that although some embodiments described herein include some features included in other embodiments instead of others, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.
Claims (10)
1. A scheduling method for code deployment, comprising:
displaying an operation and maintenance platform interface, and receiving a work order creating instruction input by a user on the operation and maintenance platform interface to create a work order, wherein the work order comprises: a service work order, a structured query language work order and a configuration work order;
judging whether a content approval confirmation instruction of the work order is received or not, and if the content approval confirmation instruction is received, determining that the work order is allowed to be on line;
and deploying the work order based on a code deployment button of the operation and maintenance platform interface.
2. The method of claim 1, further comprising:
after the work order is deployed, testing the environment corresponding to the work order;
if the environment corresponding to the work order is tested to be abnormal and the work order is in the test environment, judging whether an instruction for applying for online and selecting online time is received, and if the instruction for applying for online and selecting online time is received, entering the flow of a formal production environment;
and if the work order is an online environment, finishing the work order based on a confirmation test command of a user.
3. The method of claim 1, wherein deploying the work order based on a code deployment button of the operation and maintenance platform interface if it is determined that the work order is allowed to go online comprises:
after the service work order is allowed to be on-line and a click command for a code deployment button is received, the operation and maintenance platform executes the command on a host machine corresponding to the service work order through a salt application programming interface, wherein the command comprises at least one of downloading, stopping, updating and starting and health checking; alternatively, the first and second electrodes may be,
when the structured query language work order is allowed to be on-line, the operation and maintenance platform acquires a target database to be executed by the structured query language statements through a port, and when a click command for a code deployment button is received, the operation and maintenance platform executes the structured query language statements in the structured query language work order in the target database;
after the configuration work order is on line, the operation and maintenance platform calls a corresponding interface of disconf according to a service name, and after a click command aiming at a code deployment button is received, at least one of the following operations is carried out on the configuration of the service corresponding to the service name: add, delete, modify, and query.
4. The method of claim 3, further comprising:
returning an execution state and an execution log after the execution is finished; wherein the execution state comprises: success or exception.
And viewing the execution log through a log button of the operation and maintenance platform interface.
5. The method of claim 4, wherein returning an execution status and execution log after the execution is complete comprises:
after the execution command on the host machine corresponding to the service work order is completed, returning to the execution state and the execution log;
after the execution of the structured query language statements in the structured query language work order is finished, returning an execution state and an execution log;
and after the configuration of the service corresponding to the service name is operated and executed, returning an execution state and an execution log.
6. The method as claimed in claim 1, wherein after receiving the work order creation instruction input by the user on the operation and maintenance platform interface to create the work order, the work order is cached by using redis.
7. A scheduling apparatus for code deployment, comprising:
a display module: the system is used for displaying an operation and maintenance platform interface and receiving a work order creating instruction input by a user on the operation and maintenance platform interface to create a work order, wherein the work order comprises: a service work order, a structured query language work order and a configuration work order;
a first judgment module: the system is used for judging whether a content approval confirmation instruction of the work order is received or not, and if the content approval confirmation instruction is received, determining that the work order is allowed to be on line;
a deployment module: and the code deployment button is used for deploying the work order based on the operation and maintenance platform interface.
8. The apparatus of claim 6, further comprising:
a test module: the system is used for testing the environment corresponding to the work order after the work order is deployed;
a second judging module: the system comprises a test environment, a production environment and a production environment, wherein the test environment is used for judging whether an instruction for applying for online and selecting online time is received or not if the environment corresponding to the work order is tested to be abnormal and the work order is in the test environment, and entering the flow of a formal production environment if the instruction for applying for online and selecting online time is received;
and (3) completing a module: and the system is used for finishing the work order based on a confirmation test command of a user if the work order is an online environment.
9. An electronic device, comprising: a processor and a memory;
the processor is adapted to perform the steps of the method of any one of claims 1 to 6 by calling a program or instructions stored in the memory.
10. A computer-readable storage medium, characterized in that it stores a program or instructions for causing a computer to carry out the steps of the method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010144532.8A CN111352612A (en) | 2020-03-04 | 2020-03-04 | Scheduling method and device for code deployment, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010144532.8A CN111352612A (en) | 2020-03-04 | 2020-03-04 | Scheduling method and device for code deployment, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111352612A true CN111352612A (en) | 2020-06-30 |
Family
ID=71196010
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010144532.8A Pending CN111352612A (en) | 2020-03-04 | 2020-03-04 | Scheduling method and device for code deployment, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111352612A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112036825A (en) * | 2020-08-28 | 2020-12-04 | 航天科工网络信息发展有限公司 | Automatic operation and maintenance management system based on work order |
CN112165512A (en) * | 2020-09-08 | 2021-01-01 | 深圳市贰陆陆科技有限公司 | File publishing method and device, terminal equipment and storage medium |
CN112394946A (en) * | 2020-11-17 | 2021-02-23 | 北京智齿博创科技有限公司 | Operation and maintenance platform based on DevOps background |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090249362A1 (en) * | 2008-03-31 | 2009-10-01 | Thiemo Lindemann | Managing Consistent Interfaces for Maintenance Order Business Objects Across Heterogeneous Systems |
CN108959385A (en) * | 2018-05-31 | 2018-12-07 | 康键信息技术(深圳)有限公司 | Database portion arranging method, device, computer equipment and storage medium |
CN109901842A (en) * | 2019-01-17 | 2019-06-18 | 深圳壹账通智能科技有限公司 | Application deployment method, apparatus, computer equipment and storage medium |
CN110716922A (en) * | 2019-10-21 | 2020-01-21 | 深圳前海环融联易信息科技服务有限公司 | Incep-based database operation and maintenance method and device, computer equipment and storage medium |
-
2020
- 2020-03-04 CN CN202010144532.8A patent/CN111352612A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090249362A1 (en) * | 2008-03-31 | 2009-10-01 | Thiemo Lindemann | Managing Consistent Interfaces for Maintenance Order Business Objects Across Heterogeneous Systems |
CN108959385A (en) * | 2018-05-31 | 2018-12-07 | 康键信息技术(深圳)有限公司 | Database portion arranging method, device, computer equipment and storage medium |
CN109901842A (en) * | 2019-01-17 | 2019-06-18 | 深圳壹账通智能科技有限公司 | Application deployment method, apparatus, computer equipment and storage medium |
CN110716922A (en) * | 2019-10-21 | 2020-01-21 | 深圳前海环融联易信息科技服务有限公司 | Incep-based database operation and maintenance method and device, computer equipment and storage medium |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112036825A (en) * | 2020-08-28 | 2020-12-04 | 航天科工网络信息发展有限公司 | Automatic operation and maintenance management system based on work order |
CN112165512A (en) * | 2020-09-08 | 2021-01-01 | 深圳市贰陆陆科技有限公司 | File publishing method and device, terminal equipment and storage medium |
CN112165512B (en) * | 2020-09-08 | 2023-09-26 | 深圳市贰陆陆科技有限公司 | File release method and device, terminal equipment and storage medium |
CN112394946A (en) * | 2020-11-17 | 2021-02-23 | 北京智齿博创科技有限公司 | Operation and maintenance platform based on DevOps background |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108415832B (en) | Interface automation test method, device, equipment and storage medium | |
US20210065078A1 (en) | Automated workflows enabling selective interaction with users | |
CN111352612A (en) | Scheduling method and device for code deployment, electronic equipment and storage medium | |
US20150026146A1 (en) | System and method for applying a set of actions to one or more objects and interacting with the results | |
CN111858360B (en) | Applet testing method, device, equipment and storage medium | |
US8812429B2 (en) | Decision tree creation and execution in an interactive voice response system | |
CN108509212A (en) | Application program update test method, device, terminal device and storage medium | |
US11681607B2 (en) | System and method for facilitating performance testing | |
CN115422063A (en) | Low-code interface automation system, electronic equipment and storage medium | |
CN112394908A (en) | Method and device for automatically generating embedded point page, computer equipment and storage medium | |
CN116107589B (en) | Automatic compiling method, device and equipment of software codes and storage medium | |
CN112835808A (en) | Interface testing method and device, computer equipment and storage medium | |
CN112559525A (en) | Data checking system, method, device and server | |
CN115469849B (en) | Service processing system, method, electronic equipment and storage medium | |
CN115422202A (en) | Service model generation method, service data query method, device and equipment | |
CN115658478A (en) | Test case screening method and device, electronic equipment and storage medium | |
CN115495372A (en) | Analog data processing method, device, equipment and medium | |
CN113296836B (en) | Method for training model, test method, device, electronic equipment and storage medium | |
US11394668B1 (en) | System and method for executing operations in a performance engineering environment | |
CN114721740A (en) | Message triggering method, device, equipment and storage medium | |
CN114936152A (en) | Application testing method and device | |
CN115017047A (en) | Test method, system, equipment and medium based on B/S architecture | |
CN114693116A (en) | Method and device for detecting code review validity and electronic equipment | |
CN111427770B (en) | Resource testing method and related equipment | |
CN113868531A (en) | Information acquisition method and device, electronic device and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200630 |