Service deployment method and apparatus, electronic device, and storage medium
The automated service deployment process using the one-click deployment tool solves the problems of high cost and low efficiency caused by traditional manual operations, and achieves efficient service deployment with a low error rate.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-15
- Publication Date
- 2026-03-20
AI Technical Summary
Traditional service deployment processes rely on manual operation, resulting in high labor and time costs, low efficiency, and high error rates.
A one-click deployment tool is used, which allows for simple setup through a visual human-computer interaction interface. It automatically completes environmental exploration, optimization configuration, configuration parameter modification, and software service delivery and deployment, including environmental exploration, optimization configuration, parameter display, and automated deployment.
It reduces manual operations, saves manpower and time costs, improves deployment efficiency and success rate, and reduces error rate.
Smart Images

Figure CN116301916B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the field of artificial intelligence, in particular to a service deployment method and device, an electronic device and a storage medium in the fields of private delivery, cloud computing and distributed storage. BACKGROUND
[0002] Private delivery refers to a process of delivering software services in an on-premises environment to a customer's off-premises private environment, so that the customer can independently use the software services in his own private environment.
[0003] A user (i.e. delivery implementer) can first select a plurality of software services to be delivered in the on-premises environment, and combine the software services into a delivery output package, and then bring the delivery output package into the off-premises private environment through a data disk, and then complete the service deployment process. SUMMARY
[0004] The present disclosure provides a service deployment method and device, an electronic device and a storage medium.
[0005] A service deployment method comprises:
[0006] Obtaining machine information of a target host in an off-premises private environment, and performing optimized configuration on the target host according to the machine information;
[0007] Generating a configuration parameter display interface according to configuration parameters of software services in a delivery output package, the delivery output package being a delivery output package to be delivered to the off-premises private environment, and obtaining modification information made by a user on the displayed configuration parameters, and updating the delivery output package according to the modification information;
[0008] Completing delivery deployment operation of the software services according to the target host after optimized configuration and the updated delivery output package.
[0009] A service deployment device comprises a host optimization unit, a parameter configuration unit and a delivery deployment unit.
[0010] The host optimization unit is configured to obtain machine information of a target host in an off-premises private environment, and perform optimized configuration on the target host according to the machine information;
[0011] The parameter configuration unit is configured to generate a configuration parameter display interface according to configuration parameters of software services in a delivery output package, the delivery output package being a delivery output package to be delivered to the off-premises private environment, and obtain modification information made by a user on the displayed configuration parameters, and update the delivery output package according to the modification information;
[0012] The delivery deployment unit is configured to complete the delivery deployment operation of the software service according to the target host after optimization and the updated delivery output package.
[0013] An electronic device comprising:
[0014] at least one processor; and
[0015] a memory in communication with the at least one processor; wherein
[0016] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method as described above.
[0017] A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method as described above.
[0018] A computer program product comprising computer programs / instructions that, when executed by a processor, implement the method as described above.
[0019] It should be understood that the contents described in this part are not intended to identify key or important features of the embodiments of the present disclosure, nor to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS
[0020] The accompanying drawings are used to better understand the present scheme and do not limit the present disclosure. Among them:
[0021] Figure 1 a flowchart of the service deployment method embodiment of the present disclosure;
[0022] Figure 2 a constituent structure schematic diagram of the service deployment device embodiment 200 of the present disclosure;
[0023] Figure 3 A schematic block diagram of an electronic device 300 that can be used to implement embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0024] Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, which include various details of the embodiments of the present disclosure to assist in understanding, and should be considered as merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Also, in order to be clear and concise, descriptions of well-known functions and structures are omitted in the following description.
[0025] In addition, it should be understood that the term "and / or" herein merely describes an associated relationship of associated objects, which means that there can be three relationships, for example, A and / or B can represent the three cases of A alone, A and B together, and B alone. In addition, the character " / " herein generally represents an "or" relationship between the front and rear associated objects.
[0026] Figure 1 A flowchart of the service deployment method embodiment of the present disclosure is shown in FIG. 1. Figure 1 As shown, the following specific implementation is included.
[0027] In step 101, machine information of a target host in an off-site private environment is obtained, and the target host is optimized and configured according to the machine information.
[0028] In step 102, a configuration parameter display interface is generated according to configuration parameters of a software service in a delivery output package, the delivery output package is a delivery output package to be delivered to the off-site private environment, and modification information made by a user on the displayed configuration parameters is obtained, and the delivery output package is updated according to the modification information.
[0029] In step 103, a delivery and deployment operation of the software service is completed according to the target host after optimization and configuration and the updated delivery output package.
[0030] The traditional service deployment process is mainly completed based on manual operation, thereby requiring a large amount of manpower and time cost, reducing deployment efficiency, and having a high error rate.
[0031] However, by using the scheme of the above method embodiment, in the entire service deployment process, the user only needs to make some simple settings with the aid of a visual human-computer interaction interface, such as the above-mentioned configuration parameter modification, and other operations can be automatically completed, thereby saving manpower and time cost, improving deployment efficiency, and reducing error rate.
[0032] In actual application, the execution subject of the method embodiment of the present disclosure can be a one-key deployment tool specially designed, that is, a software system capable of automatically deploying multiple services, and can provide a visual human-computer interaction interface to interact with the user.
[0033] In specific implementation, environment exploration can be performed first, that is, machine information of a target host in an off-site private environment is obtained, and the target host can be optimized and configured according to the obtained machine information.
[0034] Preferably, a host list provided by a user can be obtained, the host list including all hosts in the off-site private environment, then the hosts in the host list can be taken as target hosts, and machine information of the target hosts can be obtained.
[0035] The host list can be generated manually, for example, a user can determine all hosts included in the off-site private environment in some way, and can generate the host list accordingly. Further, the user can input the generated host list to the one-key deployment tool through a corresponding human-computer interaction interface, and the one-key deployment tool can obtain the machine information of each target host accordingly.
[0036] Through the above processing, the one-key deployment tool can automatically and in batches complete the environment exploration work for all target hosts in the off-site private environment, improving the processing efficiency and the like.
[0037] Preferably, for any target host, the following processing can be performed respectively: connecting the target host, and installing an agent module into the target host, and obtaining the machine information of the target host collected and returned by the agent module.
[0038] How to connect the target host is not limited. After connection, the agent module can be installed into the target host and started, and accordingly, the agent module will collect the machine information of the target host and can return the collected machine information.
[0039] Specifically, the collected machine information can include central processing unit (CPU), memory, disk, network, operating system, kernel, and driver, etc.
[0040] Through the above manner, the machine information of each target host can be efficiently and accurately obtained, thereby laying a good foundation for subsequent processing.
[0041] Then, the target host can be optimized and configured according to the obtained machine information. Preferably, the target host can be optimized and configured according to the principle of making the host environment meet the running requirements of the software service, and the optimization and configuration can include one or any combination of the following: system setting, kernel upgrade, and driver installation.
[0042] In the traditional way, the above optimization and configuration is mainly completed by manual operation, while in the way described in the present disclosure, the one-key deployment tool can automatically select the best implementation scheme according to the collected machine information, that is, to make appropriate system settings, kernel upgrades, and driver installations for the target host, thereby solving the problem of differences in architecture and hardware between target hosts, saving manpower and time cost, and improving the processing efficiency and the like.
[0043] In addition, the configuration parameter display interface can be generated according to the configuration parameters of the software services in the delivery output package. Preferably, the configuration parameters of the software services in the delivery output package can be acquired, and the weight of each acquired configuration parameter can be acquired, and then the acquired configuration parameters can be sorted according to the weight from high to low, and the sorted configuration parameters can be displayed in the configuration parameter display interface.
[0044] That is, the one-key deployment tool can automatically scan the delivery output package to acquire the configuration parameters of all the software services therein. For example, it is assumed that the delivery output package includes three software services (the number and the numbers below are only for illustration), which are referred to as software service 1, software service 2 and software service 3 for convenience of description. The software service 1 includes five configuration parameters, the software service 2 includes seven configuration parameters, and the software service 3 includes nine configuration parameters. Then, the 21 (5+7+9) acquired configuration parameters can be sorted according to the weight from high to low, and then the sorted 21 configuration parameters can be displayed in the configuration parameter display interface. The specific form of the configuration parameter display interface is not limited. In addition, if the weights of two configuration parameters are the same, their order can be arbitrarily set.
[0045] How to acquire the weight of each configuration parameter is not limited. For example, for any configuration parameter, the weight of the configuration parameter can be evaluated according to the type of the software service corresponding to the configuration parameter, the type of the configuration parameter itself, the importance of the configuration parameter to the corresponding software service, and a predetermined evaluation rule.
[0046] Further, the modification information of the user on the displayed configuration parameters can be acquired, and the delivery output package is updated according to the modification information, that is, the corresponding software service in the delivery output package is updated.
[0047] Preferably, the configuration parameters modified by the user can include: the configuration parameters selected from the first M configuration parameters in the sorted configuration parameters and needed to be modified, M is less than N, M is a positive integer, N is a positive integer greater than one, N represents the number of displayed configuration parameters, and / or the configuration parameters selected from the searched configuration parameters and needed to be modified, the searched configuration parameters are the configuration parameters meeting the set search condition, and the specific value of M can be determined according to actual needs.
[0048] That is, the user can only check the configuration parameters in the first M positions in the sorted configuration parameters in turn, and can determine whether the checked configuration parameters need to be modified, and if so, the modification can be performed accordingly, or the search condition can be input in the search box in the configuration parameter display interface, and then the configuration parameters meeting the search condition can be searched from all the displayed configuration parameters, and the searched configuration parameters can be checked and modified, etc.
[0049] In the conventional manner, the user needs to check and manually modify the configuration parameters of each software service one by one, while in the manner described in the present disclosure, the one-key deployment tool can acquire and display the configuration parameters of all software services together in the configuration parameter display interface, thereby facilitating the user to complete the configuration modification work of all software services at one time, and further improving the modification efficiency, and moreover, the user can flexibly select which configuration parameters need to be modified according to actual needs, thereby further improving the modification efficiency, etc.
[0050] After the user checks and confirms that the configuration parameter modification is correct, a one-key deployment instruction can be issued, such as clicking the "one-key deployment" button in the configuration parameter display interface, and correspondingly, the one-key deployment tool can complete the delivery and deployment operation of the software service according to the target host after optimization configuration and the updated delivery output package, that is, complete the service deployment process.
[0051] Preferably, the one-key deployment tool can sequentially perform the following operations: building a cloud-native container platform according to the target host after optimization configuration, importing the updated delivery output package, installing and starting each software service in the imported delivery output package, and verifying each software service after starting.
[0052] Among them, building a cloud-native container platform according to the target host after optimization configuration means building a cloud-native container platform in an off-site private environment based on the target host after optimization configuration, as the running environment of the software service in the delivery output package. Importing the updated delivery output package means importing each software service (the configuration parameters have been updated) in the updated delivery output package into the cloud-native container platform. Installing and starting each software service in the imported delivery output package means installing and starting each software service in the cloud-native container platform. Verifying each software service after starting means verifying each software service, and after verification, delivering it to the customer for acceptance.
[0053] That is, the one-key deployment tool encapsulates a series of work such as building a cloud-native container platform, importing a delivery output package, installing and starting a software service, and verifying a software service, and no longer needs manual operation in the conventional manner, thereby greatly saving manpower and time cost, and improving processing efficiency, etc.
[0054] Preferably, the manner of sequentially performing the following operations can include: abstracting each operation as a task, and sequentially performing each task, wherein when performing any task, the execution log and execution state of the performed task are displayed in real time.
[0055] In actual application, the one-key deployment tool can provide a task flow engine, which is an automatic and programmable task processing system, can abstract each operation described above into a task, and then automatically execute the tasks, and allows the user to customize the execution mode of the tasks, etc. When executing any task, the execution log and the execution state of the task can be displayed in real time to facilitate the user to clearly and intuitively understand the execution of the task, etc. to facilitate the user to use.
[0056] Preferably, in response to determining that the executed task fails, a processing instruction from the user can be obtained, and a processing corresponding to the processing instruction is completed. The processing instruction can include a rollback instruction, a retry instruction, or a skip instruction.
[0057] That is, when the executed task fails, the user is allowed to manually intervene in the rollback, retry, or skip of the task, thereby improving the success rate of task execution and the success rate of service deployment, etc.
[0058] It should be noted that, for the foregoing method embodiments, in order to simply describe, it is expressed as a series of action combinations, but those skilled in the art should know that the present disclosure is not limited to the action sequence described, because according to the present disclosure, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily necessary for the present disclosure.
[0059] In summary, by using the scheme described in the method embodiment of the present disclosure, a large amount of manual operation can be reduced, thereby saving the labor and time cost, and improving the deployment efficiency and the deployment success rate of service deployment, etc.
[0060] The above is the introduction of the method embodiment, and the scheme described in the present disclosure will be further described through the device embodiment.
[0061] Figure 2 The constituent structure schematic diagram of the service deployment device embodiment 200 of the present disclosure is shown in FIG. 1. As shown in FIG. 1, it can include a host optimization unit 201, a parameter configuration unit 202, and a delivery deployment unit 203. Figure 2
[0062] The host optimization unit 201 is configured to obtain machine information of a target host in an off-site private environment, and perform optimized configuration on the target host according to the machine information.
[0063] The parameter configuration unit 202 is configured to generate a configuration parameter display interface according to configuration parameters of the software services in the delivery output package, the delivery output package being a delivery output package to be delivered to an off-site private environment, and obtain modification information made by a user on the displayed configuration parameters, and update the delivery output package according to the modification information.
[0064] The delivery deployment unit 203 is configured to complete a delivery deployment operation of the software services according to the target host after optimization and the updated delivery output package.
[0065] By using the above-mentioned device embodiment and the above-mentioned solutions, in the whole service deployment process, the user only needs to make some simple settings by means of a visual man-machine interface, such as the above-mentioned configuration parameter modification, and other operations can be automatically completed, thereby saving the labor and time costs, improving the deployment efficiency, and reducing the error rate, etc.
[0066] Preferably, the host optimization unit 201 can obtain a host list provided by a user, the host list including all hosts in the off-site private environment, and can take the hosts in the host list as target hosts and obtain machine information of the target hosts.
[0067] The host list can be generated by manual editing, for example, the user can determine all hosts included in the off-site private environment by a certain method, and can correspondingly generate the host list.
[0068] Preferably, for any target host, the host optimization unit 201 can perform the following processing respectively: connecting the target host and installing an agent module into the target host, and obtaining machine information of the target host collected and returned by the agent module.
[0069] The collected machine information can include any information according to actual needs. For example, it can include CPU, memory, disk, network, operating system, kernel, and driver, etc.
[0070] In addition, preferably, the host optimization unit 201 can perform optimization configuration on the target host according to the principle that the host environment meets the running requirements of the software services, and the optimization configuration can include one or any combination of the following: system setting, kernel upgrade, and driver installation.
[0071] The parameter configuration unit 202 can generate a configuration parameter display interface according to the configuration parameters of the software services in the delivery output package. Preferably, the parameter configuration unit 202 can obtain the configuration parameters of each software service in the delivery output package, and can obtain the weight of each configuration parameter obtained, and then can sort each configuration parameter obtained according to the weight from high to low, and display each sorted configuration parameter to the configuration parameter display interface.
[0072] Further, the parameter configuration unit 202 can also acquire modification information of the user on the displayed configuration parameters, and update the delivery output package according to the modification information, that is, update the corresponding software service therein.
[0073] Preferably, the configuration parameters modified by the user can include: configuration parameters selected from the configuration parameters in the top M positions after sorting and needed to be modified, M is less than N, M is a positive integer, N is a positive integer greater than one, N represents the number of displayed configuration parameters, and / or configuration parameters selected from the searched configuration parameters, the searched configuration parameters are configuration parameters meeting the set search condition.
[0074] That is, the user can only check the configuration parameters in the top M positions after sorting in turn, and can respectively determine whether the checked configuration parameters need to be modified, if yes, can be modified accordingly, or can also input a search condition in the search box in the configuration parameter display interface, accordingly, can search the configuration parameters meeting the search condition from all the displayed configuration parameters, and then can check and modify the searched configuration parameters, etc.
[0075] After the user checks and confirms that the configuration parameter modification is correct, a one-key deployment instruction can be issued, and accordingly, the delivery deployment unit 203 can complete the delivery deployment operation of the software service according to the target host after optimization configuration and the updated delivery output package.
[0076] Preferably, the delivery deployment unit 203 can sequentially perform the following operations: building a cloud-native container platform according to the target host after optimization configuration, importing the updated delivery output package, installing and starting each software service in the imported delivery output package, and verifying each software service after starting.
[0077] Preferably, the manner in which the delivery deployment unit 203 sequentially performs the following operations can include: abstracting each operation as a task and sequentially performing each task, wherein when performing any task, the execution log and execution state of the performed task are displayed in real time.
[0078] In addition, preferably, in response to determining that the performed task fails, the delivery deployment unit 203 can acquire a processing instruction from the user, and complete the processing corresponding to the processing instruction, the processing instruction can include: a rollback instruction, a retry instruction or a skip instruction.
[0079] Figure 2 The specific working process of the apparatus embodiment can refer to the related description in the foregoing method embodiment, and will not be described here.
[0080] In summary, the scheme described in the device embodiment of the present disclosure can reduce a large amount of manual operation, thereby saving labor and time costs and improving the deployment efficiency and deployment success rate of service deployment.
[0081] The scheme described in the present disclosure can be applied to the field of artificial intelligence, and in particular relates to the fields of private delivery, cloud computing, and distributed storage. Artificial intelligence is a discipline that studies enabling computers to simulate some thinking processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.) of humans, and includes both hardware-level technologies and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, special-purpose artificial intelligence chips, cloud computing, distributed storage, big data processing, etc. Artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, and machine learning / deep learning, big data processing technology, knowledge graph technology, etc.
[0082] In addition, in the technical scheme of the present disclosure, the collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved in the technical scheme comply with relevant laws and regulations and do not violate public order and good customs.
[0083] According to embodiments of the present disclosure, the present disclosure further provides an electronic device, a readable storage medium, and a computer program product.
[0084] Figure 3 A schematic block diagram of an electronic device 300 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, servers, blades, supercomputers, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown here, their connections, and their functions, as described above, are meant to be examples only, and are not intended to limit the implementations of the present disclosure described and / or claimed in this document.
[0085] As shown in Figure 3 The device 300 includes a computing unit 301 that can perform various appropriate actions and processes in accordance with a computer program stored in a read-only memory (ROM) 302 or a computer program loaded from a storage unit 308 into a random access memory (RAM) 303. Various programs and data required for the operation of the device 300 can also be stored in the RAM 303. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other through a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0086] A plurality of components in the device 300 are connected to the I / O interface 305, including: an input unit 306, such as a keyboard, a mouse, etc.; an output unit 307, such as various types of displays, speakers, etc.; a storage unit 308, such as a magnetic disk, an optical disk, etc.; and a communication unit 309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 309 allows the device 300 to exchange information / data with other devices through a computer network, such as the Internet, and / or various telecommunication networks.
[0087] The computing unit 301 can be various general and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 301 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 301 performs various methods and processes described above, such as the methods described in the present disclosure. For example, in some embodiments, the methods described in the present disclosure can be implemented as a computer software program, which is tangibly embodied in a machine-readable medium, such as the storage unit 308. In some embodiments, part or all of the computer program can be loaded and / or installed onto the device 300 via the ROM 302 and / or the communication unit 309. When the computer program is loaded onto the RAM 303 and executed by the computing unit 301, one or more steps of the methods described in the present disclosure can be performed. Alternatively, in other embodiments, the computing unit 301 can be configured to perform the methods described in the present disclosure by any other appropriate means, such as by means of firmware.
[0088] Various implementations of the systems and techniques described above herein can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a complex programmable logic device (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0089] Program code for carrying out methods of the present disclosure can be written in any combination of one or more programming languages. The program code can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the program code, when executed by the processor or controller, produces the functions / operations specified in the flowcharts and / or block diagrams. The program code can be executed entirely on a machine, partially on a machine, partially on a machine as a standalone software package, or entirely on a remote machine or server.
[0090] In the context of the present disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can 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 the machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fibers, portable compact disc read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0091] 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 the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; 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 can be received in any form, including acoustic, speech, or tactile input.
[0092] 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 a local area network (LAN), a wide area network (WAN), and the Internet.
[0093] The computer system can include clients and servers. This relationship can be. The servers are typically remote from the clients with the interactions between them occurring over a communication network. The relationship between a client and a server is one of client-server. The server can be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
[0094] It should be understood that the steps shown in the various forms above can be reordered, added to, or deleted from. For example, the steps recited in the present disclosure can be performed in parallel, in series, or in a different order, as long as the desired results of the technology disclosed in the present disclosure are achieved, which is not limited herein.
[0095] The specific embodiments described above are not intended to be limiting. One of skill in the art will understand that various modifications, combinations, sub-combinations, and alternatives can be made to the specific embodiments described above without departing from the spirit and principles of this disclosure. Any further modifications, changes, or improvements that come within the spirit and principles of the disclosure are intended to fall within the scope of the disclosure.
Claims
1. A service deployment method, comprising: Obtain machine information of the target host in an off-site private environment, and optimize the configuration of the target host based on the machine information, including: optimizing the configuration of the target host according to the principle of making the host environment meet the running requirements of the software service, wherein the optimization configuration includes one or any combination of the following: system settings, kernel upgrade, driver installation; The system obtains the configuration parameters of each software service in the delivery package, acquires the weight of each configuration parameter, sorts the configuration parameters in descending order of weight, and displays the sorted configuration parameters in the configuration parameter display interface. The delivery package is the delivery package to be delivered to the off-site private environment. The system also acquires the modification information made by the user to the displayed configuration parameters and updates the delivery package according to the modification information. Based on the optimized target host and the updated delivery package, the software service is delivered and deployed.
2. The method according to claim 1, wherein, The acquisition of machine information of the target host in the off-site private environment includes: Obtain the host list provided by the user, which includes all hosts in the off-site private environment; The host in the host list is selected as the target host, and the machine information of the target host is obtained.
3. The method according to claim 1, wherein, The acquisition of machine information of the target host in the off-site private environment includes: For any target host, the following processes are performed: connect to the target host, install the proxy module on the target host, and obtain the machine information of the target host collected and returned by the proxy module.
4. The method according to claim 1, wherein, The configuration parameters modified by the user include: Select the configuration parameter to be modified from the first M positions of the configuration parameters after sorting. M is less than N, where M is a positive integer and N is a positive integer greater than one. N represents the number of configuration parameters displayed. And / or, select the configuration parameters that need to be modified from the searched configuration parameters, wherein the searched configuration parameters are configuration parameters that meet the set search conditions.
5. The method according to any one of claims 1 to 4, wherein, The step of completing the delivery and deployment of the software service based on the optimized target host and the updated delivery package includes: Perform the following operations in sequence: build a cloud-native container platform based on the optimized target host, import the updated delivery package, install and start each software service in the imported delivery package, and verify each software service after startup.
6. The method according to claim 5, wherein, The sequential execution of the following operations includes: abstracting each operation into a task and executing each task in sequence, wherein, when executing any task, the execution log and execution status of the executed task are displayed in real time.
7. The method according to claim 6, further comprising: In response to determining that the task being executed has failed, the system obtains processing instructions from the user and completes the processing corresponding to the processing instructions, which include: rollback instructions, retry instructions, or skip instructions.
8. A service deployment apparatus, comprising: Host optimization unit, parameter configuration unit, and delivery and deployment unit; The host optimization unit is used to obtain machine information of the target host in the off-site private environment, and optimize the configuration of the target host according to the machine information, including: optimizing the configuration of the target host according to the principle of making the host environment meet the running requirements of the software service, wherein the optimization configuration includes one or any combination of the following: system settings, kernel upgrade, driver installation; The parameter configuration unit is used to obtain the configuration parameters of each software service in the delivery package, obtain the weight of each obtained configuration parameter, sort the obtained configuration parameters in descending order of weight, and display the sorted configuration parameters in the configuration parameter display interface. The delivery package is the delivery package to be delivered to the off-site private environment. The unit also obtains the modification information made by the user to the displayed configuration parameters and updates the delivery package according to the modification information. The delivery and deployment unit is used to complete the delivery and deployment operation of the software service based on the optimized target host and the updated delivery output package.
9. The apparatus according to claim 8, wherein, The host optimization unit obtains a host list provided by the user, which includes all hosts in the off-site private environment, and uses the hosts in the host list as the target hosts to obtain the machine information of the target hosts.
10. The apparatus according to claim 8, wherein, For any target host, the host optimization unit performs the following processes: connects to the target host, installs the agent module into the target host, and obtains the machine information of the target host collected and returned by the agent module.
11. The apparatus according to claim 8, wherein, The configuration parameters modified by the user include: Select the configuration parameter to be modified from the first M positions of the configuration parameters after sorting. M is less than N, where M is a positive integer and N is a positive integer greater than one. N represents the number of configuration parameters displayed. And / or, select the configuration parameters that need to be modified from the searched configuration parameters, wherein the searched configuration parameters are configuration parameters that meet the set search conditions.
12. The apparatus according to any one of claims 8 to 11, wherein, The delivery and deployment unit performs the following operations in sequence: builds a cloud-native container platform based on the optimized target host, imports the updated delivery package, installs and starts each software service in the imported delivery package, and verifies each software service after startup.
13. The apparatus according to claim 12, wherein, The delivery and deployment unit abstracts each operation into a task and executes each task in sequence. When executing any task, the execution log and execution status of the executed task are displayed in real time.
14. The apparatus according to claim 13, wherein, The delivery deployment unit is further configured to, in response to determining that the executed task has failed, obtain processing instructions from the user and complete the processing corresponding to the processing instructions, the processing instructions including: rollback instructions, retry instructions or skip instructions.
15. An electronic device comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
16. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-7.
17. A computer program product comprising a computer program / instructions that, when executed by a processor, implement the method of any one of claims 1-7.
Citation Information
Patent Citations
Big data service deployment method and device and computer readable storage medium
CN114296748A
Multi-service deployment method and device, electronic equipment and storage medium
CN114527996A