CN114281478A - Container operation method and device, electronic equipment and computer storage medium - Google Patents

Container operation method and device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN114281478A
CN114281478A CN202111598816.5A CN202111598816A CN114281478A CN 114281478 A CN114281478 A CN 114281478A CN 202111598816 A CN202111598816 A CN 202111598816A CN 114281478 A CN114281478 A CN 114281478A
Authority
CN
China
Prior art keywords
container
module
target information
operation module
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.)
Granted
Application number
CN202111598816.5A
Other languages
Chinese (zh)
Other versions
CN114281478B (en
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 CN202111598816.5A priority Critical patent/CN114281478B/en
Publication of CN114281478A publication Critical patent/CN114281478A/en
Application granted granted Critical
Publication of CN114281478B publication Critical patent/CN114281478B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The disclosure provides a container operation method and device, electronic equipment and a computer storage medium, and relates to the technical field of computers, in particular to the technical field of artificial intelligence such as cloud computing, big data and deep learning. The specific implementation scheme is as follows: acquiring target information in a first container operation module through a first container operated in the first container operation module; and setting the target information as a state which can be acquired by the second container operation module. The embodiment of the disclosure can improve the target information acquisition efficiency and reduce the information acquisition pressure.

Description

Container operation method and device, electronic equipment and computer storage medium
Technical Field
The present disclosure relates to the field of computer technology, and in particular, to the field of artificial intelligence techniques such as cloud computing, big data, deep learning.
Background
With the development of computer technology, the implementation modes of computer technology are more and more diversified. For example, a computer application may be run using a container. The container is a mirrored runtime instance. Just as a VM is launched from a Virtual Machine (VM) template, a user may also launch one or more containers from a single image. Generally, a plurality of container operation modules are required to be started for one task, and the container operation modules belong to the same task and generally need to share information, so that the simplicity and efficiency of information sharing are improved, and efficient utilization of containers is facilitated.
Disclosure of Invention
The disclosure provides a container operation method, a container operation device, electronic equipment and a computer storage medium.
According to an aspect of the present disclosure, there is provided a container operation method for acquiring target information in a first container operation module through a first container operated in the first container operation module;
the target information is set to a state that the second container operation module can acquire.
According to another aspect of the present disclosure, there is provided a container running device including:
the target information acquisition module is used for acquiring target information in the first container operation module through the first container operated in the first container operation module;
and the state setting module is used for setting the target information into a state which can be acquired by the second container operation module.
According to another aspect of the present disclosure, there is provided an electronic device including:
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 a method according to any one of the embodiments of the present disclosure.
According to another 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 a method in any of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a computer program product comprising computer programs/instructions which, when executed by a processor, implement the method in any of the embodiments of the present disclosure.
According to the technology of the present disclosure, the first container is adopted to exclusively acquire the target information, and after the target information is acquired, the target information is set to be in a state that can be acquired by the second container operation module, and the second container operation module acquires the target information of the first container operation module without passing through the server, so that the access pressure of the server is reduced.
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 view of a vessel operation method according to an embodiment of the present disclosure;
FIG. 2 is a schematic view of a vessel operation method according to another embodiment of the present disclosure;
FIG. 3 is a schematic view of a vessel operation method according to yet another embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a container handling system framework according to an example of the present disclosure;
FIG. 5 is a schematic view of a vessel operation method according to an example of the present disclosure;
FIG. 6 is a schematic view of a container handling apparatus according to an embodiment of the present disclosure;
FIG. 7 is a schematic view of a container handling apparatus according to another embodiment of the present disclosure;
FIG. 8 is a schematic view of a container handling apparatus according to yet another embodiment of the present disclosure;
FIG. 9 is a schematic view of a container handling apparatus according to yet another embodiment of the present disclosure;
FIG. 10 is a schematic view of a container handling apparatus according to yet another embodiment of the present disclosure;
FIG. 11 is a schematic view of a container handling apparatus according to yet another embodiment of the present disclosure;
FIG. 12 is a schematic view of a container handling apparatus according to yet another embodiment of the present disclosure;
fig. 13 is a block diagram of an electronic device for implementing a container operation 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.
According to an embodiment of the present disclosure, a container operation method is provided, and fig. 1 is a flowchart of the container operation method according to an embodiment of the present disclosure, which may be applied to an electronic device that may create and operate a container, for example, where the apparatus may be deployed in a terminal or a server or other processing device to execute, the steps of operating the container, creating a container operation module (POD), and the like may be executed. Among them, the terminal may be a User Equipment (UE), a mobile device, a cellular phone, a cordless phone, a Personal Digital Assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, and so on. In some possible implementations, the method may also be implemented by a processor calling computer readable instructions stored in a memory. As shown in fig. 1, the vessel operation method includes:
step S11: acquiring target information in a first container operation module through a first container operated in the first container operation module;
step S12: the target information is set to a state that the second container operation module can acquire.
In an embodiment of the present disclosure, the first container operation module may be a container operation module, i.e. a POD, for starting, operating or maintaining at least one container.
The POD in the embodiments of the present disclosure may be a POD of the kubernets platform. Kubernets is the mainstream cluster management and task distribution management platform. The bottom layer of the machine learning platform which is mainstream at present is also based on or supports Kubernets. Distributed task management based on Kubernetes development and application can improve overall efficiency and provide a stable production and operation environment. The distributed task is completed by a plurality of working nodes together, and in Kubernetes, POD is taken as a minimum scheduling and working unit. A POD may be either a basic unit of the kubernets system, a smallest deployable computing unit created and managed by a user in kubernets, or a resource object running a containerized application on the kubernets system. Other resource objects in the kubernets cluster support the POD resource object to achieve the purpose of kubernets management application service. An API (Application Programming Interface) Server provides an Interface for the cluster to interact with the outside, and submits POD spec (POD details) to the API Server through a kubecect command or other API client as the start of POD creation.
A POD (as in a whale POD or pea POD) may also be a holding or operating module for a group (one or more) of containers; these containers share storage, networks, and declarations of how to run the containers. The content in POD is always collocated (collocated) and scheduled together, running in a shared context. The POD models an application-specific "logical host" that contains one or more application containers that are relatively tightly coupled together. In a non-cloud environment, applications running on the same physical or virtual machine are similar to cloud applications running on the same logical host.
In the basic design of Kubernetes, different PODs of the same task are different copies of the same function, and there is generally no mutual perception between the different PODs, and no communication is established between the PODs. Different PODs also adopt differentiated parameter configuration, such as Rank acquisition, node status, role identification, and other requirements. In a machine learning task, nodes are communicated with each other, and the role difference and the node execution sequence of communication nodes have new requirements.
The target information in the first container operation module may be information related to a certain container in the first container operation module, or information related to the operation of the container by the first container operation module, or information related to the first container operation module itself.
The first container run in the first container run module may be a container created in the first container run module and dedicated to acquiring the target information, or may be a collaborative container in the container run module.
The setting of the target information to the state that can be acquired by the second container operation module may be a setting of the target information to the state that can be acquired by the second container operation module by means of active pushing or passive permission of acquisition.
The second container operation module may be another container operation module different from the first container operation module. The first container operation module and the second container operation module may be opposite, and each container operation module provides information to the other container operation modules, and provides the information to the first container operation module, and obtains the information provided by the other container operation modules, and provides the information to the second container operation module.
In one possible implementation, the setting of the target information to the state that can be acquired by the second container operation module may be setting the target information to the state that can be acquired (directly or indirectly) by the second container operation module from the first container.
In a possible implementation manner, the first container operation module and the second container operation module may be corresponding container operation modules of the same application operation task, that is, information sharing needs to be performed between the first container operation module and the second container operation module. For example, for a video playing application, when the application is started, a plurality of container operation modules corresponding to the video playing application are simultaneously started, and information sharing is required among the container operation modules, and such information may be referred to as global information. For the same operation task, information sharing between related container operation modules may have certain difficulty.
In this embodiment, the target information in the first container operation module can be obtained through the first container in the first container operation module, so that other second container operation modules can obtain the target information in the first container operation module, and thus, a module for specially obtaining the information of the container operation modules does not need to be arranged, a plurality of container operation modules do not need to access the server, and when a plurality of second container operation modules exist, information sharing of each container operation module can be achieved in a simple and low-cost manner.
In one embodiment, the first container is a container other than a second container for running the business process in the first container running module.
Generally, a container in the container operation module is used for operating a business process, and such a container may be referred to as a normal container. The business process may specifically be an application process, such as a process of a video playing application, a process of an audio playing application, a process of an image acquisition application, a process of a digital computing application, a process of a network information processing application, and the like. In this embodiment, the first container is a container other than the second container for running the business process in the first container running module, that is, the first container is set not for running the business process, but is used for acquiring the target information.
The first container is a container other than the second container for running the business process in the first container running module, that is, two kinds of containers, a container specially used for acquiring the target information and a container used for running the business process, can be run in the first container running module. The first container and the second container in the first container operation module can be operated independently in sequence or together.
In this embodiment, the first container is a container other than the second container used for running the business process in the first container running module, that is, the function of the first container is separated from the function of the second container, so that the normal running of the business process is prevented from being influenced by the obtaining operation of the target information.
Aiming at the mode of introducing external dependent distributed storage, all working nodes are uniformly connected with external distributed storage, and information needing cooperation is acquired through code logic and the convention of a program. In the method, a middleware needs to be added, the middleware information is not fixed, and the middleware needs to be searched in the process of acquiring and sharing the target information. The distributed storage may be, for example: etcd, zookeeper, Redis (Remote Dictionary Server). Among other things, etcd may be a distributed system of distributed, reliable key-value storage. The setting mode needs to additionally maintain high-availability distributed storage, needs to add additional dependence, increases system complexity, needs to additionally add a client, logic codes and user code coupling interacting with external distributed storage in node processing codes, and depends on a platform and service codes in function. According to the embodiment of the disclosure, no external dependency needs to be introduced, no client code dependent on connection needs to be developed, no additional processing needs to be executed in the task code, and the first container can be general logic and is provided by the platform as a part of the Controller.
Aiming at the target information acquisition mode of active query, when information needs to be acquired, the information is queried through querying an API Server of Kubernetes, and after the information is acquired, the information is processed in code logic and relevant processes are processed. In this way, the logic for inquiring the specific information needs to be realized, and the logic runs at each working node, so that the realization is complex; configuring ApiServer for inquiring Kubernetes to need corresponding authority, and configuring the authority for a working node to have safety risk; increasing the load of the apicerver of Kubernetes. The cooperative module is added in the Controller to take charge of the overall cooperation of tasks, wherein the Controller only interacts with the API Server, the logic function can correspond to the logic in the first container, but the logic function is relatively simple, the introduction of extra dependence is avoided, the acquisition of target information does not need to require the first container to have authority, the resource control authority configured by the Controller is added with exec (execution command) sub-resources, but the Controller is controlled by a cluster manager and has no authority security risk. Meanwhile, in the embodiment of the disclosure, the target information of the container operation module is acquired through the first container, and the cluster controller can directly operate the container operation module, so that the second container operation module acquires the target information of the first container operation module through the first container of the first container operation module, an API server does not need to be accessed, and the access pressure is reduced.
In one embodiment, in the case where the container type of the first container is different from the container type of the second container, as shown in fig. 2, the container operation method further includes:
step S21: starting a second container under the condition that the acquisition operation of the target information is determined to be completed;
step S22: in the second container, the business process is run.
In this embodiment, after the creation of at least one container operation module for one operation task is completed, the target information of the container operation module in which the first container is located is obtained through the first container in all the container operation modules, and the target information of each container operation module is globally shared. And starting the second container after the target information of all container operation modules needing to share the target information is ready. Thus, in this embodiment, the second container may be activated later on in the first container.
In this embodiment, the first container may be any one of a service container, an init (initial) container, or a temporary container. The second container may also be any of a service container, an init container, or a temporary container.
In this embodiment, when it is determined that the obtaining operation of the target information is completed, and all the target information is in a state where the target information is shared by the container operation modules, the second container for operating the business process is started, so that the process of obtaining the target information by the first container is prevented from being affected by the operation of the second container, and necessary target information shared by other container operation modules can be provided for the operation of the second container.
In one embodiment, in the case where the container type of the first container is the same as the container type of the second container, the container operation method further includes:
and starting the first container in the first container operation module under the condition that the target information needs to be acquired.
In this embodiment, the first container is started when the target information needs to be acquired, or the first container is started when the target information needs to be acquired during the operation of the second container. I.e. the first container may be activated before or after the second container.
In this embodiment, the first container is started when the target information needs to be acquired, or the first container may be started when the target information needs to be acquired before all the second containers in the container operation module are started.
In this embodiment, the first container is started in the first container operation module when the target information needs to be acquired, so that the first container is prevented from being operated without being used and consuming resources of the first container operation module.
In one embodiment, as shown in fig. 3, the vessel operation method further comprises:
step S31: acquiring running task issuing information;
step S32: and creating the running task and a plurality of container running modules corresponding to the running task according to the running task issuing information, wherein the plurality of container running modules comprise a first container running module and a second container running module.
The running task may specifically be a deep learning related task, such as paddle job. And when the application program is started and the task needs to be run, the task is issued. According to the issued task, a plurality of container operation modules corresponding to the task are created, each container operation module of the plurality of container operation modules can share own target information to other container operation modules, for the plurality of container operation modules of the same task, the container operation module which is obtained by the other container operation modules and has the target information can be called as a first container operation module in the embodiment of the disclosure, and the container operation module which can receive the shared target information can be called as a second container operation module in the embodiment of the disclosure.
In the embodiment of the disclosure, each container operation module can operate the container corresponding to the task, and the process corresponding to the task is operated in the container. The task can be created through the controller, and a container operation module corresponding to the task can also be created through the controller.
The Controller (Controller) is a component of kubernets managing a certain resource type, and it can interact with API Server, the kubernets cluster component mainly includes main node component API Server, Controller Manager, Scheduler, and child node components kubel port, Container Runtime, such as Docker Container, kube-proxy, etc., and generally there is one active node for each resource. The controller itself needs to configure operation rights for the relevant resources, including addition, deletion, modification, query, etc., and is responsible for managing the life cycle of the corresponding resources.
In this embodiment, when the running task issuing information is acquired, the container running module is started, and the container is started and run in the container running module, so that the target information can be acquired through the container in the container running module.
In one embodiment, setting the target information to a state that the second container operation module can acquire includes:
the target information is shared with the first container of the second container execution module so that the second container execution module can obtain the target information from the first container of the second container execution module.
In this embodiment, the target information is shared with the container of the second container operation module, and the second container operation module can obtain information required for its operation from other container operation modules.
In one embodiment, setting the target information to a state that the second container operation module can acquire includes:
and sharing the target information to a second container of the second container operation module by setting the configuration information of the second container operation module, so that the second container operation module can acquire the target information from the configuration information of the container operation module.
In this embodiment, the configuration information may be set for the second container operation module POD environment variable or directory. The setting of the configuration information of the second container operation module may be a manner in which information such as an acquisition manner and an acquisition address of the target information is set in the configuration information through a configuration map, so that the second container operation module can obtain the target information of the first container operation module from the configuration information, or can determine the target information or obtain the target information according to the configuration information.
In this embodiment, the second container operation module can obtain the target information of the first container operation module, so that information sharing can be realized among different container operation modules.
Kubel in the disclosed example may be a component deployed on the machine that may be used to pull the Container. The kubelet structure provided by the disclosed example is shown in fig. 4, and includes an API server 41, a controller 42, and a plurality of container operation modules POD43 in one kubelet cluster. The controller 42 may create a plurality of PODs 43 through the API server 41 and be capable of receiving information transmitted by a plurality of PODs 43.
In one example, as shown in fig. 5, a vessel operation method may include:
step S51: the API Server accepts the distributed task declaration.
Step S52: the Controller monitors the tasks and creates the required POD declaration through the API Server.
Step S53: the dispatcher dispatches the POD, issues the instruction to the machine and distributes tasks.
Step S54: the Kubelet creates PODs as needed, first initiating an initial Container. initContainer in this example may be equivalent to the collaboration container in other embodiments.
In this example, the created POD provides the target information to the other POD, and is the first container operation module of the foregoing embodiment, and the created POD acquires the target information provided by the other POD, and is the second container operation module of the foregoing embodiment.
Step S55: initContainer starts a predefined procedure, waiting for global information. In this example, all the same tasks correspond to the target information of the container operation module, and may constitute global information.
Step S56: when the Controller monitors that all PODs enter a waiting state (namely, global information can be acquired), the Controller collects the global information such as IP (Internet Protocol ) addresses and the like, remotely operates an initcontent through the ApiServer, and sends the information to the initcontent to enable the initcontent to execute operation.
Step S57: the Controller passes the global information to the configuration of the POD. The POD is made available as an environment variable or directory configured as POD by configMap (configuration map).
Step S58: the initContainer obtains the global information through the change of exec (execution command) resource operation, and can write the global information into the corresponding directory (if 7 is not executed, the global information is not executed here), and then the method finishes waiting (completes cooperation) and exits normally.
Step S59: the working Container is started to obtain the global information. The corresponding task may be performed by acquiring the global information configured in step S57 or step S58.
Further, depending on the method, the adjustment and assurance of the activation sequence of the different work nodes can be achieved by causing the steps of S58 to be performed in a different order by the difference of the control information of the step S56.
In the disclosed example, as shown in fig. 6, a user may issue an operation task through the API server 61, and the controller 62 may create a plurality of container operation modules 64 in the kbuelet cluster Node (Node)63, and in each container operation module 64, start and maintain an initial container 65 and a normal container 66. The generic container 66 in this example may be other than the original container, such as a service container for running the service, a temporary container, etc.
The disclosed embodiment also provides a container operation apparatus, as shown in fig. 7, including:
a target information obtaining module 71, configured to obtain target information in the first container operation module through the first container operated in the first container operation module;
a status setting module 72 for setting the target information to a status that the second container operation module can acquire.
In one embodiment, the first container is a container other than a second container for running the business process in the first container running module.
In one embodiment, in the case where the container type of the first container is different from that of the second container, as shown in fig. 8, the container operation apparatus further includes:
a second container starting module 81, configured to start a second container when it is determined that the acquisition operation of the target information is completed;
and a business process running module 82, configured to run the business process in the second container.
In one embodiment, in the case where the container type of the first container is the same as that of the second container, as shown in fig. 9, the container running device further includes:
the first container starting module 91 is configured to start the first container in the first container operation module when the target information needs to be acquired.
In one embodiment, as shown in fig. 10, the container operation device further includes:
the release information acquisition module 101 is used for acquiring release information of the running task;
the creating module 102 is configured to create an operation task and a plurality of container operation modules corresponding to the operation task according to the operation task distribution information, where the plurality of container operation modules include a first container operation module and a second container operation module.
In one embodiment, as shown in fig. 11, the state setting module includes:
a first setting unit 111, configured to share the target information to the first container of the second container operation module, so that the second container operation module can obtain the target information from the first container of the second container operation module.
In one embodiment, as shown in fig. 12, the status setting module includes:
the second setting unit 121 is configured to share the target information with a second container of the second container operation module by setting configuration information of the second container operation module, so that the second container operation module can obtain the target information from the configuration information of the container operation module.
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. 13 shows a schematic block diagram of an example electronic device 130 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. 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. 13, the apparatus 130 includes a computing unit 131 that can perform various appropriate actions and processes in accordance with a computer program stored in a Read Only Memory (ROM)132 or a computer program loaded from a storage unit 138 into a Random Access Memory (RAM) 133. In the RAM 133, various programs and data necessary for the operation of the device 130 can also be stored. The calculation unit 131, the ROM 132, and the RAM 133 are connected to each other via a bus 134. An input/output (I/O) interface 135 is also connected to bus 134.
Various components in the device 130 are connected to the I/O interface 135, including: an input unit 136 such as a keyboard, a mouse, or the like; an output unit 137 such as various types of displays, speakers, and the like; a storage unit 138 such as a magnetic disk, optical disk, or the like; and a communication unit 139 such as a network card, modem, wireless communication transceiver, etc. The communication unit 139 allows the device 130 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The computing unit 131 may be a variety of general purpose and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 131 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 131 performs the various methods and processes described above, such as the container operation method. For example, in some embodiments, the container operation method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 138. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 130 via ROM 132 and/or communication unit 139. When loaded into RAM 133 and executed by computing unit 131, may perform one or more steps of the container execution method described above. Alternatively, in other embodiments, the computing unit 131 may be configured to perform the container operation method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a 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 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 Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (17)

1. A method of operating a vessel comprising:
acquiring target information in a first container operation module through a first container operated in the first container operation module;
and setting the target information as a state which can be acquired by the second container operation module.
2. The method of claim 1, wherein the first container is another container than a second container used to run a business process in the first container execution module.
3. The method of claim 2, wherein in the event that the container type of the first container is different from the container type of the second container, the method further comprises:
starting the second container under the condition that the acquisition operation of the target information is determined to be completed;
and running the business process in the second container.
4. The method according to claim 2 or 3, wherein in case the container type of the first container is the same as the container type of the second container, the method further comprises:
and starting the first container in the first container operation module under the condition that the target information needs to be acquired.
5. The method according to any one of claims 1-4, wherein the method further comprises:
acquiring running task issuing information;
and creating an operation task and a plurality of container operation modules corresponding to the operation task according to the operation task issuing information, wherein the plurality of container operation modules comprise the first container operation module and the second container operation module.
6. The method of any of claims 1-5, wherein the setting the target information to a state that is accessible to the second container operation module comprises:
sharing the target information to the first container of the second container execution module, so that the second container execution module can obtain the target information from the first container of the second container execution module.
7. The method of any of claims 1-5, wherein the setting the target information to a state that is accessible to the second container operation module comprises:
and sharing the target information to a second container of the second container operation module by setting the configuration information of the second container operation module, so that the second container operation module can acquire the target information from the configuration information of the container operation module.
8. A container handling apparatus comprising:
the target information acquisition module is used for acquiring target information in the first container operation module through a first container operated in the first container operation module;
and the state setting module is used for setting the target information into a state which can be acquired by the second container operation module.
9. The apparatus of claim 8, wherein the first container is another container than a second container used to run a business process in the first container execution module.
10. The apparatus of claim 9, wherein in the case that the container type of the first container is different from the container type of the second container, the apparatus further comprises:
the second container starting module is used for starting the second container under the condition that the acquisition operation of the target information is determined to be completed;
and the business process running module is used for running the business process in the second container.
11. The apparatus according to claim 9 or 10, wherein in case the container type of the first container is the same as the container type of the second container, the apparatus further comprises:
and the first container starting module is used for starting the first container in the first container operation module under the condition that the target information needs to be acquired.
12. The apparatus of any one of claims 8-11, wherein the apparatus further comprises:
the release information acquisition module is used for acquiring the release information of the running task;
and the creating module is used for creating an operation task and a plurality of container operation modules corresponding to the operation task according to the operation task issuing information, wherein the plurality of container operation modules comprise the first container operation module and the second container operation module.
13. The apparatus of any of claims 8-12, wherein the status setting module comprises:
a first setting unit, configured to share the target information with the first container of the second container operation module, so that the second container operation module can obtain the target information from the first container of the second container operation module.
14. The apparatus of any of claims 8-12, wherein the status setting module comprises:
the second setting unit is configured to share the target information with a second container of the second container operation module by setting configuration information of the second container operation module, so that the second container operation module can obtain the target information from the configuration information of the container operation module.
15. 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-8.
16. 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-8.
17. A computer program product comprising computer programs/instructions, characterized in that the computer programs/instructions, when executed by a processor, implement the steps of the method of any one of claims 1 to 8.
CN202111598816.5A 2021-12-24 2021-12-24 Container operation method and device, electronic equipment and computer storage medium Active CN114281478B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111598816.5A CN114281478B (en) 2021-12-24 2021-12-24 Container operation method and device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111598816.5A CN114281478B (en) 2021-12-24 2021-12-24 Container operation method and device, electronic equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN114281478A true CN114281478A (en) 2022-04-05
CN114281478B CN114281478B (en) 2023-04-18

Family

ID=80875753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111598816.5A Active CN114281478B (en) 2021-12-24 2021-12-24 Container operation method and device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN114281478B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109697153A (en) * 2018-12-28 2019-04-30 浙江省公众信息产业有限公司 Monitoring method, monitoring system and computer readable storage medium
CN110311948A (en) * 2019-05-17 2019-10-08 北京瀚海星云科技有限公司 Communication means between container/container group and the container cloud network system based on this
CN111124604A (en) * 2019-12-05 2020-05-08 北京金山云网络技术有限公司 Method, device, equipment and storage medium for allocating Pod (POD) IP addresses
CN112187581A (en) * 2020-09-29 2021-01-05 北京百度网讯科技有限公司 Service information processing method, device, equipment and computer storage medium
US20210208951A1 (en) * 2020-08-04 2021-07-08 Beijing Baidu Netcom Science And Technology Co., Ltd. Method and apparatus for sharing gpu, electronic device and readable storage medium
CN113254156A (en) * 2021-05-31 2021-08-13 深信服科技股份有限公司 Container group deployment method and device, electronic equipment and storage medium
CN113641457A (en) * 2021-08-20 2021-11-12 北京百度网讯科技有限公司 Container creation method, device, apparatus, medium, and program product

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109697153A (en) * 2018-12-28 2019-04-30 浙江省公众信息产业有限公司 Monitoring method, monitoring system and computer readable storage medium
CN110311948A (en) * 2019-05-17 2019-10-08 北京瀚海星云科技有限公司 Communication means between container/container group and the container cloud network system based on this
CN111124604A (en) * 2019-12-05 2020-05-08 北京金山云网络技术有限公司 Method, device, equipment and storage medium for allocating Pod (POD) IP addresses
US20210208951A1 (en) * 2020-08-04 2021-07-08 Beijing Baidu Netcom Science And Technology Co., Ltd. Method and apparatus for sharing gpu, electronic device and readable storage medium
CN112187581A (en) * 2020-09-29 2021-01-05 北京百度网讯科技有限公司 Service information processing method, device, equipment and computer storage medium
EP3819764A2 (en) * 2020-09-29 2021-05-12 Beijing Baidu Netcom Science And Technology Co. Ltd. Service information processing method, apparatus, device and computer storage medium
CN113254156A (en) * 2021-05-31 2021-08-13 深信服科技股份有限公司 Container group deployment method and device, electronic equipment and storage medium
CN113641457A (en) * 2021-08-20 2021-11-12 北京百度网讯科技有限公司 Container creation method, device, apparatus, medium, and program product

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杜威科: "基于Kubemetes的大数据流式计算Spark平台设计与实现", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》 *

Also Published As

Publication number Publication date
CN114281478B (en) 2023-04-18

Similar Documents

Publication Publication Date Title
US20210208951A1 (en) Method and apparatus for sharing gpu, electronic device and readable storage medium
CN112104723B (en) Multi-cluster data processing system and method
WO2023109138A1 (en) Method and apparatus for starting android application in linux system, and electronic device
CN111930521A (en) Method and device for deploying application, electronic equipment and readable storage medium
CN113849312B (en) Data processing task allocation method and device, electronic equipment and storage medium
CN111400000B (en) Network request processing method, device, equipment and storage medium
EP3869336A1 (en) Method and apparatus for processing development machine operation task, device and storage medium
WO2024077885A1 (en) Management method, apparatus and device for container cluster, and non-volatile readable storage medium
WO2023082716A1 (en) Method and apparatus for operating android application in linux system, and device
US20220374742A1 (en) Method, device and storage medium for running inference service platform
CN113656423A (en) Method and device for updating data, electronic equipment and storage medium
CN111767126A (en) System and method for distributed batch processing
CN114281478B (en) Container operation method and device, electronic equipment and computer storage medium
CN111782341A (en) Method and apparatus for managing clusters
CN110019059B (en) Timing synchronization method and device
CN113110920B (en) Operation method, device, equipment and storage medium of block chain system
CN114416276A (en) Scheduling method and device of equipment management service, electronic equipment and storage medium
CN112905270A (en) Workflow implementation method, device, platform, electronic equipment and storage medium
CN113254168B (en) Operation method, device, equipment and storage medium of block chain system
CN113220576B (en) Management method, device, equipment and storage medium of test environment
CN117519989B (en) Distributed system hosting method and device, electronic equipment and storage medium
CN114064148B (en) Data processing method, device, electronic equipment and storage medium
CN117742891A (en) Virtual machine creation method, device and equipment with vDPA equipment and storage medium
CN113805858B (en) Method and device for continuously deploying software developed by scripting language
CN116932147A (en) Streaming job processing method and device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant