CN114189436B - 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 PDF

Info

Publication number
CN114189436B
CN114189436B CN202111489617.0A CN202111489617A CN114189436B CN 114189436 B CN114189436 B CN 114189436B CN 202111489617 A CN202111489617 A CN 202111489617A CN 114189436 B CN114189436 B CN 114189436B
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.)
Active
Application number
CN202111489617.0A
Other languages
Chinese (zh)
Other versions
CN114189436A (en
Inventor
请求不公布姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202111489617.0A priority Critical patent/CN114189436B/en
Publication of CN114189436A publication Critical patent/CN114189436A/en
Application granted granted Critical
Publication of CN114189436B publication Critical patent/CN114189436B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy 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)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (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 dependence on manpower in the equipment configuration process can be reduced, manpower resources are saved, and the equipment configuration efficiency is improved on the basis of ensuring the equipment configuration accuracy.

Description

Multi-cluster configuration deployment method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for deploying multi-cluster configuration, an electronic device, and a storage medium.
Background
With the rapid development of science and technology, various high-tech devices have been put into daily life. For example, in operation, people often need to rely on various types of equipment to complete the work. Generally, for a company, unified configuration is often carried out on equipment of staff, and through the unified configuration, working data required by work can be provided for the staff, so that the equipment of the staff can be managed conveniently.
At present, the main method adopted when various devices are deployed is that the configuration of the various devices is modified by manually configuring the relevant configuration information according to the information required to be deployed, so that the configuration of the various devices is realized. However, by adopting the scheme, complicated manual operation is required, configuration errors are easy to cause, quick deployment and quick online are difficult to achieve, and the configuration efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a multi-cluster configuration deployment method, a multi-cluster configuration deployment device, electronic equipment and a storage medium, which can reduce the dependence on manpower in the equipment configuration process, save human resources and improve the equipment configuration efficiency on the basis of ensuring the equipment configuration accuracy.
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;
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, and a target configuration deployment interface between the cluster deployment node and the target cluster management system of the target cluster is determined;
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 equipment in the target cluster management system, wherein the configuration deployment information is used for indicating the equipment to adjust configuration parameters.
Correspondingly, the embodiment of the invention also provides a multi-cluster configuration deployment device, which comprises:
the request acquisition unit is used for acquiring a configuration deployment request, wherein the configuration deployment request 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;
The information sending unit is used for 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 equipment in the target cluster management system, and the configuration deployment information is used for indicating the equipment to adjust configuration parameters.
Optionally, the interface determining unit is configured to send the configuration deployment request to a cluster deployment node, and trigger the cluster deployment node 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 used for determining a target first connection mapping relation corresponding to a target cluster management system of the target cluster;
Analyzing the first connection mapping relation of the target 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 device provided by the embodiment of the present invention further includes a first node creation unit, configured to obtain a first connection mapping relationship 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 physical configuration information of the server.
Optionally, the information sending unit is configured to invoke the target configuration deployment interface and send 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 devices in the target cluster management system.
Optionally, the multi-cluster configuration deployment device provided by the embodiment of the present invention further includes a second node creation 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 number of the configuration deployment requests does not exceed the request processing threshold of the cluster deployment node, the configuration deployment requests are sent to the cluster deployment node;
And if the number 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 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, so as to execute steps in any multi-cluster configuration deployment method provided by the embodiment of the invention.
Correspondingly, the embodiment of the invention also provides a computer readable storage medium, which stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor to execute the steps in any multi-cluster configuration deployment method provided by the embodiment of the invention.
In addition, the embodiment of the invention also provides a computer program product, which comprises a computer program or instructions, wherein the computer program or instructions realize the steps in any multi-cluster configuration deployment method provided by the embodiment of the invention when being executed by a processor.
By adopting the scheme of the embodiment of the invention, a configuration deployment request can be acquired, 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 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, 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 equipment is gathered in the clusters, when a plurality of equipment needs to be deployed, the target clusters needing to be deployed can be determined from the clusters, and the configuration deployment information is sent to the target clusters through the target configuration deployment interface, so that the deployment of the equipment in the target clusters is realized, the dependence on manpower in the equipment configuration process can be reduced, the manpower resource is saved, and the efficiency of equipment configuration is improved on the basis of ensuring the accuracy of equipment configuration.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a scenario of a multi-cluster configuration deployment method provided by an embodiment of the present invention;
FIG. 2 is a flow chart 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 configuration deployment device according to an embodiment of the present invention;
FIG. 5 is another schematic structural diagram of a multi-cluster configuration 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 following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the 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 invention provides a multi-cluster configuration deployment method suitable for a multi-cluster configuration deployment device, and the multi-cluster configuration deployment device can be integrated in electronic equipment.
The electronic device may be a terminal or the like, including but not limited to a mobile terminal and a fixed terminal, for example, a mobile terminal including but not limited to a smart phone, a smart watch, a tablet computer, a notebook computer, a smart car, etc., wherein the fixed terminal includes but not limited to a desktop computer, a smart television, etc.
The electronic device may be a server, which may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network ), and basic cloud computing services such as 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 by a terminal and the server together.
The method for jointly implementing the multi-cluster configuration deployment by the terminal and the server is taken as an example and is described below.
As shown in fig. 1, the multi-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, wherein the terminal 10 may exist as a terminal that a user sends a configuration deployment request to the server 20.
The terminal 10 may upload 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 cluster indication information and 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.
Server 20 may invoke 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, where the configuration deployment information is used to instruct the devices to adjust configuration parameters.
The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
The embodiments of the present invention will be described in terms of a multi-cluster configuration deployment apparatus, which may be integrated in a server and/or a terminal in particular.
As shown in fig. 2, the specific flow of the multi-cluster configuration deployment method of the present embodiment may be as follows:
201. And 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 that conveys configuration deployment-related information in the cluster. In addition to the cluster indication information and the configuration deployment information, the configuration deployment request may further include a user identifier sending the configuration deployment request and/or a device identifier sending the configuration deployment request, etc.
The cluster indication information may indicate which cluster or clusters the configuration deployment information should be issued into, for example, the cluster indication information may be a cluster identifier or an identifier of a target cluster management device, where the target cluster management device is a device that deploys the target cluster management system.
The configuration deployment information may instruct the device to adjust its own 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 so on.
202. And 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 a cluster management system of each cluster through a configuration deployment interface. Configuration deployment information may be pushed into the target cluster by the cluster deployment node. The cluster deployment node can be arranged in a server, a terminal for sending a configuration deployment request or a device or a container in a certain cluster, and a technician can set the cluster deployment node according to the actual application situation.
Specifically, the target cluster is a cluster which is determined from the associated clusters and needs to be configured and deployed. It will be appreciated that there may be one or more target clusters, and the invention is not limited in this respect.
The cluster management system is a system capable of managing clusters and can provide services such as automatic capacity expansion and restarting for the clusters. It is understood that the cluster may be a cluster of devices consisting of at least one individual device, a cluster of containers consisting of containers, etc. The cluster management system may be implemented by Kubernertes (k 8 s) 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 for two separate components in a computer system to exchange information. Such exchanges may occur between computer software, hardware, external devices, or persons operating, or a combination thereof. For the embodiment of the invention, the configuration deployment interface can be a shared boundary for deployment configuration information exchange between the cluster deployment node and the cluster management system.
In some alternative embodiments, an intranet connection may be established between clusters in advance, so as to prevent configuration information leakage caused by exposing an external network. That is, step 202 may include:
And sending the configuration deployment request to a cluster deployment node, and triggering the cluster deployment node to acquire a configuration deployment interface corresponding to each cluster and a first connection mapping relation corresponding to a cluster management system of each cluster.
The first connection mapping relationship may be a correspondence relationship between the cluster management system and an intranet IP where the cluster management system is located.
Accordingly, the step of "invoking the target configuration deployment interface and sending 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 first connection mapping relation of the target 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 the actual address of each device or container that can be managed by the target cluster management system.
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 physical configuration information of the server.
Wherein the physical configuration information may be a physical address of a server, etc. The first connection mapping relationship may be imported in the server, and the cluster deployment node is created based on the first connection mapping relationship.
For example, a technician may pre-designate different intranet domain names by using the following codes to establish a first connection mapping relationship of the cluster management system.
In some optional embodiments, the cluster deployment node is also in the intranet, and a technician can pre-designate the intranet domain name of the cluster deployment node through the following codes, so that the cluster deployment node is prevented from being exposed to the external network to affect cluster security.
# Configuration apollo Console Intranet Domain name
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 number of the configuration deployment requests does not exceed the request processing threshold of the cluster deployment node, the configuration deployment requests are sent to the cluster deployment node;
And if the number 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 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 the configuration distribution node in the target cluster management system, i.e. step 203 may comprise:
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 in the intranet, and the technician can pre-designate the intranet domain name of the configuration distribution node through the following codes, so that the configuration distribution node is prevented from being exposed to the external network to affect cluster security:
In some alternative embodiments, prior to 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.
The second connection mapping relation is the 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 the user terminal, and after accessing the intranet address, through intranet equalization, the server may send a configuration deployment request to the cluster deployment node (Apollp console service pod). Apollp the console service pod can determine the target cluster from among server-associated multi-clusters (dev environment clusters, test environment clusters, and/or prod environment clusters, etc.) based on the cluster indication information in the configuration deployment request. Taking the target cluster as a dev environment cluster as an example, the configuration deployment information can be issued to devices (service pod1, service pod2, and the like) 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 foregoing, 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, 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, and 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 devices in the target cluster management system, where the configuration deployment information is used to instruct the devices to adjust configuration parameters; in the scheme of the embodiment of the invention, the equipment is gathered in the clusters, when a plurality of equipment needs to be deployed, the target clusters needing to be deployed can be determined from the clusters, and the configuration deployment information is sent to the target clusters through the target configuration deployment interface, so that the deployment of the equipment in the target clusters is realized, the dependence on manpower in the equipment configuration process can be reduced, the manpower resource is saved, and the efficiency of equipment configuration is improved on the basis of ensuring the accuracy of equipment configuration.
In order to better implement the method, correspondingly, the embodiment of the invention also 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;
The interface determining unit 403 may be 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 a cluster deployment node, trigger the cluster deployment node 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 first connection mapping relation of the target 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 by the embodiments of the present invention may further include a first node creation unit 404, configured to obtain a first connection mapping relationship 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 physical configuration information of the server.
In some optional embodiments, the information sending unit may be configured to invoke the target configuration deployment interface to send 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 devices in the target cluster management system.
In some optional embodiments, the multi-cluster configuration deployment apparatus provided by the embodiments of the present invention may further include a second node creation unit 405, configured to obtain a second connection mapping relationship between each cluster management system and a 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 number of the configuration deployment requests does not exceed the request processing threshold of the cluster deployment node, the configuration deployment requests are sent to the cluster deployment node;
And if the number 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, by the multi-cluster configuration deployment device, a configuration deployment request can be acquired, 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, 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 devices in the target cluster management system, and the configuration deployment information is used to instruct the devices to adjust configuration parameters; in the scheme of the embodiment of the invention, the equipment is gathered in the clusters, when a plurality of equipment needs to be deployed, the target clusters needing to be deployed can be determined from the clusters, and the configuration deployment information is sent to the target clusters through the target configuration deployment interface, so that the deployment of the equipment in the target clusters is realized, the dependence on manpower in the equipment configuration process can be reduced, the manpower resource is saved, and the efficiency of equipment configuration is improved on the basis of ensuring the accuracy of equipment configuration.
In addition, the embodiment of the present invention further provides an electronic device, which may be a terminal or a server, as shown in fig. 6, and shows a schematic structural diagram of the electronic device according to the embodiment of the present invention, 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, wireless Fidelity) module 607, processor 608 including one or more processing cores, and power supply 609. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 6 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
The RF circuit 601 may be used for receiving and transmitting signals during a message or a call, and in particular, after receiving downlink information of a base station, the downlink information is processed by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. Typically, RF circuitry 601 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM, subscriber Identity Module) card, a transceiver, a coupler, a low noise amplifier (LNA, low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 601 may also communicate with networks and other devices through wireless communications. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications (GSM, global System of Mobile communication), universal packet Radio Service (GPRS, general Packet Radio Service), code division multiple access (CDMA, code Division Multiple Access), wideband code division multiple access (WCDMA, wideband Code Division Multiple Access), long term evolution (LTE, long Term Evolution), email, short message Service (SMS, short MESSAGING SERVICE), and the like.
The memory 602 may be used to store software programs and modules that are stored in the memory 602 for execution by the processor 608 to perform various functional applications and data processing. The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device (such as audio data, phonebooks, etc.), and the like. In addition, 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 access to the memory 602 by the processor 608 and the input unit 603.
The input unit 603 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the 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 thereon or thereabout by a user (e.g., operations thereon or thereabout by a user using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a predetermined program. Alternatively, the touch-sensitive surface may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth 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 detection device and converts it into touch point coordinates, which are then sent to the processor 608, and can receive commands from the processor 608 and execute them. In addition, touch sensitive surfaces may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic waves. The input unit 603 may comprise other input devices in addition to a 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, mouse, joystick, etc.
The display unit 604 may be used to display information entered by a user or provided to a user as well as various graphical user interfaces of the electronic device, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 604 may include a display panel, which may optionally 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 a display panel, and upon detection of a touch operation thereon or thereabout, the touch-sensitive surface is passed 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 based on the type of touch event. Although in fig. 6 the touch sensitive surface and the display panel are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement the input and output functions.
The electronic device may also include at least one sensor 605, such as a light sensor, a 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 backlight when the electronic device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the electronic device are not described in detail herein.
Audio circuitry 606, speakers, and a microphone may provide an audio interface between the user and the electronic device. The audio circuit 606 may transmit the received electrical signal after audio data conversion to a speaker, where the electrical signal is converted to a sound signal for output; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 606 and converted into audio data, which are processed by the audio data output processor 608 for transmission via the RF circuit 601 to, for example, another electronic device, or which are output to the memory 602 for further processing. The audio circuit 606 may also include an ear bud jack to provide communication of the peripheral ear bud with the electronic device.
WiFi belongs to a short-distance wireless transmission technology, and the electronic equipment can help a user to send and receive emails, browse webpages, access streaming media and the like through the WiFi module 607, so that wireless broadband Internet access is provided for the user. Although fig. 6 shows a WiFi module 607, it is understood that it does not belong to the necessary constitution of the electronic device, and can be omitted entirely as needed within the scope of not changing the essence of the invention.
The processor 608 is a control center of the electronic device that uses various interfaces and lines to connect the various parts of the overall handset, performing various functions of the electronic device and processing the data by running or executing software programs and/or modules stored in the memory 602, and invoking data stored in the memory 602, thereby performing overall monitoring of the handset. Optionally, the processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that 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 be logically connected to the processor 608 via a power management system so as to perform functions such as managing charge, discharge, and power consumption via the power management system. The power supply 609 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the electronic device may further include a camera, a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the processor 608 in the electronic device loads executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 608 executes 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;
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, and a target configuration deployment interface between the cluster deployment node and the target cluster management system of the target cluster is determined;
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 equipment in the target cluster management system, wherein the configuration deployment information is used for indicating the equipment to adjust configuration parameters.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, 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 capable of being loaded by a processor to perform the steps of any of the multi-cluster configuration deployment methods 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;
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, and a target configuration deployment interface between the cluster deployment node and the target cluster management system of the target cluster is determined;
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 equipment in the target cluster management system, wherein the configuration deployment information is used for indicating the equipment to adjust configuration parameters.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Because the instructions stored in the computer readable storage medium can execute the steps in any multi-cluster configuration deployment method provided by the embodiment of the present invention, the beneficial effects that any multi-cluster configuration deployment method provided by the embodiment of the present invention can achieve can be achieved, which are detailed in the previous embodiments and are not described herein.
According to one aspect of the present application, there is also provided a computer program product or 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 executes the computer instructions to cause the electronic device to perform the methods provided in the various alternative implementations of the embodiments described above.
The foregoing describes in detail a multi-cluster configuration deployment method, apparatus, electronic device and storage medium provided by the embodiments of the present invention, and specific examples are applied to illustrate the principles and embodiments of the present invention, where the foregoing description of the embodiments is only for helping to understand the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present invention, the present description should not be construed as limiting the present invention.

Claims (9)

1. A multi-cluster configuration deployment method, comprising:
Acquiring a configuration deployment request, wherein the configuration deployment request comprises cluster indication information and configuration deployment information;
The method comprises the steps of sending a configuration deployment request to a cluster deployment node by accessing an intranet address, triggering the cluster deployment node to determine a target cluster from a plurality of clusters associated with a server based on the cluster indication information, and obtaining a configuration deployment interface corresponding to each cluster and a first connection mapping relation corresponding to a cluster management system of each cluster, wherein the first connection mapping relation is a corresponding relation between the cluster management system and the intranet IP where the cluster management system is located, the cluster deployment node is connected with the cluster management system of each cluster through the configuration deployment interface, and the cluster deployment node is in the intranet and is configured with an intranet domain name;
Determining a target first connection mapping relation corresponding to a target cluster management system of the target cluster;
Analyzing the first connection mapping relation of the target to obtain a target connection address corresponding to the target cluster management system;
and calling a target configuration deployment interface, and sending configuration deployment information to the target cluster management system through the target connection address so that the target cluster management system distributes the configuration deployment information to equipment in the target cluster management system, wherein the configuration deployment information is used for indicating the equipment to adjust configuration parameters.
2. The multi-cluster configuration deployment method of claim 1, wherein the sending the configuration deployment request to a cluster deployment node triggers the cluster deployment node to determine a target cluster from a plurality of clusters associated with a server based on the cluster indication information, and wherein prior to 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 physical configuration information of the server.
3. The multi-cluster configuration deployment method of claim 1, wherein the invoking the target configuration deployment interface to send configuration deployment information to the target cluster management system to cause the target cluster management system to distribute 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.
4. A multi-cluster configuration deployment method according to claim 3, wherein the invoking the target configuration deployment interface, before sending configuration deployment information to the configuration distribution node in the target cluster management system of the target cluster, 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.
5. The multi-cluster configuration deployment method of any of claims 1-4, wherein the server comprises the cluster deployment node and a candidate cluster deployment node, and wherein 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 number of the configuration deployment requests does not exceed the request processing threshold of the cluster deployment node, the configuration deployment requests are sent to the cluster deployment node;
And if the number 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.
6. A multi-cluster configuration deployment apparatus, comprising:
the request acquisition unit is used for acquiring a configuration deployment request, wherein the configuration deployment request comprises cluster indication information and configuration deployment information;
The interface determining unit is configured to send the configuration deployment request to a cluster deployment node by accessing an intranet address, trigger the cluster deployment node to determine a target cluster from multiple clusters associated with a server based on the cluster indication information, and obtain a configuration deployment interface corresponding to each cluster, and a first connection mapping relationship corresponding to a cluster management system of each cluster, where the first connection mapping relationship is a correspondence relationship between the cluster management system and an intranet IP where the cluster management system is located, the cluster deployment node is connected with the cluster management system of each cluster through the configuration deployment interface, and the cluster deployment node is in the intranet and is configured with an intranet domain name;
The information sending unit is used for determining a target first connection mapping relation corresponding to a target cluster management system of the target cluster; analyzing the first connection mapping relation of the target to obtain a target connection address corresponding to the target cluster management system; and calling a target configuration deployment interface, and sending configuration deployment information to the target cluster management system through the target connection address so that the target cluster management system distributes the configuration deployment information to equipment in the target cluster management system, wherein the configuration deployment information is used for indicating the equipment to adjust configuration parameters.
7. An electronic device comprising 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 in the multi-cluster configuration deployment method according to any one of claims 1 to 5.
8. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps in the multi-cluster configuration deployment method of any of claims 1 to 5.
9. A computer program product comprising computer programs or instructions which, when executed by a processor, implement the steps of the multi-cluster configuration deployment method of any of claims 1 to 5.
CN202111489617.0A 2021-12-08 2021-12-08 Multi-cluster configuration deployment method and device, electronic equipment and storage medium Active CN114189436B (en)

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 CN114189436A (en) 2022-03-15
CN114189436B true 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 (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10425275B2 (en) * 2015-02-12 2019-09-24 Advanced Micro Devices, Inc. Centralized distribution of configuration parameters for a cluster server
US11206316B2 (en) * 2020-03-04 2021-12-21 Hewlett Packard Enterprise Development Lp Multiple model injection for a deployment cluster

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
CN114189436A (en) 2022-03-15

Similar Documents

Publication Publication Date Title
US10635449B2 (en) Method and apparatus for running game client
CN107094294B (en) Network connection method and device
WO2015090248A1 (en) Server overload protection method and device
US20170316781A1 (en) Remote electronic service requesting and processing method, server, and terminal
CN105227598B (en) Resource sharing method, device and system based on cloud storage
CN107122036B (en) Method and device for adjusting frequency of central processing unit
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN107317828B (en) File downloading method and device
CN110891262A (en) Bluetooth pairing method, system and terminal equipment
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
CN113852450A (en) Message push feedback method and device, electronic equipment and storage medium
CN110913022A (en) Method, device and system for downloading network file of mobile terminal and storage medium
CN107346347B (en) Webpage table display method and device
CN108280798B (en) Method and device for rendering and displaying browser kernel
CN108111553B (en) Method and device for providing service
CN112214699A (en) Page processing method and related device
CN110891304B (en) gPS power consumption control method for mobile terminal
CN111405649B (en) Information transmission method and device and mobile terminal
CN106033358B (en) Batch installation method and device of application programs
CN105278967B (en) System updating method, device and system of mobile terminal
CN105656957B (en) Using the method, apparatus and system of interior downloading third-party application
CN113254090B (en) Application management method and device and projection equipment
CN112799857B (en) Application access method, device, terminal and storage medium

Legal Events

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