CN114579146A - Software installation method, device, equipment and storage medium - Google Patents

Software installation method, device, equipment and storage medium Download PDF

Info

Publication number
CN114579146A
CN114579146A CN202210169487.0A CN202210169487A CN114579146A CN 114579146 A CN114579146 A CN 114579146A CN 202210169487 A CN202210169487 A CN 202210169487A CN 114579146 A CN114579146 A CN 114579146A
Authority
CN
China
Prior art keywords
software
devices
dependency information
target
information
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
CN202210169487.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 CN202210169487.0A priority Critical patent/CN114579146A/en
Publication of CN114579146A publication Critical patent/CN114579146A/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
    • G06F8/61Installation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure provides a software installation method, a device, equipment and a storage medium. The technical field of artificial intelligence is related to, concretely relates to cloud computing fields such as container cluster delivery, installation and deployment. The specific implementation scheme is as follows: under the condition that the target cluster is not connected with an external network, acquiring an integrated installation package through a control machine of the target cluster, wherein the control machine is one of a plurality of devices included in the target cluster, and the integrated installation package comprises a target component and first dependency information of the target component as well as to-be-installed software and second dependency information of the to-be-installed software; and controlling other equipment in the plurality of equipment to install the target component based on the first dependency information and install the software to be installed based on the second dependency information through the control machine. According to the technical scheme disclosed by the invention, the installation efficiency and the safety of the target cluster can be improved.

Description

Software installation method, device, equipment and storage medium
Technical Field
The disclosure relates to the technical field of artificial intelligence, and further relates to the field of cloud computing such as container cluster delivery, installation and deployment, in particular to a software installation method, device, equipment and storage medium.
Background
Some clusters can manage containers autonomously to ensure that containers in the cloud platform operate according to the expected state of the user. Many users deploy services on such clusters due to their support for automated deployment, large-scale scalability, application containerization management, etc.
When delivering private cloud products, a delivery base (including a cluster environment and middleware services) of such a cluster (such as a kubernets cluster, K8S for short) needs to be installed. In the related art, the delivery base is installed by depending on an external network, but the installation of the cluster is exposed on a public network in such a way, so that the risk of the cluster being attacked is increased.
Disclosure of Invention
The disclosure provides a software installation method, a device, equipment and a storage medium.
According to a first aspect of the present disclosure, there is provided a software installation method including:
under the condition that the target cluster is not connected with an external network, acquiring an integrated installation package through a control machine of the target cluster, wherein the control machine is one of a plurality of devices included in the target cluster, and the integrated installation package comprises a target component and first dependency information of the target component as well as to-be-installed software and second dependency information of the to-be-installed software;
and controlling other equipment in the plurality of equipment to install the target component based on the first dependency information and install the software to be installed based on the second dependency information through the control machine.
According to a second aspect of the present disclosure, there is provided a software installation apparatus including:
the acquisition module is used for acquiring an integrated installation package through a controller of the target cluster under the condition that the target cluster is not connected with an external network, wherein the controller is one of a plurality of devices included in the target cluster, and the integrated installation package comprises a target component and first dependency information of the target component as well as software to be installed and second dependency information of the software to be installed;
and the control module is used for controlling other equipment in the plurality of equipment to install the target component based on the first dependency information through the control machine and installing the software to be installed based on the second dependency information.
According to a third aspect of the present disclosure, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method provided by the first aspect described above.
According to a fifth aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method provided by the first aspect described above.
According to the embodiment of the disclosure, the installation efficiency and the safety of the target cluster can be improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic flow diagram of an installation method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of relationships between multiple devices of a target cluster, according to an embodiment of the present disclosure;
FIG. 3 is a first schematic diagram of the components of a mounting device according to an embodiment of the present disclosure;
FIG. 4 is a second schematic diagram of the composition of a mounting device according to an embodiment of the present disclosure;
fig. 5 is a block diagram of an electronic device used to implement the installation method of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The terms "first," "second," and "third," etc. in the description and claims of the present disclosure and the above-described figures are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprises" and "comprising," as well as any variations thereof, are intended to cover a non-exclusive inclusion, such as a list of steps or elements. A method, system, article, or apparatus is not necessarily limited to those steps or elements explicitly listed, but may include other steps or elements not explicitly listed or inherent to such process, system, article, or apparatus.
As described above in the background, a service provider generally installs software corresponding to each service on a user side, but the software corresponding to each service needs to run on a base. When private cloud products are delivered, a most basic cluster environment (namely a base) is needed, and the service provider's own middleware services (database, cache, file service and the like) are added, and are needed by other upper-layer software. The most basic cluster environment and middleware services are called delivery chassis. In the related art, the delivery base is installed by depending on an external network, but the installation of the cluster is exposed on a public network in such a way, so that the risk of the cluster being attacked is increased.
In order to at least partially solve one or more of the above problems and other potential problems, the present disclosure provides a software installation method, which can implement offline installation of a target cluster by using the technical solution of the embodiment of the present disclosure, thereby greatly reducing installation time, improving installation efficiency, reducing workload of operation and maintenance personnel, being independent of network conditions, stable and reliable, and having high security.
The embodiment of the present disclosure provides a software installation method, which may be applied to an electronic device, including but not limited to a fixed device and/or a mobile device, where the electronic device is a cluster management platform. As shown in fig. 1, the software installation method includes:
s101: under the condition that the target cluster is not connected with an external network, acquiring an integrated installation package through a control machine of the target cluster, wherein the control machine is one of a plurality of devices included in the target cluster, and the integrated installation package comprises a target component and first dependency information of the target component as well as to-be-installed software and second dependency information of the to-be-installed software;
s102: and controlling other equipment in the plurality of equipment to install the target component based on the first dependency information and install the software to be installed based on the second dependency information through the control machine.
Here, the target cluster is a cluster to be installed, and the target cluster may be a cluster for private cloud delivery, such as a cluster constructed based on kubernets (K8S for short), a cluster constructed based on an open-source distributed resource management framework (e.g., open-source distributed resource management frameworks) and an application test tool (e.g., marathon).
The K8S is a container-oriented container cluster management platform developed based on a cluster manager, and is used for uniformly managing underlying hosts, networks and storage resources based on a container technology and the like, providing functions of application deployment, maintenance, extension mechanisms and the like, and conveniently managing cross-machine operation containerized applications by using the K8S.
In the embodiment of the present disclosure, the multiple devices of the target cluster are devices (also referred to as machines) on the user side, and the multiple devices may be bare machines, physical machines, virtual machines, and the like.
In the embodiment of the present disclosure, the multiple devices of the target cluster do not need to be connected to the external network, but the multiple devices are connected to each other, and at least the device serving as the controller among the multiple devices is connected to other devices. The devices are located in the same internal local area network.
Here, the target component is a component corresponding to the target cluster. For example, when the target cluster is the K8S cluster, the target component is the K8S component.
The present disclosure does not limit the number of target components. The target component may be one component or a plurality of components.
In the embodiment of the present disclosure, the first dependency information is necessary information other than the component installation package required to install the target component. The first dependency information includes, but is not limited to, dependency information on operating systems, dependency information on requirements, dependency information on maintainability, dependency information on interfaces such as middleware services (databases, caches, file services, etc.). In addition, the source of the dependencies that occur between modules includes data references or function calls. The first dependency information may exist in the form of a code, an interface, or a file.
In the embodiment of the present disclosure, the second dependency information is necessary information other than the component installation package required to install the software. The second dependency information includes, but is not limited to, dependency information on operating systems, dependency information on requirements, dependency information on maintainability, dependency information on interfaces such as middleware services (databases, caches, file services, etc.). The second dependency information may exist in the form of a code, an interface, or a file.
In some embodiments, the N target components correspond to the M first dependency information; the values of N and M may be the same or different. That is, when N > M, different target components may correspond to the same first dependency information; when N is less than M, one target component can correspond to a plurality of first dependency information; when N is equal to M, one target component corresponds to one first dependency information.
It should be noted that, for each first dependency information, a dependency information may be included; or a combination of multiple types of dependency information. The number of the dependency types included in the first dependency information and the number of the files included in each dependency type are not compulsorily limited in the present disclosure.
It should be noted that the present disclosure does not limit the number of software to be installed. The software to be installed may be one or more.
In the embodiment of the present disclosure, the source of the software to be installed is not limited.
In some embodiments, the P pieces of software to be installed correspond to the Q pieces of second dependency information; the values of P and Q may be the same or different. That is, when P > Q, different software to be installed may correspond to the same second dependency information; when P is less than Q, one software to be installed can correspond to a plurality of second dependency information; when P is Q, one piece of software to be installed corresponds to one piece of second dependency information.
It should be noted that, for each second dependency information, a type of dependency information may be included; or a combination of multiple types of dependency information. The number of the dependency types included in the second dependency information and the number of files included in each type of dependency are not compulsorily limited by the present disclosure.
In the embodiment of the present disclosure, the integration manner of the integrated installation package is not limited. The integrated installation package can be stored in a storage device such as a U disk, a mobile hard disk, a memory card and the like.
In some embodiments, the controlling machine of the target cluster obtains the integrated installation package through the storage device. For example, the operation and maintenance personnel bring the integrated installation package to the user side through the storage device, and the storage device carries the integrated installation package.
Therefore, the integrated installation package is not required to be acquired by the external network, the target cluster is prevented from being exposed to the external network, and the acquisition speed of the integrated installation package can be improved.
The software installation method is suitable for the field with higher requirements on installation safety and/or installation speed. Such as cluster installation in the private cloud product delivery domain.
According to the technical scheme, under the condition that the external network is not connected, the controller acquires the integrated installation package, so that the target cluster can be installed without depending on the network condition of the external network, the target cluster cannot be exposed on the external network in the whole installation process, the risk of the target cluster being attacked is reduced, and the safety of the target cluster is improved; in addition, the integrated installation package comprises the target component and the first dependency information of the target component, and the software to be installed and the second dependency information of the software to be installed can provide basic data for installing the target component and the software to be installed, so that reliable installation of the target component and the software to be installed is ensured, and the installation efficiency of the target cluster is improved.
In some embodiments, the software installation method may further include: determining target configuration information; the target configuration information includes at least one of the following information for each of the plurality of devices: internet Protocol (IP) address information, network schemes, storage schemes, and software information to be installed; completing configuration of the plurality of devices based on the target configuration information.
Network solutions include, but are not limited to, the kappa network security solution (KICS), the Flink architecture, and the like. The present disclosure is not intended to be limiting as to the specific type of network scheme and is not intended to be exhaustive.
Storage schemes include, but are not limited to, storage architectures, storage locations, and the like. The present disclosure is not intended to be limiting as to the specific type of storage scheme and is not intended to be exhaustive.
Among the multiple devices, the software to be installed on different devices may be the same or different.
For example, the target cluster includes n devices, which are respectively denoted as device 1, device 2, and … device n, and the integrated installation package includes k pieces of software, which are respectively denoted as software 1, software 2, …, and software k; the device 1 needs to install four software, namely software 1, software 3, software 4 and software 5; the device 2 needs to install two pieces of software, namely software 5 and software 6; the device 3 needs to install three software, namely software 8, software 9 and software 12; device n needs to install software 1, software 2, …, software k-1, and k software.
Through the technical scheme, preparation can be provided for offline installation of the target cluster, and after the configuration of the multiple devices is completed based on the target configuration information, offline installation and deployment can be conveniently executed by one key, so that the overall installation efficiency of the target cluster is improved, and the workload of operation and maintenance personnel is reduced.
In some embodiments, the software installation method may further include:
and respectively installing agent tools on the plurality of devices, wherein the agent tools are used for communication among the plurality of devices.
Here, the agent (administrative agent) is an operation and maintenance tool. The multiple devices can be communicated with each other through the agent tool, and the agent tool can be used for calling each other to execute various commands, such as sending files, sending configuration information, executing installation of the installation package, executing uninstallation of the installation package and the like.
In some embodiments, the agent tool is a framework capable of remotely executing commands and is implemented based on a generic Remote method invocation tool such as (Google Remote Procedure Call, GRPC for short).
Through the technical scheme, an installation basis is provided for the control machine to control other equipment to install the target component and the software to be installed.
In some embodiments, controlling, by the control engine, other devices of the plurality of devices to install the target component based on the first dependency information includes:
sending the target component and the first dependency information to the agent tool of other equipment through the agent tool of the control machine;
and sending a first installation instruction to an agent tool of other equipment through an agent tool of the control machine, wherein the first installation instruction is used for instructing the other equipment to install the target component based on the first dependency information.
In some embodiments, sending the target component and the first dependency information to an agent of another device through an agent of the control machine includes:
sending the target component and the first dependency information to agent tools of other equipment in a parallel mode through the agent tools of the control machine;
and sending a first installation instruction to the agent tools of other devices in a parallel mode through the agent tool of the control machine, wherein the first installation instruction is used for instructing the other devices to install the target component based on the first dependency information.
Here, the parallel mode means that the agent of the control machine simultaneously transmits data to each of the other devices. For example, the agent of the controller may simultaneously transmit the target component to each of the other devices. For another example, the agent of the control machine simultaneously transmits the first dependency information to each of the other devices. For another example, the agent of the control machine simultaneously transmits the first installation instruction to each of the other devices.
Therefore, the agent of the control machine sends the target component, the first dependency information and the first installation instruction to the agent of other equipment in a parallel mode, transmission time can be saved, other equipment can receive the target component, the first dependency information and the first installation instruction conveniently in the same time period, and therefore the target cluster installation speed is improved.
In some embodiments, sending the target component and the first dependency information to an agent of the other device via an agent of the control machine includes:
sending the target component and the first dependency information to the agent tools of other equipment by the agent tool of the control machine in a streaming transmission mode;
and sending a first installation instruction to the agent tool of other equipment by adopting a streaming transmission mode through the agent tool of the control machine, wherein the first installation instruction is used for instructing the other equipment to install the target component based on the first dependency information.
Here, the streaming mode means that the agent of the control machine sequentially transmits data to each of the other devices. For example, an agent of the controlling machine may simultaneously transmit the target component to each of the other devices in turn. For another example, the agent of the control engine transmits the first dependency information to each of the other devices in turn. For another example, the agent of the control machine transmits the first installation instruction to each of the other devices in turn.
Therefore, the agent tool of the control machine sends the target component, the first dependency information and the first installation instruction to the agent tools of other devices in a streaming transmission mode, the transmission rate can be increased, and the target component can be installed conveniently when one device in the other devices receives the target component, the first dependency information and the first installation instruction, so that the installation rate of a single device is improved.
Through the technical scheme, under the condition that the external network is not connected, other equipment in the multiple equipment can be controlled to install the target component through the control machine.
In some embodiments, installing the software to be installed based on the second dependency information includes:
sending the software to be installed and second dependence information to the agent tools of other equipment through the agent tool of the control machine;
and sending a second installation instruction to the agent tool of the other equipment through the agent tool of the control machine, wherein the second installation instruction is used for instructing the other equipment to install the software to be installed based on the second dependency information.
In some embodiments, sending the to-be-installed software and the second dependency information to the agent of the other device through the agent of the control machine includes:
sending the software to be installed and second dependency information to agent tools of other equipment in a parallel mode through the agent tool of the control machine;
and sending a second installation instruction to the agent tools of other equipment in a parallel mode through the agent tool of the control machine, wherein the second installation instruction is used for instructing the other equipment to install the software to be installed based on the second dependency information.
Here, the parallel mode means that the agent of the control machine simultaneously transmits data to each of the other devices. For example, the agent of the control machine simultaneously transmits the software to be installed to each of the other devices. For another example, the agent of the control machine simultaneously transmits the second dependency information to each of the other devices. For another example, the agent of the control machine simultaneously transmits the second installation instruction to each of the other devices.
Therefore, the agent tool of the control machine sends the software to be installed, the second dependency information and the second installation instruction to the agent tools of other devices in a parallel mode, transmission time can be saved, the other devices can receive the software to be installed, the second dependency information and the second installation instruction conveniently in the same time period, and therefore the installation speed of the software installed on each device in the target cluster can be improved.
In some embodiments, sending the software to be installed and the second dependency information to the agent of the other device through the agent of the control machine includes:
sending the software to be installed and second dependency information to agent tools of other equipment by using a streaming transmission mode through the agent tool of the control machine;
and sending a second installation instruction to the agent tools of other equipment by using a streaming transmission mode through the agent tool of the control machine, wherein the second installation instruction is used for instructing the other equipment to install the software to be installed based on the second dependency information.
Here, the streaming mode means that the agent of the control machine sequentially transmits data to each of the other devices. For example, the agent of the controlling machine simultaneously transmits the software to be installed to each of the other devices in turn. For another example, the agent of the control machine transmits the second dependency information to each of the other devices in turn. For another example, the agent of the controller transmits the second installation instruction to each of the other devices in turn.
Therefore, the agent tool of the control machine sends the software to be installed, the second dependency information and the second installation instruction to the agent tools of other devices in a streaming transmission mode, the transmission rate can be increased, the target component can be installed conveniently when the other devices receive the software to be installed, the second dependency information and the second installation instruction, and therefore the installation rate of installing the software by the single device is improved.
Through the technical scheme, under the condition that the external network is not connected, other equipment in the multiple equipment can be controlled by the controller to install the software to be installed.
Fig. 2 shows a schematic diagram among n devices of the target cluster, device 1 in the target cluster is selected as a controller, device 1 sends the first dependency information of the target component and the target component, the second dependency information of the software to be installed and the software to be installed to device 2, device 3, …, and device n, and device 2, device 3, …, and device n install the target component and the software to be installed.
Taking an example that the target cluster is a K8S cluster and the target component is a K8S component, how to implement offline installation of the target cluster will be described. Selecting a device from the plurality of devices of the K8S cluster as a control machine; under the condition of not connecting an external network, the control machine acquires an integrated installation package, wherein the integrated installation package comprises a K8S component and software to be installed; further, the other devices in the controller control K8S cluster install K8S components and software to be installed; because the integrated installation package comprises the K8S assembly and the first dependency information thereof, and the software to be installed and the second dependency information thereof are acquired without depending on an external network, the delivery base of the K8S cluster (namely the K8S assembly and middleware service) can be installed quickly, the installation efficiency of the K8S cluster is improved, and the workload of operation and maintenance personnel can be reduced; in addition, under the condition of not connecting an external network, the controller acquires the integrated installation package, so that the K8S cluster can be installed without depending on the network condition of the external network, the K8S cluster can not be exposed on the external network in the whole installation process, the risk of attacking the K8S cluster is reduced, and the safety of the K8S cluster is improved.
An embodiment of the present disclosure discloses a software installation apparatus, as shown in fig. 3, the software installation apparatus may include:
an obtaining module 310, configured to obtain, by a controller of a target cluster, an integrated installation package when the target cluster is not connected to an external network, where the controller is one of multiple devices included in the target cluster, and the integrated installation package includes a target component and first dependency information of the target component, and software to be installed and second dependency information of the software to be installed;
a control module 320 for controlling, by the controller, the other device of the plurality of devices to install the target component based on the first dependency information and to install the software to be installed based on the second dependency information.
In some embodiments, as shown in fig. 4, the software installation apparatus may further include:
a determining module 330, configured to determine target configuration information; the target configuration information includes at least one of the following information for each of the plurality of devices: IP address information, network scheme, storage scheme and software information to be installed;
a configuration module 340, configured to complete configuration of the plurality of devices based on the target configuration information.
In some embodiments, as shown in fig. 4, the software installation apparatus may further include:
a setup module 350 for installing agents on the plurality of devices, respectively, the agents for providing communication between the plurality of devices.
In some embodiments, the control module 320 is specifically configured to:
sending the target component and the first dependency information to the agent tool of other equipment through the agent tool of the control machine;
and sending a first installation instruction to an agent tool of other equipment through an agent tool of the control machine, wherein the first installation instruction is used for instructing the other equipment to install the target component based on the first dependency information.
In some embodiments, the control module 320 is specifically configured to:
sending the software to be installed and second dependency information to the agent tools of other equipment through the agent tool of the control machine;
and sending a second installation instruction to the agent tool of the other equipment through the agent tool of the control machine, wherein the second installation instruction is used for instructing the other equipment to install the software to be installed based on the second dependency information.
It should be understood by those skilled in the art that the functions of each processing module in the software installation apparatus according to the embodiments of the present disclosure may be understood by referring to the description of the software installation method, and each processing module in the software installation apparatus according to the embodiments of the present disclosure may be implemented by an analog circuit that implements the functions described in the embodiments of the present disclosure, or may be implemented by running software that performs the functions described in the embodiments of the present disclosure on an electronic device.
The software installation device of the embodiment of the disclosure can improve the installation efficiency and the safety of the target cluster.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, and do not violate the good customs of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 5 illustrates a schematic block diagram of an example electronic device 500 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the device 500 includes a computing unit 501 that can perform various appropriate actions and processes in accordance with a computer program stored in a Read-Only Memory (ROM) 502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The calculation unit 501, the ROM 502, and the RAM 503 are connected to each other by a bus 504. An Input/Output (I/O) interface 505 is also connected to bus 504.
A number of components in the device 500 are connected to the I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, or the like; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508, such as a magnetic disk, optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The computing unit 501 may be a variety of general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of the computing Unit 501 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, and the like. The computing unit 501 executes the respective methods and processes described above, such as the software installation method. For example, in some embodiments, the software installation method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 500 via the ROM 502 and/or the communication unit 509. When the computer program is loaded into RAM 503 and executed by the computing unit 501, one or more steps of the software installation method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the software installation method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, Integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application-Specific Standard Products (ASSPs), System-on-Chip (SOCs), load Programmable Logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard Disk, a random access Memory, a Read-Only Memory, an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a Compact disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a Display device (e.g., a Cathode Ray Tube (CRT) or Liquid Crystal Display (LCD) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user 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 can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Network (LAN), Wide Area Network (WAN), and the internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client and server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel or sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (13)

1. A software installation method, comprising:
under the condition that a target cluster is not connected with an external network, acquiring an integrated installation package through a control machine of the target cluster, wherein the control machine is one of a plurality of devices included in the target cluster, and the integrated installation package comprises a target component and first dependency information of the target component as well as to-be-installed software and second dependency information of the to-be-installed software;
controlling, by the controller, other devices of the plurality of devices to install the target component based on the first dependency information, and to install the software to be installed based on the second dependency information.
2. The method of claim 1, further comprising:
determining target configuration information; the target configuration information includes at least one of the following information for each of the plurality of devices: internet protocol IP address information, network scheme, storage scheme and software information to be installed;
completing configuration of the plurality of devices based on the target configuration information.
3. The method of claim 1, further comprising:
and respectively installing agent tools on the plurality of devices, wherein the agent tools are used for communication among the plurality of devices.
4. The method of claim 3, wherein said controlling, by the controller, other devices of the plurality of devices to install the target component based on the first dependency information comprises:
and sending the target component, the first dependency information and a first installation instruction to an agent of the other device through the agent of the control machine, wherein the first installation instruction is used for instructing the other device to install the target component based on the first dependency information.
5. The method of claim 3, wherein said controlling, by the controller, other devices of the plurality of devices to install the software to be installed based on the second dependency information comprises:
and sending the software to be installed, the second dependency information and a second installation instruction to the agent tools of the other devices through the agent tool of the control machine, wherein the second installation instruction is used for instructing the other devices to install the software to be installed based on the second dependency information.
6. A software installation apparatus comprising:
the system comprises an acquisition module, a storage module and a control module, wherein the acquisition module is used for acquiring an integrated installation package through a control machine of a target cluster under the condition that the target cluster is not connected with an external network, the control machine is one of a plurality of devices included in the target cluster, and the integrated installation package comprises a target component, first dependency information of the target component and second dependency information of software to be installed;
a control module for controlling, by the controller, other devices of the plurality of devices to install the target component based on the first dependency information and to install the software to be installed based on the second dependency information.
7. The apparatus of claim 6, further comprising:
the determining module is used for determining target configuration information; the target configuration information includes at least one of the following information for each of the plurality of devices: internet protocol IP address information, network scheme, storage scheme and software information to be installed;
a configuration module for completing configuration of the plurality of devices based on the target configuration information.
8. The apparatus of claim 6, further comprising:
and the setting module is used for installing agent tools on the plurality of devices respectively, and the agent tools are used for communication among the plurality of devices.
9. The apparatus of claim 8, wherein the control module is to:
and sending the target component, the first dependency information and a first installation instruction to an agent of the other device through the agent of the control machine, wherein the first installation instruction is used for instructing the other device to install the target component based on the first dependency information.
10. The apparatus of claim 8, wherein the control module is to:
and sending the software to be installed, the second dependency information and a second installation instruction to the agent tools of the other devices through the agent tool of the control machine, wherein the second installation instruction is used for instructing the other devices to install the software to be installed based on the second dependency information.
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
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-5.
12. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-5.
13. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-5.
CN202210169487.0A 2022-02-18 2022-02-18 Software installation method, device, equipment and storage medium Pending CN114579146A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210169487.0A CN114579146A (en) 2022-02-18 2022-02-18 Software installation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210169487.0A CN114579146A (en) 2022-02-18 2022-02-18 Software installation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114579146A true CN114579146A (en) 2022-06-03

Family

ID=81775410

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210169487.0A Pending CN114579146A (en) 2022-02-18 2022-02-18 Software installation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114579146A (en)

Similar Documents

Publication Publication Date Title
US9967136B2 (en) System and method for policy-based smart placement for network function virtualization
CN111694646B (en) Resource scheduling method, device, electronic equipment and computer readable storage medium
CN113934464A (en) Method and device for starting android application in Linux system and electronic equipment
EP3869336A1 (en) Method and apparatus for processing development machine operation task, device and storage medium
CN109245908B (en) Method and device for switching master cluster and slave cluster
CN106254471A (en) Resource United Dispatching method and system under a kind of isomery cloud environment
CN110995504B (en) Micro-service node exception handling method, device and system
CN115292026B (en) Management method, device and equipment of container cluster and computer readable storage medium
JP2023027042A (en) Business data processing method, device, electronic apparatus, storage medium, and computer program
CN111885114B (en) Method, device and storage medium for upgrading application program interface module in gateway
CN111290768A (en) Updating method, device, equipment and medium for containerization application system
CN105404530B (en) It is a kind of to realize easy deployment and the system and method using private clound
CN113377665A (en) Container technology-based testing method and device, electronic equipment and storage medium
CN112506584A (en) Resource file loading method, device, equipment, storage medium and product
CN114185734A (en) Cluster monitoring method and device and electronic equipment
CN112817992B (en) Method, apparatus, electronic device and readable storage medium for executing change task
CN114443076A (en) Mirror image construction method, device, equipment and storage medium
CN108965403A (en) O&M monitors establishment of connection method and terminal device
JP2014127210A (en) Operation scheduling system for virtual machines and its method
CN113726902B (en) Micro-service calling method, system, server, equipment and storage medium
CN114579146A (en) Software installation method, device, equipment and storage medium
CN111416860B (en) Transaction processing method and device based on block chain, electronic equipment and medium
CN114416276A (en) Scheduling method and device of equipment management service, electronic equipment and storage medium
CN112965836A (en) Service control method and device, electronic equipment and readable storage medium
CN112559001A (en) Method and device for updating application

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