CN114095280B - Cloud platform server communication channel construction method, communication method, device and server - Google Patents

Cloud platform server communication channel construction method, communication method, device and server Download PDF

Info

Publication number
CN114095280B
CN114095280B CN202210063027.XA CN202210063027A CN114095280B CN 114095280 B CN114095280 B CN 114095280B CN 202210063027 A CN202210063027 A CN 202210063027A CN 114095280 B CN114095280 B CN 114095280B
Authority
CN
China
Prior art keywords
cloud platform
platform server
communication
message queue
message
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
CN202210063027.XA
Other languages
Chinese (zh)
Other versions
CN114095280A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210063027.XA priority Critical patent/CN114095280B/en
Publication of CN114095280A publication Critical patent/CN114095280A/en
Application granted granted Critical
Publication of CN114095280B publication Critical patent/CN114095280B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management

Abstract

The embodiment of the invention relates to a cloud platform server communication channel construction method, a communication method, a device and a server, wherein the method comprises the following steps: when the communication connection with the first cloud platform server is determined to be established, sending a first configuration instruction and verification information to the first cloud platform server; acquiring a second message queue; and establishing a communication channel between the central cloud platform server and the first cloud platform server according to the first message queue, the second message queue and the pre-configured first switch. Through the mode, the central cloud platform server can establish communication connection with any cloud platform server within the self management range, and further monitors and manages the cloud resources of the cloud platform servers within the self management range.

Description

Cloud platform server communication channel construction method, communication method, device and server
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a cloud platform server communication channel construction method, a cloud platform server communication channel construction device, a cloud platform server communication device and a server.
Background
In the cloud computing era, the scale of a cloud pipe platform is getting larger and larger. The cloud pipe platforms are dispersed in different regions. The relatively general scheme is that a set of web pages are provided outwards on a cloud management platform deployed in multiple places, and a user can manage cloud resources of all areas through the web pages. The web page needs to access resources of all regions, for example, access to shanghai resources from beijing, needs to pass through a beijing gateway, then pass through a shanghai gateway, and then access to shanghai local resources, so that a too long call chain, network delay and the like are brought to the great chance, and the cloud platform is unstable.
In order to solve the above technical problem, although one web page may be configured in each of the different areas, the local area may access the cloud platform through the local access portal to obtain the cloud platform resources in the area. However, after the operation, the cloud platform servers are not intercommunicated. And then the situation that the resources and the like of all the cloud platforms cannot be uniformly monitored and managed occurs.
Disclosure of Invention
The application provides a cloud platform server communication channel construction method, a cloud platform server communication device and a server, and aims to solve any one of the technical problems in the prior art.
In a first aspect, the present application provides a method for constructing a communication channel of a cloud platform server, where the method is executed by a central cloud platform server, and includes:
when the communication connection with the first cloud platform server is determined to be established, sending a first configuration instruction and verification information to the first cloud platform server, wherein the verification information is used for verifying the identity validity of the first cloud platform server, the first configuration instruction is used for indicating the first cloud platform server to determine whether a first message queue for establishing the communication connection with the central cloud platform server exists or not, and when the first message queue does not exist, the first message queue is established;
acquiring a second message queue;
and establishing a communication channel between the central cloud platform server and the first cloud platform server according to the first message queue, the second message queue and the pre-configured first switch.
In a second aspect, the present application provides a cloud platform server communication method, where the method is performed by any cloud platform server, and includes:
when it is determined to forward the message to the preset cloud platform server, the message is transmitted to the preset cloud platform server through the communication channel with the preset cloud platform server, which is established by the cloud platform server communication channel establishing method introduced in the first aspect.
In a third aspect, the present application provides a cloud platform server communication channel constructing apparatus, including:
the system comprises a sending module, a receiving module and a processing module, wherein the sending module is used for sending a first configuration instruction and verification information to a first cloud platform server when the first cloud platform server is determined to be in communication connection with the first cloud platform server, the verification information is used for verifying the identity validity of the first cloud platform server, the first configuration instruction is used for indicating the first cloud platform server to determine whether a first message queue for establishing communication connection with a central cloud platform server exists or not, and when the first cloud platform server does not exist, the first message queue is established;
the establishing module is used for acquiring a second message queue;
the receiving module is used for receiving response information of the completion of the establishment of the first message queue sent by the first cloud platform server;
the establishing module is further used for establishing a communication channel between the central cloud platform server and the first cloud platform server according to the first message queue, the second message queue and the pre-configured first switch.
In a fourth aspect, a cloud platform server is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor, configured to implement, when executing a program stored in a memory, the steps of the cloud platform server communication channel construction method according to any one of the embodiments of the first aspect;
or, the steps of the cloud platform server communication method according to any one of the embodiments of the second aspect are implemented when the method is used for executing a program stored in a memory.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the steps of the cloud platform server communication channel construction method according to any one of the embodiments of the first aspect; alternatively, the steps of the cloud platform server communication method according to any embodiment of the second aspect are implemented.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
according to the method provided by the embodiment of the application, when the communication connection with the first cloud platform server is determined to be established, the first configuration instruction and the verification information are sent to the first cloud platform server. The verification information is used for verifying the validity of the identity of the user. The first configuration instruction is used for instructing the first cloud platform server to establish a first message queue. And one side of the central cloud platform server acquires the second message queue, and then establishes communication connection between the central cloud platform server and the first cloud platform server according to the first message queue, the second message queue and the pre-configured first switch. Through the method, the central cloud platform server can establish communication connection with any cloud platform server within the self management range, and further monitor and manage the cloud resources of the cloud platform server within the self management range, such as monitoring and allocating the cloud resources, monitoring the performance of the cloud platform server and the like.
Drawings
Fig. 1 is a schematic flow chart of a method for establishing a cloud platform server communication channel according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a method for registering a cloud platform server in a central cloud platform server according to the present invention;
fig. 3 is a schematic flow chart of another method for constructing a communication channel of a cloud platform server according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of establishing a bidirectional communication channel between cloud platform servers according to the present invention;
fig. 5 is a schematic flow chart of a cloud platform server communication method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a cloud platform server communication channel construction device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a cloud platform server communication device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a cloud platform server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. 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.
For the convenience of understanding of the embodiments of the present invention, the following description will be further explained with reference to specific embodiments, which are not to be construed as limiting the embodiments of the present invention.
Aiming at the technical problems mentioned in the background technology, the embodiment of the application provides a cloud platform server communication channel construction method. Before the method for constructing the communication channel of the cloud platform server provided by the embodiment of the invention is introduced, the cloud platform server to be introduced in the embodiment of the invention is firstly described, and the communication between the cloud platform servers is mainly based on the communication between different areas in the shovel mode. The shovel mode is provided for a ribbon (shovel) function based on ribbon mq, the ribbon mq needs to be deployed on each cloud platform server, different mq on different cloud platform servers can be communicated through the ribbon, and shovels on two different cloud platform servers are unidirectional and reliable. By utilizing the characteristic, the user can customize one-way communication or two-way communication between the two cloud platform servers. Based on the method, the management function of the cloud platform server is provided. In the management of the multiple cloud platform servers, a central cloud platform server needs to be designated, other cloud platform servers need to be added into the multiple cloud management system, a registration function needs to be initiated to the central cloud platform server, the central cloud platform server verifies whether the cloud platform server is available, if the cloud platform server is available (namely, whether a shovel function is configured is judged), connection is established between the cloud platform server and the cloud platform server based on a shovel, and an administrator can set communication between the two cloud platform servers to be single communication or two-way communication. This approach is more flexible, reliable and safe.
The RabbitMq starts a shovel function;
shovel is a function provided by the RabbitMq service for communication among a plurality of mq services across a cluster. Shovel can be configured to synchronize messages in one queue in a given mq service to a given queue in another mq service.
The opening mode is as follows:
the RabbiMq console can be started by executing the following commands:
a rabbitmq-plugin enable rabbitmq _ shovel (activating shovel plug-in);
and (3) accessing the table plug-in management function by using the table plug-in management function.
Selecting a central cloud platform server;
the central cloud platform server serves as a central role of all the cloud platform servers, and the central cloud platform server needs to manage communication between a common cloud platform and the cloud platform servers except for a communication function of the common cloud platform server.
The related functions of the central cloud platform server comprise: registering a common cloud platform server; and communication management between the common cloud platform servers, communication management between the common cloud platform servers and the central server and the like. The specific registration process will be described below.
For a specific implementation process, reference is also made to the method flow diagram shown in fig. 1. Fig. 1 is a schematic flow chart of a method for establishing a communication channel of a cloud platform server according to an embodiment of the present invention, where the method is executed by a central cloud platform server, and the method includes:
step 110, when it is determined that a communication connection is to be established with the first cloud platform server, sending a first configuration instruction and verification information to the first cloud platform server.
Specifically, in a general situation, communication connection is mainly established to other cloud platform servers through a central cloud platform server. The cloud resource monitoring system is used for sending corresponding control instructions, monitoring the performance of other cloud platform servers, or monitoring and allocating the cloud resources of other cloud platform servers. Certainly, in some cases, the method also includes that the other cloud platform servers synchronize certain processing data of the other cloud platform servers to the central cloud platform server, so that the central cloud platform server performs backup and executes corresponding processing, or the operating condition of the cloud platform server is judged according to data transmitted by the other cloud platform servers. The premise of these operations is that the central cloud platform server needs to establish a communication connection with other cloud platform servers.
Therefore, when determining that a communication connection needs to be established with a certain cloud platform server, the central cloud platform server may first send a first configuration instruction and verification information to the cloud platform server.
The verification information is used for verifying the validity of the identity of the user. Namely, the verification information is used for proving that the central cloud platform server sends the information. The first configuration instruction is used for instructing a first cloud platform server (any one of the cloud platform servers) to establish a first message queue.
It should be noted that if a communication connection between two cloud platform servers is desired, the communication connection needs to be implemented through a queue on the basis of the shovel mode. Therefore, a configuration instruction needs to be issued first to establish a communication connection between the cloud platform servers.
In an alternative embodiment, if the first cloud platform server and the central cloud platform server have previously established a communication connection, the process of sending the first configuration instruction may be omitted, that is, the first message queue does not need to be re-established.
However, if the central cloud platform server deletes the first cloud platform server in the cloud management system because the central cloud platform server and the first cloud platform server have previously established a communication connection but no message is transmitted for a long time, the operation needs to be executed again to establish the first message queue by the first cloud platform.
Optionally, as introduced above, the premise of the central cloud platform server establishing a communication connection with any cloud platform server (e.g., the first cloud platform server) is that both of them have a shovel function first. In other words, the cloud platform server needs to initiate a registration request to the central cloud platform server, and after the central cloud platform server successfully registers the central cloud platform server, the central cloud platform server joins the cloud platform server into the cloud management system. Only subsequently can a communication connection be established, so that the method may further comprise the following steps, see in particular fig. 2, before performing step 110. Fig. 2 is a schematic flow chart illustrating a method for registering a cloud platform server in a central cloud platform server.
Step 210, receiving a registration request sent by at least one cloud platform server.
Step 220, when it is determined that the registration request of one or more cloud platform servers in the at least one cloud platform server meets a preset requirement, completing registration of the one or more cloud platform servers.
Specifically, the registration of the common cloud platform server needs to be performed in the central cloud platform server, that is, one common cloud platform server needs to be brought into the central cloud platform server for management, and after the central cloud platform server authorizes (that is, shovel connection is established), the common cloud platform server can be brought into the multi-cloud platform server for management. For a common cloud platform server, firstly, a RabbitMq service is started on the premise of registration, and a shovel function is started by the service. Take the registration of a cloud platform server as an example.
Firstly, whether the common cloud platform server is successfully connected with the central cloud platform server is verified, and if the common cloud platform server is successfully connected with the central cloud platform server, account information and password information sent by the common cloud platform server are obtained. And determining whether the common cloud platform server has a shovel function. After the cloud platform server is determined to have the shovel function and the account information and the password information are determined to be valid, which is equivalent to determining that the cloud platform server meets the preset requirements, the cloud platform server can be registered.
Step 120, a second message queue is obtained.
Specifically, after the configuration instruction and the verification information are issued to the first cloud platform server, certain operations, including acquiring the second message queue, also need to be executed on one side of the central cloud platform server.
Specifically, as described above with respect to the first message queue, if a communication connection with the first cloud platform server has been previously established, the second message queue is equivalent to the established one. The second message queue may still exist as long as the first cloud platform server is not deleted in the cloud platform management system.
However, if the communication connection is established with the first cloud platform server for the first time, or the relevant information is deleted although the communication connection is established before, the second message queue needs to be reestablished.
Step 130, establishing a communication channel between the central cloud platform server and the first cloud platform server according to the first message queue, the second message queue and the preconfigured first switch.
Specifically, a communication channel between the first cloud platform server and the central cloud platform server is established based on the shovel function, and the communication between the two message queues is realized through the switch. To synchronize messages in one of the message queues to the other.
Therefore, the first message queue and the second message queue establish communication through the pre-configured first switch, and a communication channel between the central cloud platform server and the first cloud platform server is further formed.
In an alternative example, the communication connection between the second message queue and the first switch needs to be established first, and then the communication connection between the first switch and the first message queue is established, so that the communication connection between the central cloud platform server and the first cloud platform server is formed.
And after the first cloud platform server receives the message synchronized by the central cloud platform server through the second message queue through the first message queue, the service module in the first cloud platform server performs corresponding service processing according to the message.
In an alternative example, communication based on the shovel mode is generally one-way communication.
If two-way connection between the central cloud platform service and the common cloud platform server is to be established respectively, communication channels need to be established respectively. The specific construction method is similar to the method introduced above, except that if the common cloud platform server needs to establish a communication connection with the central cloud platform server, the common cloud platform server needs to send an establishment request to the central cloud platform server, and configures account information and password information of the common cloud platform server in the request to verify the identity of the common cloud platform server. After receiving the establishment request, the central cloud platform server may automatically perform the similar operations, which is not described herein again.
Certainly, in a general case, for convenience in subsequent application, after the central cloud platform server is registered in the common cloud platform server, the central cloud platform server automatically establishes communication connection between the central cloud platform server and the common cloud platform server, so as to facilitate subsequent monitoring of the operation condition of the common cloud platform.
According to the method for establishing the communication channel of the cloud platform server, provided by the embodiment of the invention, when the communication connection with the first cloud platform server is determined to be established, the first configuration instruction and the verification information are sent to the first cloud platform server. The verification information is used for verifying the validity of the identity of the user. The first configuration instruction is used for instructing the first cloud platform server to establish a first message queue. And one side of the central cloud platform server acquires the second message queue, and then establishes communication connection between the central cloud platform server and the first cloud platform server according to the first message queue, the second message queue and the pre-configured first switch. Through the method, the central cloud platform server can establish communication connection with any cloud platform server within the self management range, and further monitor and manage the cloud resources of the cloud platform server within the self management range, such as monitoring and allocating the cloud resources, monitoring the performance of the cloud platform server and the like.
In the above embodiment, a process of establishing a communication channel between the central cloud platform server and the common cloud platform server is mainly described. In fact, besides that the central cloud platform server and the common cloud platform server need to establish a communication channel, a communication channel between the common cloud platform servers may also need to be established according to business requirements. In another optional embodiment of the present invention, a flow diagram of another cloud platform server communication channel construction method will be introduced. As shown in fig. 3, the method is also executed by the central cloud platform server, and includes:
step 310, a request for establishing communication connection sent by the second cloud platform server is obtained.
Specifically, the communication connection request is used for requesting establishment of a communication channel between the second cloud platform server and the third cloud platform server.
The communication request comprises account information of the second cloud platform, account information of the third cloud platform and the like, so that the central cloud platform server can determine an object needing to establish communication connection.
And 320, respectively sending verification information and a second configuration instruction to the second cloud platform server, and sending verification information and a third configuration instruction to the third cloud platform server.
Specifically, after determining two cloud platform servers that need to establish communication connection, the central cloud platform server may send corresponding configuration information to the second cloud platform server and the third cloud platform server, respectively. For example, the above-mentioned authentication information may be included to authenticate the identity of itself. And corresponding configuration instructions. The contents of the second configuration instruction and the third configuration instruction are basically the same as the contents of the first configuration instruction, and are used to instruct the corresponding cloud platform server to establish the message queue. Namely, the second configuration instruction is used for instructing the second cloud platform server to establish a third message queue, and the third configuration instruction is used for instructing the third cloud platform server to establish a fourth message queue;
different from the above, there is no situation that the second cloud platform server and the third cloud platform server have corresponding message queues, because if there is a corresponding message queue, it is no longer necessary to establish a communication channel through the central cloud platform server, but the message is transmitted after the communication connection is directly established. Therefore, when the establishment request is sent to the central cloud platform server, the second cloud platform server is defaulted to have no third message queue, and the third cloud platform server also has no fourth message queue.
And 330, constructing a communication channel between the second cloud platform server and the third cloud platform server according to the third message queue, the fourth message queue and the pre-configured second switch.
Specifically, after the second cloud platform server and the third cloud platform server establish the corresponding message queue, the central cloud platform server further needs to construct a communication channel between the second cloud platform server and the third cloud platform server according to the third message queue, the fourth message queue, and the preconfigured second switch.
For a specific construction process, reference may be made to a process of constructing a communication channel according to the first message queue and the second message queue, which is not described in detail herein. In fact, the third cloud platform server may itself comprise a central cloud platform server. That is, the embodiment of the method is not only applicable to communication connection between the common cloud platform servers, but also applicable to a process in which the common cloud platform server establishes a communication channel to the central cloud platform server, and only omits a process in which the central cloud platform server sends the configuration information and the third configuration instruction to the third cloud platform server if the third cloud platform server is the central cloud platform server. The message queue is directly built in the second switch, and then corresponding information is configured in the second switch, such as message forwarding port, destination port, receiving port and the like. And the second switch completes the message forwarding work.
Fig. 4 is a schematic diagram illustrating that two cloud platform servers establish a bidirectional communication channel, and because the communication mode is unidirectional communication, in fig. 4, two communication channels are established to implement communication between the two cloud platform servers and corresponding service processing. As can also be seen from the figure, two communication channels are required for bidirectional communication, each channel is established based on the shovel mode, corresponding queues are respectively established in the two cloud platform servers, and the two cloud platform servers communicate according to the corresponding queues. For the specific process, see above, it is not described here too much.
The one-way communication function provides a secure and reliable data communication mode. And each cloud platform server can independently operate, so that the problem of the length of the call chain caused by the fact that a central cloud platform server manages different cloud platform servers through a web page is solved. The shovel-based communication mode among the cloud platform servers can enable the plurality of cloud platform servers to be in data intercommunication, meanwhile, whether the plurality of cloud platform servers can be in communication or not, whether the cloud platform servers can be in one-way communication or two-way communication or not can be set by an administrator, and the configurable flexibility is higher.
The above embodiments are directed to a data communication process from the perspective of a central cloud platform server. In this embodiment, a method flow will be described from the perspective of using a common cloud platform server (including a central cloud platform server, of course) as a message receiving/sending party, specifically referring to fig. 5, where fig. 5 is a schematic flow diagram of a cloud platform server communication method provided in an embodiment of the present invention, and the method includes:
step 510, when it is determined to forward the message to the preset cloud platform server, transmitting the message to the preset cloud platform server through a communication channel between the preset cloud platform server and the communication channel established by the cloud platform server communication channel establishing method introduced in any of the above embodiments.
In addition to the transmission of the message,
optionally, the method further includes:
step 520, after receiving any message, determines whether the message is processed by itself.
Step 530, when the message is determined to be processed by the message, processing the message;
in step 540, the message is discarded when it is determined that the message is not to be processed by itself.
The method embodiment mainly considers that in some cases, one cloud platform server may establish communication connection with a plurality of cloud platform servers. Then, if message forwarding is implemented through the same switch, the switch may synchronize the message to multiple message queues. Then, the cloud platform server receiving the message needs to judge whether the received message needs to be processed by itself, if so, the message is processed, otherwise, the message is discarded.
Whether the message is processed by itself is specifically judged, and the message can be identified according to identification information and the like carried in the message.
Although the steps are labeled with numbers 510 to 540 as described above, the steps do not necessarily need to be executed in the logical order of 510, 520, etc., but may be set according to actual conditions, and will not be described in excess here.
When it is determined that a message needs to be synchronized to a preset cloud platform server, including but not limited to a central cloud platform server, the cloud platform server communication method provided by the embodiment of the invention can transmit the message to the preset cloud platform server through a communication channel established between the preset cloud platform server and the communication channel established by the cloud platform server communication channel establishing method introduced in any one of the embodiments. Especially, when a plurality of cloud platform servers exist, each cloud platform server can synchronize the corresponding cloud resource condition of the cloud platform server, the condition of processing information in the cloud platform and the like to the central cloud platform server, so that the central cloud platform server can supervise the condition in the cloud platform.
In the above, for the embodiments of the method for establishing the communication channel of the cloud platform server and the communication between the cloud platform servers provided by the present application, the following describes embodiments of the communication channel establishing apparatus of the cloud platform server and the communication apparatus of the cloud platform server provided by the present application, and specifically refer to the following.
Fig. 6 is a schematic structural diagram of a device for constructing a communication channel of a cloud platform server according to an embodiment of the present invention, where the device includes: a sending module 601, a building module 602, and a receiving module 603.
The sending module 601 is configured to send a first configuration instruction and verification information to the first cloud platform server when it is determined that communication connection is to be established with the first cloud platform server, where the verification information is used to verify identity validity of the first cloud platform server, the first configuration instruction is used to instruct the first cloud platform server to determine whether a first message queue for establishing communication connection with the central cloud platform server exists, and when the first message queue does not exist, the first message queue is established;
an establishing module 602, configured to obtain a second message queue;
a receiving module 603, configured to receive response information that establishment of the first message queue is completed, where the response information is sent by the first cloud platform server;
the establishing module 602 is further configured to establish a communication channel between the central cloud platform server and the first cloud platform server according to the first message queue, the second message queue, and the preconfigured first switch.
Optionally, the establishing module 602 is specifically configured to establish a communication connection between the second message queue and the first switch, and establish a communication connection between the first switch and the first message queue, so as to form a communication channel between the central cloud platform server and the first cloud platform server.
Optionally, the apparatus further comprises: a registration module 604;
the receiving module 603 is further configured to receive a registration request sent by at least one cloud platform server;
the registration module 604 is configured to complete registration of one or more cloud platform servers when it is determined that the registration request of one or more cloud platform servers of the at least one cloud platform server meets a preset requirement, so as to subsequently establish a communication channel between the central cloud platform server and the one or more cloud platform servers, respectively, where the first cloud platform server is one of the one or more cloud platform servers.
Optionally, the apparatus further comprises an obtaining module 605;
an obtaining module 605, configured to obtain a communication connection establishment request sent by a second cloud platform server, where the communication connection establishment request is used to request establishment of a communication channel between the second cloud platform server and a third cloud platform server;
the sending module 601 is further configured to send verification information and a second configuration instruction to the second cloud platform server, and send verification information and a third configuration instruction to the third cloud platform server; the second configuration instruction is used for indicating the second cloud platform server to establish a third message queue, and the third configuration instruction is used for indicating the third cloud platform server to establish a fourth message queue;
the establishing module 602 is further configured to establish a communication channel between the second cloud platform server and the third cloud platform server according to the third message queue, the fourth message queue, and the preconfigured second switch.
Optionally, the communication between the message queues is unidirectional communication.
The functions executed by each component in the cloud platform server communication channel construction device provided by the embodiment of the present invention have been described in detail in any method embodiment, and therefore, are not described herein again.
According to the cloud platform server communication channel construction device provided by the embodiment of the invention, when the communication connection with the first cloud platform server is determined to be established, the first configuration instruction and the verification information are sent to the first cloud platform server. The verification information is used for verifying the validity of the identity of the user. The first configuration instruction is used for instructing the first cloud platform server to establish a first message queue. And one side of the central cloud platform server acquires the second message queue, and then establishes communication connection between the central cloud platform server and the first cloud platform server according to the first message queue, the second message queue and the pre-configured first switch. Through the method, the central cloud platform server can establish communication connection with any cloud platform server within the self management range, and further monitor and manage the cloud resources of the cloud platform server within the self management range, such as monitoring and allocating the cloud resources, monitoring the performance of the cloud platform server and the like.
Fig. 7 is a schematic structural diagram of a cloud platform server communication device according to an embodiment of the present invention, where the device includes: a determination module 701 and a transmission module 702;
a determining module 701, configured to determine whether to forward a message to a preset cloud platform server;
a transmission module 702, configured to transmit the message to the preset cloud platform server through the communication channel between the preset cloud platform server and the communication channel established by the cloud platform server communication channel establishing method as described in any of the above embodiments when it is determined that the message is forwarded to the preset cloud platform server.
Optionally, the apparatus further comprises: a receiving module 703 and a processing module 704;
a receiving module 703, configured to receive any message;
a processing module 704 for determining whether the message is processed by itself; processing the message when it is determined that the message is processed by itself;
alternatively, the message is discarded when it is determined that the message is not to be processed by itself.
The functions executed by each component in the cloud platform server communication channel construction device provided by the embodiment of the present invention have been described in detail in any method embodiment, and therefore, are not described herein again.
When it is determined that a message required to be synchronized to a preset cloud platform server, including but not limited to a central cloud platform server, is present, the cloud platform server communication channel construction device according to the embodiment of the present invention may transmit the message to the preset cloud platform server through a communication channel between the preset cloud platform server and the communication channel established by the cloud platform server communication channel construction method according to any one of the embodiments described above. Especially, when a plurality of cloud platform servers exist, each cloud platform server can synchronize the corresponding cloud resource condition of the cloud platform server, the condition of processing information in the cloud platform and the like to the central cloud platform server, so that the central cloud platform server can supervise the condition in the cloud platform.
As shown in fig. 8, an embodiment of the present application provides a cloud platform server, which includes a processor 111, a communication interface 112, a memory 113, and a communication bus 114, where the processor 111, the communication interface 112, and the memory 113 complete communication with each other through the communication bus 114.
A memory 113 for storing a computer program;
in an embodiment of the present application, when the processor 111 is configured to execute the program stored in the memory 113, the method for constructing the cloud platform server communication channel provided in any one of the foregoing method embodiments is implemented, and includes:
when the communication connection with the first cloud platform server is determined to be established, sending a first configuration instruction and verification information to the first cloud platform server, wherein the verification information is used for verifying the identity validity of the first cloud platform server, the first configuration instruction is used for indicating the first cloud platform server to determine whether a first message queue for establishing the communication connection with the central cloud platform server exists or not, and when the first message queue does not exist, the first message queue is established;
acquiring a second message queue;
and establishing a communication channel between the central cloud platform server and the first cloud platform server according to the first message queue, the second message queue and the pre-configured first switch.
Optionally, a communication connection between the second message queue and the first switch is established, and a communication connection between the first switch and the first message queue is established, so as to form a communication channel between the central cloud platform server and the first cloud platform server.
Optionally, a registration request sent by at least one cloud platform server is received;
when the registration request of one or more cloud platform servers in at least one cloud platform server is determined to meet the preset requirement, the registration of the one or more cloud platform servers is completed, so that communication channels between a central cloud platform server and the one or more cloud platform servers are respectively established in the following process, wherein the first cloud platform server is one of the one or more cloud platform servers.
Optionally, a communication connection establishment request sent by the second cloud platform server is obtained, where the communication connection establishment request is used to request establishment of a communication channel between the second cloud platform server and a third cloud platform server;
respectively sending verification information and a second configuration instruction to a second cloud platform server, and sending verification information and a third configuration instruction to a third cloud platform server; the second configuration instruction is used for indicating the second cloud platform server to establish a third message queue, and the third configuration instruction is used for indicating the third cloud platform server to establish a fourth message queue;
and constructing a communication channel between the second cloud platform server and the third cloud platform server according to the third message queue, the fourth message queue and the preconfigured second switch.
Optionally, the communication between the message queues is unidirectional communication.
Or, the processor 111, configured to implement the cloud platform server communication method provided in any one of the foregoing method embodiments when executing the program stored in the memory 113, includes:
when it is determined to forward the message to the preset cloud platform server, the message is transmitted to the preset cloud platform server through the communication channel with the preset cloud platform server, which is established by the cloud platform server communication channel establishing method introduced in any of the above embodiments.
Optionally, after receiving any message, determining whether the message is processed by the message itself;
processing the message when it is determined that the message is processed by itself;
alternatively, the message is discarded when it is determined that the message is not to be processed by itself.
The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the cloud platform server communication channel construction method provided in any of the foregoing method embodiments.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A cloud platform server communication channel construction method is executed by a central cloud platform server, and the method comprises the following steps:
when the communication connection with a first cloud platform server is determined to be established, sending a first configuration instruction and verification information to the first cloud platform server, wherein the verification information is used for verifying the identity validity of the first cloud platform server, the first configuration instruction is used for indicating the first cloud platform server to determine whether a first message queue for establishing the communication connection with the center cloud platform server exists, and when the first message queue does not exist, the first message queue is established;
acquiring a second message queue;
and establishing a communication channel between the central cloud platform server and the first cloud platform server according to the first message queue, the second message queue and a pre-configured first switch.
2. The method according to claim 1, wherein the establishing a communication channel between the central cloud platform server and the first cloud platform server according to the first message queue, the second message queue, and a preconfigured first switch specifically includes:
establishing a communication connection between the second message queue and a first switch, and establishing a communication connection between the first switch and the first message queue to form a communication channel between the central cloud platform server and the first cloud platform server.
3. The method of claim 1, wherein before sending configuration instructions to the first cloud platform server and verifying information when it is determined that a communication connection is to be established with the first cloud platform server, the method further comprises:
receiving a registration request sent by at least one cloud platform server;
when the registration request of one or more cloud platform servers in at least one cloud platform server is determined to meet the preset requirement, the registration of the one or more cloud platform servers is completed, so that communication channels between the center cloud platform server and the one or more cloud platform servers are respectively established in the following process, wherein the first cloud platform server is one of the one or more cloud platform servers.
4. The method of claim 3, further comprising:
the method comprises the steps of obtaining a communication connection establishing request sent by a second cloud platform server, wherein the communication connection establishing request is used for requesting to establish a communication channel between the second cloud platform server and a third cloud platform server;
respectively sending the verification information and a second configuration instruction to the second cloud platform server, and sending the verification information and a third configuration instruction to the third cloud platform server; the second configuration instruction is used for instructing the second cloud platform server to establish a third message queue, and the third configuration instruction is used for instructing the third cloud platform server to establish a fourth message queue;
and constructing a communication channel between the second cloud platform server and the third cloud platform server according to the third message queue, the fourth message queue and a pre-configured second switch.
5. The method according to any of claims 1-4, wherein the communication between the message queues is a one-way communication.
6. A cloud platform server communication method, wherein the method is executed by any cloud platform server, and the method comprises the following steps:
when the message is determined to be forwarded to the preset cloud platform server, transmitting the message to the preset cloud platform server through the communication channel between the preset cloud platform server and the communication channel established by the cloud platform server communication channel establishing method according to any one of claims 1 to 5.
7. The method of claim 6, further comprising:
after receiving any message, determining whether the message is processed by the message;
processing the message when it is determined that the message is processed by itself;
alternatively, the message is discarded when it is determined that the message is not to be processed by itself.
8. A cloud platform server communication channel construction apparatus, the apparatus comprising:
the system comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending a first configuration instruction and verification information to a first cloud platform server when the communication connection with the first cloud platform server is determined to be established, the verification information is used for verifying the identity validity of the first cloud platform server, the first configuration instruction is used for indicating the first cloud platform server to determine whether a first message queue for establishing the communication connection with a central cloud platform server exists or not, and when the first message queue does not exist, the first message queue is established;
the establishing module is used for acquiring a second message queue;
the receiving module is used for receiving response information of the completion of the establishment of the first message queue sent by the first cloud platform server;
the establishing module is further configured to establish a communication channel between a central cloud platform server and the first cloud platform server according to the first message queue, the second message queue, and a preconfigured first switch.
9. The cloud platform server is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for completing mutual communication through the communication bus by the memory;
a memory for storing a computer program;
a processor for implementing the cloud platform server communication channel construction method according to any one of claims 1 to 5 when executing the program stored in the memory; or, when the method is used to execute a program stored in a memory, the cloud platform server communication method according to claim 6 or 7 is implemented.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the cloud platform server communication channel construction method according to any one of claims 1 to 5;
or, executed by a processor, to implement the cloud platform server communication method of any of claims 6-7.
CN202210063027.XA 2022-01-20 2022-01-20 Cloud platform server communication channel construction method, communication method, device and server Active CN114095280B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210063027.XA CN114095280B (en) 2022-01-20 2022-01-20 Cloud platform server communication channel construction method, communication method, device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210063027.XA CN114095280B (en) 2022-01-20 2022-01-20 Cloud platform server communication channel construction method, communication method, device and server

Publications (2)

Publication Number Publication Date
CN114095280A CN114095280A (en) 2022-02-25
CN114095280B true CN114095280B (en) 2022-04-19

Family

ID=80308883

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210063027.XA Active CN114095280B (en) 2022-01-20 2022-01-20 Cloud platform server communication channel construction method, communication method, device and server

Country Status (1)

Country Link
CN (1) CN114095280B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104753817A (en) * 2013-12-25 2015-07-01 中国移动通信集团公司 Local analogy method and local analogy system for cloud computing message queue service
CN112527523A (en) * 2020-12-11 2021-03-19 深圳晶泰科技有限公司 Distributed message transmission method and system for high-performance computing multiple clouds
CN112565425A (en) * 2020-12-03 2021-03-26 南京机敏软件科技有限公司 Method for copying and pasting among cloud application programs of multiple cross-cloud server host machine sessions
CN112702250A (en) * 2019-10-22 2021-04-23 上海淘票儿信息科技有限公司 Cloud bridge, service system on cloud and system under cloud
CN112769617A (en) * 2021-01-06 2021-05-07 武汉紫阑信息技术有限公司 Method for migrating RabbitMQ cluster and computer system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10778595B2 (en) * 2018-11-01 2020-09-15 International Business Machines Corporation Operating a message queue cluster having multiple nodes

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104753817A (en) * 2013-12-25 2015-07-01 中国移动通信集团公司 Local analogy method and local analogy system for cloud computing message queue service
CN112702250A (en) * 2019-10-22 2021-04-23 上海淘票儿信息科技有限公司 Cloud bridge, service system on cloud and system under cloud
CN112565425A (en) * 2020-12-03 2021-03-26 南京机敏软件科技有限公司 Method for copying and pasting among cloud application programs of multiple cross-cloud server host machine sessions
CN112527523A (en) * 2020-12-11 2021-03-19 深圳晶泰科技有限公司 Distributed message transmission method and system for high-performance computing multiple clouds
CN112769617A (en) * 2021-01-06 2021-05-07 武汉紫阑信息技术有限公司 Method for migrating RabbitMQ cluster and computer system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
云联络系统中基于消息队列的分布式网关的研究与应用;解晓鹏;《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》;20190215(第2期);全文 *

Also Published As

Publication number Publication date
CN114095280A (en) 2022-02-25

Similar Documents

Publication Publication Date Title
US9407607B2 (en) Method for virtual private cloud to access network, network side device and data center device
JP5010608B2 (en) Creating a secure interactive connection with a remote resource
EP2815551B1 (en) Peer to peer networking and sharing systems and methods
US9240977B2 (en) Techniques for protecting mobile applications
US8572676B2 (en) System, method, and device for mediating connections between policy source servers, corporate repositories, and mobile devices
JP6159475B2 (en) Access control method and apparatus
US11108837B2 (en) Media downlink transmission control method and related device
CN107528891B (en) Websocket-based automatic clustering method and system
WO2018219148A1 (en) Method, device and system for managing transmission network slices
US20060093119A1 (en) Leveraging real-time communications client
CN109936515B (en) Access configuration method, information providing method and device
KR20190103382A (en) Routing Method and Device
CN105681122B (en) Method and system for telecommunication equipment monitoring
CN114095280B (en) Cloud platform server communication channel construction method, communication method, device and server
WO2015117362A1 (en) Method and device for sharing personal information on terminal
CN110995829A (en) Instance calling method and device and computer storage medium
CN116566764A (en) Configuration method and device for accessing virtual private network
CN106453119A (en) Authentication control method and device
US10581979B2 (en) Information transmission method and apparatus
CN113542282A (en) Cross-computing center file transmission method, device, equipment and storage medium
US20160006643A1 (en) Communication system
RU2008109223A (en) ENSURING AN AGREED ACCESS TO THE FIREWALL WITH INFORMATION ON THE APPLICATION
CN106131035A (en) A kind of method that safe privately owned cloud server accepts external connection
CN114338633B (en) Method and system for remotely connecting Linux server
JP6126062B2 (en) Network device and MAC address authentication method for network 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