CN113204410A - Container type localized deployment method, system, equipment and storage medium - Google Patents

Container type localized deployment method, system, equipment and storage medium Download PDF

Info

Publication number
CN113204410A
CN113204410A CN202110602680.4A CN202110602680A CN113204410A CN 113204410 A CN113204410 A CN 113204410A CN 202110602680 A CN202110602680 A CN 202110602680A CN 113204410 A CN113204410 A CN 113204410A
Authority
CN
China
Prior art keywords
deployment
node
target
service
working node
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
CN202110602680.4A
Other languages
Chinese (zh)
Other versions
CN113204410B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202110602680.4A priority Critical patent/CN113204410B/en
Publication of CN113204410A publication Critical patent/CN113204410A/en
Application granted granted Critical
Publication of CN113204410B publication Critical patent/CN113204410B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to the technical field of distributed data, and discloses a container type localized deployment method, a container type localized deployment system, container type localized deployment equipment and a container type localized deployment storage medium, wherein the container type localized deployment method comprises the following steps: acquiring a mirror image delivery file of the container type localization deployment device from a container of a management node, and deploying a target container type localization deployment device in the management node; calling a target container type localized deployment device, performing authorization verification according to a server hardware identification code and operation deployment permission data in a storage node to obtain a target management node, and performing distributed deployment and service starting of a working node service cluster according to working node configuration data to obtain a target working node service cluster; and determining a target application system according to the target working node service cluster, the target management node and the storage node. The method and the device realize automatic authorization verification, reduce deployment error rate, reduce the construction time of system deployment and improve the self-adaptive capacity of the system in the complex hardware environment.

Description

Container type localized deployment method, system, equipment and storage medium
Technical Field
The present application relates to the field of distributed data technologies, and in particular, to a container type localized deployment method, system, device, and storage medium.
Background
An application system which needs to run a large amount of application services, needs complex configuration and depends on a large amount of software and hardware computing resources can be well deployed on a Public Cloud (Public Cloud) platform by relying on a platform Public service provider. In an application scene that a public cloud platform cannot be used, a server is blocked from accessing public network resources, most of dependent software and application services cannot be conveniently installed, and the application scene can only adopt a localized deployment mode.
Under the condition of localized deployment, a large number of public components which can be relied on are lacked, the computing environment with the lowest requirement can be provided generally, such as an operating system, a container, a network, a database, storage and the like, and the continuous integration environment and the operation and maintenance environment, such as instrument panel monitoring, version warehouse, service start and stop, cluster deployment and the like, which are required by the deployment of the production environment are lacked, so that the difficulty completely different from that of public cloud deployment can be faced; in addition, in the version deployment and upgrade process, a large number of configurations and application services can be fused, the manual construction of the system and the configuration services by operation and maintenance personnel can consume time, and errors are easy to occur, for example, unpredictable unexpected situations such as temporary forgetting of operation commands, manual errors during keyboard input and the like; when the dependence of the version and the application service is complex, the starting and the stopping of the application service are easy to make mistakes; due to the diversity of deployment environments, how to solve authorization verification is also a big problem.
Disclosure of Invention
The application mainly aims to provide a container type localized deployment method, a container type localized deployment system, a container type localized deployment device and a container type localized deployment storage medium, and aims to solve the technical problems that how to perform localized deployment of an application system which needs to run a large amount of application services, needs complex configuration and depends on a large amount of software hardware computing resources, the building time of system deployment is shortened, the error rate of the system during deployment is reduced, the self-applicability of the system in the face of a complex hardware environment is improved, and automatic authorization verification is performed.
In order to achieve the above object, the present application provides a container type localized deployment method, including:
acquiring a container type localized deployment request of an application system to be deployed;
responding to the deployment request, acquiring a mirror image delivery file of the container type localized deployment device from a container of a management node, and installing and operating the container type localized deployment device in the management node according to the mirror image delivery file to obtain a target container type localized deployment device;
calling the target container type localization deployment device, acquiring operation deployment permission data from a storage node, acquiring a server hardware identification code of the management node, and performing authorization verification according to the server hardware identification code and the operation deployment permission data to obtain a target management node;
calling the target container type localization deployment device, acquiring working node configuration data, and storing the working node configuration data in the storage node;
calling the target container type localized deployment device, and performing distributed deployment and service starting of a working node service cluster according to the working node configuration data in the storage nodes in a remote execution mode to obtain a target working node service cluster;
and determining a target application system corresponding to the application system to be deployed according to the target working node service cluster, the target management node and the storage node.
Further, the step of performing authorization verification according to the server hardware identification code and the operation deployment permission data to obtain a target management node includes:
calling a license service module of the target container type localization deployment device, and performing authorization verification according to the server hardware identification code and the operation deployment license data to obtain an authorization verification result;
and when the authorization verification result is that the authorization verification result is passed, calling the permission service module to determine that the management node is the target management node.
Further, before the step of obtaining the operation deployment permission data from the storage node, the method further includes:
acquiring a server hardware identification code of a management node to be permitted;
sending the server hardware identification code of the management node to be permitted to a permission processing end;
acquiring the operation deployment permission data sent by the permission processing terminal according to the server hardware identification code of the management node to be permitted, wherein the operation deployment permission data comprises: the hardware identification code of the server of the permitted management node, the service role information of the working node, the maximum operation quantity of the service role of the working node and the maximum operation specification of the service role of the working node;
storing the running deployment permission data in the storage node.
Further, the step of calling the target container type localization deployment device, obtaining the working node configuration data, and storing the working node configuration data in the storage node includes:
calling a configuration service module of the target container type localization deployment device, acquiring a deployment configuration request, responding to the deployment configuration request, displaying a visual configuration interface, and acquiring the working node configuration data according to the visual configuration interface, wherein the working node configuration data comprises: the method comprises the following steps that distribution condition configuration data of working nodes, working node access mode configuration data and service role configuration data of the working nodes are obtained;
and calling the configuration service module to store the configuration data of the working node in the storage node.
Further, the step of calling the target container type localized deployment device, performing distributed deployment and service startup of a work node service cluster according to the work node configuration data in the storage node in a remote execution manner, and obtaining a target work node service cluster includes:
calling a deployment service module of the target container type localization deployment device, adopting an SSH remote SHELL command, and respectively carrying out mirror image installation, parameter initialization and starting of application service on each working node corresponding to the working node configuration data according to a version warehouse module of the target container type localization deployment device and the working node configuration data in the storage node to obtain a working node deployment result corresponding to each working node;
and when the deployment results of all the working nodes are successful, calling the deployment service module, and performing mutual communication processing on the application services corresponding to all the working nodes according to the working node configuration data in the storage node to obtain the target working node service cluster.
Further, the step of calling the deployment service module of the target container type localized deployment device, using an SSH remote SHELL command, and performing mirror image installation, parameter initialization, and startup of application services on each working node corresponding to the working node configuration data according to the version warehouse module of the target container type localized deployment device and the working node configuration data in the storage node, to obtain a working node deployment result corresponding to each working node, includes:
calling the deployment service module, and extracting one working node from the working node corresponding to the working node configuration data as a working node to be processed;
calling the deployment service module, and acquiring an application service mirror image from the version warehouse module according to the working node to be processed and the working node configuration data to obtain the application service mirror image;
calling the deployment service module, and storing the application service image into a Docker virtualization container in a server corresponding to the working node to be processed;
calling the deployment service module, and carrying out mirror image installation on application service according to the working node configuration data and the application service mirror image in the Docker virtualization container in the server corresponding to the working node to be processed by adopting an SSH remote SHELL command to obtain the application service to be initialized;
calling the deployment service module, and initializing the parameters of the application service to be initialized according to the configuration data of the working node by adopting an SSH remote SHELL command to obtain the application service to be started;
calling the deployment service module, starting the application service to be started according to the working node configuration data by adopting an SSH remote SHELL command, and determining that the working node deployment result corresponding to the working node to be processed is successful when the starting is successful;
and repeatedly executing the step of calling the deployment service module and extracting one working node from the working nodes corresponding to the working node configuration data as a working node to be processed until the working node deployment result corresponding to each working node is determined.
Further, after the step of determining the target application system corresponding to the application system to be deployed according to the target working node service cluster, the target management node, and the storage node, the method further includes:
calling a configuration service module of the target container type localization deployment device, monitoring working node service operation data of the target working node service cluster, and storing the working node service operation data in an operation data file of the storage node;
and calling the configuration service module, acquiring an operation data display request, responding to the operation data display request, and displaying a work node operation data interface according to the operation data file in the storage node to obtain a target work node operation data interface.
The application also provides a container type localization deployment system, the system includes:
the request acquisition module is used for acquiring a container type localized deployment request of the application system to be deployed;
the target container type localized deployment device determining module is used for responding to the deployment request, acquiring a mirror image delivery file of the container type localized deployment device from a container of a management node, and installing and operating the container type localized deployment device in the management node according to the mirror image delivery file to obtain the target container type localized deployment device;
the target management node determining module is used for calling the target container type localized deployment device, acquiring operation deployment permission data from a storage node, acquiring a server hardware identification code of the management node, and performing authorization verification according to the server hardware identification code and the operation deployment permission data to obtain a target management node;
the working node configuration data acquisition module is used for calling the target container type localization deployment device, acquiring working node configuration data and storing the working node configuration data in the storage node;
the target working node service cluster determining module is used for calling the target container type localized deployment device, and performing distributed deployment and service starting of a working node service cluster according to the working node configuration data in the storage nodes in a remote execution mode to obtain a target working node service cluster;
and the target application system determining module is used for determining a target application system corresponding to the application system to be deployed according to the target working node service cluster, the target management node and the storage node.
The present application further proposes a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of any of the above methods when executing the computer program.
The present application also proposes a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of any of the above.
The container type localization deployment method, system, equipment and storage medium of the application, by first responding to a container type localization deployment request, obtaining a mirror image delivery file of a container type localization deployment device from a container of a management node, according to the mirror image delivery file, carrying out installation and operation of the container type localization deployment device in the management node to obtain a target container type localization deployment device, then calling the target container type localization deployment device, obtaining operation deployment permission data from a storage node, obtaining a server hardware identification code of the management node, carrying out authorization verification according to the server hardware identification code and the operation deployment permission data to obtain a target management node, obtaining working node configuration data, storing the working node configuration data in the storage node, calling the target container type localization deployment device, the method comprises the steps of performing distributed deployment and service starting of a working node service cluster according to working node configuration data in a storage node in a remote execution mode to obtain a target working node service cluster, performing distributed deployment and service starting of the working node service cluster according to the working node configuration data in the storage node in a remote execution mode to obtain the target working node service cluster, and finally determining a target application system corresponding to an application system to be deployed according to the target working node service cluster, a target management node and the storage node, so that automatic local deployment and automatic authorization verification are realized, the deployment error rate is reduced, and the system deployment construction time is reduced; and the target container type localized deployment device is adopted, so that the deployment process does not depend on external resources, and the self-adaptive capacity of the system in the complex hardware environment is improved.
Drawings
Fig. 1 is a schematic flowchart of a container type localized deployment method according to an embodiment of the present application;
fig. 2 is a block diagram illustrating a container type localized deployment system according to an embodiment of the present application;
fig. 3 is a block diagram illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, an embodiment of the present application provides a container type localized deployment method, where the method includes:
s1: acquiring a container type localized deployment request of an application system to be deployed;
s2: responding to the deployment request, acquiring a mirror image delivery file of the container type localized deployment device from a container of a management node, and installing and operating the container type localized deployment device in the management node according to the mirror image delivery file to obtain a target container type localized deployment device;
s3: calling the target container type localization deployment device, acquiring operation deployment permission data from a storage node, acquiring a server hardware identification code of the management node, and performing authorization verification according to the server hardware identification code and the operation deployment permission data to obtain a target management node;
s4: calling the target container type localization deployment device, acquiring working node configuration data, and storing the working node configuration data in the storage node;
s5: calling the target container type localized deployment device, and performing distributed deployment and service starting of a working node service cluster according to the working node configuration data in the storage nodes in a remote execution mode to obtain a target working node service cluster;
s6: and determining a target application system corresponding to the application system to be deployed according to the target working node service cluster, the target management node and the storage node.
The embodiment obtains the mirror image delivery file of the container type localized deployment device from the container of the management node by responding the deployment request of the container type localized deployment, installs and operates the container type localized deployment device in the management node according to the mirror image delivery file to obtain the target container type localized deployment device, then calls the target container type localized deployment device, obtains the operation deployment permission data from the storage node, obtains the server hardware identification code of the management node, carries out authorization verification according to the server hardware identification code and the operation deployment permission data to obtain the target management node, obtains the working node configuration data, stores the working node configuration data in the storage node, calls the target container type localized deployment device, adopts a remote execution mode to carry out distributed deployment and service starting of the working node service cluster according to the working node configuration data in the storage node, the method comprises the steps of obtaining a target working node service cluster, performing distributed deployment and service starting of the working node service cluster according to working node configuration data in a storage node in a remote execution mode to obtain the target working node service cluster, and finally determining a target application system corresponding to an application system to be deployed according to the target working node service cluster, a target management node and the storage node, so that automatic local deployment and automatic authorization verification are achieved, deployment error rate is reduced, and system deployment construction time is shortened; and the target container type localized deployment device is adopted, so that the deployment process does not depend on external resources, and the self-adaptive capacity of the system in the complex hardware environment is improved.
For S1, the acquisition deployment implementer sends a container-localized deployment request.
The deployment request of container type localization is a request for deploying an application system to be deployed by adopting a container type localization deployment method.
Application systems to be deployed include, but are not limited to: a voiceprint recognition system. The voiceprint recognition system can be widely applied to various service scenes, the processing technology in the field of voiceprint recognition comprises complex types such as multimedia processing, AI intelligence, algorithm training reasoning, network communication and the like, the complete system operation needs to operate a large amount of application services and complex configuration, and a large amount of software hardware computing resources such as a GPU (graphic processing unit), a CPU (central processing unit), a network, storage, acquisition equipment and the like are relied on; in order to meet the rapid change of the complex application scenario and the demand, the whole period from the demand to the production of the voiceprint product needs to be completed more rapidly, the voiceprint product generally adopts a micro-service architecture to realize distributed computation, and adopts an Agile Development (Agile Development) flow and implements continuous integration, continuous delivery and continuous deployment in the Development process.
Before the step of obtaining the deployment request of container type localization of the application system to be deployed, the method further includes: carrying out node definition on standardized general computing resources to obtain a management node set, a storage node and a working node set; respectively configuring the running environment of each node (any one node corresponding to the management node set, the storage node and the working node set); acquiring a mirror image delivery file of the container type localized deployment device; and storing the mirror image delivery file in a container of a management node.
The image delivery file is a Docker (open source application container engine) image file obtained by packaging according to the application system to be deployed. The Docker image is a special file system, which provides files of programs, libraries, resources, configurations, and the like required by the container runtime, and also contains some configuration parameters (such as anonymous volumes, environment variables, users, and the like) prepared for the runtime, and the image does not contain any dynamic data, and the content of the image is not changed after being constructed.
Standardized general purpose computing resources include: servers (GPU or CPU type), operating systems (including GPU driver), Docker services, storage services (database or NAS), network environments, etc.
Optionally, the storage node is a CA (single point cluster, system meeting consistency and availability, which is generally not very strong in scalability) type persistent single point cluster storage node.
It is understood that the number of management nodes in the management node set is one or more.
It is understood that the number of working nodes in the working node set is one or more.
The method includes that each node (any one of nodes corresponding to a management node set, a storage node and a working node set) is configured with an operating environment, and specifically includes: the method comprises the steps of completing the assembly, the power-on, the network connection and the network call-through of all servers corresponding to all nodes, installing an operating system Centos7, mounting NAS storage (namely a storage node) to a management node, and configuring an SSH (protocol special for providing security for remote login sessions and other network services) remote access function, so that all the servers are in the same local area network.
It will be appreciated that the worker node and the manager node communicate remotely via SSH protocols (protocols specific to providing security for telnet sessions and other network services).
A Docker (open source application container engine) environment is installed and operated on a server corresponding to each node (any one of the management node set, the storage node and the working node set).
And S2, responding to the deployment request, acquiring an image delivery file of the container type localized deployment device from a Docker virtualized container on a server corresponding to the management node, carrying out image loading on the acquired image delivery file of the container type localized deployment device by adopting a command Docker load-i abc-v1.0.tar, then operating and loading the acquired image by adopting a command Docker run-v/abc:/abc-p 8080:8080-p 5000:5000-d abc: v1.0, and taking the successfully operated image as the target container type localized deployment device.
The management node is any management node in the management node set obtained by performing node definition on the standardized general computing resource.
Optionally, the management node is deployed in a distributed manner, and one or more replias (duplicate) instances exist in the management node, so that the management node operates the target container type localized deployment device independently by using one or more tasks, and the fault tolerance of the service provided by the target container type localized deployment device is improved.
For S3, the target container type localized deployment device is called, the server hardware identification code of the management node is checked, the operation deployment permission data is obtained from the storage node, authorization verification is performed according to the checked server hardware identification code of the management node and the server hardware identification code of the permitted management node in the operation deployment permission data, whether the management node is a trusted environment is determined according to an authorization verification result, and when the management node is determined to be a trusted environment, the management node is determined to be the target management node.
The running deployment permission data is permission data provided by a generator of the application system to be deployed.
The server hardware identification code is unique identification information that the server ID can be a mainboard ID, a system serial number and the like of the server.
The target container type localization deployment device comprises: the system comprises a version warehouse module, a deployment service module, a configuration service module and a permission service module. The version warehouse module is used for providing mirror image warehouse service and comprises Docker mirror images of all services needing to be deployed at this time; the deployment service module is used for providing functions of remote initialization, remote installation, remote uninstallation, remote detection and the like; the configuration service module is used for providing functions of configuring a graphical user interface, configuring nodes, displaying running data and the like; and the license service module is used for providing functions of hardware unique code detection, license verification and the like.
And S4, calling the target container type localization deployment device, acquiring the working node configuration data input by the user, and storing the working node configuration data in the storage node.
The configuration data of the working node is the configuration data required for deploying the server corresponding to the working node. The worker node configuration data includes, but is not limited to: the system comprises distribution condition configuration data of the working nodes, access mode configuration data of the working nodes and service role configuration data of the working nodes.
Each worker node includes at least one worker node service role.
Optionally, the working nodes are deployed in a distributed manner, and one or more replias instances exist in the working nodes, so that the working nodes simultaneously adopt one or more application services corresponding to the working nodes which operate independently, and the fault tolerance of the service provided by the application service corresponding to the working nodes is improved.
Worker node service roles include, but are not limited to: the system comprises an API gateway, a WEB service, a GPU algorithm engine service and a CPU algorithm service, wherein each service role is preset with a deployment template and a preset mirror name version, and a real executable remote deployment command can be generated by the target container type localized deployment device only by supplementing necessary information such as an IP address, a user name and a password of SSH remote access, wherein the necessary information such as the IP address, the user name and the password of the SSH remote access is supplemented according to working node configuration data. The API gateway is an interface route. Web services, a platform-independent, low-coupling, self-contained, programmable Web-based application, can use open XML (a subset of the standard generalized markup language) standards to describe, publish, discover, coordinate, and configure these applications for developing distributed, interoperating applications. The GPU algorithm engine service is an engine service of a graphics processing algorithm. The CPU algorithm service is an application service of a CPU algorithm (mainly a scheduling algorithm of a central processing unit).
And S5, calling the target container type localization deployment device, and performing mirror image installation, parameter initialization, application service starting and cluster setting of application services on each working node corresponding to the working node configuration data in the storage nodes respectively according to the version warehouse module of the target container type localization deployment device and the working node configuration data in the storage nodes in a remote execution mode, wherein all the deployed working nodes are used as target working node service clusters.
For S6, the target work node service cluster, the target management node, and the storage node are used as target application systems corresponding to the application system to be deployed. That is, the target application system already includes the application system to be deployed and the software and application service that the application system to be deployed depends on when running.
That is, through steps S1 to S6, the deployment implementation staff only needs to configure and operate at the target management node, because the respective work nodes of the target work node service cluster are remotely connected to the management node through the SSH protocol, and the deployment implementation staff does not need to repeatedly operate at the respective work nodes of the target work node service cluster.
In an embodiment, the step of performing authorization verification according to the server hardware identification code and the operation deployment permission data to obtain the target management node includes:
s311: calling a license service module of the target container type localization deployment device, and performing authorization verification according to the server hardware identification code and the operation deployment license data to obtain an authorization verification result;
s312: and when the authorization verification result is that the authorization verification result is passed, calling the permission service module to determine that the management node is the target management node.
According to the embodiment, the authorization verification is carried out according to the server hardware identification code and the operation deployment permission data, after the authorization verification, the service can be ensured to operate in a trusted environment, and the operation safety of the successfully deployed target application system is improved.
For S311, a license service module of the target container type localized deployment device is called, the server hardware identification code of the management node is compared with the server hardware identification code of the licensed management node in the operation deployment license data, when the server hardware identification code of the management node is the same as the server hardware identification code of the licensed management node in the operation deployment license data, it is determined that the authorization verification result is successful, and when the server hardware identification code of the management node is different from the server hardware identification code of the licensed management node in the operation deployment license data, it is determined that the authorization verification result is failed.
When the authorization verification result is failure, generating an authorization verification failure signal; and carrying out authorization verification failure reminding on deployment implementing personnel according to the authorization verification failure signal.
For S312, when the authorization verification result is pass, it means that the management node is trusted, so the license service module may be invoked to determine that the management node is the target management node, thereby completing the deployment of the management node.
In an embodiment, before the step of obtaining the operation deployment permission data from the storage node, the method further includes:
s321: acquiring a server hardware identification code of a management node to be permitted;
s322: sending the server hardware identification code of the management node to be permitted to a permission processing end;
s323: acquiring the operation deployment permission data sent by the permission processing terminal according to the server hardware identification code of the management node to be permitted, wherein the operation deployment permission data comprises: the hardware identification code of the server of the permitted management node, the service role information of the working node, the maximum operation quantity of the service role of the working node and the maximum operation specification of the service role of the working node;
s324: storing the running deployment permission data in the storage node.
According to the embodiment, the operation deployment permission data are stored in the storage node in advance, so that the external resources do not need to be acquired through networking in the authorization verification, and the automatic authorization verification is facilitated under the condition that the external resources do not need to be acquired through networking in the localized deployment.
For S321, the server hardware identification code of the management node to be licensed, which is input by the user, is acquired.
The server hardware identification code of the management node to be admitted, that is, the server hardware identification code of the server intended as the management node.
For S322, first, the server hardware identification code of the management node to be licensed is sent to the license processing end, so that the license responsible person can obtain the server hardware identification code of the management node to be licensed from the license processing end, then send the server hardware identification code of the management node to be licensed to the authorizer corresponding to the application system to be deployed, obtain the operation deployment license data sent by the authorizer according to the server hardware identification code of the management node to be licensed, and finally, the license responsible person returns the operation deployment license data through the license processing end.
For S323, the operation deployment permission data sent by the permission processing end according to the server hardware identifier of the management node to be permitted is obtained, that is, the operation deployment permission data is authorization for using a server corresponding to the server hardware identifier of the management node to be permitted as a management node to deploy the application system to be deployed.
The server hardware identification code of the permitted management node is the server hardware identification code of the server corresponding to the management node for deploying the application system to be deployed.
The service role information of the working node is description information of the service role of the working node required by the application system to be deployed. For example, the service role information of the work node includes: API webmaster, GPU algorithm engine service, and CPU algorithm service, which are not specifically limited by the examples herein.
The maximum operation number of the service roles of the working nodes is the maximum operation number of each service role of the working nodes required by the application system to be deployed. That is, each worker node service role may have one or more worker nodes running simultaneously. For example, the maximum number of operations of a worker node service role includes: the maximum operation number of the API webmaster is 2, the maximum operation number of the GPU algorithm engine service is 5, and the maximum operation number of the CPU algorithm service is 8, which is not specifically limited in this example.
The maximum operation specification of the service role of the working node is the description of the maximum operation specification of each service role of the working node required by the application system to be deployed.
For S324, storing the running deployment permission data in the storage node to enable storing the running deployment permission data in the storage node in advance.
In an embodiment, the step of invoking the target container type localized deployment device, acquiring the working node configuration data, and storing the working node configuration data in the storage node includes:
s41: calling a configuration service module of the target container type localization deployment device, acquiring a deployment configuration request, responding to the deployment configuration request, displaying a visual configuration interface, and acquiring the working node configuration data according to the visual configuration interface, wherein the working node configuration data comprises: the method comprises the following steps that distribution condition configuration data of working nodes, working node access mode configuration data and service role configuration data of the working nodes are obtained;
s42: and calling the configuration service module to store the configuration data of the working node in the storage node.
According to the embodiment, visual configuration is realized through the configuration service module of the target container type localization deployment device, so that the configuration speed is improved, the workload of deployment implementation personnel is reduced, and the localization deployment efficiency is improved.
For S41, the configuration service module of the target container type localized deployment device is called to obtain the deployment configuration request input by the user.
The deployment configuration request is a request for configuring configuration data required for deploying the working nodes.
The configuration service module displays a visual configuration interface when receiving the deployment configuration request, wherein the visual configuration interface is a WEB page. And after filling configuration data in the visual configuration interface, the deployment implementing personnel submit a deployment completion request. And when receiving a deployment completion request, the configuration service module generates the configuration data of the working nodes according to the data in the visual configuration interface.
The distribution configuration data of the working nodes includes but is not limited to: the working node IP address collection comprises working node service roles and working node IP address collections, wherein each working node service role corresponds to one working node IP address collection, and each working node IP address collection comprises at least one working node IP address.
The working node access mode configuration data comprises: the system comprises working node IP addresses, service port data, SSH remote access users and SSH remote access passwords, wherein each working node IP address corresponds to one service port data, one SSH remote access user and one SSH remote access password.
The service role configuration data of the working node comprises: the service roles of the working nodes and the service role configuration data, wherein each service role of the working nodes corresponds to one service role configuration data. The service role configuration data is configuration data required by the working node to realize the service role of the working node.
For S42, the configuration service module is invoked to store the working node configuration data in the storage node, thereby facilitating automated localized deployment.
In an embodiment, the step of invoking the target container type localized deployment device to perform distributed deployment and service startup of a work node service cluster according to the work node configuration data in the storage node in a remote execution manner to obtain a target work node service cluster includes:
s51: calling a deployment service module of the target container type localization deployment device, adopting an SSH remote SHELL command, and respectively carrying out mirror image installation, parameter initialization and starting of application service on each working node corresponding to the working node configuration data according to a version warehouse module of the target container type localization deployment device and the working node configuration data in the storage node to obtain a working node deployment result corresponding to each working node;
s52: and when the deployment results of all the working nodes are successful, calling the deployment service module, and performing mutual communication processing on the application services corresponding to all the working nodes according to the working node configuration data in the storage node to obtain the target working node service cluster.
According to the embodiment, the deployment service module of the target container type localization deployment device is adopted to automatically deploy the application service and start the cluster on the working node, so that the deployment error rate is reduced, and the system deployment construction time is reduced; and the target container type localized deployment device is adopted, so that the deployment process does not depend on external resources, and the self-adaptive capacity of the system in the complex hardware environment is improved.
For S51, the deployment service module of the target container type localized deployment device is called, an SSH remote SHELL command is adopted, an application service image is obtained from the version warehouse module of the target container type localized deployment device according to the working node configuration data in the storage node, and image installation, parameter initialization, and startup of an application service are sequentially performed on the corresponding working nodes, so as to obtain the respective working node deployment results of the working nodes.
SSH remote SHELL commands, i.e., SHELL commands that employ the remote under SSH framework.
The SHELL command interactively interprets and executes the command input by the user or automatically interprets and executes a preset series of commands.
For S52, when the deployment results of all the working nodes are successful, it means that all the application services corresponding to the application system to be deployed have been successfully installed, at this time, the deployment service module is called, according to the working node configuration data in the storage node, the application services corresponding to all the working nodes are mutually communicated, and all the working nodes that are mutually communicated are taken as the target working node service cluster.
In an embodiment, the step of calling the deployment service module of the target container type localized deployment device, using an SSH remote SHELL command, and according to the version warehouse module of the target container type localized deployment device and the working node configuration data in the storage node, performing mirror image installation, parameter initialization, and startup of an application service on each working node corresponding to the working node configuration data, respectively, to obtain a working node deployment result corresponding to each working node includes:
s511: calling the deployment service module, and extracting one working node from the working node corresponding to the working node configuration data as a working node to be processed;
s512: calling the deployment service module, and acquiring an application service mirror image from the version warehouse module according to the working node to be processed and the working node configuration data to obtain the application service mirror image;
s513: calling the deployment service module, and storing the application service image into a Docker virtualization container in a server corresponding to the working node to be processed;
s514: calling the deployment service module, and carrying out mirror image installation on application service according to the working node configuration data and the application service mirror image in the Docker virtualization container in the server corresponding to the working node to be processed by adopting an SSH remote SHELL command to obtain the application service to be initialized;
s515: calling the deployment service module, and initializing the parameters of the application service to be initialized according to the configuration data of the working node by adopting an SSH remote SHELL command to obtain the application service to be started;
s516: calling the deployment service module, starting the application service to be started according to the working node configuration data by adopting an SSH remote SHELL command, and determining that the working node deployment result corresponding to the working node to be processed is successful when the starting is successful;
s517: and repeatedly executing the step of calling the deployment service module and extracting one working node from the working nodes corresponding to the working node configuration data as a working node to be processed until the working node deployment result corresponding to each working node is determined.
In the embodiment, the deployment service module of the target container type localization deployment device is used for automatically deploying the application service to the working node, so that the deployment error rate is reduced, and the construction time of system deployment is reduced; and the target container type localized deployment device is adopted, so that the deployment process does not depend on external resources, and the self-adaptive capacity of the system in the complex hardware environment is improved.
And S511, calling the deployment service module, sequentially extracting one working node from all the working nodes corresponding to the working node configuration data, and taking the extracted working node as a working node to be processed.
And S512, calling the deployment service module, determining an application service identifier according to the working node to be processed and the working node configuration data, acquiring an application service image from the version warehouse module according to the application service identifier, and taking the acquired application service image as the application service image.
The application service identifier may be an identifier that uniquely identifies an application service, such as an application service name and an application service ID.
It is understood that the application system to be deployed also serves as an application service.
For step S513, the deployment service module is called, and the application service image is stored in a Docker virtualization container in the server corresponding to the to-be-processed working node, so as to provide support for locally obtaining the application service image, which is beneficial to improving the efficiency of working node deployment.
For step S514, the deployment service module is called, an SSH remote SHELL command is adopted, and according to the working node configuration data and the application service image in the Docker virtualization container in the server corresponding to the working node to be processed, image installation of the application service is performed on the working node to be processed, and the application service that is installed is used as the application service to be initialized.
For S515, the deployment service module is called, an SSH remote SHELL command is adopted, and according to the working node configuration data, the parameters of the application service to be initialized are initialized, that is, the existing application service in the working node to be processed is closed and unloaded, and after the initialization is completed, the application service to be initialized is used as the application service to be started, so that errors caused by data residue of the old application service are avoided, and the probability of errors is reduced.
For step S516, the deployment service module is called, an SSH remote SHELL command is adopted, the application service to be started is started according to the working node configuration data, and when the application service to be started is started successfully, the working node deployment result corresponding to the working node to be processed is determined to be successful; and when the application service to be started is not successfully started, determining that the working node deployment result corresponding to the working node to be processed is failure.
And for the step S517, repeating the step S511 to the step S517 until the working node deployment result corresponding to each working node is determined.
In an embodiment, after the step of determining the target application system corresponding to the application system to be deployed according to the target working node service cluster, the target management node, and the storage node, the method further includes:
s7: calling a configuration service module of the target container type localization deployment device, monitoring working node service operation data of the target working node service cluster, and storing the working node service operation data in an operation data file of the storage node;
s8: and calling the configuration service module, acquiring an operation data display request, responding to the operation data display request, and displaying a work node operation data interface according to the operation data file in the storage node to obtain a target work node operation data interface.
In the embodiment, the target working node service cluster of the target application system is monitored through the configuration service module of the target container type localization deployment device, and the working node operation data interface display is performed according to the operation data file in the storage node, so that operation and maintenance personnel do not need to go to each working node to acquire the working node service operation data, the one-click working node operation data interface display is realized, and the workload of the operation and maintenance personnel is reduced.
For S7, the configuration service module of the target container type localized deployment device is called to receive the working node service operation data actively sent by the target working node service cluster, and store the received working node service operation data in the operation data file of the storage node; and the configuration service module of the target container type localized deployment device actively acquires working node service operation data from the target working node service cluster by adopting an SSH remote SHELL command, and stores the acquired working node service operation data in an operation data file of the storage node. That is, listening includes: passive reception and active acquisition.
The worker node service operation data includes, but is not limited to: number of requests, number of calculations, error rate, query rate per second.
And S8, calling the configuration service module, acquiring an operation data display request input by a user, acquiring the operation data file from the storage node when the operation data display request is received, displaying in a working node operation data interface according to the acquired operation data file, and taking the successfully displayed working node operation data interface as a target working node operation data interface.
And executing a data display request, namely visually displaying the operation data file in the storage node.
The working node operation data interface is a WEB interface.
With reference to fig. 2, the present application further proposes a container-based localized deployment system, said system comprising:
a request obtaining module 100, configured to obtain a container-type localized deployment request of an application system to be deployed;
a target container type localized deployment device determining module 200, configured to respond to the deployment request, obtain a mirror image delivery file of the container type localized deployment device from a container of a management node, and according to the mirror image delivery file, perform installation and operation of the container type localized deployment device in the management node to obtain the target container type localized deployment device;
a target management node determining module 300, configured to invoke the target container type localized deployment device, obtain operation deployment permission data from a storage node, obtain a server hardware identification code of the management node, and perform authorization verification according to the server hardware identification code and the operation deployment permission data to obtain a target management node;
a working node configuration data obtaining module 400, configured to invoke the target container type localized deployment device, obtain working node configuration data, and store the working node configuration data in the storage node;
a target work node service cluster determining module 500, configured to invoke the target container type localized deployment device, and perform distributed deployment and service startup of a work node service cluster according to the work node configuration data in the storage node in a remote execution manner to obtain a target work node service cluster;
a target application system determining module 600, configured to determine, according to the target working node service cluster, the target management node, and the storage node, a target application system corresponding to the application system to be deployed.
The embodiment obtains the mirror image delivery file of the container type localized deployment device from the container of the management node by responding the deployment request of the container type localized deployment, installs and operates the container type localized deployment device in the management node according to the mirror image delivery file to obtain the target container type localized deployment device, then calls the target container type localized deployment device, obtains the operation deployment permission data from the storage node, obtains the server hardware identification code of the management node, carries out authorization verification according to the server hardware identification code and the operation deployment permission data to obtain the target management node, obtains the working node configuration data, stores the working node configuration data in the storage node, calls the target container type localized deployment device, adopts a remote execution mode to carry out distributed deployment and service starting of the working node service cluster according to the working node configuration data in the storage node, the method comprises the steps of obtaining a target working node service cluster, performing distributed deployment and service starting of the working node service cluster according to working node configuration data in a storage node in a remote execution mode to obtain the target working node service cluster, and finally determining a target application system corresponding to an application system to be deployed according to the target working node service cluster, a target management node and the storage node, so that automatic local deployment and automatic authorization verification are achieved, deployment error rate is reduced, and system deployment construction time is shortened; and the target container type localized deployment device is adopted, so that the deployment process does not depend on external resources, and the self-adaptive capacity of the system in the complex hardware environment is improved.
Referring to fig. 3, a computer device, which may be a server and whose internal structure may be as shown in fig. 3, is also provided in the embodiment of the present application. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer equipment is used for storing data such as container type localized deployment methods and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a container-based localized deployment method. The container type localization deployment method comprises the following steps: acquiring a container type localized deployment request of an application system to be deployed; responding to the deployment request, acquiring a mirror image delivery file of the container type localized deployment device from a container of a management node, and installing and operating the container type localized deployment device in the management node according to the mirror image delivery file to obtain a target container type localized deployment device; calling the target container type localization deployment device, acquiring operation deployment permission data from a storage node, acquiring a server hardware identification code of the management node, and performing authorization verification according to the server hardware identification code and the operation deployment permission data to obtain a target management node; calling the target container type localization deployment device, acquiring working node configuration data, and storing the working node configuration data in the storage node; calling the target container type localized deployment device, and performing distributed deployment and service starting of a working node service cluster according to the working node configuration data in the storage nodes in a remote execution mode to obtain a target working node service cluster; and determining a target application system corresponding to the application system to be deployed according to the target working node service cluster, the target management node and the storage node.
The embodiment obtains the mirror image delivery file of the container type localized deployment device from the container of the management node by responding the deployment request of the container type localized deployment, installs and operates the container type localized deployment device in the management node according to the mirror image delivery file to obtain the target container type localized deployment device, then calls the target container type localized deployment device, obtains the operation deployment permission data from the storage node, obtains the server hardware identification code of the management node, carries out authorization verification according to the server hardware identification code and the operation deployment permission data to obtain the target management node, obtains the working node configuration data, stores the working node configuration data in the storage node, calls the target container type localized deployment device, adopts a remote execution mode to carry out distributed deployment and service starting of the working node service cluster according to the working node configuration data in the storage node, the method comprises the steps of obtaining a target working node service cluster, performing distributed deployment and service starting of the working node service cluster according to working node configuration data in a storage node in a remote execution mode to obtain the target working node service cluster, and finally determining a target application system corresponding to an application system to be deployed according to the target working node service cluster, a target management node and the storage node, so that automatic local deployment and automatic authorization verification are achieved, deployment error rate is reduced, and system deployment construction time is shortened; and the target container type localized deployment device is adopted, so that the deployment process does not depend on external resources, and the self-adaptive capacity of the system in the complex hardware environment is improved.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements a container-type localized deployment method, including the steps of: acquiring a container type localized deployment request of an application system to be deployed; responding to the deployment request, acquiring a mirror image delivery file of the container type localized deployment device from a container of a management node, and installing and operating the container type localized deployment device in the management node according to the mirror image delivery file to obtain a target container type localized deployment device; calling the target container type localization deployment device, acquiring operation deployment permission data from a storage node, acquiring a server hardware identification code of the management node, and performing authorization verification according to the server hardware identification code and the operation deployment permission data to obtain a target management node; calling the target container type localization deployment device, acquiring working node configuration data, and storing the working node configuration data in the storage node; calling the target container type localized deployment device, and performing distributed deployment and service starting of a working node service cluster according to the working node configuration data in the storage nodes in a remote execution mode to obtain a target working node service cluster; and determining a target application system corresponding to the application system to be deployed according to the target working node service cluster, the target management node and the storage node.
The container type localization deployment method comprises the steps of firstly responding to a container type localization deployment request, obtaining a mirror image delivery file of a container type localization deployment device from a container of a management node, installing and operating the container type localization deployment device in the management node according to the mirror image delivery file to obtain a target container type localization deployment device, then calling the target container type localization deployment device, obtaining operation deployment permission data from a storage node, obtaining a server hardware identification code of the management node, performing authorization verification according to the server hardware identification code and the operation deployment permission data to obtain the target management node, obtaining working node configuration data, storing the working node configuration data in the storage node, calling the target container type localization deployment device, and adopting a remote execution mode, distributed deployment and service startup of the working node service cluster are carried out according to working node configuration data in the storage nodes to obtain a target working node service cluster, distributed deployment and service startup of the working node service cluster are carried out according to the working node configuration data in the storage nodes in a remote execution mode to obtain the target working node service cluster, and finally a target application system corresponding to an application system to be deployed is determined according to the target working node service cluster, a target management node and the storage nodes, so that automatic local deployment and automatic authorization verification are realized, the deployment error rate is reduced, and the system deployment construction time is reduced; and the target container type localized deployment device is adopted, so that the deployment process does not depend on external resources, and the self-adaptive capacity of the system in the complex hardware environment is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A method for container-based localized deployment, the method comprising:
acquiring a container type localized deployment request of an application system to be deployed;
responding to the deployment request, acquiring a mirror image delivery file of the container type localized deployment device from a container of a management node, and installing and operating the container type localized deployment device in the management node according to the mirror image delivery file to obtain a target container type localized deployment device;
calling the target container type localization deployment device, acquiring operation deployment permission data from a storage node, acquiring a server hardware identification code of the management node, and performing authorization verification according to the server hardware identification code and the operation deployment permission data to obtain a target management node;
calling the target container type localization deployment device, acquiring working node configuration data, and storing the working node configuration data in the storage node;
calling the target container type localized deployment device, and performing distributed deployment and service starting of a working node service cluster according to the working node configuration data in the storage nodes in a remote execution mode to obtain a target working node service cluster;
and determining a target application system corresponding to the application system to be deployed according to the target working node service cluster, the target management node and the storage node.
2. The container type localized deployment method of claim 1, wherein the step of performing authorization verification according to the server hardware identification code and the operation deployment permission data to obtain the target management node comprises:
calling a license service module of the target container type localization deployment device, and performing authorization verification according to the server hardware identification code and the operation deployment license data to obtain an authorization verification result;
and when the authorization verification result is that the authorization verification result is passed, calling the permission service module to determine that the management node is the target management node.
3. The container-based localized deployment method of claim 1, wherein said step of obtaining operational deployment permission data from a storage node is preceded by the step of:
acquiring a server hardware identification code of a management node to be permitted;
sending the server hardware identification code of the management node to be permitted to a permission processing end;
acquiring the operation deployment permission data sent by the permission processing terminal according to the server hardware identification code of the management node to be permitted, wherein the operation deployment permission data comprises: the hardware identification code of the server of the permitted management node, the service role information of the working node, the maximum operation quantity of the service role of the working node and the maximum operation specification of the service role of the working node;
storing the running deployment permission data in the storage node.
4. The container type localized deployment method of claim 1, wherein the step of invoking the target container type localized deployment device, obtaining working node configuration data, and storing the working node configuration data in the storage node comprises:
calling a configuration service module of the target container type localization deployment device, acquiring a deployment configuration request, responding to the deployment configuration request, displaying a visual configuration interface, and acquiring the working node configuration data according to the visual configuration interface, wherein the working node configuration data comprises: the method comprises the following steps that distribution condition configuration data of working nodes, working node access mode configuration data and service role configuration data of the working nodes are obtained;
and calling the configuration service module to store the configuration data of the working node in the storage node.
5. The container type localized deployment method according to claim 1, wherein the step of calling the target container type localized deployment device, performing distributed deployment and service startup of a work node service cluster according to the work node configuration data in the storage node in a remote execution manner, and obtaining a target work node service cluster comprises:
calling a deployment service module of the target container type localization deployment device, adopting an SSH remote SHELL command, and respectively carrying out mirror image installation, parameter initialization and starting of application service on each working node corresponding to the working node configuration data according to a version warehouse module of the target container type localization deployment device and the working node configuration data in the storage node to obtain a working node deployment result corresponding to each working node;
and when the deployment results of all the working nodes are successful, calling the deployment service module, and performing mutual communication processing on the application services corresponding to all the working nodes according to the working node configuration data in the storage node to obtain the target working node service cluster.
6. The container type localized deployment method according to claim 5, wherein the step of calling the deployment service module of the target container type localized deployment device, using an SSH remote SHELL command, and according to the version warehouse module of the target container type localized deployment device and the working node configuration data in the storage node, performing mirror image installation, parameter initialization, and startup of application services on each working node corresponding to the working node configuration data, respectively, to obtain the working node deployment result corresponding to each working node, includes:
calling the deployment service module, and extracting one working node from the working node corresponding to the working node configuration data as a working node to be processed;
calling the deployment service module, and acquiring an application service mirror image from the version warehouse module according to the working node to be processed and the working node configuration data to obtain the application service mirror image;
calling the deployment service module, and storing the application service image into a Docker virtualization container in a server corresponding to the working node to be processed;
calling the deployment service module, and carrying out mirror image installation on application service according to the working node configuration data and the application service mirror image in the Docker virtualization container in the server corresponding to the working node to be processed by adopting an SSH remote SHELL command to obtain the application service to be initialized;
calling the deployment service module, and initializing the parameters of the application service to be initialized according to the configuration data of the working node by adopting an SSH remote SHELL command to obtain the application service to be started;
calling the deployment service module, starting the application service to be started according to the working node configuration data by adopting an SSH remote SHELL command, and determining that the working node deployment result corresponding to the working node to be processed is successful when the starting is successful;
and repeatedly executing the step of calling the deployment service module and extracting one working node from the working nodes corresponding to the working node configuration data as a working node to be processed until the working node deployment result corresponding to each working node is determined.
7. The container type localized deployment method according to claim 1, wherein after the step of determining the target application system corresponding to the application system to be deployed according to the target work node service cluster, the target management node and the storage node, the method further comprises:
calling a configuration service module of the target container type localization deployment device, monitoring working node service operation data of the target working node service cluster, and storing the working node service operation data in an operation data file of the storage node;
and calling the configuration service module, acquiring an operation data display request, responding to the operation data display request, and displaying a work node operation data interface according to the operation data file in the storage node to obtain a target work node operation data interface.
8. A container-based localized deployment system, the system comprising:
the request acquisition module is used for acquiring a container type localized deployment request of the application system to be deployed;
the target container type localized deployment device determining module is used for responding to the deployment request, acquiring a mirror image delivery file of the container type localized deployment device from a container of a management node, and installing and operating the container type localized deployment device in the management node according to the mirror image delivery file to obtain the target container type localized deployment device;
the target management node determining module is used for calling the target container type localized deployment device, acquiring operation deployment permission data from a storage node, acquiring a server hardware identification code of the management node, and performing authorization verification according to the server hardware identification code and the operation deployment permission data to obtain a target management node;
the working node configuration data acquisition module is used for calling the target container type localization deployment device, acquiring working node configuration data and storing the working node configuration data in the storage node;
the target working node service cluster determining module is used for calling the target container type localized deployment device, and performing distributed deployment and service starting of a working node service cluster according to the working node configuration data in the storage nodes in a remote execution mode to obtain a target working node service cluster;
and the target application system determining module is used for determining a target application system corresponding to the application system to be deployed according to the target working node service cluster, the target management node and the storage node.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202110602680.4A 2021-05-31 2021-05-31 Container type localization deployment method, system, equipment and storage medium Active CN113204410B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110602680.4A CN113204410B (en) 2021-05-31 2021-05-31 Container type localization deployment method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110602680.4A CN113204410B (en) 2021-05-31 2021-05-31 Container type localization deployment method, system, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113204410A true CN113204410A (en) 2021-08-03
CN113204410B CN113204410B (en) 2024-01-30

Family

ID=77024267

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110602680.4A Active CN113204410B (en) 2021-05-31 2021-05-31 Container type localization deployment method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113204410B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338384A (en) * 2021-12-30 2022-04-12 上海柯林布瑞信息技术有限公司 Multi-node and service rapid networking method and device based on local area network
CN114661427A (en) * 2022-05-18 2022-06-24 深圳致星科技有限公司 Node management method and system for computing cluster for deploying containerized application service
CN116880897A (en) * 2023-09-06 2023-10-13 中国电子科技集团公司第十研究所 Container type software package management method for aerospace testing operation control information system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108415795A (en) * 2018-02-12 2018-08-17 人和未来生物科技(长沙)有限公司 A kind of container Dockerfile, container mirror image rapid generation and system
CN108924217A (en) * 2018-06-29 2018-11-30 中山大学 A kind of distribution cloud system Automation arranging method
CN111782232A (en) * 2020-07-31 2020-10-16 平安银行股份有限公司 Cluster deployment method and device, terminal equipment and storage medium
WO2020253079A1 (en) * 2019-06-17 2020-12-24 平安科技(深圳)有限公司 Jmeter-based distributed performance test method and apparatus, device, and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108415795A (en) * 2018-02-12 2018-08-17 人和未来生物科技(长沙)有限公司 A kind of container Dockerfile, container mirror image rapid generation and system
CN108924217A (en) * 2018-06-29 2018-11-30 中山大学 A kind of distribution cloud system Automation arranging method
WO2020253079A1 (en) * 2019-06-17 2020-12-24 平安科技(深圳)有限公司 Jmeter-based distributed performance test method and apparatus, device, and storage medium
CN111782232A (en) * 2020-07-31 2020-10-16 平安银行股份有限公司 Cluster deployment method and device, terminal equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338384A (en) * 2021-12-30 2022-04-12 上海柯林布瑞信息技术有限公司 Multi-node and service rapid networking method and device based on local area network
CN114661427A (en) * 2022-05-18 2022-06-24 深圳致星科技有限公司 Node management method and system for computing cluster for deploying containerized application service
CN114661427B (en) * 2022-05-18 2022-08-19 深圳致星科技有限公司 Node management method and system for computing cluster for deploying containerized application service
CN116880897A (en) * 2023-09-06 2023-10-13 中国电子科技集团公司第十研究所 Container type software package management method for aerospace testing operation control information system
CN116880897B (en) * 2023-09-06 2023-12-08 中国电子科技集团公司第十研究所 Container type software package management method for aerospace testing operation control information system

Also Published As

Publication number Publication date
CN113204410B (en) 2024-01-30

Similar Documents

Publication Publication Date Title
CN113204410B (en) Container type localization deployment method, system, equipment and storage medium
US10884808B2 (en) Edge computing platform
US10931599B2 (en) Automated failure recovery of subsystems in a management system
US10620941B2 (en) Updating and rolling back known good states of information handling systems
US8819202B1 (en) Service configuration and deployment engine for provisioning automation
CN111611054B (en) Application deployment method and device
CN112035228A (en) Resource scheduling method and device
CN111708702A (en) Simulation test method, client, server, system and readable storage medium
JP2013522769A (en) Virtual machine image update service
CN111654408B (en) Device monitoring method, device, computer device and storage medium
CN110531984B (en) Code compiling method, device, system, computer equipment and storage medium
CN113315754B (en) Intelligent linkage method, device, equipment and medium for firewall of container visit
US10291466B2 (en) Computing infrastructure provisioning
CN113220416A (en) Cluster node expansion system based on cloud platform, implementation method and operation method
CN112363775A (en) Method, system and storage medium for dynamically modifying microservice configuration information
CN114168179A (en) Micro-service management method, device, computer equipment and storage medium
CN113419818B (en) Basic component deployment method, device, server and storage medium
CN113312059A (en) Service processing system and method and cloud native system
CN113672336A (en) K8S container cluster deployment method, device, equipment and readable storage medium
CN112799970A (en) Test data processing method, device, electronic equipment and medium
US20130339871A1 (en) Software Application Abstraction System and Method
CN115758334A (en) Cloud application access method and device, electronic equipment and storage medium
US8788630B2 (en) System and method for proxy address neutrality
US11425203B2 (en) Commissioning a virtualized network function
CN113472599B (en) Data communication method and system of network node

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