CN116301916A - Service deployment method, device, electronic equipment and storage medium - Google Patents

Service deployment method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116301916A
CN116301916A CN202310146997.0A CN202310146997A CN116301916A CN 116301916 A CN116301916 A CN 116301916A CN 202310146997 A CN202310146997 A CN 202310146997A CN 116301916 A CN116301916 A CN 116301916A
Authority
CN
China
Prior art keywords
configuration parameters
configuration
delivery
host
target host
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
CN202310146997.0A
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 CN202310146997.0A priority Critical patent/CN116301916A/en
Publication of CN116301916A publication Critical patent/CN116301916A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The disclosure provides a service deployment method, a device, an electronic device and a storage medium, and relates to the artificial intelligence fields of privatization delivery, cloud computing, distributed storage and the like, wherein the method can comprise the following steps: acquiring machine information of a target host in an off-site private environment, and optimally configuring the target host according to the machine information; generating a configuration parameter display interface according to configuration parameters of software services in a delivery output package, wherein the delivery output package is to be delivered to an off-site private environment, acquiring modification information of a user on the displayed configuration parameters, and updating the delivery output package according to the modification information; and completing the delivery and deployment operation of the software service according to the target host after the optimal configuration and the updated delivery and output package. By applying the scheme disclosed by the disclosure, labor and time cost can be saved, deployment efficiency can be improved, and the like.

Description

Service deployment method, device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of artificial intelligence, in particular to a service deployment method, a device, electronic equipment and a storage medium in the fields of privatization delivery, cloud computing, distributed storage and the like.
Background
Privatized delivery refers to the process of delivering software services in an on-premise environment to a customer's off-premise private environment in order to allow the customer to independently use the software services in their own private environment.
The user (i.e. delivery enforcer) may first select a plurality of software services to be delivered in the in-field environment, combine the software services into a delivery output package, and then import the delivery output package into the out-field private environment by means of a data disc, thereby completing the service deployment process.
Disclosure of Invention
The disclosure provides a service deployment method, a device, an electronic device and a storage medium.
A service deployment method, comprising:
acquiring machine information of a target host in an off-site private environment, and optimally configuring the target host according to the machine information;
generating a configuration parameter display interface according to configuration parameters of software services in a delivery output package, wherein the delivery output package is to be delivered to the off-site private environment, acquiring modification information of a user on the displayed configuration parameters, and updating the delivery output package according to the modification information;
and completing the delivery and deployment operation of the software service according to the target host after the optimization configuration and the updated delivery and output package.
A service deployment apparatus, comprising: the system comprises a host optimizing unit, a parameter configuration unit and a delivery deployment unit;
the host optimizing unit is used for acquiring the machine information of a target host in an off-site private environment and carrying out optimal configuration on the target host according to the machine information;
the parameter configuration unit is used for generating a configuration parameter display interface according to configuration parameters of software services in a delivery output package, wherein the delivery output package is to be delivered to the off-site private environment, and acquiring modification information of a user on the displayed configuration parameters, and updating the delivery output package according to the modification information;
and the delivery deployment unit is used for completing the delivery deployment operation of the software service according to the target host after the optimization configuration and the updated delivery output package.
An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method as described above.
A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform a method as described above.
A computer program product comprising computer programs/instructions which when executed by a processor implement a method as described above.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a flow chart of an embodiment of a service deployment method according to the present disclosure;
fig. 2 is a schematic structural diagram of a service deployment device embodiment 200 according to the present disclosure;
fig. 3 shows a schematic block diagram of an electronic device 300 that may be used to implement embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one 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.
In addition, it should be understood that the term "and/or" herein is merely one association relationship describing the associated object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
Fig. 1 is a flowchart of an embodiment of a service deployment method according to the present disclosure. As shown in fig. 1, the following detailed implementation is included.
In step 101, machine information of a target host in an off-site private environment is obtained, and the target host is optimally configured according to the machine information.
In step 102, a configuration parameter display interface is generated according to configuration parameters of software services in a delivery output package, wherein the delivery output package is to be delivered to an off-site private environment, modification information of a user on the displayed configuration parameters is obtained, and the delivery output package is updated according to the modification information.
In step 103, according to the target host after the optimization configuration and the updated delivery output package, the delivery deployment operation of the software service is completed.
The traditional service deployment flow is mainly completed based on manual operation, so that great labor and time cost are required to be consumed, deployment efficiency is reduced, and the problem of high error rate exists.
By adopting the scheme of the embodiment of the method, in the whole service deployment flow, a user only needs to carry out some simple settings by means of a visual man-machine interaction interface, such as configuration parameter modification and the like, and other operations can be automatically completed, so that labor and time cost are saved, deployment efficiency is improved, error rate is reduced and the like.
In practical application, the execution main body of the embodiment of the method disclosed by the disclosure can be a specially designed one-key deployment tool, namely a software system capable of automatically deploying multiple services, and can provide a visual man-machine interaction interface to interact with a user.
In specific implementation, the environment exploration can be firstly performed, namely, the machine information of the target host in the off-site private environment is acquired, and the target host can be optimally configured according to the acquired machine information.
Preferably, a host list provided by the user may be obtained, where the host list includes all hosts in the off-site private environment, and then the hosts in the host list may be used as target hosts, and machine information of the target hosts may be obtained.
The host list can be generated by manual editing, for example, a user can determine all hosts included in the private environment outside the field in a certain way, and can correspondingly generate the host list, further, the user can input the generated host list into a one-key deployment tool through a corresponding man-machine interaction interface, and accordingly, the one-key deployment tool can acquire machine information of all target hosts and the like.
Through the processing, the one-key deployment tool can automatically complete environment exploration work aiming at all target hosts in the off-site private environment in batches, so that the processing efficiency and the like are improved.
Preferably, for any target host, the following processes can be performed separately: and connecting the target host, installing a proxy (agent) module into the target host, and acquiring the machine information of the target host collected and returned by the proxy module.
The method for connecting the target host is not limited, and after the connection, the proxy module can be installed in the target host and started, and accordingly, the proxy module can collect the machine information of the target host and can return the collected machine information.
Which information is specifically included in the collected machine information can be determined according to actual needs. For example, central processing units (CPU, central Processing Unit), memory, disk, network, operating system, kernel, drivers, etc. may be included.
By the mode, the machine information of each target host can be obtained efficiently and accurately, so that a good foundation is laid for subsequent processing.
And then, the target host can be optimally configured according to the acquired machine information. Preferably, the target host may be optimally configured according to a principle that the host environment meets the running requirement of the software service, where the optimal configuration may include one or any combination of the following: system setting, kernel upgrading and driver installation.
In the traditional mode, the above-mentioned optimal configuration is mainly completed through manual operation, but in the mode disclosed by the disclosure, the one-key deployment tool can automatically select the optimal implementation scheme according to the collected machine information, namely, proper system setting, kernel upgrading, driving installation and the like are performed for the target host, so that the differentiation problem in the aspects of architecture, hardware and the like between the target hosts is solved, the labor and time cost is saved, and the processing efficiency and the like are improved.
In addition, a configuration parameter display interface can be generated according to the configuration parameters of the software service in the delivery output package. Preferably, the configuration parameters of each software service in the delivery output package can be obtained, the weights of the obtained configuration parameters can be obtained respectively for the obtained configuration parameters, and then the obtained configuration parameters can be sequenced according to the sequence from high to low, and the sequenced configuration parameters are displayed in the configuration parameter display interface.
That is, the one-key deployment tool may automatically scan the delivery output package to obtain the configuration parameters of all the software services therein, for example, assuming that the delivery output package includes 3 software services (the number and the following numbers are only for illustration), which are respectively referred to as software service 1, software service 2 and software service 3 for convenience of description, where software service 1 includes 5 configuration parameters, software service 2 includes 7 configuration parameters, and software service 3 includes 9 configuration parameters, the obtained 21 (5+7+9) configuration parameters may be ranked in order of from high to low, and then the ranked 21 configuration parameters may be displayed in the configuration parameter display interface, where the specific form of the configuration parameter display interface is not limited. In addition, if the weights of the two configuration parameters are the same, the sequence of the two configuration parameters can be set arbitrarily.
How to obtain the weight of each configuration parameter is not limited. For example, for any configuration parameter, the weight of the configuration parameter may be estimated 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 for the corresponding software service, a predetermined evaluation rule, and the like.
Further, modification information of the displayed configuration parameters by the user can be obtained, and the delivery output package is updated according to the modification information, namely, corresponding software services in the delivery output package are updated.
Preferably, the user-modified configuration parameters may include: the configuration parameters to be modified are selected from the configuration parameters in the first M bits after sorting, M is smaller than N, M is a positive integer, N is a positive integer larger than one, N represents the number of the displayed configuration parameters, and/or the configuration parameters to be modified are selected from the searched configuration parameters, the searched configuration parameters are the configuration parameters meeting the set search conditions, and the specific value of M can be determined according to actual needs.
That is, the user may only check the configuration parameters in the first M bits after sorting in sequence, and may determine whether the checked configuration parameters need to be modified, if so, the configuration parameters may be modified accordingly, or search conditions may be input in a search box in the configuration parameter display interface, accordingly, configuration parameters meeting the search conditions may be searched out from all the displayed configuration parameters, and further, the searched configuration parameters may be checked and modified.
In the traditional mode, a user needs to check and manually modify the configuration parameters of each software service one by one, and by adopting the mode disclosed by the disclosure, the one-key deployment tool can acquire and display the configuration parameters of all the software services into the configuration parameter display interface, so that the user can conveniently complete configuration modification work of all the software services at one time, the modification efficiency is further improved, and the user can flexibly select which configuration parameters need to be modified in different modes according to actual needs, thereby further improving the modification efficiency and the like.
After the user checks and confirms that the configuration parameters are modified without errors, a one-key deployment instruction can be sent out, for example, a 'one-key deployment' button in a configuration parameter display interface is clicked, and accordingly, the one-key deployment tool can complete the delivery deployment operation of the software service according to the target host after the configuration is optimized and the delivery output package after the configuration is updated, namely, the service deployment flow is completed.
Preferably, the one-touch deployment tool may sequentially perform the following operations: and constructing a Yun Yuansheng container platform according to the optimally configured target host, 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.
According to the target host after the optimal configuration, a Yun Yuansheng container platform is built, namely, based on the target host after the optimal configuration, a cloud primary container platform is built in an off-site private environment and is used as an operation environment for delivering software services in a yield package. Importing the updated delivery output package refers to importing each software service (with updated configuration parameters) in the updated delivery output package into the cloud proto-container platform. Installing and starting each software service in the imported delivery output package refers to installing and starting each software service in the cloud proto-container platform. And verifying each software service after starting, namely verifying each software service, and delivering the software service to a client for acceptance after the verification is passed.
The one-key deployment tool encapsulates a series of works such as constructing a cloud primary container platform, importing, delivering and producing packages, installing and starting software services, verifying the software services and the like, and manual operation in a traditional mode is not needed, so that labor and time cost are greatly saved, and processing efficiency and the like are improved.
Preferably, the manner of sequentially performing the following operations may include: each operation is abstracted into one task, and each task is executed in sequence, wherein when any task is executed, the execution log and the execution state of the executed task are displayed in real time.
In practical application, the one-key deployment tool can provide a task flow engine, the task flow engine is a full-automatic and programmable task processing system, the operations can be respectively abstracted into a task, then the tasks are automatically executed, a user is allowed to customize the execution mode of the task, and the like, and when any task is executed, the execution log and the execution state of the task can be displayed in real time, so that the user can conveniently and intuitively know the execution condition of the task, and the like, and the user can conveniently use the task.
Preferably, in response to determining that the execution of the executed task fails, a processing instruction from the user may be acquired, and a process corresponding to the processing instruction is completed, where the processing instruction may include: rollback instructions, retry instructions, or skip instructions.
When the executed task fails to execute, the user is allowed to perform manual intervention such as rollback, retry or skip on the task, so that the task execution success rate, the service deployment success rate and the like are improved.
It should be noted that, for the sake of simplicity of description, the foregoing method embodiments are expressed as a series of combinations of actions, but it should be understood by those skilled in the art that the present disclosure is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present disclosure. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all of the preferred embodiments, and that the acts and modules referred to are not necessarily required by the present disclosure.
In a word, by adopting the scheme of the embodiment of the method disclosed by the invention, a large number of manual operations can be reduced, so that the labor and time cost is saved, and the deployment efficiency, the deployment success rate and the like of service deployment are improved.
The foregoing is a description of embodiments of the method, and the following further describes embodiments of the present disclosure through examples of apparatus.
Fig. 2 is a schematic structural diagram of a service deployment device embodiment 200 according to the present disclosure. As shown in fig. 2, which may include: host optimization unit 201, parameter configuration unit 202, and delivery deployment unit 203.
The host optimizing unit 201 is configured to obtain machine information of a target host in an off-site private environment, and perform optimal configuration on the target host according to the machine information.
The parameter configuration unit 202 is configured to generate a configuration parameter display interface according to configuration parameters of the software service in the delivery output package, where the delivery output package is to be delivered to the off-site private environment, obtain modification information of the user on the displayed configuration parameters, and update the delivery output package according to the modification information.
And the delivery deployment unit 203 is configured to complete the delivery deployment operation of the software service according to the target host after the optimization configuration and the updated delivery output package.
By adopting the scheme of the embodiment of the device, in the whole service deployment flow, a user only needs to carry out some simple settings by means of a visual man-machine interaction interface, such as configuration parameter modification and the like, and other operations can be automatically completed, so that labor and time cost are saved, deployment efficiency is improved, error rate is reduced and the like.
Preferably, the host optimizing unit 201 may obtain a host list provided by the user, where all hosts in the off-site private environment are included, and may use the hosts in the host list as the target hosts to obtain the machine information of the target hosts.
The host list may be generated by manual editing, e.g., the user may determine in some way all hosts included in the off-site private environment and may generate the host list accordingly.
Preferably, the host optimizing unit 201 may perform the following processing for any target host, respectively: and connecting the target host, installing the proxy module into the target host, and acquiring the machine information of the target host collected and returned by the proxy module.
Which information is specifically included in the collected machine information can be determined according to actual needs. For example, it may include a CPU, memory, disk, network, operating system, kernel, and drivers, etc.
In addition, the host optimization unit 201 may preferably perform an optimization configuration on the target host according to a principle that the host environment meets the running requirement of the software service, where the optimization configuration may include one or any combination of the following: system setting, kernel upgrading and driver installation.
The parameter configuration unit 202 may generate a configuration parameter presentation interface according to configuration parameters of the software service in the delivery output package. Preferably, the parameter configuration unit 202 may obtain configuration parameters of each software service in the delivery output package, and may obtain weights of the obtained configuration parameters respectively, so that the obtained configuration parameters may be ordered according to the order of the weights from high to low, and each ordered configuration parameter is displayed in the configuration parameter display interface.
Further, the parameter configuration unit 202 may further obtain modification information of the displayed configuration parameters by the user, and update the delivery output package according to the modification information, that is, update the corresponding software service therein.
Preferably, the user-modified configuration parameters may include: the configuration parameters which are selected from the configuration parameters in the first M bits after sorting and need to be modified are smaller than N, M is a positive integer, N is a positive integer which is larger than one, N represents the number of the displayed configuration parameters, and/or the configuration parameters which are selected from the searched configuration parameters and need to be modified are the configuration parameters which meet the set search conditions.
That is, the user may only check the configuration parameters in the first M bits after sorting in sequence, and may determine whether the checked configuration parameters need to be modified, if so, the configuration parameters may be modified accordingly, or search conditions may be input in a search box in the configuration parameter display interface, accordingly, configuration parameters meeting the search conditions may be searched out from all the displayed configuration parameters, and further, the searched configuration parameters may be checked and modified.
After the user checks and confirms that the configuration parameters are modified without errors, a one-key deployment instruction can be sent out, and accordingly, the delivery deployment unit 203 can complete the delivery deployment operation of the software service according to the target host after the configuration is optimized and the delivery output package after the update.
Preferably, delivery deployment unit 203 may perform the following operations in order: and constructing a Yun Yuansheng container platform according to the optimally configured target host, 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.
Preferably, the manner in which the delivery deployment unit 203 sequentially performs the following operations may include: each operation is abstracted into one task, and each task is executed in sequence, wherein when any task is executed, the execution log and the execution state of the executed task are displayed in real time.
In addition, preferably, in response to determining that the execution of the executed task fails, the delivery deployment unit 203 may acquire a processing instruction from the user, and complete a process corresponding to the processing instruction, where the processing instruction may include: rollback instructions, retry instructions, or skip instructions.
The specific workflow of the embodiment of the apparatus shown in fig. 2 may refer to the related description in the foregoing method embodiment, and will not be repeated.
In a word, by adopting the scheme of the embodiment of the device disclosed by the invention, a large number of manual operations can be reduced, so that the labor and time cost are saved, and the deployment efficiency, the deployment success rate and the like of service deployment are improved.
The scheme disclosed by the disclosure can be applied to the field of artificial intelligence, and particularly relates to the fields of privatization delivery, cloud computing, distributed storage and the like. Artificial intelligence is the subject of studying certain thinking processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.) that make a computer simulate a person, and has technology at both hardware and software levels, and artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing, etc., and artificial intelligence software technologies mainly include computer vision technologies, speech recognition technologies, natural language processing technologies, machine learning/deep learning, big data processing technologies, knowledge graph technologies, etc.
In addition, in the technical scheme of the disclosure, the related processes of collecting, storing, using, processing, transmitting, providing, disclosing and the like of the personal information of the user all accord with the regulations of related laws and regulations, and the public order is not violated.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
Fig. 3 shows a schematic block diagram of an electronic device 300 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, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile apparatuses, such as personal digital assistants, cellular telephones, smartphones, wearable devices, and other similar computing apparatuses. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 3, the apparatus 300 includes a computing unit 301 that may perform various suitable actions and processes according to 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. In the RAM 303, various programs and data required for the operation of the device 300 may also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other by a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Various components in device 300 are connected to 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, and the like; a storage unit 308 such as a magnetic disk, an optical disk, or the like; and a communication unit 309 such as a network card, modem, wireless communication transceiver, etc. The communication unit 309 allows the device 300 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 301 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 301 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 301 performs the various methods and processes described above, such as the methods described in this disclosure. For example, in some embodiments, the methods described in the present disclosure may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 308. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 300 via the ROM 302 and/or the communication unit 309. One or more steps of the methods described in the present disclosure may be performed when the computer program is loaded into RAM 303 and executed by computing unit 301. Alternatively, in other embodiments, the computing unit 301 may be configured to perform the methods described in the present disclosure 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 circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code 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 code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. 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. The 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 portable 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 pointing device (e.g., a mouse or trackball) by which a user can 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 may 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 input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background 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 background, 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 a client and a server. The client and server are typically 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 incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (21)

1. A service deployment method, comprising:
acquiring machine information of a target host in an off-site private environment, and optimally configuring the target host according to the machine information;
generating a configuration parameter display interface according to configuration parameters of software services in a delivery output package, wherein the delivery output package is to be delivered to the off-site private environment, acquiring modification information of a user on the displayed configuration parameters, and updating the delivery output package according to the modification information;
and completing the delivery and deployment operation of the software service according to the target host after the optimization configuration and the updated delivery and output package.
2. The method of claim 1, wherein,
the obtaining the machine information of the target host in the off-site private environment comprises:
acquiring a host list provided by a user, wherein the host list comprises all hosts in the off-site private environment;
and taking the host in the host list as the target host, and acquiring the machine information of the target host.
3. The method of claim 1, wherein,
the obtaining the machine information of the target host in the off-site private environment comprises:
for any target host, the following processes are respectively carried out: and connecting the target host, installing the proxy module into the target host, and acquiring the machine information of the target host collected and returned by the proxy module.
4. The method of claim 1, wherein,
the optimizing configuration of the target host according to the machine information comprises the following steps:
according to the principle that the host environment meets the running requirement of the software service, the target host is optimally configured, and the optimal configuration comprises one or any combination of the following: system setting, kernel upgrading and driver installation.
5. The method of claim 1, wherein,
the generating a configuration parameter display interface according to the configuration parameters of the software service in the delivery output package comprises:
acquiring configuration parameters of each software service in the delivery output package, and respectively acquiring weights of the acquired configuration parameters;
and sequencing the acquired configuration parameters according to the sequence from high to low of the weight, and displaying the sequenced configuration parameters into the configuration parameter display interface.
6. The method of claim 5, wherein,
the user-modified configuration parameters include:
the configuration parameters to be modified are selected from the configuration parameters in the first M bits after sequencing, M is smaller than N, M is a positive integer, N is a positive integer greater than one, and N represents the number of the displayed configuration parameters;
and/or selecting the configuration parameters to be modified from the searched configuration parameters, wherein the searched configuration parameters are the configuration parameters which meet the set search conditions.
7. The method according to any one of claims 1 to 6, wherein,
and completing the delivery deployment operation of the software service according to the target host after the optimization configuration and the updated delivery output package, wherein the operation comprises the following steps:
the following operations are sequentially executed: and building a Yun Yuansheng container platform according to the target host after the optimal 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 the starting.
8. The method of claim 7, wherein,
the following operations are sequentially executed, and the following operations comprise: each operation is abstracted into one task, and each task is executed in sequence, wherein when any task is executed, the execution log and the execution state of the executed task are displayed in real time.
9. The method of claim 8, further comprising:
in response to determining that the execution of the executed task fails, acquiring a processing instruction from a user, and completing processing corresponding to the processing instruction, wherein the processing instruction comprises: rollback instructions, retry instructions, or skip instructions.
10. A service deployment apparatus, comprising: the system comprises a host optimizing unit, a parameter configuration unit and a delivery deployment unit;
the host optimizing unit is used for acquiring the machine information of a target host in an off-site private environment and carrying out optimal configuration on the target host according to the machine information;
the parameter configuration unit is used for generating a configuration parameter display interface according to configuration parameters of software services in a delivery output package, wherein the delivery output package is to be delivered to the off-site private environment, and acquiring modification information of a user on the displayed configuration parameters, and updating the delivery output package according to the modification information;
and the delivery deployment unit is used for completing the delivery deployment operation of the software service according to the target host after the optimization configuration and the updated delivery output package.
11. The apparatus of claim 10, wherein,
the host optimizing unit obtains a host list provided by a user, wherein the host list comprises all hosts in the off-site private environment, and the hosts in the host list are used as the target hosts to obtain the machine information of the target hosts.
12. The apparatus of claim 10, wherein,
the host optimizing unit performs the following processing for any target host: and connecting the target host, installing the proxy module into the target host, and acquiring the machine information of the target host collected and returned by the proxy module.
13. The apparatus of claim 10, wherein,
the host optimizing unit performs optimizing configuration on the target host according to the principle that the host environment meets the running requirement of the software service, wherein the optimizing configuration comprises one or any combination of the following: system setting, kernel upgrading and driver installation.
14. The apparatus of claim 10, wherein,
the parameter configuration unit obtains configuration parameters of each software service in the delivery output package, respectively obtains weights of the obtained configuration parameters according to the obtained configuration parameters, sorts the obtained configuration parameters according to the order of the weights from high to low, and displays the sorted configuration parameters into the configuration parameter display interface.
15. The apparatus of claim 14, wherein,
the user-modified configuration parameters include:
the configuration parameters to be modified are selected from the configuration parameters in the first M bits after sequencing, M is smaller than N, M is a positive integer, N is a positive integer greater than one, and N represents the number of the displayed configuration parameters;
and/or selecting the configuration parameters to be modified from the searched configuration parameters, wherein the searched configuration parameters are the configuration parameters which meet the set search conditions.
16. The device according to any one of claims 10 to 15, wherein,
the delivery deployment unit performs the following operations in sequence: and building a Yun Yuansheng container platform according to the target host after the optimal 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 the starting.
17. The apparatus of claim 16, wherein,
and the delivery deployment unit abstracts each operation into one task respectively and sequentially executes each task, wherein when any task is executed, the execution log and the execution state of the executed task are displayed in real time.
18. The apparatus of claim 17, wherein,
the delivery deployment unit is further configured to, in response to determining that the execution of the executed task fails, acquire a processing instruction from a user, and complete processing corresponding to the processing instruction, where the processing instruction includes: rollback instructions, retry instructions, or skip instructions.
19. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
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-9.
20. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1-9.
21. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the method of any of claims 1-9.
CN202310146997.0A 2023-02-15 2023-02-15 Service deployment method, device, electronic equipment and storage medium Pending CN116301916A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310146997.0A CN116301916A (en) 2023-02-15 2023-02-15 Service deployment method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310146997.0A CN116301916A (en) 2023-02-15 2023-02-15 Service deployment method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116301916A true CN116301916A (en) 2023-06-23

Family

ID=86812388

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310146997.0A Pending CN116301916A (en) 2023-02-15 2023-02-15 Service deployment method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116301916A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116775048A (en) * 2023-08-24 2023-09-19 浪潮通用软件有限公司 Rapid deployment method, device and medium based on software delivery

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116775048A (en) * 2023-08-24 2023-09-19 浪潮通用软件有限公司 Rapid deployment method, device and medium based on software delivery
CN116775048B (en) * 2023-08-24 2024-01-16 浪潮通用软件有限公司 Rapid deployment method, device and medium based on software delivery

Similar Documents

Publication Publication Date Title
CN111045932B (en) Business system simulation processing method and device, electronic equipment and storage medium
CN110706147B (en) Image processing environment determination method, device, electronic equipment and storage medium
CN114298322A (en) Federal learning method, device, system, electronic equipment and computer readable medium
US11182689B2 (en) Adaptive learning rate schedule in distributed stochastic gradient descent
CN114157701B (en) Task testing method, device, equipment and storage medium
CN116301916A (en) Service deployment method, device, electronic equipment and storage medium
CN114564374A (en) Operator performance evaluation method and device, electronic equipment and storage medium
CN112527281A (en) Operator upgrading method and device based on artificial intelligence, electronic equipment and medium
CN114417780B (en) State synchronization method and device, electronic equipment and storage medium
CN114924862A (en) Task processing method, device and medium implemented by integer programming solver
CN115481594B (en) Scoreboard implementation method, scoreboard, electronic equipment and storage medium
EP4254221A1 (en) Multi-round dialogue processing method and apparatus, electronic device and storage medium
CN114792125B (en) Data processing method and device based on distributed training, electronic equipment and medium
CN114385829A (en) Knowledge graph creating method, device, equipment and storage medium
CN114444606A (en) Model training and data classification method and device
CN114185641A (en) Virtual machine cold migration method and device, electronic equipment and storage medium
CN115102850B (en) Configuration comparison method, device, electronic equipment and storage medium
CN115361290B (en) Configuration comparison method, device, electronic equipment and storage medium
CN113961405B (en) State switching instruction verification method and device, electronic equipment and storage medium
US20240144570A1 (en) Method for generating drivable 3d character, electronic device and storage medium
CN117573507A (en) Test case generation method and device, electronic equipment and storage medium
EP4202777A1 (en) Method and apparatus for distributing network layers in neural network model
CN115686304A (en) Information acquisition method and device, electronic equipment and storage medium
CN113900734A (en) Application program file configuration method, device, equipment and storage medium
CN116521199A (en) Component upgrading method, device, equipment and storage 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