Method and device for realizing high availability of desktop cloud application
By configuring the cloud application server gateway and load balancing algorithm, the single point of failure and compatibility problems of cloud applications in the information innovation environment are solved, and the high availability and user experience of desktop cloud applications are improved.
Patent Information
- Application Number
- CN202510488258.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-18
- Publication Date
- 2025-07-25
AI Technical Summary
The implementation solution of cloud applications in the prior art relies on clients to link to the backend server through the rdp protocol, which poses a single point of failure risk, affects user usage, and is poor compatibility in the information creation environment and cannot be managed in a unified manner, resulting in high hardware resource costs and insufficient user data security.
By configuring the cloud application server gateway, implementing heartbeat detection and load balancing algorithms, realizing status monitoring and dynamic adjustment of the back-end server, integrating scheduling components, ensuring that the client is connected to the available servers, and using multiple load balancing algorithms to allocate requests.
It realizes high availability of desktop cloud applications in the information innovation environment, dynamically adjusts the cluster size, avoids business interruption caused by user lag and server downtime, and improves user experience and data security.
Smart Images

Figure CN120378288A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of desktop cloud, and specifically provides a method and device for realizing high availability of desktop cloud applications. Background Art
[0002] In the prior art, the implementation scheme of cloud applications mainly relies on the client to connect to the backend application server through the rdp protocol. This method not only has restrictions on the client operating system, but also has a single point of failure. When the backend server crashes, it will seriously affect the use of all users. The operation is complex, and maintenance personnel need to maintain multiple servers, with a large workload and unable to manage uniformly.
[0003] With the full application and promotion of the information technology innovation industry, some software adaptation problems have gradually emerged. Most software has poor compatibility with domestic products and cannot run on domestic Kylin, UOS and other systems. In order to improve the user experience in the information technology innovation environment, be compatible with domestic systems, and at the same time improve the service disaster tolerance ability, the high availability requirement of desktop cloud applications has emerged, mainly used to solve the problems of information technology innovation adaptation and compatibility, low utilization rate of hardware resources of ordinary cloud products, and inability to ensure user data security. Summary of the Invention
[0004] The present invention aims at the above-mentioned deficiencies of the prior art and provides a method for realizing high availability of desktop cloud applications with strong practicability.
[0005] A further technical task of the present invention is to provide a device for realizing high availability of desktop cloud applications with reasonable design, safety and applicability.
[0006] The technical solution adopted by the present invention to solve its technical problems is as follows:
[0007] A method for realizing high availability of desktop cloud applications has the following steps:
[0008] S1. The administrator configures the cloud application server gateway and installs the cloud application server;
[0009] S2. The cloud application server gateway sends heartbeat detection to the backend regularly to judge whether the status of the backend server is normal, and ensure that the connection of the client can be allocated to a machine that can provide services normally;
[0010] S3. After the cloud application server has an exception, the gateway service sets the abnormal node as faulty;
[0011] S4. An integrated scheduling component is integrated in the cloud application gateway;
[0012] S5. When the client connects to the cloud application, it first sends a connection establishment request to the gateway management service;
[0013] After the client receives the gateway information, it initiates a connection to the application server and obtains the protocol flow data of the cloud application through this server.
[0014] Further, in step S1, the administrator sets the gateway service information including the gateway node IP, MAC, server type, and domain account.
[0015] Further, the administrator logs in to the management platform, sets the cloud application gateway cluster IP address and the administrator user password, specifies the domain information of the cloud application, installs the cloud application plugin in each backend cloud application server to report application information and connection information to the gateway server, and it will take effect after saving.
[0016] Further, in step S2, the cloud computer gateway health check is implemented by initiating a heartbeat check to the backend server. When the health check detects an abnormality in the backend application server, it will no longer forward traffic to the abnormal backend server until the health check detects that the backend server returns to normal, and then it will continue to forward traffic to the said server.
[0017] Further, in step S3, for the health check of the backend server, if the heartbeat packet of the backend application server is not received within a continuous period, the gateway service will automatically set the abnormal application server node to maintenance and report an alarm, and the client requests will no longer be distributed to the node.
[0018] Further, in step S4, when the client connects, it first requests the gateway service, and the gateway service distributes the request to the backend cloud application server cluster according to the client request type.
[0019] Further, in step S5, the gateway management service selects the specified application server according to the status of each server in the current gateway cluster through the load balancing algorithm and feeds back the connection information to the client.
[0020] The load balancing algorithm includes round-robin scheduling algorithm, weighted round-robin scheduling algorithm, random balancing algorithm, weighted random balancing algorithm, least-connection scheduling algorithm, weighted least-connection scheduling algorithm, destination-hash scheduling algorithm, or source-hash scheduling algorithm.
[0021] Further, in step S6, after the application gateway service allocates the gateway address, it is simultaneously sent to the client and the internal protocol end of the cloud application. The client and the protocol end will simultaneously initiate a connection establishment request to the gateway to open the protocol transmission network channel.
[0022] A device for realizing high availability of desktop cloud cloud applications includes: at least one memory and at least one processor.
[0023] The at least one memory is used to store machine-readable programs.
[0024] The at least one processor is used to call the machine-readable program to execute a method for implementing high availability of desktop cloud applications.
[0025] Compared with the prior art, a method and a device for implementing high availability of desktop cloud applications according to the present invention have the following outstanding beneficial effects:
[0026] The present invention realizes the high availability of desktop cloud applications. Without affecting user use, the cluster scale can be dynamically and hot-adjusted according to indicators such as business pressure and user access conditions, solving the problems of user use lag, disconnection caused by excessive gateway pressure due to changes in business access volume, or business interruption caused by server downtime. Description of the Drawings
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0028] Attached Figure 1 is a schematic flowchart of a method for implementing high availability of desktop cloud applications. Detailed Embodiments
[0029] In order to enable those skilled in the art to better understand the solutions of the present invention, the following will further describe the present invention in detail in combination with specific embodiments. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.
[0030] The following gives a best embodiment:
[0031] As Figure 1 shown, a method for implementing high availability of desktop cloud applications in this embodiment has the following steps:
[0032] S1. The administrator configures the cloud application server gateway and installs the cloud application server;
[0033] The administrator sets the gateway service information including the gateway node ip, mac, server type, and domain account;
[0034] The administrator logs in to the management platform, sets the cloud application gateway cluster IP address and administrator user password, specifies the cloud application domain information, and installs the cloud application plug-in in each back-end cloud application server to report application information and connection information to the gateway server. Save to take effect.
[0035] S2. The cloud application server gateway sends heartbeat detection to the backend regularly to determine whether the backend server status is normal and ensure that the client connection can be allocated to a machine that can provide services normally.
[0036] The health check of the cloud computer gateway is implemented by initiating a heartbeat check to the backend server. When the health check detects an abnormality in the backend application server, it will no longer forward traffic to the abnormal backend server until the health check detects that the backend server has returned to normal, and then it will continue to forward traffic to the server.
[0037] S3. When an abnormality occurs in the cloud application server, the gateway service will place the abnormal node for maintenance;
[0038] Health check of the backend server. If the heartbeat message from the backend application server is not received within a continuous period, the gateway service will automatically place the abnormal application server node under maintenance and report an alarm. The client's request will no longer be distributed to the node.
[0039] S4. A scheduling component is integrated into the cloud application gateway. When a client connects, it first requests the gateway service, which distributes the request to the backend cloud application server cluster based on the client request type.
[0040] S5. When the client connects to the cloud application, it first initiates a connection request to the gateway management service;
[0041] The gateway management service selects the designated application server based on the status of each server in the current gateway cluster through the load balancing algorithm and feeds back the connection information to the client;
[0042] Among them, the load balancing algorithm includes polling scheduling algorithm, weighted polling scheduling algorithm, random balancing algorithm, weighted random balancing algorithm, minimum connection scheduling algorithm, weighted minimum connection scheduling algorithm, target address hash scheduling algorithm or source address hash scheduling algorithm.
[0043] S6. After receiving the gateway information, the client initiates a connection to the application server and obtains the protocol stream data of the cloud application through the server;
[0044] After the application gateway service allocates the gateway address, it is sent to the client and the internal protocol end of the cloud application at the same time. The client and the protocol end will simultaneously initiate a connection establishment request to the gateway to open up the protocol transmission network channel.
[0045] Based on the above method, an apparatus for implementing high availability of desktop cloud applications in this embodiment includes: at least one memory and at least one processor;
[0046] The at least one memory is used to store machine-readable programs;
[0047] The at least one processor is used to call the machine-readable program and execute a method for implementing high availability of desktop cloud applications.
[0048] The processor can be a central processing unit (CPU), or can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0049] The memory can be used to store computer programs and / or modules. The processor realizes various functions of the electronic device by running or executing the computer programs and / or modules stored in the memory, and by calling the data stored in the memory. The memory mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function, etc.; the data storage area can store data created according to the use of the terminal, etc. In addition, the memory can also include high-speed random access memory, and can also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash memory card, at least one magnetic disk storage period, flash memory device, or other volatile solid-state storage devices.
[0050] The above specific implementation manners are only specific cases of the present invention. The patent protection scope of the present invention includes but is not limited to the above specific implementation manners. Any technical solution that conforms to the above specific implementation manners recorded in the present invention and any appropriate changes or substitutions made by those of ordinary skill in the art shall fall within the patent protection scope of the present invention.
[0051] Although the embodiments of the present invention have been shown and described, for those of ordinary skill in the art, it can be understood that various changes, modifications, substitutions, and variations can be made to these embodiments without departing from the principles and spirits of the present invention. The scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for achieving high availability of desktop cloud applications, characterized in that, The steps are as follows: S1. The administrator configures the cloud application server gateway and installs the cloud application server; S2. The cloud application server gateway sends heartbeat detection to the backend regularly to determine whether the backend server status is normal and ensure that the client connection can be allocated to a machine that can provide services normally. S3. When an abnormality occurs in the cloud application server, the gateway service will place the abnormal node for maintenance; S4,Integrated scheduling component in the cloud application gateway; S5. When the client connects to the cloud application, it first initiates a connection request to the gateway management service; S6. After receiving the gateway information, the client initiates a connection to the application server and obtains the protocol stream data of the cloud application through the server.
2. The method for implementing high availability of desktop cloud applications according to claim 1, wherein, In step S1, the administrator sets the gateway service information including the gateway node ip, mac, server type and domain account.
3. The method for implementing high availability of desktop cloud applications according to claim 2, wherein, The administrator logs in to the management platform, sets the cloud application gateway cluster IP address and administrator user password, specifies the cloud application domain information, and installs the cloud application plug-in in each back-end cloud application server to report application information and connection information to the gateway server. Save to take effect.
4. A method for implementing high availability of desktop cloud applications according to claim 3, characterized in that, In step S2, the health check of the cloud computer gateway is implemented by initiating a heartbeat check to the backend server. When the health check detects that the backend application server is abnormal, it will no longer forward traffic to the abnormal backend server until the health check detects that the backend server has returned to normal, and then it will continue to forward traffic to the server.
5. A method for implementing high availability of desktop cloud applications according to claim 4, characterized in that, In step S3, the backend server is checked for health. If no heartbeat message is received from the backend application server within a continuous period, the gateway service will automatically place the abnormal application server node in maintenance mode and report an alarm. The client's request will no longer be distributed to the node.
6. A method for achieving high availability of desktop cloud applications according to claim 5, characterized in that, In step S4, when the client connects, it first requests the gateway service, and the gateway service distributes the request to the backend cloud application server cluster according to the client request type.
7. A method for realizing high availability of desktop cloud applications according to claim 6, characterized in that, In step S5, the gateway management service selects a designated application server according to the status of each server in the current gateway cluster through a load balancing algorithm and feeds back the connection information to the client; The load balancing algorithm includes a round-robin scheduling algorithm, a weighted round-robin scheduling algorithm, a random balancing algorithm, a weighted random balancing algorithm, a minimum connection scheduling algorithm, a weighted minimum connection scheduling algorithm, a target address hash scheduling algorithm or a source address hash scheduling algorithm.
8. A method for achieving high availability of desktop cloud applications according to claim 7, characterized in that, In step S6, after the application gateway service allocates the gateway address, it is sent to the client and the internal protocol end of the cloud application at the same time. The client and the protocol end will simultaneously initiate a connection establishment request to the gateway to open up the protocol transmission network channel.
9. A device for realizing high availability of desktop cloud applications, characterized in that include: at least one memory and at least one processor; The at least one memory is used to store a machine-readable program; The at least one processor is configured to call the machine-readable program to execute the method according to any one of claims 1 to 8.