CN114138402A - Container cluster deployment platform - Google Patents

Container cluster deployment platform Download PDF

Info

Publication number
CN114138402A
CN114138402A CN202111244592.8A CN202111244592A CN114138402A CN 114138402 A CN114138402 A CN 114138402A CN 202111244592 A CN202111244592 A CN 202111244592A CN 114138402 A CN114138402 A CN 114138402A
Authority
CN
China
Prior art keywords
container
application
target
unit
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111244592.8A
Other languages
Chinese (zh)
Inventor
刘坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Yindun Tai'an Network Technology Co ltd
Original Assignee
Beijing Yindun Tai'an Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Yindun Tai'an Network Technology Co ltd filed Critical Beijing Yindun Tai'an Network Technology Co ltd
Priority to CN202111244592.8A priority Critical patent/CN114138402A/en
Publication of CN114138402A publication Critical patent/CN114138402A/en
Pending legal-status Critical Current

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/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/45562Creating, deleting, cloning virtual machine instances
    • 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/45579I/O management, e.g. providing access to device drivers or storage
    • 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/45591Monitoring or debugging support
    • 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/45595Network integration; Enabling network access in virtual machine instances

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)

Abstract

The invention provides a container cluster deployment platform, which comprises: the information acquisition module is used for acquiring container cluster information and determining a target mirror image according to the container cluster information; the configuration module is used for acquiring the mirror image version of the target mirror image and the running network of the application container, performing high-level configuration on the application container and determining a running environment; and the deployment module is used for determining the number of the application instances to be added in the running environment, configuring the application based on the number of the application instances to be added and finishing container cluster deployment based on a configuration result. The target mirror image is determined by reading the container cluster information, so that high-level configuration is realized according to the mirror image version of the target mirror image and the running network, and then the application example is added for deployment.

Description

Container cluster deployment platform
Technical Field
The invention relates to the technical field of computers, in particular to a container cluster deployment platform.
Background
At present, virtualization technology is widely known, and is a well-recognized server resource sharing mode, and IT can implement dynamic allocation of IT resources, thereby improving the resource utilization rate of IT resources;
however, the virtualization technology cannot realize compatibility of the operating environment, so that in the operating process, when one application program has a problem, the whole operating environment is affected, great inconvenience is brought, and a great amount of manpower is wasted.
Disclosure of Invention
The invention provides a container cluster deployment platform which is used for determining a target image by reading container cluster information, so that high-level configuration is realized according to the image version of the target image and an operating network, and then an application example is added for deployment.
The invention provides a container cluster deployment platform, which comprises:
the information acquisition module is used for acquiring container cluster information and determining a target mirror image according to the container cluster information;
the configuration module is used for acquiring the mirror image version of the target mirror image and the running network of the application container, performing high-level configuration on the application container and determining a running environment;
and the deployment module is used for determining the number of the application instances to be added in the running environment, configuring the application based on the number of the application instances to be added and finishing container cluster deployment based on a configuration result.
Preferably, the configuration module further includes:
the high-level configuration includes: setting environment variables, service ports and service states;
wherein, before adding the service state, the method comprises the following steps: a storage volume is created.
Preferably, the container cluster deployment platform for creating the storage volume includes: and determining a mounting path according to the first selection frame, and establishing a storage volume according to the mounting path based on the second selection frame.
Preferably, the container cluster deployment platform includes:
the system comprises a container cluster acquisition unit, a container cluster acquisition unit and a container information reading unit, wherein the container cluster acquisition unit is used for acquiring a container cluster in a target project and reading container information of N containers in the container cluster;
the information processing unit is used for respectively carrying out information processing on the container information of the N containers and determining N container characteristic values of the N containers;
and the evaluation unit is used for evaluating the N containers one by one based on the N container characteristic values, acquiring N evaluation results, and uploading the N evaluation results to a cloud platform for display.
Preferably, the container cluster deployment platform, the information obtaining module, further includes:
the reading unit is used for reading the cluster information of the container cluster, determining the information identifier of the container cluster based on the cluster information, and generating an information matching instruction based on the information identifier;
the instruction reading unit is used for reading the information matching instruction and determining the instruction type of the information matching instruction and the instruction operation logic of the information matching instruction;
the protocol generation unit is used for acquiring the authority information of the mirror image warehouse;
the protocol generation unit is further configured to determine a protocol generation format based on the instruction type of the information matching instruction, and determine protocol content based on the authority information of the mirror repository and the instruction operation logic;
the protocol generation unit is further used for generating an interaction protocol based on the protocol generation format and the protocol content;
and the target mirror image acquisition unit is used for establishing an interactive link between the container cluster and the mirror image warehouse based on the interactive protocol, matching the container cluster and the mirror image in the mirror image warehouse based on the interactive link and according to the information matching instruction, and determining a target mirror image based on a matching result.
Preferably, the container cluster deployment platform, the target image obtaining unit, further includes:
the mirror image file information acquisition unit is used for acquiring a file ciphertext of the target mirror image and determining a mirror image private key of the target mirror image based on the file ciphertext;
the verification information acquisition unit is used for decrypting the file ciphertext based on the mirror image private key and determining a verification code for verifying the target mirror image;
the verification unit is used for performing security verification on the target mirror image based on the verification code;
when the file ciphertext corresponds to the verification code, the target mirror image passes the safety verification and is received;
and when the file ciphertext does not correspond to the verification code, the target mirror image does not pass the safety verification, and meanwhile, the target mirror image is rejected.
Preferably, the container cluster deployment platform includes:
a container information obtaining unit, configured to read basic information of the application container, where the basic information includes a service type and a service function of the application container;
the container information acquisition unit is further configured to determine a feature value in the application container basic information according to the reading result, and determine a target extraction factor based on the feature value;
the matching unit is used for matching a target image version number corresponding to the target extraction factor in a preset number database, and selecting an available target operation network name in a preset available network candidate list, wherein the service type and the service function correspond to the image version;
the configuration window unit is used for respectively selecting the target mirror image version number, the mirror image version corresponding to the target operation network name and the available operation network in a target position area based on a preset configuration window;
the configuration window unit is used for acquiring the network attribute of the running network and determining the environment variable of the application container in service running based on the network attribute, wherein the environment variable comprises a corresponding environment name to be modified and a corresponding value;
the configuration window unit is also used for carrying out corresponding adding, modifying or deleting operations on the corresponding environment name and the corresponding value based on the environment variable, completing the setting of the environment variable and triggering the port configuration unit after the setting of the environment variable is completed;
a port configuration unit, configured to determine available service ports and service states in the application container based on an environment variable setting result, and determine whether a current available service port is adapted to service operation of the application container based on the service states, where the number of the available service ports is at least one;
if the current available service port is matched with the service operation of the application container, completing the configuration of the available service port;
otherwise, selecting a target protocol corresponding to the available port based on the basic information of the application container, and completing the configuration of the available service port based on the target protocol;
the advanced configuration unit is used for checking the configured mirror image version, the environment variable and the port configuration based on a preset checking method and judging whether the application container can normally run or not;
if the application container can normally run, judging that the advanced configuration of the application container is finished, and obtaining the running environment of the application container;
otherwise, judging that the high-level configuration of the application container has a bug, and performing the high-level configuration on the application container again until the application container can normally run.
Preferably, the container cluster deployment platform, the high-level configuration unit, includes:
the verification unit is used for performing trial operation on the application container based on the configured mirror image version, the environment variable and the port, and acquiring operation data of the application container during the trial operation;
the checking unit is used for comparing the operation data with preset standard operation data and judging whether the operation of the application container is normal or not;
if the configuration is normal, sending the configuration completion to the management terminal, and performing normal operation;
otherwise, determining the difference data between the operation data and the preset standard operation data;
the fault searching unit is used for acquiring attribute information of the difference data and determining a fault configuration item corresponding to the difference data based on the attribute information, wherein the fault configuration item is at least one of a mirror image version, an environment variable and a port configuration;
and the fault elimination unit is used for determining the fault type of the fault configuration item based on the difference data, matching a target fault elimination scheme from preset fault elimination schemes based on the fault type, and reconfiguring the fault configuration item based on the target fault elimination scheme until the operation of the application container is judged to be normal.
Preferably, the deployment module includes:
the space reading unit is used for reading the number of application examples to be added, estimating a first space memory of the application examples to be added based on the number of the application examples to be added, and reading a second space memory which can be stored in the current application container;
the comparison unit is used for comparing the first space memory with the second space memory and judging whether the application container can contain all application instances to be added;
when the first space memory is smaller than or equal to the second space memory, determining that the application container can contain all application instances to be added;
otherwise, judging that the application container can not contain all application instances to be added;
the capacity expansion unit is used for determining a target space memory of the application container to be subjected to capacity expansion according to the first space memory and the second space memory when the application container cannot accommodate the application instance to be added;
the capacity expansion unit is configured to acquire identification information of the application container, and generate a capacity expansion request for the application container based on the identification information of the application container and the target space memory;
the capacity expansion unit is further configured to create a capacity expansion interface for the application container based on the capacity expansion request, define the capacity expansion interface, and call a target parameter for the defined capacity expansion interface based on the capacity expansion request, where the target parameter includes: identification information of the application container and the target memory space;
the capacity expansion unit is further configured to expand the application container based on the capacity expansion interface and the target parameter to obtain a target application container;
and the instance deployment unit is used for configuring the application instance in the target application container, acquiring an instance memory of the configured application instance, establishing a deployment layer according to the instance memory, storing the application instance in the target application container based on the deployment layer, and completing container cluster deployment.
Preferably, the deployment module further includes:
the operation unit is used for performing trial operation on the platform after the container cluster is deployed and determining platform operation parameters;
the analysis unit is used for analyzing the platform operation parameters, generating an analysis result, verifying the analysis result in a verification model and judging whether the container cluster deployment meets the standard or not;
when the output of the check result is y, judging that the container cluster deployment meets the standard;
and when the output of the check result is n, judging that the container cluster deployment does not meet the standard, and simultaneously, redeploying the application instance.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a block diagram of a container cluster deployment platform according to an embodiment of the present invention;
fig. 2 is a structural diagram of an information obtaining module in a container cluster deployment platform according to an embodiment of the present invention;
fig. 3 is a structural diagram of a configuration module in a container cluster deployment platform according to an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
Example 1:
the embodiment provides a container cluster deployment platform, as shown in fig. 1, including:
the information acquisition module is used for acquiring container cluster information and determining a target mirror image according to the container cluster information;
the configuration module is used for acquiring the mirror image version of the target mirror image and the running network of the application container, performing high-level configuration on the application container and determining a running environment;
and the deployment module is used for determining the number of the application instances to be added in the running environment, configuring the application based on the number of the application instances to be added and finishing container cluster deployment based on a configuration result.
In this embodiment, the container cluster may be a technology in which multiple physical machines are abstracted into a logically single scheduling entity, and provides functions such as resource scheduling, service discovery, elastic scaling, load balancing, and the like for containerized applications, and simultaneously monitors and manages the entire server cluster to provide high-quality, uninterrupted application services.
In this embodiment, the target image may be a file or an installation package suitable for deployment of the application when the container cluster is deployed.
In this embodiment, the image may typically be an operating system file, a file of the application itself, a software package and a library file on which the application depends.
In this embodiment, the high-level configuration includes: setting environment variables, service ports and service states, wherein before adding the service states, the method comprises the following steps: creating a storage volume;
in this embodiment, creating the storage volume comprises: determining a mount path according to a first selection box, and creating a storage volume according to the mount path based on a second selection box, wherein the first selection box and the second selection box are in a setting window popped up when an application container is configured.
In this embodiment, the mount path may be a file path that is made available by the operating system to computer files and directories on a storage device for access by a user through the computer's file system.
The beneficial effects of the above technical scheme are: the target mirror image is determined by reading the container cluster information, so that high-level configuration is realized according to the mirror image version of the target mirror image and the running network, and then the application example is added for deployment.
Example 2:
on the basis of the foregoing embodiment 1, this embodiment provides a container cluster deployment platform, as shown in fig. 2, where the information obtaining module includes:
the system comprises a container cluster acquisition unit, a container cluster acquisition unit and a container information reading unit, wherein the container cluster acquisition unit is used for acquiring a container cluster in a target project and reading container information of N containers in the container cluster;
the information processing unit is used for respectively carrying out information processing on the container information of the N containers and determining N container characteristic values of the N containers;
and the evaluation unit is used for evaluating the N containers one by one based on the N container characteristic values, acquiring N evaluation results, and uploading the N evaluation results to a cloud platform for display.
In this embodiment, the target item refers to an event corresponding to an application container, and one item includes a plurality of application containers.
In this embodiment, the container information may be the name of the container, the type of the container, and the like.
In this embodiment, the information processing may be operations such as performing cleaning and screening on the container information.
In this embodiment, the container characteristic value refers to a key data segment that can represent an application container attribute.
The beneficial effects of the above technical scheme are: by acquiring the container information of the container, and correspondingly processing and evaluating the container information, the mirror image file corresponding to the application container can be conveniently and accurately acquired according to the evaluation result, so that convenience is brought to advanced configuration of the application container.
Example 3:
on the basis of the foregoing embodiment 1, this embodiment provides a container cluster deployment platform, where the information acquisition module further includes:
the reading unit is used for reading the cluster information of the container cluster, determining the information identifier of the container cluster based on the cluster information, and generating an information matching instruction based on the information identifier;
the instruction reading unit is used for reading the information matching instruction and determining the instruction type of the information matching instruction and the instruction operation logic of the information matching instruction;
the protocol generation unit is used for acquiring the authority information of the mirror image warehouse;
the protocol generation unit is further configured to determine a protocol generation format based on the instruction type of the information matching instruction, and determine protocol content based on the authority information of the mirror repository and the instruction operation logic;
the protocol generation unit is further used for generating an interaction protocol based on the protocol generation format and the protocol content;
and the target mirror image acquisition unit is used for establishing an interactive link between the container cluster and the mirror image warehouse based on the interactive protocol, matching the container cluster and the mirror image in the mirror image warehouse based on the interactive link and according to the information matching instruction, and determining a target mirror image based on a matching result.
In this embodiment, the information identifier may be a label used to mark the container information, and the type or kind of information of the current container information can be determined quickly and accurately by the label.
In this embodiment, the instruction operation logic may be the execution order, etc. of the matches involved in the instruction.
In this embodiment, the rights information is used to determine the access rights of the user.
In this embodiment, the interaction protocol may be a bridge used to connect the container cluster and the mirror repository, and the interactive link between the container cluster and the mirror repository may be constructed through the interaction protocol.
In this embodiment, the target image may be one or more of an operating system file that matches the application container information, a file of the application itself, a software package on which the application depends, and a library file.
The beneficial effects of the above technical scheme are: by connecting the container cluster with the mirror image warehouse, the required mirror image file can be accurately acquired according to the basic information of the container, and the mirror image required by container configuration can be accurately acquired, so that the accuracy and efficiency of application container configuration are improved, the time cost and labor cost of deployment are reduced, and the container cluster is more compatible and more favorable for continuous integration.
Example 4:
on the basis of embodiment 3 above, this embodiment provides a container cluster deployment platform, where the target image obtaining unit further includes:
the mirror image file information acquisition unit is used for acquiring a file ciphertext of the target mirror image and determining a mirror image private key of the target mirror image based on the file ciphertext;
the verification information acquisition unit is used for decrypting the file ciphertext based on the mirror image private key and determining a verification code for verifying the target mirror image;
the verification unit is used for performing security verification on the target mirror image based on the verification code;
when the file ciphertext corresponds to the verification code, the target mirror image passes the safety verification and is received;
and when the file ciphertext does not correspond to the verification code, the target mirror image does not pass the safety verification, and meanwhile, the target mirror image is rejected.
In this embodiment, the file ciphertext may be an encrypted file obtained by the image file under the key encryption effect.
In this embodiment, the mirror private key may be an encryption or decryption rule corresponding to the encryption or decryption of the file.
The beneficial effects of the above technical scheme are: the obtained target mirror image is subjected to security verification, and the corresponding mirror image file is further obtained safely and accurately, so that convenience is provided for advanced configuration of the application container, the container is convenient to deploy, and a large amount of manpower and material resources are saved.
Example 5:
on the basis of the foregoing embodiment 1, this embodiment provides a container cluster deployment platform, as shown in fig. 3, where the configuration module includes:
a container information obtaining unit, configured to read basic information of the application container, where the basic information includes a service type and a service function of the application container;
the container information acquisition unit is further configured to determine a feature value in the application container basic information according to the reading result, and determine a target extraction factor based on the feature value;
the matching unit is used for matching a target image version number corresponding to the target extraction factor in a preset number database, and selecting an available target operation network name in a preset available network candidate list, wherein the service type and the service function correspond to the image version;
the configuration window unit is used for respectively selecting the target mirror image version number, the mirror image version corresponding to the target operation network name and the available operation network in a target position area based on a preset configuration window;
the configuration window unit is used for acquiring the network attribute of the running network and determining the environment variable of the application container in service running based on the network attribute, wherein the environment variable comprises a corresponding environment name to be modified and a corresponding value;
the configuration window unit is also used for carrying out corresponding adding, modifying or deleting operations on the corresponding environment name and the corresponding value based on the environment variable, completing the setting of the environment variable and triggering the port configuration unit after the setting of the environment variable is completed;
a port configuration unit, configured to determine available service ports and service states in the application container based on an environment variable setting result, and determine whether a current available service port is adapted to service operation of the application container based on the service states, where the number of the available service ports is at least one;
if the current available service port is matched with the service operation of the application container, completing the configuration of the available service port;
otherwise, selecting a target protocol corresponding to the available port based on the basic information of the application container, and completing the configuration of the available service port based on the target protocol;
the advanced configuration unit is used for checking the configured mirror image version, the environment variable and the port configuration based on a preset checking method and judging whether the application container can normally run or not;
if the application container can normally run, judging that the advanced configuration of the application container is finished, and obtaining the running environment of the application container;
otherwise, judging that the high-level configuration of the application container has a bug, and performing the high-level configuration on the application container again until the application container can normally run.
In this embodiment, the basic information of the application container may be the type, name, size of the application container, and the service type and implemented function corresponding to the application container.
In this embodiment, the characteristic value in the basic information may be a specific numerical value corresponding to the key data segment in the application container information, and may be, for example, an average value, an extreme value, and the like.
In this embodiment, the target extraction factor may be a reference for measuring the use of the mirrored version.
In this embodiment, the preset number database is set in advance, and a plurality of mirror image versions are stored in the preset number database.
In this embodiment, the version number of the target image may be a number assigned to each image, and the version information of the current image may be accurately determined by the number.
In this embodiment, the preset available network candidate list is set in advance, and a plurality of available network names are stored in the preset available network candidate list.
In this embodiment, the target operation network name refers to a network name suitable for the current application container, and belongs to one of the preset available network candidate lists.
In this embodiment, the preset configuration window is set in advance.
In this embodiment, the target location area refers to a selection box set in a preset configuration window for the mirror version and the network name.
In this embodiment, the network attribute may be an operation speed of the network, a setting parameter that the network operation needs to satisfy, and the like.
The beneficial effects of the above technical scheme are: the method and the device have the advantages that accurate configuration of the image version, the environment variable, the port service state and the like required by the application container in the configuration process is realized, the application container meets the conditions required by the deployment when the container cluster is deployed, the container cluster is ensured to be deployed smoothly, the deployment of the container cluster is ensured, meanwhile, in the arranging process, verification of the configuration result is realized, the rigidness in the configuration process is ensured, the time cost and the labor cost of the deployment are reduced, the compatibility is stronger, and the method and the device are more favorable for continuous integration.
Example 6:
on the basis of the foregoing embodiment 5, this embodiment provides a container cluster deployment platform, which includes:
the verification unit is used for performing trial operation on the application container based on the configured mirror image version, the environment variable and the port, and acquiring operation data of the application container during the trial operation;
the checking unit is used for comparing the operation data with preset standard operation data and judging whether the operation of the application container is normal or not;
if the configuration is normal, sending the configuration completion to the management terminal, and performing normal operation;
otherwise, determining the difference data between the operation data and the preset standard operation data;
the fault searching unit is used for acquiring attribute information of the difference data and determining a fault configuration item corresponding to the difference data based on the attribute information, wherein the fault configuration item is at least one of a mirror image version, an environment variable and a port configuration;
and the fault elimination unit is used for determining the fault type of the fault configuration item based on the difference data, matching a target fault elimination scheme from preset fault elimination schemes based on the fault type, and reconfiguring the fault configuration item based on the target fault elimination scheme until the operation of the application container is judged to be normal.
In this embodiment, the commissioning may be to perform simulation operation on the configured application container, so as to verify whether the configured application container can normally operate.
In this embodiment, the preset standard operation data is set in advance and is used for comparing with the operation data of the application container, so as to determine whether the application container can normally operate.
In this embodiment, the difference data may be a difference between the operation data and the preset standard operation data.
In this embodiment, the failure configuration item may be one or more of a mirrored version, an environment variable, and a port.
In this embodiment, the preset troubleshooting scheme is set in advance.
In this embodiment, the target troubleshooting scheme may be a troubleshooting scheme adapted to solve the current failure type.
The beneficial effects of the above technical scheme are: the configuration result of the application container is verified, so that the configuration of the application container is ensured to be accurate enough, and meanwhile, when the configuration has problems, the fault part is found out in time and solved, so that the time cost and the labor cost of deployment are reduced, and the compatibility is stronger, thereby being more favorable for continuous integration.
Example 7:
on the basis of embodiment 1, this embodiment provides a container cluster deployment platform, where the deployment module includes:
the space reading unit is used for reading the number of application examples to be added, estimating a first space memory of the application examples to be added based on the number of the application examples to be added, and reading a second space memory which can be stored in the current application container;
the comparison unit is used for comparing the first space memory with the second space memory and judging whether the application container can contain all application instances to be added;
when the first space memory is smaller than or equal to the second space memory, determining that the application container can contain all application instances to be added;
otherwise, judging that the application container can not contain all application instances to be added;
the capacity expansion unit is used for determining a target space memory of the application container to be subjected to capacity expansion according to the first space memory and the second space memory when the application container cannot accommodate the application instance to be added;
the capacity expansion unit is configured to acquire identification information of the application container, and generate a capacity expansion request for the application container based on the identification information of the application container and the target space memory;
the capacity expansion unit is further configured to create a capacity expansion interface for the application container based on the capacity expansion request, define the capacity expansion interface, and call a target parameter for the defined capacity expansion interface based on the capacity expansion request, where the target parameter includes: identification information of the application container and the target memory space;
the capacity expansion unit is further configured to expand the application container based on the capacity expansion interface and the target parameter to obtain a target application container;
and the instance deployment unit is used for configuring the application instance in the target application container, acquiring an instance memory of the configured application instance, establishing a deployment layer according to the instance memory, storing the application instance in the target application container based on the deployment layer, and completing container cluster deployment.
In this embodiment, the first space memory may be a memory occupied by the application instance to be added.
In this embodiment, the second space memory may be the remaining storable memory of the application container.
In this embodiment, the target space memory may be a memory that needs to be extended by the application memory when the first space memory is larger than the second space memory, where the target space memory is the first space memory — the second space memory.
In this embodiment, the capacity expansion request may be a request for expanding the capacity of the application container, and the content of the request includes the identification information of the application container and the target space memory.
In this embodiment, the identification information of the application container may be information for identifying the application container to distinguish different application containers.
In the embodiment, a deployment layer is established according to the instance memory, and the application instance is stored in the target application container based on the deployment layer; it may be for example that,
the example memory of the application example 1 is 10kB, the example memory of the application example 2 is 15kB, the example memory of the application example 3 is 23kB, the example memory of the application example 4 is 28kB, and the example memory of the application example 5 is 35 kB;
taking the range of the example memory from 1 kB to 20kB as a first deployment layer, taking the range of the example memory from 21 kB to 30kB as a second deployment layer, and taking the range of 31 kB to 40kB as a third deployment layer;
application instance 1 and application instance 2 are placed on a first deployment level, application instance 3, application instance 4 are placed on a second deployment level, and application instance 5 is placed on a third deployment level.
The beneficial effects of the above technical scheme are: the method comprises the steps of determining a first space memory occupied by application examples to be added by determining the number of the application examples to be added, facilitating determination of whether the application container needs to be expanded by comparing the first space memory with a second space memory, and accurately realizing expansion of the application container by an expansion request when the application container needs to be expanded so as to store the application examples, so that the storage efficiency of the application container is improved, the application examples are stored by constructing a deployment layer, the deployment orderliness of the application examples is improved, and further the deployment efficiency of container cluster application is greatly improved.
Example 8:
on the basis of embodiment 1, this embodiment provides a container cluster deployment platform, where the deployment module further includes:
the operation unit is used for performing trial operation on the platform after the container cluster is deployed and determining platform operation parameters;
the analysis unit is used for analyzing the platform operation parameters, generating an analysis result, verifying the analysis result in a verification model and judging whether the container cluster deployment meets the standard or not;
when the output of the check result is y, judging that the container cluster deployment meets the standard;
and when the output of the check result is n, judging that the container cluster deployment does not meet the standard, and simultaneously, redeploying the application instance.
In this embodiment, the platform operation parameter may be a parameter such as an operation time, an operation speed, and the like of the platform after the container cluster is deployed.
In this embodiment, the analyzing the platform operation parameters may be analyzing the operation time, the operation speed, and the like of the platform operation parameters to determine the comprehensive performance of the platform operation.
In this embodiment, the verification model may be used to verify the analysis result and determine whether the container cluster deployment meets the standard.
In this embodiment, the output result of the verification model includes y and n.
The beneficial effects of the above technical scheme are: the method has the advantages that the platform for container cluster deployment is subjected to trial operation, the determination of the platform operation parameters is facilitated, and the judgment on whether the container cluster deployment meets the standard is facilitated.
Example 9:
on the basis of embodiment 8, the analysis unit further includes:
the operation parameter reading unit is used for reading the operation parameters and determining the operation speed of the platform and the number of users accessing the platform;
the first calculation unit is used for calculating the operation efficiency of the platform based on the operation speed V and the number of the users accessing the operation platform;
Figure BDA0003320490100000171
wherein η represents an operating efficiency of the operating platform; t represents a reference access time specified by the application container; m represents the total access of the running platformThe number of users; siRepresenting the amount of resources accessed by the ith user;
Figure BDA0003320490100000172
representing a total access amount of the running platform; xi represents a data access factor, typically taking the value 0.2 x 10-3
The efficiency comparison unit is used for comparing the operating efficiency of the platform with a reference operating efficiency and judging whether the operating efficiency of the platform is qualified or not;
when the operating efficiency of the platform is equal to or greater than the reference operating efficiency, judging that the operating efficiency of the platform is qualified;
otherwise, judging that the operating efficiency of the platform is unqualified;
the second calculation unit is used for calculating a correction coefficient of the platform according to the operating efficiency of the platform and the reference operating efficiency when the operating efficiency of the platform is unqualified;
Figure BDA0003320490100000173
wherein λ represents a correction factor for the operating platform; mu represents a correction factor, and the value range is (0.01, 0.03); eta1Representing the baseline operating efficiency; r1Representing the weight of the mirror image in the operation of the platform; s1Representing the degree of adaptation of the image to the application container when the application container runs; r2Representing the weight of the environment variable in the operation of the platform; s2Representing the degree of adaptation of the environment variable to the application container when the application container runs; r3Representing the weight occupied by the port in the operation of the platform; s3Representing the degree of adaptation of the port to the application container when the application container runs;
and correcting the mirror image, the environment variable and the port in the application container based on the correction coefficient of the platform, and improving the operating efficiency of the platform based on the correction result.
In this embodiment, the access factor may be a factor that affects the efficiency of the platform operation when a user access is made.
In this embodiment, the reference operating efficiency may be set in advance, and is used to detect whether the platform operating efficiency is qualified.
In this embodiment, the correction factor may be an impact factor when the image, the environment variable, and the port are corrected.
The beneficial effects of the above technical scheme are: the method has the advantages that the operation efficiency of the platform is accurately calculated, the operation efficiency is compared with the reference operation efficiency to determine whether the operation efficiency of the platform is qualified, meanwhile, when the operation efficiency is unqualified, the correction coefficient is accurately calculated, and the mirror image, the environment variable and the port in the application container are corrected, so that the operation efficiency of the platform is indirectly improved.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A container cluster deployment platform, comprising:
the information acquisition module is used for acquiring container cluster information and determining a target mirror image according to the container cluster information;
the configuration module is used for acquiring the mirror image version of the target mirror image and the running network of the application container, performing high-level configuration on the application container and determining a running environment;
and the deployment module is used for determining the number of the application instances to be added in the running environment, configuring the application based on the number of the application instances to be added and finishing container cluster deployment based on a configuration result.
2. The container cluster deployment platform of claim 1, wherein the configuration module further comprises:
the high-level configuration includes: setting environment variables, service ports and service states;
wherein, before adding the service state, the method comprises the following steps: a storage volume is created.
3. The container cluster deployment platform of claim 2, wherein creating a storage volume comprises: and determining a mounting path according to the first selection frame, and establishing a storage volume according to the mounting path based on the second selection frame.
4. The container cluster deployment platform of claim 1, wherein the information acquisition module comprises:
the system comprises a container cluster acquisition unit, a container cluster acquisition unit and a container information reading unit, wherein the container cluster acquisition unit is used for acquiring a container cluster in a target project and reading container information of N containers in the container cluster;
the information processing unit is used for respectively carrying out information processing on the container information of the N containers and determining N container characteristic values of the N containers;
and the evaluation unit is used for evaluating the N containers one by one based on the N container characteristic values, acquiring N evaluation results, and uploading the N evaluation results to a cloud platform for display.
5. The container cluster deployment platform of claim 1, wherein the information acquisition module further comprises:
the reading unit is used for reading the cluster information of the container cluster, determining the information identifier of the container cluster based on the cluster information, and generating an information matching instruction based on the information identifier;
the instruction reading unit is used for reading the information matching instruction and determining the instruction type of the information matching instruction and the instruction operation logic of the information matching instruction;
the protocol generation unit is used for acquiring the authority information of the mirror image warehouse;
the protocol generation unit is further configured to determine a protocol generation format based on the instruction type of the information matching instruction, and determine protocol content based on the authority information of the mirror repository and the instruction operation logic;
the protocol generation unit is further used for generating an interaction protocol based on the protocol generation format and the protocol content;
and the target mirror image acquisition unit is used for establishing an interactive link between the container cluster and the mirror image warehouse based on the interactive protocol, matching the container cluster and the mirror image in the mirror image warehouse based on the interactive link and according to the information matching instruction, and determining a target mirror image based on a matching result.
6. The container cluster deployment platform of claim 5, wherein the target image acquisition unit further comprises:
the mirror image file information acquisition unit is used for acquiring a file ciphertext of the target mirror image and determining a mirror image private key of the target mirror image based on the file ciphertext;
the verification information acquisition unit is used for decrypting the file ciphertext based on the mirror image private key and determining a verification code for verifying the target mirror image;
the verification unit is used for performing security verification on the target mirror image based on the verification code;
when the file ciphertext corresponds to the verification code, the target mirror image passes the safety verification and is received;
and when the file ciphertext does not correspond to the verification code, the target mirror image does not pass the safety verification, and meanwhile, the target mirror image is rejected.
7. The container cluster deployment platform of claim 1, wherein the configuration module comprises:
a container information obtaining unit, configured to read basic information of the application container, where the basic information includes a service type and a service function of the application container;
the container information acquisition unit is further configured to determine a feature value in the application container basic information according to the reading result, and determine a target extraction factor based on the feature value;
the matching unit is used for matching a target image version number corresponding to the target extraction factor in a preset number database, and selecting an available target operation network name in a preset available network candidate list, wherein the service type and the service function correspond to the image version;
the configuration window unit is used for respectively selecting the target mirror image version number, the mirror image version corresponding to the target operation network name and the available operation network in a target position area based on a preset configuration window;
the configuration window unit is used for acquiring the network attribute of the running network and determining the environment variable of the application container in service running based on the network attribute, wherein the environment variable comprises a corresponding environment name to be modified and a corresponding value;
the configuration window unit is also used for carrying out corresponding adding, modifying or deleting operations on the corresponding environment name and the corresponding value based on the environment variable, completing the setting of the environment variable and triggering the port configuration unit after the setting of the environment variable is completed;
a port configuration unit, configured to determine available service ports and service states in the application container based on an environment variable setting result, and determine whether a current available service port is adapted to service operation of the application container based on the service states, where the number of the available service ports is at least one;
if the current available service port is matched with the service operation of the application container, completing the configuration of the available service port;
otherwise, selecting a target protocol corresponding to the available port based on the basic information of the application container, and completing the configuration of the available service port based on the target protocol;
the advanced configuration unit is used for checking the configured mirror image version, the environment variable and the port configuration based on a preset checking method and judging whether the application container can normally run or not;
if the application container can normally run, judging that the advanced configuration of the application container is finished, and obtaining the running environment of the application container;
otherwise, judging that the high-level configuration of the application container has a bug, and performing the high-level configuration on the application container again until the application container can normally run.
8. The container cluster deployment platform of claim 7, wherein the advanced configuration unit comprises:
the verification unit is used for performing trial operation on the application container based on the configured mirror image version, the environment variable and the port, and acquiring operation data of the application container during the trial operation;
the checking unit is used for comparing the operation data with preset standard operation data and judging whether the operation of the application container is normal or not;
if the configuration is normal, sending the configuration completion to the management terminal, and performing normal operation;
otherwise, determining the difference data between the operation data and the preset standard operation data;
the fault searching unit is used for acquiring attribute information of the difference data and determining a fault configuration item corresponding to the difference data based on the attribute information, wherein the fault configuration item is at least one of a mirror image version, an environment variable and a port configuration;
and the fault elimination unit is used for determining the fault type of the fault configuration item based on the difference data, matching a target fault elimination scheme from preset fault elimination schemes based on the fault type, and reconfiguring the fault configuration item based on the target fault elimination scheme until the operation of the application container is judged to be normal.
9. The container cluster deployment platform of claim 1, wherein the deployment module comprises:
the space reading unit is used for reading the number of application examples to be added, estimating a first space memory of the application examples to be added based on the number of the application examples to be added, and reading a second space memory which can be stored in the current application container;
the comparison unit is used for comparing the first space memory with the second space memory and judging whether the application container can contain all application instances to be added;
when the first space memory is smaller than or equal to the second space memory, determining that the application container can contain all application instances to be added;
otherwise, judging that the application container can not contain all application instances to be added;
the capacity expansion unit is used for determining a target space memory of the application container to be subjected to capacity expansion according to the first space memory and the second space memory when the application container cannot accommodate the application instance to be added;
the capacity expansion unit is configured to acquire identification information of the application container, and generate a capacity expansion request for the application container based on the identification information of the application container and the target space memory;
the capacity expansion unit is further configured to create a capacity expansion interface for the application container based on the capacity expansion request, define the capacity expansion interface, and call a target parameter for the defined capacity expansion interface based on the capacity expansion request, where the target parameter includes: identification information of the application container and the target memory space;
the capacity expansion unit is further configured to expand the application container based on the capacity expansion interface and the target parameter to obtain a target application container;
and the instance deployment unit is used for configuring the application instance in the target application container, acquiring an instance memory of the configured application instance, establishing a deployment layer according to the instance memory, storing the application instance in the target application container based on the deployment layer, and completing container cluster deployment.
10. The container cluster deployment platform of claim 1, wherein the deployment module further comprises:
the operation unit is used for performing trial operation on the platform after the container cluster is deployed and determining platform operation parameters;
the analysis unit is used for analyzing the platform operation parameters, generating an analysis result, verifying the analysis result in a verification model and judging whether the container cluster deployment meets the standard or not;
when the output of the check result is y, judging that the container cluster deployment meets the standard;
and when the output of the check result is n, judging that the container cluster deployment does not meet the standard, and simultaneously, redeploying the application instance.
CN202111244592.8A 2021-10-26 2021-10-26 Container cluster deployment platform Pending CN114138402A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111244592.8A CN114138402A (en) 2021-10-26 2021-10-26 Container cluster deployment platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111244592.8A CN114138402A (en) 2021-10-26 2021-10-26 Container cluster deployment platform

Publications (1)

Publication Number Publication Date
CN114138402A true CN114138402A (en) 2022-03-04

Family

ID=80395015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111244592.8A Pending CN114138402A (en) 2021-10-26 2021-10-26 Container cluster deployment platform

Country Status (1)

Country Link
CN (1) CN114138402A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115454680B (en) * 2022-10-12 2023-07-07 中航信移动科技有限公司 Application control system
CN117319196A (en) * 2023-10-26 2023-12-29 无锡芯光互连技术研究院有限公司 User server cluster environment deployment management system and method
CN117319196B (en) * 2023-10-26 2024-05-14 无锡芯光互连技术研究院有限公司 User server cluster environment deployment management system and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115454680B (en) * 2022-10-12 2023-07-07 中航信移动科技有限公司 Application control system
CN117319196A (en) * 2023-10-26 2023-12-29 无锡芯光互连技术研究院有限公司 User server cluster environment deployment management system and method
CN117319196B (en) * 2023-10-26 2024-05-14 无锡芯光互连技术研究院有限公司 User server cluster environment deployment management system and method

Similar Documents

Publication Publication Date Title
CN109474578B (en) Message checking method, device, computer equipment and storage medium
CN109815704B (en) Safety detection method and system for Kubernetes cloud native application
CN111800450B (en) Multidimensional tag namespaces for cloud resource management
CN105122230A (en) Tracing as a service
CN105283849A (en) Parallel tracing for performance and detail
CN112640388A (en) Suspicious activity detection in computer networks
CN110088744A (en) A kind of database maintenance method and its system
CN109933362A (en) A kind of platform feature call method, system and equipment
CN107832227B (en) Interface parameter testing method, device, equipment and storage medium of business system
CN114138402A (en) Container cluster deployment platform
CN114756466A (en) Test case obtaining method and device and storage medium
CN114817022A (en) Railway electronic payment platform test method, system, equipment and storage medium
US20090150882A1 (en) System and method for software application installation
CN112882956A (en) Method and device for automatically generating full-scene automatic test case through data combination calculation, storage medium and electronic equipment
CN101986267A (en) Requirement priority ordering method and system based on dependence reduction
CN111338958A (en) Parameter generation method and device of test case and terminal equipment
CN116955148A (en) Service system testing method, device, equipment, storage medium and product
CN113505026B (en) Method, device and equipment for verifying backup data and storage medium
CN115878400A (en) Test method, test apparatus, computer device, storage medium, and program product
CN114185639A (en) Application container extension engine platform
US11715037B2 (en) Validation of AI models using holdout sets
CN115328611A (en) Virtual machine management method, device, server and readable storage medium
CN115203746A (en) Data account access authorization method and device
CN114756451A (en) Safety testing method and device for power grid system, computer equipment and storage medium
WO2021096346A1 (en) A computer-implemented system for management of container logs and its method thereof

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