CN114189436A - Multi-cluster configuration deployment method and device, electronic equipment and storage medium - Google Patents
Multi-cluster configuration deployment method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114189436A CN114189436A CN202111489617.0A CN202111489617A CN114189436A CN 114189436 A CN114189436 A CN 114189436A CN 202111489617 A CN202111489617 A CN 202111489617A CN 114189436 A CN114189436 A CN 114189436A
- Authority
- CN
- China
- Prior art keywords
- cluster
- deployment
- configuration
- target
- management system
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000013507 mapping Methods 0.000 claims description 34
- 238000012545 processing Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 8
- 230000001960 triggered effect Effects 0.000 abstract description 4
- 238000007726 management method Methods 0.000 description 89
- 230000006870 function Effects 0.000 description 11
- 230000006854 communication Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 102100033121 Transcription factor 21 Human genes 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008602 contraction Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 101150109289 tcf21 gene Proteins 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0889—Techniques to speed-up the configuration process
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention discloses a multi-cluster configuration deployment method, a multi-cluster configuration deployment device, electronic equipment and a storage medium; the method comprises the steps that a configuration deployment request can be obtained, the configuration deployment request comprises cluster indication information and configuration deployment information, the configuration deployment request is sent to a cluster deployment node, the cluster deployment node is triggered to determine a target cluster from multiple clusters associated with a server based on the cluster indication information, a target configuration deployment interface between the cluster deployment node and a target cluster management system of the target cluster is determined, the target configuration deployment interface is called, the configuration deployment information is sent to the target cluster management system, the target cluster management system distributes the configuration deployment information to equipment in the target cluster management system, and the configuration deployment information is used for indicating the equipment to adjust configuration parameters; the method can reduce the dependence on manpower in the equipment configuration process, save manpower resources and improve the equipment configuration efficiency on the basis of ensuring the equipment configuration accuracy.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a multi-cluster configuration deployment method, a multi-cluster configuration deployment device, electronic equipment and a storage medium.
Background
With the rapid development of science and technology, various high-tech devices have advanced into the daily lives of people. For example, people often need to rely on various devices to complete work during work. Generally, for a company, the equipment of the staff is often configured uniformly, and through the uniform configuration, the work data required by the work can be provided for the staff, so that the equipment of the staff is convenient to manage.
At present, the main method adopted when various devices are deployed is to modify the configuration of various devices according to the information to be deployed manually, so as to realize the configuration of various devices. However, by adopting the scheme, complicated manual operation is required, configuration errors are easily caused, rapid deployment and rapid online are difficult to achieve, and the configuration efficiency is low.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for deploying a multi-cluster configuration, an electronic device, and a storage medium, which can reduce the dependence on labor in the process of configuring the device, save human resources, and improve the efficiency of configuring the device on the basis of ensuring the accuracy of configuring the device.
The embodiment of the invention provides a multi-cluster configuration deployment method, which comprises the following steps:
acquiring a configuration deployment request, wherein the configuration deployment request comprises cluster indication information and configuration deployment information;
sending the configuration deployment request to a cluster deployment node, triggering the cluster deployment node to determine a target cluster from a plurality of clusters associated with the server based on the cluster indication information, and determining a target configuration deployment interface between the cluster deployment node and the target cluster management system of the target cluster;
and calling the target configuration deployment interface, and sending configuration deployment information to the target cluster management system, so that the target cluster management system distributes the configuration deployment information to the equipment in the target cluster management system, wherein the configuration deployment information is used for indicating the equipment to adjust configuration parameters.
Correspondingly, an embodiment of the present invention further provides a multi-cluster deployment apparatus, including:
the device comprises a request acquisition unit, a configuration deployment unit and a configuration deployment unit, wherein the request acquisition unit is used for acquiring a configuration deployment request which comprises cluster indication information and configuration deployment information;
an interface determining unit, configured to send the configuration deployment request to a cluster deployment node, trigger the cluster deployment node to determine a target cluster from multiple clusters associated with the server based on the cluster indication information, and determine a target configuration deployment interface between the cluster deployment node and the target cluster management system of the target cluster;
an information sending unit, configured to invoke the target configuration deployment interface, and send configuration deployment information to the target cluster management system, so that the target cluster management system distributes the configuration deployment information to devices in the target cluster management system, where the configuration deployment information is used to instruct the devices to adjust configuration parameters.
Optionally, the interface determining unit is configured to send the configuration deployment request to cluster deployment nodes, and trigger the cluster deployment nodes to obtain a configuration deployment interface corresponding to each cluster and a first connection mapping relationship corresponding to a cluster management system of each cluster;
correspondingly, the information sending unit is configured to determine a first target connection mapping relationship corresponding to a target cluster management system of the target cluster;
analyzing the target first connection mapping relation to obtain a target connection address corresponding to the target cluster management system;
and calling the target configuration deployment interface, and sending configuration deployment information to the target cluster management system through the target connection address.
Optionally, the multi-cluster configuration deployment apparatus provided in the embodiment of the present invention further includes a first node creating unit, configured to obtain a first connection mapping relationship of the cluster management system of each cluster;
and creating a cluster deployment node in the server based on the first connection mapping relation and the physical configuration information of the server.
Optionally, the information sending unit is configured to invoke the target configuration deployment interface, and send the configuration deployment information to a configuration distribution node in a target cluster management system of the target cluster, so that the configuration distribution node distributes the configuration deployment information to a device in the target cluster management system.
Optionally, the multi-cluster configuration deployment apparatus provided in the embodiment of the present invention further includes a second node creating unit, configured to obtain a second connection mapping relationship between each cluster management system and the configuration deployment interface;
and creating a configuration distribution node in each cluster management system based on the second connection mapping relation and the equipment information of the equipment in each cluster management system.
Optionally, the server includes the cluster deployment node and a candidate cluster deployment node, and the information sending unit is configured to obtain a request processing threshold of the cluster deployment node;
if the quantity of the configuration deployment requests does not exceed the request processing threshold of the cluster deployment node, sending the configuration deployment requests to the cluster deployment node;
and if the quantity of the configuration deployment requests exceeds the request processing threshold of the cluster deployment node, sending the configuration deployment requests to the cluster deployment node and the candidate cluster deployment node.
Correspondingly, the embodiment of the invention also provides the electronic equipment, which comprises a memory and a processor; the memory stores an application program, and the processor is configured to run the application program in the memory to perform the steps of any one of the methods for deploying multi-cluster configuration provided by the embodiments of the present invention.
Accordingly, embodiments of the present invention further provide a computer-readable storage medium, which stores a plurality of instructions, which are suitable for being loaded by a processor, to execute the steps in any one of the methods for deploying multiple cluster configurations provided by the embodiments of the present invention.
Furthermore, the present invention also provides a computer program product, which includes a computer program or instructions, and when the computer program or instructions are executed by a processor, the computer program or instructions implement the steps in any one of the methods for deploying multi-cluster configurations provided by the embodiments of the present invention.
By adopting the scheme of the embodiment of the invention, a configuration deployment request can be obtained, wherein the configuration deployment request comprises cluster indication information and configuration deployment information, the configuration deployment request is sent to a cluster deployment node, the cluster deployment node is triggered to determine a target cluster from a plurality of clusters associated with the server based on the cluster indication information, a target configuration deployment interface between the cluster deployment node and the target cluster management system of the target cluster is determined, the target configuration deployment interface is called, the configuration deployment information is sent to the target cluster management system, so that the target cluster management system distributes the configuration deployment information to equipment in the target cluster management system, and the configuration deployment information is used for indicating the equipment to adjust configuration parameters; in the scheme of the embodiment of the invention, the devices are collected in the clusters, when a plurality of devices need to be deployed, the target cluster which needs to be deployed can be determined from the plurality of clusters, and the configuration deployment information is sent to the target cluster through the target configuration deployment interface, so that the devices in the target cluster can be deployed, therefore, the dependence on manpower in the device configuration process can be reduced, the manpower resource is saved, and the device configuration efficiency is improved on the basis of ensuring the device configuration accuracy.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a multi-cluster configuration deployment method according to an embodiment of the present invention;
fig. 2 is a flowchart of a multi-cluster configuration deployment method provided by an embodiment of the present invention;
fig. 3 is a schematic diagram of a multi-cluster configuration deployment process provided by an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a multi-cluster deployment apparatus according to an embodiment of the present invention;
fig. 5 is another schematic structural diagram of a multi-cluster deployment apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a multi-cluster configuration deployment method, a multi-cluster configuration deployment device, electronic equipment and a computer-readable storage medium. Specifically, the embodiment of the present invention provides a multi-cluster configuration deployment method applicable to a multi-cluster configuration deployment device, where the multi-cluster configuration deployment device may be integrated in an electronic device.
The electronic device may be a terminal or other devices, including but not limited to a mobile terminal and a fixed terminal, for example, the mobile terminal includes but is not limited to a smart phone, a smart watch, a tablet computer, a notebook computer, a smart car, and the like, wherein the fixed terminal includes but is not limited to a desktop computer, a smart television, and the like.
The electronic device may also be a device such as a server, and the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a CDN (Content Delivery Network), and a big data and artificial intelligence platform, but is not limited thereto.
The multi-cluster configuration deployment method of the embodiment of the invention can be realized by a server, or can be realized by a terminal and the server together.
The following describes the method of deploying a multi-cluster configuration by using a terminal and a server together as an example.
As shown in fig. 1, the multiple cluster configuration deployment system provided by the embodiment of the present invention includes a terminal 10, a server 20, and the like; the terminal 10 and the server 20 are connected through a network, for example, a wired or wireless network connection, and the terminal 10 may exist as a terminal for sending a configuration deployment request to the server 20 by a user.
The terminal 10 may be a terminal that uploads cluster indication information and configuration deployment information for a user, and is configured to send a configuration deployment request to the server 20.
The server 20 may be configured to obtain a configuration deployment request, where the configuration deployment request includes the cluster indication information and the configuration deployment information.
The server 20 may send the configuration deployment request to a cluster deployment node, trigger the cluster deployment node to determine a target cluster from multiple clusters associated with the server based on the cluster indication information, and determine a target configuration deployment interface between the cluster deployment node and the target cluster management system of the target cluster.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Embodiments of the present invention will be described from the perspective of a multi-cluster configuration deployment device, which may be specifically integrated in a server and/or a terminal.
As shown in fig. 2, a specific flow of the multi-cluster configuration deployment method of the present embodiment may be as follows:
201. acquiring a configuration deployment request, wherein the configuration deployment request comprises cluster indication information and configuration deployment information.
The configuration deployment request may be a program instruction for transferring information related to configuration deployment in the cluster. The configuration deployment request may include, in addition to the cluster indication information and the configuration deployment information, a user identifier for sending the configuration deployment request and/or a device identifier for sending the configuration deployment request, and the like.
The cluster indication information may indicate to which cluster or clusters the configuration deployment information should be issued, for example, the cluster indication information may be a cluster identifier or an identifier of a target cluster management device, and the target cluster management device is a device in which the target cluster management system is deployed.
The configuration deployment information may indicate the device to adjust its parameters, and specifically, the configuration deployment information may include, but is not limited to, parameter information that needs to be modified in the device, a parameter effective duration, and the like.
202. Sending the configuration deployment request to a cluster deployment node, triggering the cluster deployment node to determine a target cluster from a plurality of clusters associated with the server based on the cluster indication information, and determining a target configuration deployment interface between the cluster deployment node and the target cluster management system of the target cluster.
The cluster deployment node is connected with the cluster management system of each cluster through a configuration deployment interface. Through the cluster deployment node, the configuration deployment information can be pushed to the target cluster. The cluster deployment node may be set in a server, or may be set in a terminal that sends a configuration deployment request, or in a device or a container in a certain cluster, and a technician may set the node by himself or herself according to an actual application situation.
Specifically, the target cluster is a cluster that needs to be configured and deployed and is determined from the associated clusters. It is to be understood that there may be one or more target clusters, and the present invention is not limited thereto.
The cluster management system is a system capable of managing the cluster and can provide services such as automatic expansion and contraction capacity and automatic restart for the cluster. It is to be understood that a cluster may be a cluster of devices formed by at least one individual device, a cluster of containers formed by containers, and so on. The cluster management system may be implemented by Kubernertes (k8s) or the like. The target cluster management system is a cluster management system corresponding to the target cluster.
In a computer, an interface is a shared boundary between two separate components in a computer system for the exchange of information. Such exchanges may occur between computer software, hardware, external devices or persons performing the operations, or a combination thereof. For the embodiment of the present invention, the configuration deployment interface may be a shared boundary for exchanging the deployment configuration information between the cluster deployment node and the cluster management system.
In some optional embodiments, an intranet connection may be established between the clusters in advance, so as to prevent the configuration information from being leaked due to the exposure of an extranet. That is, step 202 may include:
and sending the configuration deployment request to cluster deployment nodes, and triggering the cluster deployment nodes to acquire configuration deployment interfaces corresponding to the clusters and first connection mapping relations corresponding to the cluster management systems of the clusters.
The first connection mapping relationship may be a corresponding relationship between the cluster management system and the intranet IP where the cluster management system is located.
Correspondingly, the step of "calling the target configuration deployment interface and sending the configuration deployment information to the target cluster management system" may include:
determining a target first connection mapping relation corresponding to a target cluster management system of the target cluster;
analyzing the target first connection mapping relation to obtain a target connection address corresponding to the target cluster management system;
and calling the target configuration deployment interface, and sending configuration deployment information to the target cluster management system through the target connection address.
The target connection address is an actual address of each device or container that the target cluster management system can manage.
Specifically, before step 202, the method may further include:
acquiring a first connection mapping relation of a cluster management system of each cluster;
and creating a cluster deployment node in the server based on the first connection mapping relation and the physical configuration information of the server.
Wherein the physical configuration information may be a physical address of the server, etc. A first connection mapping relationship may be imported in the server, and a cluster deployment node may be created based on the first connection mapping relationship.
For example, a technician may specify different intranet domain names in advance through the following codes to establish the first connection mapping relationship of the cluster management system.
In some optional embodiments, the cluster deployment node is also located in the intranet, and a technician may pre-specify an intranet domain name of the cluster deployment node through the following code, so as to prevent the cluster deployment node from being exposed to the extranet to affect cluster security.
Intranet domain name of # configuration apollo control console
host:"apollo-portal.tclai.top"
Specifically, the sending the configuration deployment request to the cluster deployment node may include:
acquiring a request processing threshold value of the cluster deployment node;
if the quantity of the configuration deployment requests does not exceed the request processing threshold of the cluster deployment node, sending the configuration deployment requests to the cluster deployment node;
and if the quantity of the configuration deployment requests exceeds the request processing threshold of the cluster deployment node, sending the configuration deployment requests to the cluster deployment node and the candidate cluster deployment node.
203. And calling the target configuration deployment interface, and sending configuration deployment information to the target cluster management system, so that the target cluster management system distributes the configuration deployment information to the equipment in the target cluster management system, wherein the configuration deployment information is used for indicating the equipment to adjust configuration parameters.
Specifically, the configuration deployment information may be sent to a configuration distribution node in the target cluster management system, that is, step 203 may include:
and calling the target configuration deployment interface, and sending configuration deployment information to a configuration distribution node in a target cluster management system of the target cluster, so that the configuration distribution node distributes the configuration deployment information to equipment in the target cluster management system.
In some optional embodiments, the configuration distribution node is also located in the intranet, and a technician may pre-specify an intranet domain name of the configuration distribution node by using the following codes, so as to prevent the configuration distribution node from being exposed to the extranet to affect cluster security:
in some optional embodiments, before step 203, the method may further comprise:
acquiring a second connection mapping relation between each cluster management system and the configuration deployment interface;
and creating a configuration distribution node in each cluster management system based on the second connection mapping relation and the equipment information of the equipment in each cluster management system.
And the second connection mapping relation is a connection mapping relation between the cluster management system and the configuration deployment interface.
For example, as shown in fig. 3, a technician may set cluster indication information and configuration deployment information on a user terminal, and after accessing an intranet address, and through intranet equalization, a server may send a configuration deployment request to a cluster deployment node (Apollp console service pod). The Apollp console service pod can determine a target cluster from multiple clusters (dev environment cluster, test environment cluster and/or prod environment cluster, etc.) associated with the server according to the cluster indication information in the configuration deployment request. Taking the target cluster as the dev environment cluster as an example, the configuration deployment information may be sent to the device (service pod1, service pod2, etc.) in the target cluster management system through a target configuration deployment interface (Apollp configuration distribution service pod) between the Apollp console service pod and the dev environment cluster.
As can be seen from the above, in the embodiment of the present invention, a configuration deployment request may be obtained, where the configuration deployment request includes cluster indication information and configuration deployment information, the configuration deployment request is sent to a cluster deployment node, the cluster deployment node is triggered to determine a target cluster from multiple clusters associated with the server based on the cluster indication information, and determine a target configuration deployment interface between the cluster deployment node and the target cluster management system of the target cluster, call the target configuration deployment interface, and send the configuration deployment information to the target cluster management system, so that the target cluster management system distributes the configuration deployment information to a device in the target cluster management system, where the configuration deployment information is used to indicate the device to adjust a configuration parameter; in the scheme of the embodiment of the invention, the devices are collected in the clusters, when a plurality of devices need to be deployed, the target cluster which needs to be deployed can be determined from the plurality of clusters, and the configuration deployment information is sent to the target cluster through the target configuration deployment interface, so that the devices in the target cluster can be deployed, therefore, the dependence on manpower in the device configuration process can be reduced, the manpower resource is saved, and the device configuration efficiency is improved on the basis of ensuring the device configuration accuracy.
In order to better implement the above method, correspondingly, the embodiment of the invention further provides a multi-cluster configuration deployment device.
Referring to fig. 4, the apparatus may include:
a request obtaining unit 401, configured to obtain a configuration deployment request, where the configuration deployment request may include cluster indication information and configuration deployment information;
an interface determining unit 402, configured to send the configuration deployment request to a cluster deployment node, trigger the cluster deployment node to determine a target cluster from multiple clusters associated with the server based on the cluster indication information, and determine a target configuration deployment interface between the cluster deployment node and the target cluster management system of the target cluster;
an interface determining unit 403, configured to invoke the target configuration deployment interface, and send configuration deployment information to the target cluster management system, so that the target cluster management system distributes the configuration deployment information to devices in the target cluster management system, where the configuration deployment information may be used to instruct the devices to adjust configuration parameters.
In some optional embodiments, the interface determining unit 402 may be configured to send the configuration deployment request to cluster deployment nodes, and trigger the cluster deployment nodes to obtain a configuration deployment interface corresponding to each cluster and a first connection mapping relationship corresponding to a cluster management system of each cluster;
correspondingly, the information sending unit 403 may be configured to determine a target first connection mapping relationship corresponding to a target cluster management system of the target cluster;
analyzing the target first connection mapping relation to obtain a target connection address corresponding to the target cluster management system;
and calling the target configuration deployment interface, and sending configuration deployment information to the target cluster management system through the target connection address.
In some optional embodiments, as shown in fig. 5, the multi-cluster configuration deployment apparatus provided in the embodiment of the present invention may further include a first node creating unit 404, which may be configured to obtain a first connection mapping relationship of the cluster management system of each cluster;
and creating a cluster deployment node in the server based on the first connection mapping relation and the physical configuration information of the server.
In some optional embodiments, the information sending unit may be configured to invoke the target configuration deployment interface, and send the configuration deployment information to a configuration distribution node in a target cluster management system of the target cluster, so that the configuration distribution node distributes the configuration deployment information to a device in the target cluster management system.
In some optional embodiments, the multi-cluster configuration deployment apparatus provided in the embodiment of the present invention may further include a second node creating unit 405, which may be configured to obtain a second connection mapping relationship between each cluster management system and the configuration deployment interface;
and creating a configuration distribution node in each cluster management system based on the second connection mapping relation and the equipment information of the equipment in each cluster management system.
In some optional embodiments, the server may include the cluster deployment node and a candidate cluster deployment node, and the information sending unit 403 may be configured to obtain a request processing threshold of the cluster deployment node;
if the quantity of the configuration deployment requests does not exceed the request processing threshold of the cluster deployment node, sending the configuration deployment requests to the cluster deployment node;
and if the quantity of the configuration deployment requests exceeds the request processing threshold of the cluster deployment node, sending the configuration deployment requests to the cluster deployment node and the candidate cluster deployment node.
As can be seen from the above, a configuration deployment request may be obtained by a multi-cluster configuration deployment device, where the configuration deployment request includes cluster indication information and configuration deployment information, the configuration deployment request is sent to a cluster deployment node, the cluster deployment node is triggered to determine a target cluster from a multi-cluster associated with the server based on the cluster indication information, and determine a target configuration deployment interface between the cluster deployment node and the target cluster management system of the target cluster, call the target configuration deployment interface, and send the configuration deployment information to the target cluster management system, so that the target cluster management system distributes the configuration deployment information to a device in the target cluster management system, where the configuration deployment information is used to indicate the device to adjust configuration parameters; in the scheme of the embodiment of the invention, the devices are collected in the clusters, when a plurality of devices need to be deployed, the target cluster which needs to be deployed can be determined from the plurality of clusters, and the configuration deployment information is sent to the target cluster through the target configuration deployment interface, so that the devices in the target cluster can be deployed, therefore, the dependence on manpower in the device configuration process can be reduced, the manpower resource is saved, and the device configuration efficiency is improved on the basis of ensuring the device configuration accuracy.
In addition, an embodiment of the present invention further provides an electronic device, where the electronic device may be a terminal or a server, and as shown in fig. 6, a schematic structural diagram of the electronic device according to the embodiment of the present invention is shown, specifically:
the electronic device may include Radio Frequency (RF) circuitry 601, memory 602 including one or more computer-readable storage media, input unit 603, display unit 604, sensor 605, audio circuitry 606, Wireless Fidelity (WiFi) module 607, processor 608 including one or more processing cores, and power supply 609. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink messages from a base station and then processing the received downlink messages by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 601 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 601 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 602 may be used to store software programs and modules, and the processor 608 executes various functional applications and data processing by operating the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the electronic device, and the like. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 access to the memory 602.
The input unit 603 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 603 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 608, and can receive and execute commands sent by the processor 608. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 603 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 604 may be used to display information input by or provided to a user and various graphical user interfaces of the electronic device, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 604 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 6 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The electronic device may also include at least one sensor 605, such as a light sensor, motion sensor, and other sensors. In particular, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the electronic device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured to the electronic device, detailed descriptions thereof are omitted.
WiFi belongs to short-distance wireless transmission technology, and the electronic device can help the user send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 607, and it provides wireless broadband internet access for the user. Although fig. 6 shows the WiFi module 607, it is understood that it does not belong to the essential constitution of the electronic device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 608 is a control center of the electronic device, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the mobile phone. Optionally, processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The electronic device also includes a power supply 609 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 608 via a power management system, such that the power management system may manage charging, discharging, and power consumption. The power supply 609 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the electronic device may further include a camera, a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 608 in the electronic device loads an executable file corresponding to a process of one or more application programs into the memory 602 according to the following instructions, and the processor 608 runs the application programs stored in the memory 602, so as to implement various functions as follows:
acquiring a configuration deployment request, wherein the configuration deployment request comprises cluster indication information and configuration deployment information;
sending the configuration deployment request to a cluster deployment node, triggering the cluster deployment node to determine a target cluster from a plurality of clusters associated with the server based on the cluster indication information, and determining a target configuration deployment interface between the cluster deployment node and the target cluster management system of the target cluster;
and calling the target configuration deployment interface, and sending configuration deployment information to the target cluster management system, so that the target cluster management system distributes the configuration deployment information to the equipment in the target cluster management system, wherein the configuration deployment information is used for indicating the equipment to adjust configuration parameters.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present invention provide a computer-readable storage medium having stored therein a plurality of instructions, which can be loaded by a processor to perform the steps of any of the methods for multi-cluster configuration deployment provided by the embodiments of the present invention. For example, the instructions may perform the steps of:
acquiring a configuration deployment request, wherein the configuration deployment request comprises cluster indication information and configuration deployment information;
sending the configuration deployment request to a cluster deployment node, triggering the cluster deployment node to determine a target cluster from a plurality of clusters associated with the server based on the cluster indication information, and determining a target configuration deployment interface between the cluster deployment node and the target cluster management system of the target cluster;
and calling the target configuration deployment interface, and sending configuration deployment information to the target cluster management system, so that the target cluster management system distributes the configuration deployment information to the equipment in the target cluster management system, wherein the configuration deployment information is used for indicating the equipment to adjust configuration parameters.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium can execute the steps in any multi-cluster configuration deployment method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any multi-cluster configuration deployment method provided in the embodiments of the present invention can be achieved, and detailed descriptions thereof are omitted here for the sake of detail in the foregoing embodiments.
According to an aspect of the application, there is also provided a computer program product or a computer program comprising computer instructions stored in a computer readable storage medium. The processor of the electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the method provided in the various alternative implementations in the above embodiments.
The foregoing describes in detail a multi-cluster configuration deployment method, apparatus, electronic device and storage medium provided by embodiments of the present invention, and specific examples are applied herein to explain the principles and embodiments of the present invention, and the above description of the embodiments is only used to help understand the method and its core ideas of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (10)
1. A method for multi-cluster configuration deployment, comprising:
acquiring a configuration deployment request, wherein the configuration deployment request comprises cluster indication information and configuration deployment information;
sending the configuration deployment request to a cluster deployment node, triggering the cluster deployment node to determine a target cluster from a plurality of clusters associated with the server based on the cluster indication information, and determining a target configuration deployment interface between the cluster deployment node and the target cluster management system of the target cluster;
and calling the target configuration deployment interface, and sending configuration deployment information to the target cluster management system, so that the target cluster management system distributes the configuration deployment information to the equipment in the target cluster management system, wherein the configuration deployment information is used for indicating the equipment to adjust configuration parameters.
2. The method for deploying multi-cluster configuration according to claim 1, wherein the sending the configuration deployment request to a cluster deployment node, triggering the cluster deployment node to determine a target cluster from the multi-cluster to be deployed based on the cluster indication information, and determining a target configuration deployment interface between the cluster deployment node and the target cluster management system of the target cluster comprises:
sending the configuration deployment request to cluster deployment nodes, and triggering the cluster deployment nodes to acquire configuration deployment interfaces corresponding to the clusters and first connection mapping relations corresponding to cluster management systems of the clusters;
the calling the target configuration deployment interface and sending configuration deployment information to the target cluster management system includes:
determining a target first connection mapping relation corresponding to a target cluster management system of the target cluster;
analyzing the target first connection mapping relation to obtain a target connection address corresponding to the target cluster management system;
and calling the target configuration deployment interface, and sending configuration deployment information to the target cluster management system through the target connection address.
3. The method of claim 1, wherein before sending the configuration deployment request to a cluster deployment node, triggering the cluster deployment node to determine a target cluster from the multiple clusters associated with the server based on the cluster indication information, and determining a target configuration deployment interface between the cluster deployment node and the target cluster management system of the target cluster, the method further comprises:
acquiring a first connection mapping relation of a cluster management system of each cluster;
and creating a cluster deployment node in the server based on the first connection mapping relation and the physical configuration information of the server.
4. The method for deploying multi-cluster configuration according to claim 1, wherein the calling the target configuration deployment interface to send configuration deployment information to the target cluster management system, so that the target cluster management system distributes the configuration deployment information to devices in the target cluster management system, comprises:
and calling the target configuration deployment interface, and sending configuration deployment information to a configuration distribution node in a target cluster management system of the target cluster, so that the configuration distribution node distributes the configuration deployment information to equipment in the target cluster management system.
5. The method of claim 4, wherein before the invoking the target configuration deployment interface and sending configuration deployment information to the configuration distribution node in the target cluster management system of the target cluster, the method further comprises:
acquiring a second connection mapping relation between each cluster management system and the configuration deployment interface;
and creating a configuration distribution node in each cluster management system based on the second connection mapping relation and the equipment information of the equipment in each cluster management system.
6. The multi-cluster configuration deployment method of any one of claims 1-5, wherein the server comprises the cluster deployment node and candidate cluster deployment nodes, and the sending the configuration deployment request to the cluster deployment node comprises:
acquiring a request processing threshold value of the cluster deployment node;
if the quantity of the configuration deployment requests does not exceed the request processing threshold of the cluster deployment node, sending the configuration deployment requests to the cluster deployment node;
and if the quantity of the configuration deployment requests exceeds the request processing threshold of the cluster deployment node, sending the configuration deployment requests to the cluster deployment node and the candidate cluster deployment node.
7. A multi-cluster configuration deployment apparatus, comprising:
the device comprises a request acquisition unit, a configuration deployment unit and a configuration deployment unit, wherein the request acquisition unit is used for acquiring a configuration deployment request which comprises cluster indication information and configuration deployment information;
an interface determining unit, configured to send the configuration deployment request to a cluster deployment node, trigger the cluster deployment node to determine a target cluster from multiple clusters associated with the server based on the cluster indication information, and determine a target configuration deployment interface between the cluster deployment node and the target cluster management system of the target cluster;
an information sending unit, configured to invoke the target configuration deployment interface, and send configuration deployment information to the target cluster management system, so that the target cluster management system distributes the configuration deployment information to devices in the target cluster management system, where the configuration deployment information is used to instruct the devices to adjust configuration parameters.
8. An electronic device comprising a memory and a processor; the memory stores an application program, and the processor is configured to execute the application program in the memory to perform the steps of the multi-cluster configuration deployment method of any one of claims 1 to 6.
9. A computer-readable storage medium storing instructions adapted to be loaded by a processor to perform the steps of the method of multi-cluster arrangement deployment as claimed in any one of claims 1 to 6.
10. A computer program product comprising a computer program or instructions for implementing the steps of the method of multi-cluster arrangement deployment as claimed in any one of claims 1 to 6 when executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111489617.0A CN114189436B (en) | 2021-12-08 | 2021-12-08 | Multi-cluster configuration deployment method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111489617.0A CN114189436B (en) | 2021-12-08 | 2021-12-08 | Multi-cluster configuration deployment method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114189436A true CN114189436A (en) | 2022-03-15 |
CN114189436B CN114189436B (en) | 2024-04-30 |
Family
ID=80603774
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111489617.0A Active CN114189436B (en) | 2021-12-08 | 2021-12-08 | Multi-cluster configuration deployment method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114189436B (en) |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150333957A1 (en) * | 2015-02-12 | 2015-11-19 | Advanced Micro Devices, Inc. | Centralized distribution of configuration parameters for a cluster server |
WO2018169429A1 (en) * | 2017-03-17 | 2018-09-20 | Oracle International Corporation | Framework for the deployment of event-based applications |
CN110597623A (en) * | 2019-08-13 | 2019-12-20 | 平安普惠企业管理有限公司 | Container resource allocation method and device, computer equipment and storage medium |
CN111225064A (en) * | 2020-02-24 | 2020-06-02 | 中科星图股份有限公司 | Ceph cluster deployment method, system, device and computer-readable storage medium |
CN111708560A (en) * | 2020-06-17 | 2020-09-25 | 云和恩墨(北京)信息技术有限公司 | Automatic deployment method and device of database high-availability management system |
CN112152843A (en) * | 2020-09-11 | 2020-12-29 | 北京浪潮数据技术有限公司 | Cluster node deployment method, device and system and electronic equipment |
CN112527507A (en) * | 2020-12-21 | 2021-03-19 | 武汉联影医疗科技有限公司 | Cluster deployment method and device, computer equipment and storage medium |
CN112769924A (en) * | 2020-12-31 | 2021-05-07 | 平安科技(深圳)有限公司 | Distributed deployment method, device, equipment and medium of RocktMQ |
WO2021136175A1 (en) * | 2019-12-30 | 2021-07-08 | 京信网络系统股份有限公司 | Device management method, apparatus, communication device, and storage medium |
CN113254156A (en) * | 2021-05-31 | 2021-08-13 | 深信服科技股份有限公司 | Container group deployment method and device, electronic equipment and storage medium |
CN113268254A (en) * | 2021-05-13 | 2021-08-17 | 曙光信息产业(北京)有限公司 | Cluster system installation method and device, electronic equipment and storage medium |
US20210281662A1 (en) * | 2020-03-04 | 2021-09-09 | Hewlett Packard Enterprise Development Lp | Multiple model injection for a deployment cluster |
CN113641503A (en) * | 2021-09-01 | 2021-11-12 | 上海联蔚盘云科技有限公司 | Multi-cloud multi-cluster Kubernetes management system, method and equipment |
CN113676501A (en) * | 2020-05-13 | 2021-11-19 | 北京金山云网络技术有限公司 | Application deployment method and device based on Kubernetes cluster and electronic equipment |
-
2021
- 2021-12-08 CN CN202111489617.0A patent/CN114189436B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150333957A1 (en) * | 2015-02-12 | 2015-11-19 | Advanced Micro Devices, Inc. | Centralized distribution of configuration parameters for a cluster server |
WO2018169429A1 (en) * | 2017-03-17 | 2018-09-20 | Oracle International Corporation | Framework for the deployment of event-based applications |
CN110597623A (en) * | 2019-08-13 | 2019-12-20 | 平安普惠企业管理有限公司 | Container resource allocation method and device, computer equipment and storage medium |
WO2021136175A1 (en) * | 2019-12-30 | 2021-07-08 | 京信网络系统股份有限公司 | Device management method, apparatus, communication device, and storage medium |
CN111225064A (en) * | 2020-02-24 | 2020-06-02 | 中科星图股份有限公司 | Ceph cluster deployment method, system, device and computer-readable storage medium |
US20210281662A1 (en) * | 2020-03-04 | 2021-09-09 | Hewlett Packard Enterprise Development Lp | Multiple model injection for a deployment cluster |
CN113676501A (en) * | 2020-05-13 | 2021-11-19 | 北京金山云网络技术有限公司 | Application deployment method and device based on Kubernetes cluster and electronic equipment |
CN111708560A (en) * | 2020-06-17 | 2020-09-25 | 云和恩墨(北京)信息技术有限公司 | Automatic deployment method and device of database high-availability management system |
CN112152843A (en) * | 2020-09-11 | 2020-12-29 | 北京浪潮数据技术有限公司 | Cluster node deployment method, device and system and electronic equipment |
CN112527507A (en) * | 2020-12-21 | 2021-03-19 | 武汉联影医疗科技有限公司 | Cluster deployment method and device, computer equipment and storage medium |
CN112769924A (en) * | 2020-12-31 | 2021-05-07 | 平安科技(深圳)有限公司 | Distributed deployment method, device, equipment and medium of RocktMQ |
CN113268254A (en) * | 2021-05-13 | 2021-08-17 | 曙光信息产业(北京)有限公司 | Cluster system installation method and device, electronic equipment and storage medium |
CN113254156A (en) * | 2021-05-31 | 2021-08-13 | 深信服科技股份有限公司 | Container group deployment method and device, electronic equipment and storage medium |
CN113641503A (en) * | 2021-09-01 | 2021-11-12 | 上海联蔚盘云科技有限公司 | Multi-cloud multi-cluster Kubernetes management system, method and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN114189436B (en) | 2024-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2015090248A1 (en) | Server overload protection method and device | |
US10304461B2 (en) | Remote electronic service requesting and processing method, server, and terminal | |
JP6557741B2 (en) | Picture combining method, terminal, and picture combining system | |
CN108039963B (en) | Container configuration method and device and storage medium | |
CN104065693A (en) | Method, device and system for accessing network data in webpage applications | |
CN105227598B (en) | Resource sharing method, device and system based on cloud storage | |
CN109688611B (en) | Frequency band parameter configuration method, device, terminal and storage medium | |
CN111273955A (en) | Thermal restoration plug-in optimization method and device, storage medium and electronic equipment | |
CN112749074A (en) | Test case recommendation method and device | |
US20160119695A1 (en) | Method, apparatus, and system for sending and playing multimedia information | |
CN106209601B (en) | State update message pushing method and device | |
CN114189436B (en) | Multi-cluster configuration deployment method and device, electronic equipment and storage medium | |
CN112732548B (en) | Interface testing method and device | |
CN115065609A (en) | B-end SaaS system hybrid deployment method and system | |
CN113852450A (en) | Message push feedback method and device, electronic equipment and storage medium | |
CN114510417A (en) | Image rendering effect testing method and device, electronic equipment and storage medium | |
CN115373865A (en) | Concurrent thread management method, device, electronic equipment and storage medium | |
CN110913022A (en) | Method, device and system for downloading network file of mobile terminal and storage medium | |
CN112667868A (en) | Data detection method and device | |
CN105656957B (en) | Using the method, apparatus and system of interior downloading third-party application | |
CN117234137B (en) | MCU clock frequency switching circuit, MCU and electronic equipment | |
CN113742703B (en) | Application program management and control method and device, electronic equipment and storage medium | |
CN111966271B (en) | Screen panorama screenshot method and device, terminal equipment and storage medium | |
CN114363361A (en) | Data synchronization method and device, electronic equipment and storage medium | |
CN112799857A (en) | Application access method and device |
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 |