CN115480953A - Service deployment method and device - Google Patents

Service deployment method and device Download PDF

Info

Publication number
CN115480953A
CN115480953A CN202110660573.7A CN202110660573A CN115480953A CN 115480953 A CN115480953 A CN 115480953A CN 202110660573 A CN202110660573 A CN 202110660573A CN 115480953 A CN115480953 A CN 115480953A
Authority
CN
China
Prior art keywords
deployment
service object
service
result
deployment process
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
CN202110660573.7A
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110660573.7A priority Critical patent/CN115480953A/en
Publication of CN115480953A publication Critical patent/CN115480953A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1433Saving, restoring, recovering or retrying at system level during software upgrading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The disclosure discloses a service deployment method and device, relates to the technical field of cloud computing, and further relates to the technical field of cloud operation and maintenance. The specific implementation scheme is as follows: the method comprises the steps of firstly obtaining a checking result of a service object in the current deployment process in real time, then determining whether the checking result is the same as an expected result of the service object in the current deployment process, and finally suspending a deployment task of the service object in the current deployment process in response to the determination that the checking result is different from the expected result, so that the automatic detection of the service deployment process is realized, the service object can be checked in real time in the service object deployment process, and if a service fault caused by service deployment is detected, the service deployment process can be suspended automatically in time, the affected range of service is reduced, and the service checking efficiency is improved.

Description

Service deployment method and device
Technical Field
The disclosure relates to the technical field of cloud computing, further relates to the technical field of cloud operation and maintenance, and particularly relates to a service deployment method and device.
Background
With the continuous development of internet technology, different software services are produced, and different services need to be deployed in a server for users to schedule and use.
At present, a common service deployment process is divided into different deployment stages according to different areas where services are deployed, after the deployment of each stage is completed, service health degree check verification is performed in multiple dimensions, if the check result shows that the services have no problem, the deployment of the next stage is performed, otherwise, the release is stopped, and corresponding plan measures such as rollback and the like are taken to reduce the influence range of faults.
Disclosure of Invention
The disclosure provides a service deployment method, a service deployment device, an electronic device and a storage medium.
According to an aspect of the present disclosure, there is provided a service deployment method, including: acquiring a checking result of a service object in the current deployment process in real time; determining whether the checking result is the same as an expected result of the service object in the current deployment process; in response to determining that the inspection result is different from the expected result, suspending the deployment task of the service object in the current deployment process.
According to another aspect of the present disclosure, there is provided a service deployment apparatus, the apparatus including: the acquisition module is configured to acquire the inspection result of the service object in the current deployment process in real time; a determination module configured to determine whether the inspection result is the same as an expected result of the service object in a current deployment process; a suspension module configured to suspend the deployment task of the service object in the current deployment process in response to determining that the inspection result is different from the expected result.
According to another aspect of the present disclosure, there is provided an electronic device comprising at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the service deployment method described above.
According to another aspect of the present disclosure, a computer-readable medium is provided, on which computer instructions are stored, the computer instructions being used for enabling a computer to execute the service deployment method.
According to another aspect of the present disclosure, a computer program product is provided, which includes a computer program, and the computer program realizes the service deployment method when being executed by a processor.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is an exemplary system architecture diagram in which the present disclosure may be applied;
FIG. 2 is a flow diagram of one embodiment of a method of service deployment according to the present disclosure;
FIG. 3 is a schematic diagram of one application scenario of a service deployment method according to the present disclosure;
FIG. 4 is a flow diagram for one embodiment of obtaining inspection results, according to the present disclosure;
FIG. 5 is a flow diagram of another embodiment of a service deployment method according to the present disclosure;
FIG. 6 is a flow diagram of one embodiment of a service deployment apparatus, according to the present disclosure;
fig. 7 is a block diagram of an electronic device for implementing a service deployment method of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that, in the present disclosure, the embodiments and the features of the embodiments may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the service deployment methods of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 104, 105, a network 106, and servers 101, 102, 103. The network 106 serves as a medium for providing communication links between the terminal devices 104, 105 and the servers 101, 102, 103. Network 106 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The terminal devices 104, 105 may interact with the servers 101, 102, 103 via the network 106 to receive or transmit information or the like. The end devices 104, 105 may have installed thereon various applications such as data collection applications, data processing applications, instant messaging tools, social platform software, search-type applications, shopping-type applications, and the like.
The terminal devices 104, 105 may be hardware or software. When the terminal device is hardware, it may be various electronic devices including but not limited to a smartphone, a tablet computer, etc., which have an image capture device, a display screen, and support communication with a server. When the terminal device is software, the terminal device can be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules, or as a single piece of software or software module. And is not particularly limited herein.
The terminal devices 104 and 105 may execute a service deployment task of the service object on the server, and obtain a check result of the service object in the current deployment process in real time. Then, the terminal devices 104 and 105 may compare the obtained inspection result of the service object in the current deployment process with an expected result that needs to be achieved in the deployment process, and determine whether the obtained inspection result is different from the expected result. And finally, if the obtained checking result is determined to be different from the expected result through judgment, suspending the deployment task of the service object in the current deployment process so as to determine which link has abnormity.
The servers 101, 102, 103 may be servers providing various services, such as background servers receiving requests sent by terminal devices with which a communication connection is established. The background server can receive and analyze the request sent by the terminal device, and generate a processing result.
The servers 101, 102, 103 may execute a service deployment task of the service object, and obtain a check result of the service object in a current deployment process in real time. Then, the servers 101, 102, and 103 may compare the obtained inspection result of the service object in the current deployment process with an expected result that needs to be achieved in the deployment process, and determine whether the obtained inspection result is different from the expected result. Finally, if the obtained checking result is determined to be different from the expected result through judgment, the deployment task of the service object in the current deployment process is suspended so as to determine which link has abnormity
The server may be hardware or software. When the server is hardware, it may be various electronic devices that provide various services to the terminal device. When the server is software, it may be implemented as a plurality of software or software modules for providing various services to the terminal device, or may be implemented as a single software or software module for providing various services to the terminal device. And is not particularly limited herein.
It should be noted that the service deployment method provided by the embodiment of the present disclosure may be executed by the terminal devices 104 and 105, or may be executed by the servers 101, 102, and 103. Accordingly, the service deployment apparatus may be provided in the terminal devices 104 and 105, or may be provided in the servers 101, 102, and 103.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for an implementation.
Referring to fig. 2, fig. 2 shows a flow diagram 200 of an embodiment of a service deployment method that may be applied to the present disclosure. The service deployment method comprises the following steps:
step 210, obtaining the inspection result of the service object in the current deployment process in real time.
In this embodiment, an execution subject of the service deployment method (for example, the terminal devices 104 and 105 or the servers 101, 102, and 103 in fig. 1) may obtain a service object to be deployed, and at this time, a change state of the service object may be an initial state (initial). After the execution subject acquires the service object, the service object is deployed, and the change state of the service object can be updated from the initial state (initial) to the running state (running). The execution main body can be divided into different deployment stages according to different areas where the service objects are deployed, the service objects are inspected in real time in the process of deploying the service objects in each deployment stage, the service objects can be inspected through multiple dimensions such as deployment machine monitoring indexes, service availability probes and service monitoring indexes, and the inspection results of the service objects in the current deployment process are obtained. The inspection result may include physical expected effects of the server of the service deployment, such as CPU usage/load, memory, disk space, disk I/O, network I/O, and the like; the inspection results may also include survivability probe (LivenessProbe) and ready-type probe (ReadinessProbe) results; the inspection result may also include a running result of the service object, and the like.
Step 220, determine whether the checking result is the same as the expected result of the service object in the current deployment process.
In this embodiment, the execution subject may obtain an expected result corresponding to the service object in the current deployment process, where the expected result may represent a state effect that needs to be achieved in the deployment process of the service object, and may include an expected effect of the service object and an expected physical effect of the server.
After the execution main body obtains the inspection result of the service object in the current deployment process, the obtained inspection result can be compared with an expected result corresponding to the service object in the current deployment process, and whether the obtained inspection result is the same as the expected result is judged to determine whether the inspection result is abnormal. For example, the CPU utilization/load obtained in real time may be compared with the expected CPU utilization/load in the current deployment process to determine whether the two are the same.
If the obtained check result is determined to be the same as the expected result, the execution main body can determine that the check result is normal and the abnormal deployment condition does not occur in the current deployment process; if the obtained check result is determined to be different from the expected result, the execution main body can determine that the check result is abnormal and the abnormal deployment condition occurs in the current deployment process.
In response to determining that the inspection result is different from the expected result, suspending the deployment task of the service object in the current deployment process, step 230.
In this embodiment, the execution subject determines that the check result is different from the expected result by judgment, and may determine, according to the abnormal check result, a deployment position where the service object has an abnormal deployment in the current deployment process, where the deployment position may be a deployment step where the service object generates an abnormal check result in the current deployment process. The execution subject may generate a deployment suspension instruction corresponding to the service object according to the determined deployment position, that is, the deployment suspension instruction may indicate to suspend the service object being deployed, and characterize that an exception occurs at the deployment position.
The execution main body may execute the generated deployment suspension instruction, suspend the service object in the current deployment process, that is, suspend the deployment task of the service object in the current deployment process, and update the change state of the service object from the running state (running) to the suspended state (used).
With continuing reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the service deployment method according to the present embodiment. In the application scenario of fig. 3, the change system 3011, the check tool 3012, and the deployment tool 3013 are included in the server 301, and the server 301 may obtain a service object for deployment in the server 302. When the change triggering instruction of the change user is received by the change system 3011 in the server 301, the current deployment process of the service object is started through the deployment tool 3013, and meanwhile, the service object in the current deployment process is checked through the check tool 3012, so as to obtain the check result of the service object in the current deployment process in real time. After receiving the inspection result returned by the inspection tool 3012, the change system 3011 compares the inspection result with an expected result corresponding to the service object, determines whether the inspection result is the same as the expected result, and if it is determined that the inspection result is different from the expected result, the change system 3011 generates a suspend deployment instruction, and suspends the current deployment process being executed in the deployment tool 3013, thereby suspending the deployment task of the service object in the current deployment process.
According to the service deployment method provided by the embodiment of the disclosure, the inspection result of the service object in the current deployment process is obtained in real time, whether the inspection result is the same as the expected result of the service object in the current deployment process is determined, and finally, the deployment task of the service object in the current deployment process is suspended in response to the determination that the inspection result is different from the expected result, so that the automatic detection of the service deployment process is realized, the service object can be inspected in real time in the service object deployment process, and if the service fault caused by service deployment is detected, the service deployment process can be automatically suspended in time, the influenced range of the service is reduced, and the efficiency of the service inspection is improved.
As an alternative implementation manner, further referring to fig. 4, the step 210 described above, obtaining the inspection result of the service object in the deployment process in real time, may include the following steps:
step 410, in response to receiving the change triggering instruction of the service object, acquiring the deployment task of the service object.
In this step, the execution main body may receive a change operation of a change user for a service object, and generate a change trigger instruction corresponding to the service object, where the change trigger instruction may be used to trigger execution of a deployment task of the service object, and the change trigger instruction corresponds to the service object one to one. And the execution main body acquires the deployment task of the service object according to the change trigger instruction and then executes the deployment operation of the service object according to the deployment task.
And step 420, in the current deployment process of the deployment task, performing health state check on the service object in real time to obtain a check result of the service object in the current deployment process.
In this step, the execution main body may execute the deployment task of the service object and the health status check of the service object at the same time, perform the health status check on the service object in real time in the current deployment process of executing the deployment task, and perform the health status check on the service object through multiple check dimensions, such as a deployment machine monitoring index, a service availability probe, and a monitoring index of the service object, corresponding to the service object, to obtain a check result of the service object in the current deployment process. That is, when the execution main body deploys the deployment task of each deployment stage, while executing one of the deployment steps, the health status of the deployment step is checked through multiple checking dimensions such as a deployment machine monitoring index, a service availability probe, a monitoring index of a service object and the like corresponding to the service object, so as to achieve real-time checking of the service object in the current deployment process, and thus obtain a real-time checking result of the service object in the current deployment process. The inspection result may include physical expected effects of the server of the service deployment, such as CPU utilization/load, memory, disk space, disk I/O, network I/O, and the like; the inspection results may also include liveness probe (liveness probe) and ready probe (ReadinessProbe) results; the inspection result may also include a running result of the service object, and the like.
In the implementation mode, the service object in the current deployment process can be automatically checked and verified by checking the health state of the service object in the current deployment process in real time, and the health state of the service object can be checked in multiple dimensions, so that the efficiency and the comprehensiveness of the service object check are improved.
With further reference to fig. 5, a flow diagram 500 of another embodiment of a method of service deployment is shown. The service deployment method comprises the following steps:
step 510, obtaining the inspection result of the service object in the current deployment process in real time.
Step 510 of this embodiment may be performed in a manner similar to step 210 in the embodiment shown in fig. 2, which is not described herein again.
Step 520, determine whether the checking result is the same as the expected result of the service object in the current deployment process.
Step 520 of this embodiment can be performed in a similar manner to step 220 in the embodiment shown in fig. 2, and is not described herein again.
In response to determining that the inspection result is different from the expected result, the deployment task of the service object in the current deployment process is suspended, step 530.
Step 530 of this embodiment may be performed in a manner similar to step 230 of the embodiment shown in fig. 2, which is not described herein again.
In response to determining that the inspection result is different from the expected result, a deployment exception message is generated and sent, step 540.
In this step, the execution subject determines that the check result is different from the expected result by judgment, and may determine, according to the abnormal check result, a deployment position where the service object has deployment abnormality in the current deployment process, where the deployment position may be a deployment step where the service object generates an abnormal check result in the current deployment process. The execution subject may generate a suspend deployment instruction corresponding to the service object according to the determined deployment position, that is, the suspend deployment instruction may indicate to suspend the service object being deployed, and characterize that the deployment position is abnormal.
After the execution body generates the deployment suspension instruction, a deployment exception message corresponding to the service object may be generated, where the deployment exception message may characterize that the service object being deployed is abnormal and includes a deployment location of the service object where the deployment exception occurs. The execution main body can send the generated deployment exception message to the change user, so that the change user can know the deployment position of the service object being deployed, which is abnormal.
After the change user receives the deployment abnormal message, the deployment position with the abnormal deployment can be checked, and whether the checking result has false alarm or not is judged. Namely, the change user can manually check the health state corresponding to the deployment position to obtain a manual check result, compare the manual check result with an expected result, and judge whether the manual check result is the same as the expected result so as to determine whether the check result has false alarm.
Step 550, in response to receiving the change undoing instruction corresponding to the deployment exception message, terminating the deployment task of the service object.
In this step, the change user compares the manual inspection result with the expected result, and if the inspection result is determined to be not false-positive and the inspection result is normal, the change user cancels the change of the service object in the suspended state. When the execution main body receives the change canceling operation of the change user for the service object in the suspended state, a change canceling instruction corresponding to the deployment exception message is generated, then the current deployment process of the service object is cancelled according to the change canceling instruction, the execution main body terminates the deployment task of the service object, and at the moment, the change state of the service object is updated from the suspended state (used) to the cancelled state (cancelled).
The execution main body generates a change canceling instruction corresponding to the deployment exception message according to the change canceling operation of the change user, and can send the change canceling instruction corresponding to the deployment exception message to the instruction execution unit, and the instruction execution unit terminates the deployment task of the service object according to the change canceling instruction corresponding to the deployment exception message, so as to stop the change operation of the service object.
And step 560, in response to receiving the change recovery instruction corresponding to the deployment exception message, recovering the deployment task of the service object, and continuously acquiring the inspection result of the service object in the current deployment process in real time.
In this step, the change user compares the manual inspection result with the expected result, and if the inspection result is determined to have a false alarm and the inspection result is abnormal, the change user resumes the service object in the suspended state. When receiving a change resuming operation of a change user for a service object in a suspended state, the execution main body generates a change resuming instruction corresponding to the deployment exception message, then executes a current deployment process of the service object according to the change resuming instruction, and resumes the deployment task of the service object, at this time, the change state of the service object is updated from a suspended state (paused) to a running state (running). The executing body continuously performs health state check on the service object in real time in the current deployment process of executing the deployment task, performs health state check on the service object through various check dimensions such as a deployment machine monitoring index, a service availability probe, a monitoring index of the service object and the like corresponding to the service object, obtains a check result of the service object in the current deployment process, and updates the change state of the service object from the running state (running) to the completion state (success) until the deployment of the service object is completed.
The execution main body generates a recovery change instruction corresponding to the deployment exception message according to the recovery change operation of the change user, and can send the recovery change instruction corresponding to the deployment exception message to the instruction execution unit, and the instruction execution unit recovers the deployment task of the service object according to the recovery change instruction corresponding to the deployment exception message, so that the change operation of the service object is recovered until the deployment of the service object is completed.
In the implementation mode, the abnormal deployment position is manually rechecked by the change user based on the abnormal deployment message, so that the accuracy of the inspection result is improved, and the deployment result is more accurate. And the change canceling instruction is generated through the rechecking result to terminate the deployment task of the service object, or the change restoring instruction is generated through the rechecking result to restore the deployment task of the service object, so that the deployment task of the service object can be terminated or restored in time, and the accuracy and timeliness of service deployment are improved.
As an alternative implementation manner, with continuing reference to fig. 2, the service deployment method provided by the embodiment of the present disclosure may further include the following steps:
and step 240, responding to the fact that the checking result is the same as the expected result, and continuously acquiring the checking result of the service object in real time.
In this step, the executing body determines that the checking result is the same as the expected result through judgment, and then continues to perform the health status check on the service object in real time in the current deployment process of executing the deployment task, and performs the health status check on the service object through multiple checking dimensions such as a deployment machine monitoring index, a service availability probe, a monitoring index of the service object and the like corresponding to the service object, so as to obtain the checking result of the service object in the current deployment process until the deployment of the service object is completed.
In the implementation mode, the inspection result of the service object is normally and continuously acquired based on the inspection result until the service object is deployed, so that the service object can be continuously inspected, and the integrity and the accuracy of the service object deployment in the deployment process are ensured.
With further reference to fig. 6, as an implementation of the methods shown in the above-mentioned figures, the present disclosure provides an embodiment of a service deployment apparatus, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 6, the service deployment apparatus 600 of this embodiment includes: an acquisition module 610, a determination module 620, and a pause module 630.
The obtaining module 610 is configured to obtain, in real time, a check result of the service object in the current deployment process;
a determining module 620 configured to determine whether the checking result is the same as an expected result of the service object in the current deployment process;
a suspension module 630 configured to suspend the deployment task of the service object in the current deployment process in response to determining that the inspection result is different from the expected result.
In some optional manners of this embodiment, the obtaining module obtains a deployment task of the service object in response to receiving a change trigger instruction of the service object; and in the current deployment process of the deployment task, carrying out health state examination on the service object in real time, and obtaining an examination result of the service object in the current deployment process.
In some optional manners of this embodiment, the apparatus further includes: a prompt module configured to generate and send a deployment exception message in response to determining that the inspection result is different from the expected result.
In some optional manners of this embodiment, the apparatus further includes: a termination module configured to terminate the deployment task of the service object in response to receiving a reverse change instruction corresponding to the deployment exception message.
In some optional manners of this embodiment, the apparatus further includes: and the recovery module is configured to respond to the received change recovery instruction corresponding to the abnormal deployment message, recover the deployment task of the service object and continuously acquire the inspection result of the service object in the current deployment process in real time.
In some optional aspects of this embodiment, the obtaining module is further configured to: and in response to determining that the inspection result is the same as the expected result, continuing to obtain the inspection result of the service object in real time.
According to the service deployment device provided by the embodiment of the disclosure, the inspection result of the service object in the current deployment process is obtained in real time, whether the inspection result is the same as the expected result of the service object in the current deployment process is determined, and finally, the deployment task of the service object in the current deployment process is suspended in response to the determination that the inspection result is different from the expected result, so that the automatic detection of the service deployment process is realized, the service object can be inspected in real time in the service object deployment process, and if the service fault caused by service deployment is detected, the service deployment process can be automatically suspended in time, the affected range of the service is reduced, and the efficiency of the service inspection is improved.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, and do not violate the customs of public sequences.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 7 shows a schematic block diagram of an example electronic device 700 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the electronic device 700 includes a computing unit 701, which may perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 702 or a computer program loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
A number of components in the electronic device 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, or the like; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, optical disk, or the like; and a communication unit 709 such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Computing unit 701 may be a variety of general purpose and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 701 performs the various methods and processes described above, such as the service deployment method. For example, in some embodiments, the service deployment method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of a computer program may be loaded onto and/or installed onto device 700 via ROM 702 and/or communications unit 709. When loaded into RAM 703 and executed by computing unit 701, may perform one or more steps of the service deployment method described above. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the service deployment method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, 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), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the protection scope of the present disclosure.

Claims (15)

1. A service deployment method, comprising:
acquiring a checking result of a service object in the current deployment process in real time;
determining whether the checking result is the same as an expected result of the service object in the current deployment process;
suspending a deployment task of the service object during a current deployment process in response to determining that the inspection result is different from the expected result.
2. The method of claim 1, wherein the obtaining the inspection result of the service object in the current deployment process in real time comprises:
responding to a received change triggering instruction of the service object, and acquiring a deployment task of the service object;
and in the current deployment process of the deployment task, carrying out health state examination on the service object in real time, and obtaining an examination result of the service object in the current deployment process.
3. The method according to claim 1 or 2, wherein the method further comprises:
in response to determining that the inspection result is different from the expected result, generating and sending a deployment exception message.
4. The method of claim 3, wherein the method further comprises:
and in response to receiving a change undo instruction corresponding to the deployment exception message, terminating the deployment task of the service object.
5. The method of claim 3, wherein the method further comprises:
and in response to receiving a change recovery instruction corresponding to the abnormal deployment message, recovering the deployment task of the service object, and continuously acquiring the inspection result of the service object in the current deployment process in real time.
6. The method of claim 1, wherein the method further comprises:
and in response to determining that the inspection result is the same as the expected result, continuing to obtain the inspection result of the service object in real time.
7. A service deployment apparatus comprising:
the acquisition module is configured to acquire the inspection result of the service object in the current deployment process in real time;
a determination module configured to determine whether the inspection result is the same as an expected result of the service object in a current deployment process;
a suspension module configured to suspend a deployment task of the service object in a current deployment process in response to determining that the inspection result is different from the expected result.
8. The apparatus of claim 7, wherein the acquisition module is further configured to: responding to a received change triggering instruction of the service object, and acquiring a deployment task of the service object; and in the current deployment process of the deployment task, carrying out health state examination on the service object in real time, and obtaining an examination result of the service object in the current deployment process.
9. The apparatus of claim 7 or 8, wherein the apparatus further comprises:
a prompt module configured to generate and send a deployment exception message in response to determining that the inspection result is different from the expected result.
10. The apparatus of claim 9, wherein the apparatus further comprises:
a termination module configured to terminate the deployment task of the service object in response to receiving a reverse change instruction corresponding to the deployment exception message.
11. The apparatus of claim 7, wherein the apparatus further comprises:
and the recovery module is configured to respond to the received recovery change instruction corresponding to the deployment exception message, recover the deployment task of the service object, and continuously acquire the inspection result of the service object in the current deployment process in real time.
12. The apparatus of claim 7, wherein the acquisition module is further configured to:
and in response to determining that the inspection result is the same as the expected result, continuing to obtain the inspection result of the service object in real time.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
14. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-6.
15. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-6.
CN202110660573.7A 2021-06-15 2021-06-15 Service deployment method and device Pending CN115480953A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110660573.7A CN115480953A (en) 2021-06-15 2021-06-15 Service deployment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110660573.7A CN115480953A (en) 2021-06-15 2021-06-15 Service deployment method and device

Publications (1)

Publication Number Publication Date
CN115480953A true CN115480953A (en) 2022-12-16

Family

ID=84420045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110660573.7A Pending CN115480953A (en) 2021-06-15 2021-06-15 Service deployment method and device

Country Status (1)

Country Link
CN (1) CN115480953A (en)

Similar Documents

Publication Publication Date Title
CN113438106B (en) Content distribution network processing method and device and electronic equipment
CN114064208A (en) Method and device for detecting application service state, electronic equipment and storage medium
CN114328132A (en) Method, device, equipment and medium for monitoring state of external data source
CN113656252B (en) Fault positioning method, device, electronic equipment and storage medium
CN109299124B (en) Method and apparatus for updating a model
CN113641544A (en) Method, apparatus, device, medium and product for detecting application status
CN116645082A (en) System inspection method, device, equipment and storage medium
CN115480953A (en) Service deployment method and device
CN115437961A (en) Data processing method and device, electronic equipment and storage medium
CN114095394B (en) Network node fault detection method and device, electronic equipment and storage medium
CN114116288A (en) Fault processing method, device and computer program product
CN115576827A (en) Performance test method, device, equipment and storage medium of business process software
CN115357493A (en) Test method, test device, electronic equipment and storage medium
CN114693116A (en) Method and device for detecting code review validity and electronic equipment
CN114003497A (en) Method, device and equipment for testing service system and storage medium
CN114546799A (en) Point burying log checking method and device, electronic equipment, storage medium and product
CN113656239A (en) Monitoring method and device for middleware and computer program product
CN112631843A (en) Equipment testing method and device, electronic equipment, readable medium and product
CN115953889B (en) Anti-disassembly function detection method, system, device, equipment and storage medium
CN115599682A (en) Environment availability detection method, device, equipment and storage medium
CN117827647A (en) Execution method, device, equipment and medium of test script
CN118298853A (en) Feedback method and device for speech recognition test abnormality
CN117992105A (en) Device software upgrading method, device and storage medium
CN118170617A (en) Cluster anomaly detection method and device, electronic equipment and storage medium
CN115827218A (en) Node state processing method, device, equipment 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