Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Cluster websocket service load balancing method and device, equipment, and readable medium

A load balancing and clustering technology applied in the computer field to achieve high practical value and improve coping capabilities

Pending Publication Date: 2021-12-21
济南浪潮数据技术有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] In view of this, the purpose of the embodiment of the present invention is to propose a method, device, device and readable medium for cluster websocket service load balancing. By using the technical solution of the present invention, it is possible to solve the multi-copy websocket service running in the k8s cluster. The dynamic balance of the workload between the terminals greatly improves the response ability of the websocket server in the traffic burst scenario, which has high practical value

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Cluster websocket service load balancing method and device, equipment, and readable medium
  • Cluster websocket service load balancing method and device, equipment, and readable medium
  • Cluster websocket service load balancing method and device, equipment, and readable medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] In order to clarify the purposes of the present invention, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0053] Based on the above object, a first aspect of the embodiments of the present invention there is provided a load balancing cluster websocket service method according to an embodiment. figure 1 It shows a schematic flow chart of the method.

[0054] like figure 1 As shown, the method may comprise the steps of:

[0055] S1 CRD create an instance of the corresponding websocket copy for each service cluster, and a copy of the recorded information for each service websocket and rebalance flag corresponding to the CRD.

[0056] You can customize the CRD resources in the cluster, one corresponding to each create their own copy of the CRD instance when you start websocket copy of the service, for the record within the service websocket copy number of messages in the last minute and the need ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a cluster websocket service load balancing method and device, equipment, and a readable medium. The method comprises the following steps: creating a corresponding CRD instance for each websocket service copy in a cluster, and recording the information of each websocket service copy and a rebalance flag bit into the corresponding CRD; in response to information update in the CRD of the websocket service copy, judging whether a rebalance action of the websocket service copy needs to be triggered or not based on a rebalance algorithm; in response to a rebalance action needing to trigger the websocket service copy, modifying the rebalance flag bit, recorded in the CRD corresponding to the websocket service copy, into a rebalance proportion value; in response to re-updating of information in the CRD of the websocket service copy, performing rebalancing of the websocket service copy according to the rebalancing proportion value recorded in the CRD. By using the scheme provided by the invention, the problem of dynamic balance of the workload between the multi-copy websocket servers in the k8s cluster can be solved, and the coping capability of the websocket servers in a traffic emergency scene is improved, so that the practical value is very high.

Description

Technical field [0001] The present invention relates to the field of computer, and more particularly to a method, apparatus, apparatus, and readable medium of a cluster WebSocket service load balancing. Background technique [0002] Kubernetes (K8S) is a Google Open Source Container Cluster Management System. On the basis of Docker technology, a series of complete functions such as deployment operation, resource scheduling, service discovery, and dynamic telescopic, improved the convenience of large-scale container cluster management. [0003] In a K8S cluster, a means of increasing the cluster load capacity is to increase the number of nodes in the cluster, but as the number of nodes is increasing, the operation and maintenance cost is constantly increasing, and most of the time load is very low, it is very low. The overall usage rate of the node is very low, one side of the business in order to cope with the daily random traffic summation, the number of copies is as high as pos...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/50
CPCG06F9/5083
Inventor 杨勇
Owner 济南浪潮数据技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products