Nothing Special   »   [go: up one dir, main page]

CN112596741B - Video monitoring service deployment method and device - Google Patents

Video monitoring service deployment method and device Download PDF

Info

Publication number
CN112596741B
CN112596741B CN202011278703.2A CN202011278703A CN112596741B CN 112596741 B CN112596741 B CN 112596741B CN 202011278703 A CN202011278703 A CN 202011278703A CN 112596741 B CN112596741 B CN 112596741B
Authority
CN
China
Prior art keywords
video monitoring
docker
storage server
storage
monitoring docker
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.)
Active
Application number
CN202011278703.2A
Other languages
Chinese (zh)
Other versions
CN112596741A (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.)
New H3C Big Data Technologies Co Ltd
Original Assignee
New H3C Big Data Technologies 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 New H3C Big Data Technologies Co Ltd filed Critical New H3C Big Data Technologies Co Ltd
Priority to CN202011278703.2A priority Critical patent/CN112596741B/en
Publication of CN112596741A publication Critical patent/CN112596741A/en
Application granted granted Critical
Publication of CN112596741B publication Critical patent/CN112596741B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

The present application relates to the field of video monitoring technologies, and in particular, to a method and an apparatus for deploying video monitoring services. The method comprises the following steps: installing docker related commands on each storage server of the storage cluster; carrying out hierarchical division processing on each storage server, and respectively pushing video monitoring docker mirror images to the storage servers of each hierarchy according to a hierarchical division result; sending a video monitoring docker image loading request to each storage server so that each storage server loads a video monitoring docker image based on docker related commands; sending video monitoring docker container creation and starting requests to each storage server so that each storage server starts the video monitoring docker container based on the video monitoring docker mirror image; and issuing a configuration command to each storage server based on the docker command so that each storage server configures the video monitoring docker container based on the parameters carried by the configuration command.

Description

Video monitoring service deployment method and device
Technical Field
The present application relates to the field of video monitoring technologies, and in particular, to a method and an apparatus for deploying video monitoring services.
Background
In order to achieve long-term storage of video monitoring data, video monitoring software needs to be installed in a storage cluster environment, but direct installation risks mutual interference between applications in the storage cluster and the video monitoring applications, and further influences functions of the applications. It is desirable to isolate the video surveillance application from the cluster storage application.
The deployment scheme of the most widely used video monitoring software is that the video monitoring software is directly installed and deployed in a storage cluster environment system, and the video monitoring software has the characteristics of simplicity in deployment, simplicity and convenience in maintenance and the like. According to the scheme, a stable storage cluster environment is firstly constructed, then the dependence of the video monitoring application software is installed in the environment, and then the application software is installed. Through the deployment process, each component application for realizing the storage function and the software application for video monitoring are simultaneously installed in the storage cluster environment, and the software application can directly interact data and service information with the outside through a network card of the host computer like the cluster component application, and the data is stored in a file system directory.
However, the video monitoring application function and the storage function of the storage cluster are independent from each other, the storage cluster is deployed, and the whole cluster system is stable, efficient and reliable. The video monitoring application software needs a large amount of installation and operation dependence, if the normal installation and operation of the video monitoring application are ensured, all the dependence needs to be installed in the original storage cluster environment, and the situation that the normal operation of the storage cluster is influenced due to the installation of some dependence or the inconsistency between the dependence version and the version in the original storage cluster environment is inevitable, so that the whole storage function is unreliable. Meanwhile, the video monitoring application cannot run normally.
Disclosure of Invention
The application provides a video monitoring service deployment method and device, which are used for solving the problem of … … in the prior art.
In a first aspect, the present application provides a video monitoring service deployment method, which is applied to a storage cluster, and the method includes:
installing a docker service on each storage server of the storage cluster, wherein the docker service comprises docker related commands;
carrying out hierarchy division processing on each storage server, and respectively pushing a video monitoring docker mirror image to each hierarchy of storage servers according to the hierarchy division result of each storage server, wherein the video monitoring docker mirror image comprises video monitoring software and a dependence required by running the video monitoring software;
sending a video monitoring docker image loading request to each storage server so that each storage server loads the video monitoring docker image based on the docker related command;
sending video monitoring docker container creation and starting requests to the storage servers, so that the storage servers start the video monitoring docker containers based on the video monitoring docker images;
and issuing a configuration command to each storage server based on the docker related command so that each storage server configures the network mode, the port mapping and the directory mapping of the video monitoring docker container based on the parameters carried by the configuration command.
Optionally, the step of performing hierarchical division processing on each storage server, and pushing a video monitoring docker image to each hierarchical storage server according to the hierarchical division result of each storage server includes:
dividing each storage server into n levels of storage servers, wherein at least one (m + 1) th level of storage server is hung under one mth level of storage server, and m is less than n;
after receiving the video monitoring docker mirror image pushed by the storage server of the m-1 level, the storage server of the m-level pushes the video monitoring docker container to at least one storage server of the m +1 level hung below the storage server of the m-1 level until all the storage servers acquire the video monitoring docker mirror image.
Optionally, the method further comprises:
and forming a docker container cluster by the video monitoring docker containers deployed on the storage servers.
Optionally, the method further comprises:
when the video monitoring docker containers deployed on the storage servers are determined to be upgraded, target video monitoring services borne by a first video monitoring docker container deployed on a first storage server are transferred to a second video monitoring docker container deployed on a second storage server, and after the first video monitoring docker container is determined to be upgraded, the target video monitoring services are transferred to the first video monitoring docker container from the second video monitoring docker container.
Optionally, the method further comprises:
when the video monitoring docker containers deployed on the storage servers are determined to be deleted, video monitoring docker container destruction requests are sent to the storage servers respectively, so that the storage servers stop the video monitoring docker containers based on docker related commands, the video monitoring docker containers are deleted after the video monitoring docker containers stop, and the video monitoring docker mirror images are deleted.
In a second aspect, the present application provides a video monitoring service deployment apparatus, which is applied to a storage cluster, and the apparatus includes:
the installation unit is used for installing a docker service on each storage server of the storage cluster, wherein the docker service comprises docker related commands;
the pushing unit is used for carrying out hierarchy division processing on each storage server and respectively pushing a video monitoring docker mirror image to the storage servers of each hierarchy according to the hierarchy division result of each storage server, wherein the video monitoring docker mirror image comprises video monitoring software and dependence required by running the video monitoring software;
a sending unit, configured to send a video monitoring docker image loading request to each storage server, so that each storage server loads the video monitoring docker image based on the docker-related command;
the sending unit is further configured to send video monitoring docker container creation and starting requests to the storage servers, so that the storage servers start the video monitoring docker containers based on the video monitoring docker images;
and the issuing unit is used for issuing a configuration command to each storage server based on the docker related command so that each storage server configures the network mode, the port mapping and the directory mapping of the video monitoring docker container based on the parameters carried by the configuration command.
Optionally, when the hierarchical division processing is performed on each storage server, and a video monitoring docker image is pushed to each hierarchical storage server according to the hierarchical division result of each storage server, the pushing unit is specifically configured to:
dividing each storage server into n levels of storage servers, wherein at least one storage server of m +1 level is hung below one storage server of m level, and m is less than n;
after receiving the video monitoring docker mirror image pushed by the storage server of the m-1 level, the storage server of the m-level pushes the video monitoring docker container to at least one storage server of the m +1 level hung below the storage server of the m-1 level until all the storage servers acquire the video monitoring docker mirror image.
Optionally, the apparatus further comprises:
and the composition unit is used for composing the video monitoring docker containers deployed on the storage servers into a docker container cluster.
Optionally, the apparatus further comprises:
the upgrading unit is used for transferring target video monitoring services borne by a first video monitoring docker container deployed on a first storage server to a second video monitoring docker container deployed on a second storage server when the video monitoring dockers deployed on the storage servers are determined to be upgraded, and transferring the target video monitoring services from the second video monitoring docker container to the first video monitoring docker container after the first video monitoring docker container is determined to be upgraded.
Optionally, the apparatus further comprises:
and the destruction unit is used for respectively sending video monitoring docker container destruction requests to the storage servers when the video monitoring docker containers deployed on the storage servers are determined to be deleted, so that the storage servers stop the video monitoring docker containers based on the docker related commands, and deleting the video monitoring docker containers and deleting the video monitoring docker images after the video monitoring docker containers are stopped.
In a third aspect, an embodiment of the present application provides a video monitoring service deployment apparatus, where the video monitoring service deployment apparatus includes:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory and for executing the steps of the method according to any one of the above first aspects in accordance with the obtained program instructions.
In a fourth aspect, the present application further provides a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the steps of the method according to any one of the above first aspects.
In summary, in the video monitoring service deployment method provided in the embodiment of the present application, a docker service is installed on each storage server of the storage cluster, where the docker service includes docker-related commands; carrying out hierarchical division processing on each storage server, and respectively pushing a video monitoring docker mirror image to each hierarchical storage server according to the hierarchical division result of each storage server, wherein the video monitoring docker mirror image comprises video monitoring software and dependence required by running the video monitoring software; sending a video monitoring docker image loading request to each storage server so that each storage server loads the video monitoring docker image based on the docker related command; sending video monitoring docker container creation and starting requests to the storage servers, so that the storage servers start the video monitoring docker containers based on the video monitoring docker images; and issuing a configuration command to each storage server based on the docker related command so that each storage server configures the network mode, the port mapping and the directory mapping of the video monitoring docker container based on the parameters carried by the configuration command.
By adopting the video monitoring service deployment method provided by the embodiment of the application, the video monitoring service is deployed in the storage cluster in a container mode, the video monitoring application operating environment is isolated from the storage cluster operating environment, the operation dependence of the storage function and the video monitoring application function is mutually independent, the stable operation of the storage cluster function and the video monitoring application is ensured, further, the pushing of the video monitoring docker mirror image is carried out through hierarchy division and according to the hierarchy division, the mirror image pushing efficiency is greatly improved, and thus, the deployment of the video monitoring application program can be more efficient.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present application or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings of the embodiments of the present application.
Fig. 1 is a detailed flowchart of a video monitoring service deployment method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a video monitoring service deployment apparatus according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of another video monitoring service deployment apparatus according to an embodiment of the present application.
Detailed Description
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein is meant to encompass any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in the embodiments of the present application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. Depending on the context, moreover, the word "if" as used may be interpreted as "at … …" or "at … …" or "in response to a determination.
Exemplarily, referring to fig. 1, a detailed flowchart of a video monitoring service deployment method provided in an embodiment of the present application is shown, where the method is applied to a storage cluster, and the method includes the following steps:
step 100: and installing a docker service on each storage server of the storage cluster, wherein the docker service comprises docker related commands.
In the embodiment of the application, an environment required for operating the video monitoring docker container needs to be installed on each storage server of the storage cluster in advance, that is, related commands for operations such as video monitoring docker container construction, operation, stop, start, investigation, modification and the like need to be installed on each storage server of the storage cluster in advance.
Specifically, a software package of the docker (a customized mirror image of the docker software) is stored in a specified directory, preinstallation of the docker service is started, each storage server obtains the customized mirror image of the docker software and runs the customized mirror image of the docker software, and after installation operation is completed, the docker service exists in the system.
Further, a file system index resource shared directory corresponding to the storage cluster and a data resource shared directory corresponding to the video monitoring docker container are mounted to a local directory of the storage server, and the local directory is provided for directory mapping realized by creating the video monitoring docker container, so that data generated in the operation process of the video monitoring docker container can be stored in the file system of the storage cluster, wherein the shared directory of the mounted file system is premised on creation of an NAS server.
Step 110: and carrying out hierarchy division processing on each storage server, and respectively pushing a video monitoring docker mirror image to the storage servers of each hierarchy according to the hierarchy division result of each storage server, wherein the video monitoring docker mirror image comprises video monitoring software and a dependency required by running the video monitoring software.
In the embodiment of the present application, when performing hierarchical division processing on the storage servers and pushing video monitoring docker images to the storage servers of each hierarchy according to the hierarchical division result of the storage servers, a preferred implementation manner is to divide the storage servers into n hierarchies of storage servers, where at least one m +1 th hierarchy of storage servers is hung below one mth hierarchy of storage servers, and m is less than n; after receiving the video monitoring docker mirror image pushed by the storage server at the m-1 level, the storage server at the m level pushes the video monitoring docker container to at least one storage server at the m +1 level hung below the storage server until all the storage servers acquire the video monitoring docker mirror image.
In the embodiment of the present application, a preferred implementation manner is to layer (using Sn ═ 2(1-2^ n)/(-1), where n is the number of layers and Sn is the number of nodes) the storage servers in the storage cluster to push the video monitoring docker images, so that except for the storage server of the last layer and the storage server of the origin, each intermediate storage server is both the sending source of the video monitoring docker image and the video monitoring docker image receiving source, each intermediate storage server, upon receiving the video monitoring docker image pushed by the storage server of the previous layer, pushes the video monitoring docker image to a plurality of storage servers related to the next layer as the sending source, the storage server of the first layer first pushes the video monitoring docker image to the storage server of the second layer, after the pushing, each storage server of the second layer also serves as the sending source to simultaneously push the video monitoring docker image to the storage server of the third layer of its own image, and after all the storage servers of the last but one layer are used as sending sources to simultaneously push the video monitoring docker mirror images to the storage server of the last layer of the self branch, the pushing of the whole video monitoring docker mirror image is completed, and the process of pushing the video monitoring docker mirror images by all the storage servers of all the layers is carried out concurrently, so that the pushing efficiency of the video monitoring docker mirror image is greatly improved.
For example, assuming that the storage cluster includes 7 storage servers, when performing the hierarchical division, the storage server 1 is divided into storage servers of a first hierarchy, which are associated with the storage server 2 and the storage server 3, that is, the storage server 2 and the storage server 3 are divided into storage servers of a second hierarchy, the storage server 2 is associated with the storage server 4 and the storage server 5, the storage server 3 is associated with the storage server 6 and the storage server 7, that is, the storage server 4, the storage server 5, and the storage server 6 and the storage server 7 are divided into storage servers of a third hierarchy, then after acquiring the video monitoring docker image, the storage server 1 simultaneously pushes the video monitoring docker image to the storage server 2 and the storage server 3, after receiving the video monitoring docker image pushed by the storage server 1, the storage server 2 simultaneously pushes the video monitoring docker image to the storage server 4 and the storage server 5, and the storage server 3 simultaneously pushes the video monitoring docker image to the storage server 6 and the storage server 7.
Step 120: and sending a video monitoring docker image loading request to each storage server so that each storage server loads the video monitoring docker image based on the docker related command.
In the embodiment of the application, after each storage server (node) of a storage cluster acquires a video monitoring docker image, a cluster master node (a designated storage server in the storage cluster) simultaneously pulls up threads with the same number of nodes to respectively send requests for loading the video monitoring docker image to each storage server, and after each storage server receives the requests, each storage server loads the video monitoring docker image through a docker command pre-installed in a system, so as to prepare for next-step creation and starting of a video monitoring docker container.
Step 130: and sending video monitoring docker container creation and starting requests to the storage servers, so that the storage servers start the video monitoring docker containers based on the video monitoring docker images.
In the embodiment of the application, after each node has loaded the video monitoring docker mirror image, each node of the cluster creates and starts the video monitoring docker container through a docker run command respectively according to the received request for creating and starting the docker container.
Step 140: and issuing a configuration command to each storage server based on the docker related command so that each storage server configures the network mode, the port mapping and the directory mapping of the video monitoring docker container based on the parameters carried by the configuration command.
Furthermore, network mode, port mapping and directory mapping of the video monitoring docker container are configured in the docker run command, so that the created video monitoring docker container can exchange data storage and service information with a file system and an external environment of the storage cluster normally. Meanwhile, the application software for video monitoring is also normally installed in the video monitoring docker container, and all the running dependencies of the application software for video monitoring are also included in the video monitoring docker container. And then, each storage server detects the condition information of the creation and the starting of the video monitoring docker container and returns the condition information to the cluster main node, and the user acquires the deployment condition of the video monitoring docker container in the storage cluster according to the returned information and then performs related operation.
Further, in this embodiment of the present application, the video monitoring service deployment method further includes the following steps: and forming a docker container cluster by the video monitoring docker containers deployed on the storage servers.
Specifically, after determining that the video monitoring docker containers of the storage servers in the storage cluster are successfully deployed, entering the video monitoring docker container of the main node to perform related configuration operation, so as to form the docker container cluster by the video monitoring docker container and video monitoring docker containers deployed on other storage servers in the storage cluster.
In this embodiment of the application, when it is determined that the video monitoring docker containers deployed on the storage servers are to be upgraded, a target video monitoring service carried by a first video monitoring docker container deployed on a first storage server is migrated to a second video monitoring docker container deployed on a second storage server, and after it is determined that the first video monitoring docker container is upgraded, the target video monitoring service is migrated from the second video monitoring docker container to the first video monitoring docker container.
That is to say, the upgrading of the video monitoring docker container actually is that the video monitoring docker containers on the storage servers are sequentially upgraded in turn, that is, after the video monitoring docker container on one storage server is upgraded, the video monitoring docker container on the next storage server is upgraded, the original video monitoring application service on the storage server being upgraded can drift to the docker container of the storage server to be upgraded, and the service continues to run, and after the upgrading of the storage server is finished, the original service on the storage server can drift back from the drifted storage server, and the service continues to run.
The process of upgrading the video monitoring docker container on the single storage server is actually a process of destroying the docker container and then recreating the starting docker container, wherein the process of destroying the video monitoring docker container is detailed in the following process description.
Specifically, when it is determined that the video monitoring docker containers deployed on the storage servers are deleted, a video monitoring docker container destruction request is sent to each storage server, so that each storage server stops the video monitoring docker container based on the docker related command, and after the video monitoring docker container is stopped, the video monitoring docker container is deleted, and the video monitoring docker image is deleted.
For example, if a video monitoring docker container of each storage server in a storage cluster is to be destroyed, a cluster master node sends a request for destroying the video monitoring docker container to each storage server by using threads with the same node number, and each storage server destroys the docker container according to a destruction process after receiving the request, which is performed concurrently.
The structure of the video monitoring service deployment device provided in the embodiment of the present application is described in detail below with reference to specific application scenarios. Exemplarily, referring to fig. 2, a schematic structural diagram of a video monitoring service deployment apparatus provided in an embodiment of the present application is shown, where the apparatus is applied to a storage cluster, and the apparatus includes:
an installing unit 20, configured to install a docker service on each storage server of the storage cluster, where the docker service includes a docker related command;
the pushing unit 21 is configured to perform hierarchical division processing on each storage server, and respectively push a video monitoring docker mirror image to each hierarchical storage server according to a hierarchical division result of each storage server, where the video monitoring docker mirror image includes video monitoring software and a dependency required for running the video monitoring software;
a sending unit 22, configured to send a video monitoring docker image loading request to each storage server, so that each storage server loads the video monitoring docker image based on the docker related command;
the sending unit 22 is further configured to send a video monitoring docker container creation and starting request to each storage server, so that each storage server starts the video monitoring docker container based on the video monitoring docker image;
and the issuing unit 23 is configured to issue a configuration command to each storage server based on the docker related command, so that each storage server configures a network mode, a port mapping, and a directory mapping of the video monitoring docker container based on parameters carried by the configuration command.
Optionally, when the storage servers are hierarchically divided and video monitoring docker images are respectively pushed to the storage servers of each hierarchy according to the hierarchical division result of each storage server, the pushing unit 21 is specifically configured to:
dividing each storage server into n levels of storage servers, wherein at least one storage server of m +1 level is hung below one storage server of m level, and m is less than n;
after receiving the video monitoring docker mirror image pushed by the storage server of the m-1 level, the storage server of the m-level pushes the video monitoring docker container to at least one storage server of the m +1 level hung below the storage server of the m-1 level until all the storage servers acquire the video monitoring docker mirror image.
Optionally, the apparatus further comprises:
and the composition unit is used for composing the video monitoring docker containers deployed on the storage servers into a docker container cluster.
Optionally, the apparatus further comprises:
the upgrading unit is used for migrating a target video monitoring service borne by a first video monitoring docker container deployed on a first storage server to a second video monitoring docker container deployed on a second storage server when the video monitoring docker containers deployed on the storage servers are determined to be upgraded, and migrating the target video monitoring service from the second video monitoring docker container to the first video monitoring docker container after the first video monitoring docker container is determined to be upgraded.
Optionally, the apparatus further comprises:
and the destruction unit is used for respectively sending video monitoring docker container destruction requests to the storage servers when the video monitoring docker containers deployed on the storage servers are determined to be deleted, so that the storage servers stop the video monitoring docker containers based on the docker related commands, and deleting the video monitoring docker containers and deleting the video monitoring docker images after the video monitoring docker containers are stopped.
The above units may be one or more integrated circuits configured to implement the above methods, for example: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above units is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. As another example, these units may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Further, in the video monitoring service deployment apparatus provided in the embodiment of the present application, from a hardware aspect, a schematic diagram of a hardware architecture of the video monitoring service deployment apparatus may be shown in fig. 3, where the video monitoring service deployment apparatus may include: a memory 30 and a processor 31, which,
the memory 30 is used for storing program instructions; the processor 31 calls the program instructions stored in the memory 30 and executes the above-described method embodiments in accordance with the obtained program instructions. The specific implementation and technical effects are similar, and are not described herein again.
Optionally, the present application further provides a video monitoring service deployment device, which includes at least one processing element (or chip) for executing the above method embodiments.
Optionally, the present application also provides a program product, such as a computer-readable storage medium, having stored thereon computer-executable instructions for causing the computer to perform the above-described method embodiments.
Here, a machine-readable storage medium may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and so forth. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
The systems, apparatuses, modules or units described in the above embodiments may be specifically implemented by a computer chip or an entity, or implemented by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the various elements may be implemented in the same one or more pieces of software and/or hardware in the practice of the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Furthermore, these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (8)

1. A video monitoring service deployment method is applied to a storage cluster, and comprises the following steps:
installing a docker service on each storage server of the storage cluster, wherein the docker service comprises docker related commands;
carrying out hierarchical division processing on each storage server, and respectively pushing a video monitoring docker mirror image to each hierarchical storage server according to the hierarchical division result of each storage server, wherein the video monitoring docker mirror image comprises video monitoring software and dependence required by running the video monitoring software;
sending a video monitoring docker image loading request to each storage server so that each storage server loads the video monitoring docker image based on the docker related command;
sending video monitoring docker container creation and starting requests to the storage servers, so that the storage servers start the video monitoring docker containers based on the video monitoring docker images;
issuing a configuration command to each storage server based on the docker related command so that each storage server configures the network mode, the port mapping and the directory mapping of the video monitoring docker container based on the parameters carried by the configuration command;
the method comprises the following steps of carrying out hierarchy division processing on each storage server, and respectively pushing video monitoring docker mirror images to the storage servers of each hierarchy according to the hierarchy division result of each storage server, wherein the steps comprise:
dividing each storage server into n levels of storage servers, wherein at least one storage server of m +1 level is hung below one storage server of m level, and m is less than n;
after receiving the video monitoring docker mirror image pushed by the storage server of the m-1 level, the storage server of the m-level pushes the video monitoring docker to at least one storage server of the m +1 level hung below the storage server of the m-1 level until all the storage servers acquire the video monitoring docker mirror image.
2. The method of claim 1, wherein the method further comprises:
and forming a docker cluster by the video monitoring docker containers deployed on the storage servers.
3. The method of any one of claims 1-2, further comprising:
when the video monitoring dockers deployed on the storage servers are determined to be upgraded, target video monitoring services borne by a first video monitoring docker container deployed on a first storage server are transferred to a second video monitoring docker container deployed on a second storage server, and after the first video monitoring docker container is determined to be upgraded, the target video monitoring services are transferred to the first video monitoring docker container from the second video monitoring docker container.
4. The method of any one of claims 1-2, further comprising:
when the video monitoring docker containers deployed on the storage servers are determined to be deleted, video monitoring docker container destruction requests are sent to the storage servers respectively, so that the storage servers stop the video monitoring docker containers based on docker related commands, the video monitoring docker containers are deleted after the video monitoring docker containers stop, and the video monitoring docker mirror images are deleted.
5. A video monitoring service deployment device is applied to a storage cluster, and the device comprises:
the installation unit is used for installing a docker service on each storage server of the storage cluster, wherein the docker service comprises docker related commands;
the pushing unit is used for carrying out hierarchy division processing on each storage server and respectively pushing a video monitoring docker mirror image to the storage servers of each hierarchy according to the hierarchy division result of each storage server, wherein the video monitoring docker mirror image comprises video monitoring software and dependence required by running the video monitoring software;
a sending unit, configured to send a video monitoring docker image loading request to each storage server, so that each storage server loads the video monitoring docker image based on the docker-related command;
the sending unit is further configured to send video monitoring docker container creation and starting requests to the storage servers, so that the storage servers start the video monitoring docker containers based on the video monitoring docker images;
the issuing unit is used for issuing a configuration command to each storage server based on the docker related command so as to enable each storage server to configure the network mode, the port mapping and the directory mapping of the video monitoring docker container based on the parameters carried by the configuration command;
when the hierarchical division processing is performed on each storage server and the video monitoring docker mirror image is respectively pushed to the storage servers of each hierarchy according to the hierarchical division result of each storage server, the pushing unit is specifically configured to:
dividing each storage server into n levels of storage servers, wherein at least one storage server of m +1 level is hung below one storage server of m level, and m is less than n;
after receiving the video monitoring docker mirror image pushed by the storage server at the m-1 level, the storage server at the m level pushes the video monitoring docker container to at least one storage server at the m +1 level hung below the storage server until all the storage servers acquire the video monitoring docker mirror image.
6. The apparatus of claim 5, wherein the apparatus further comprises:
and the composition unit is used for composing the video monitoring docker containers deployed on the storage servers into docker clusters.
7. The apparatus of any of claims 5-6, further comprising:
the upgrading unit is used for transferring target video monitoring services borne by a first video monitoring docker container deployed on a first storage server to a second video monitoring docker container deployed on a second storage server when the video monitoring docker containers deployed on the storage servers are determined to be upgraded, and transferring the target video monitoring services from the second video monitoring docker container to the first video monitoring docker container after the first video monitoring docker container is determined to be upgraded.
8. The apparatus of any of claims 5-6, further comprising:
the destruction unit is used for respectively sending video monitoring docker container destruction requests to the storage servers when the video monitoring docker containers deployed on the storage servers are determined to be deleted, so that the storage servers stop the video monitoring docker containers based on the docker related commands, and delete the video monitoring docker containers and delete the video monitoring docker mirror images after the video monitoring docker containers are stopped.
CN202011278703.2A 2020-11-16 2020-11-16 Video monitoring service deployment method and device Active CN112596741B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011278703.2A CN112596741B (en) 2020-11-16 2020-11-16 Video monitoring service deployment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011278703.2A CN112596741B (en) 2020-11-16 2020-11-16 Video monitoring service deployment method and device

Publications (2)

Publication Number Publication Date
CN112596741A CN112596741A (en) 2021-04-02
CN112596741B true CN112596741B (en) 2022-08-30

Family

ID=75183032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011278703.2A Active CN112596741B (en) 2020-11-16 2020-11-16 Video monitoring service deployment method and device

Country Status (1)

Country Link
CN (1) CN112596741B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105867955A (en) * 2015-09-18 2016-08-17 乐视云计算有限公司 Deployment system and deployment method of application program
WO2017129106A1 (en) * 2016-01-29 2017-08-03 腾讯科技(深圳)有限公司 Data request processing method, server and system
CN107294772A (en) * 2017-05-23 2017-10-24 甘肃万维信息技术有限责任公司 One kind combines Docker and realizes dynamic management and monitoring service system
CN107885547A (en) * 2017-11-08 2018-04-06 江苏国泰新点软件有限公司 A kind of collocation method of application program, device, configuration equipment and storage medium
CN108255497A (en) * 2018-01-12 2018-07-06 新华三大数据技术有限公司 The dispositions method and device of a kind of application
CN108924217A (en) * 2018-06-29 2018-11-30 中山大学 A kind of distribution cloud system Automation arranging method
CN109960580A (en) * 2017-12-25 2019-07-02 航天信息股份有限公司 A kind of method and system for disposing service of making out an invoice
CN110380879A (en) * 2018-04-12 2019-10-25 上海宝信软件股份有限公司 Track traffic synthetic monitoring dispositions method and system based on docker
CN110413294A (en) * 2019-08-06 2019-11-05 中国工商银行股份有限公司 Service delivery system, method, apparatus and equipment
WO2019237588A1 (en) * 2018-06-13 2019-12-19 平安科技(深圳)有限公司 Linux virtual server creation method, device, computer device and storage medium
CN111506391A (en) * 2020-03-31 2020-08-07 新华三大数据技术有限公司 Container deployment method and device
EP3722951A1 (en) * 2019-04-08 2020-10-14 Schneider Electric Industries SAS Service deployment in a cluster of i/o devices

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10505830B2 (en) * 2016-08-11 2019-12-10 Micro Focus Llc Container monitoring configuration deployment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105867955A (en) * 2015-09-18 2016-08-17 乐视云计算有限公司 Deployment system and deployment method of application program
WO2017129106A1 (en) * 2016-01-29 2017-08-03 腾讯科技(深圳)有限公司 Data request processing method, server and system
CN107294772A (en) * 2017-05-23 2017-10-24 甘肃万维信息技术有限责任公司 One kind combines Docker and realizes dynamic management and monitoring service system
CN107885547A (en) * 2017-11-08 2018-04-06 江苏国泰新点软件有限公司 A kind of collocation method of application program, device, configuration equipment and storage medium
CN109960580A (en) * 2017-12-25 2019-07-02 航天信息股份有限公司 A kind of method and system for disposing service of making out an invoice
CN108255497A (en) * 2018-01-12 2018-07-06 新华三大数据技术有限公司 The dispositions method and device of a kind of application
CN110380879A (en) * 2018-04-12 2019-10-25 上海宝信软件股份有限公司 Track traffic synthetic monitoring dispositions method and system based on docker
WO2019237588A1 (en) * 2018-06-13 2019-12-19 平安科技(深圳)有限公司 Linux virtual server creation method, device, computer device and storage medium
CN108924217A (en) * 2018-06-29 2018-11-30 中山大学 A kind of distribution cloud system Automation arranging method
EP3722951A1 (en) * 2019-04-08 2020-10-14 Schneider Electric Industries SAS Service deployment in a cluster of i/o devices
CN110413294A (en) * 2019-08-06 2019-11-05 中国工商银行股份有限公司 Service delivery system, method, apparatus and equipment
CN111506391A (en) * 2020-03-31 2020-08-07 新华三大数据技术有限公司 Container deployment method and device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Docker-Based Automatic Deployment for Nuclear Fusion Experimental Data Archive Cluster;Qiang Liu 等;《IEEE Transactions on Plasma Science》;20180531;第46卷(第5期);第1281-1284页 *
可伸缩的集群视频服务器的设计;石柯;《华中科技大学学报(自然科学版)》;20020430(第04期);全文 *
基于容器云的微服务系统;杨迪;《电信科学》;20181231;第169-177页 *

Also Published As

Publication number Publication date
CN112596741A (en) 2021-04-02

Similar Documents

Publication Publication Date Title
CN107515776B (en) Method for upgrading service continuously, node to be upgraded and readable storage medium
CN113296792B (en) Storage method, device, equipment, storage medium and system
CN111930473B (en) Method and apparatus for deploying image recognition service on container cloud
US11221860B2 (en) Managing multi-single-tenant SaaS services
CN107590033B (en) Method, device and system for creating DOCKER container
WO2020029995A1 (en) Application upgrading through sharing dependencies
US20170371641A1 (en) Multi-tenant upgrading
CN115878374A (en) Backing up data for namespaces assigned to tenants
CN116028163A (en) Method, device and storage medium for scheduling dynamic link library of container group
CN113672255B (en) Distributed storage software upgrading method and device
CN111813379A (en) Application deployment method and device, electronic equipment and computer readable storage medium
CN112596741B (en) Video monitoring service deployment method and device
CN113296891A (en) Multi-scene knowledge graph processing method and device based on platform
CN118331603A (en) Application extension method, computing device and device cluster
CN112988460B (en) Data backup method and device for virtual machine
US20230401080A1 (en) Reducing deployment time for container clones in computing environments
CN116382713A (en) Method, system, device and storage medium for constructing application mirror image
US20180341475A1 (en) Just In Time Deployment with Package Managers
CN113377500B (en) Resource scheduling method, device, equipment and medium
CN113867776B (en) Method and device for issuing middle-stage application, electronic equipment and storage medium
US20210303370A1 (en) Scaling virtualization resource units of applications
US10701176B1 (en) Messaging using a hash ring with host groups
CN114356214B (en) Method and system for providing local storage volume for kubernetes system
US11256607B1 (en) Adaptive resource management for instantly provisioning test environments via a sandbox service
US20240152371A1 (en) Dynamic re-execution of parts of a containerized application pipeline

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