CN109684081A - A kind of allocation processing method of load balancing in cluster - Google Patents

A kind of allocation processing method of load balancing in cluster Download PDF

Info

Publication number
CN109684081A
CN109684081A CN201811509437.2A CN201811509437A CN109684081A CN 109684081 A CN109684081 A CN 109684081A CN 201811509437 A CN201811509437 A CN 201811509437A CN 109684081 A CN109684081 A CN 109684081A
Authority
CN
China
Prior art keywords
cluster
request
service
session
load
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811509437.2A
Other languages
Chinese (zh)
Other versions
CN109684081B (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.)
Beijing Shield Mdt Infotech Ltd
Original Assignee
Beijing Shield Mdt Infotech 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 Beijing Shield Mdt Infotech Ltd filed Critical Beijing Shield Mdt Infotech Ltd
Priority to CN201811509437.2A priority Critical patent/CN109684081B/en
Publication of CN109684081A publication Critical patent/CN109684081A/en
Application granted granted Critical
Publication of CN109684081B publication Critical patent/CN109684081B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load
    • 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
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • 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
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computer And Data Communications (AREA)

Abstract

A kind of allocation processing method of load balancing in cluster, solution client connection is not enough to characterize the cluster foundation and load balancing in the case of cluster interior nodes workload, the case where there are the workload upper limits with clustered node for main application, and the Network status of cluster interior nodes, memory use, cpu load is unable to the operation load of Efficient Characterization present node.

Description

A kind of allocation processing method of load balancing in cluster
Technical field
The present invention relates to technical field of the computer network, the allocation processing method of load balancing in especially a kind of cluster.
Background technique
The prior art by multiple devices provide cluster service major way be realized using external loading equalization server or Person is established the communication between each node of heartbeat connection holding by cluster internal node.Main application scenarios are short under the prior art Connection communication provides service and service is provided by software in clustered node.Making for encryption application is externally provided for clustered node With scene, because encryption and decryption service needs to keep the performance for continuing to use and service is used continuously of key data, generally requiring makes With long type of attachment, under this specific application scene client connection request be just not enough to provide the enough load informations of cluster with It realizes effective balanced.
Summary of the invention
In order to solve the deficiencies in the prior art, the present invention provides a kind of allocation processing method of load balancing in cluster, The allocation processing method of load balancing in a kind of cluster solves client connection and is not enough to characterize cluster interior nodes workload In the case of cluster establish and load balancing, main application and clustered node are there are the workload upper limit, and cluster interior nodes The case where Network status, memory use, cpu load is unable to the operation load of Efficient Characterization present node.
The present invention solves the problems, such as that its technical solution is, the allocation processing method of load balancing in a kind of cluster, tool Body realizes process are as follows:
Load balancing cluster is set, which is made of computer server equipment and is linked into network, and the cluster is to request Response be done directly by computer server, the cluster include receive request unit, analytic message unit, Service controll list Member, wherein
Request unit is received, receives a request after load balancer process starting;
Analytic message unit, it is negative to parse the request received, judge request type, executes respective branches;
Service control unit is responsible for providing load-balancing mechanism, and distinct device is formed unified entirety and externally provides load jointly Balancing service arrives different loads equalizing equipment according to equipment state distribution request;The service control unit includes Opendeice request module, heartbeat module, total Session enquiry module, total Device enquiry module, setting up password service mould Block,
The workflow of the opendeice request module are as follows: request → cluster is inquired → detects cluster → find out load most Low node → setting up password service request → return request;
The heartbeat module directly replys request according to protocol format after receiving heartbeat inquiry request;
Total Session enquiry module inquires Session usage record table in Redis database, obtains current business mouth The total session opened;
Total Device enquiry module inquires Device usage record table in Redis database, obtains current business mouth and beat The total Device quantity opened;
The setting up password service module, after receiving the request, then will start/it is multiplexed cryptographic service;Device quantity: if The Device that wherein all functional areas of a server are opened in cluster is less than restriction, then pops up from Redis port pool table A port, setting up password service processes, parameter be this functional area IP, it is last obtained in PORT, after the completion according to agreement Reply message;If the Device that wherein all functional areas are opened on a server in cluster is more than to limit, then Redis is inquired Session usage record table in database is found out and opens the least cryptographic service process of Session;
If the Device that wherein all functional areas of a server are opened in cluster is less than restriction, then from Redis port pool Pop up a port in table, setting up password service processes, parameter is this functional area IP, it is last obtained in PORT.After the completion According to Protocol answers message;If the Device that wherein all functional areas are opened on a server in cluster is more than to limit, then Session usage record table in Redis database is inquired, finds out and opens the least cryptographic service process of Session.
The beneficial effects of the present invention are: the allocation processing method of load balancing has reached solution client in a kind of cluster Connection is not enough to characterize the cluster foundation and load balancing in the case of cluster interior nodes workload, main application and clustered node There are the workload upper limits, and the Network status of cluster interior nodes, memory use, cpu load is unable to Efficient Characterization present node Run the beneficial effect of loading condition.
Detailed description of the invention:
Fig. 1 is building-block of logic of the present invention.
The following further describes the present invention with reference to the drawings.
Specific embodiment:
A specific embodiment of the invention is, the allocation processing method of load balancing, implements process in a kind of cluster Are as follows:
Load balancing cluster is set, which is made of computer server equipment and is linked into network, and the cluster is to request Response be done directly by computer server, the cluster include receive request unit, analytic message unit, Service controll list Member, wherein
Request unit is received, receives a request after load balancer process starting;
Analytic message unit, it is negative to parse the request received, judge request type, executes respective branches;
Service control unit is responsible for providing load-balancing mechanism, and distinct device is formed unified entirety and externally provides load jointly Balancing service arrives different loads equalizing equipment according to equipment state distribution request;The service control unit includes Opendeice request module, heartbeat module, total Session enquiry module, total Device enquiry module, setting up password service mould Block,
The workflow of the opendeice request module are as follows: request → cluster is inquired → detects cluster → find out load most Low node → setting up password service request → return request;
The heartbeat module directly replys request according to protocol format after receiving heartbeat inquiry request;
Total Session enquiry module inquires Session usage record table in Redis database, obtains current business mouth The total session opened;
Total Device enquiry module inquires Device usage record table in Redis database, obtains current business mouth and beat The total Device quantity opened;
The setting up password service module, after receiving the request, then will start/it is multiplexed cryptographic service;Device quantity: if The Device that wherein all functional areas of a server are opened in cluster is less than restriction, then pops up from Redis port pool table A port, setting up password service processes, parameter be this functional area IP, it is last obtained in PORT, after the completion according to agreement Reply message;If the Device that wherein all functional areas are opened on a server in cluster is more than to limit, then Redis is inquired Session usage record table in database is found out and opens the least cryptographic service process of Session;
If the Device that wherein all functional areas of a server are opened in cluster is less than restriction, then from Redis port pool Pop up a port in table, setting up password service processes, parameter is this functional area IP, it is last obtained in PORT.After the completion According to Protocol answers message;If the Device that wherein all functional areas are opened on a server in cluster is more than to limit, then Session usage record table in Redis database is inquired, finds out and opens the least cryptographic service process of Session.
Above-described embodiment is only preferred embodiments of the present invention, is available to those skilled in the art to realize and use this Invention, those skilled in the art can make above-described embodiment various without departing from the present invention in the case of the inventive idea Modification or variation, thus invention scope of the invention is not limited by above-described embodiment, any modification based on inventive concept Or variation all falls in the scope of protection of the present invention.

Claims (2)

1. a kind of allocation processing method of load balancing in cluster, the allocation processing method of load balancing in a kind of cluster, Specific implementation process are as follows:
Load balancing cluster is set, which is made of computer server equipment and is linked into network, and the cluster is to request Response be done directly by computer server, the cluster include receive request unit, analytic message unit, Service controll list Member, wherein
Request unit is received, receives a request after load balancer process starting;
Analytic message unit, it is negative to parse the request received, judge request type, executes respective branches;
Service control unit is responsible for providing load-balancing mechanism, and distinct device is formed unified entirety and externally provides load jointly Balancing service arrives different loads equalizing equipment according to equipment state distribution request;The service control unit includes Opendeice request module, heartbeat module, total Session enquiry module, total Device enquiry module, setting up password service mould Block,
The workflow of the opendeice request module are as follows: request → cluster is inquired → detects cluster → find out load most Low node → setting up password service request → return request;
The heartbeat module directly replys request according to protocol format after receiving heartbeat inquiry request;
Total Session enquiry module inquires Session usage record table in Redis database, obtains current business mouth The total session opened;
Total Device enquiry module inquires Device usage record table in Redis database, obtains current business mouth and beat The total Device quantity opened;
The setting up password service module, after receiving the request, then will start/it is multiplexed cryptographic service;Device quantity: if The Device that wherein all functional areas of a server are opened in cluster is less than restriction, then pops up from Redis port pool table A port, setting up password service processes, parameter be this functional area IP, it is last obtained in PORT, after the completion according to agreement Reply message;If the Device that wherein all functional areas are opened on a server in cluster is more than to limit, then Redis is inquired Session usage record table in database is found out and opens the least cryptographic service process of Session.
2. the allocation processing method of load balancing in a kind of cluster according to claim 1, if it is characterized in that: in cluster The Device that wherein all functional areas of a server are opened is less than restriction, then an end is popped up from Redis port pool table Mouthful, setting up password service processes, parameter be this functional area IP, it is last obtained in PORT, after the completion according to Protocol answers report Text;If the Device that wherein all functional areas are opened on a server in cluster is more than to limit, then Redis database is inquired Middle Session usage record table is found out and opens the least cryptographic service process of Session.
CN201811509437.2A 2018-12-11 2018-12-11 Distribution processing method for load balancing in cluster Active CN109684081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811509437.2A CN109684081B (en) 2018-12-11 2018-12-11 Distribution processing method for load balancing in cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811509437.2A CN109684081B (en) 2018-12-11 2018-12-11 Distribution processing method for load balancing in cluster

Publications (2)

Publication Number Publication Date
CN109684081A true CN109684081A (en) 2019-04-26
CN109684081B CN109684081B (en) 2023-11-07

Family

ID=66187193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811509437.2A Active CN109684081B (en) 2018-12-11 2018-12-11 Distribution processing method for load balancing in cluster

Country Status (1)

Country Link
CN (1) CN109684081B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995725A (en) * 2019-12-11 2020-04-10 北京明略软件系统有限公司 Data processing method and device, electronic equipment and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120063662A (en) * 2010-12-08 2012-06-18 텔코웨어 주식회사 Load balancer and method for managing load balancing using this
US20130173806A1 (en) * 2011-12-31 2013-07-04 Level 3 Communications, Llc Load-balancing cluster
CN103475566A (en) * 2013-07-10 2013-12-25 北京发发时代信息技术有限公司 Real-time message exchange platform and distributed cluster establishment method
CN107040589A (en) * 2017-03-15 2017-08-11 西安电子科技大学 The system and method for cryptographic service is provided by virtualizing encryption device cluster
CN108063813A (en) * 2017-12-15 2018-05-22 华中农业大学 The method and system of cryptographic service network parallelization under a kind of cluster environment
CN108768878A (en) * 2018-06-06 2018-11-06 北京奇艺世纪科技有限公司 A kind of SiteServer LBS, method, apparatus and load-balancing device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120063662A (en) * 2010-12-08 2012-06-18 텔코웨어 주식회사 Load balancer and method for managing load balancing using this
US20130173806A1 (en) * 2011-12-31 2013-07-04 Level 3 Communications, Llc Load-balancing cluster
CN103475566A (en) * 2013-07-10 2013-12-25 北京发发时代信息技术有限公司 Real-time message exchange platform and distributed cluster establishment method
CN107040589A (en) * 2017-03-15 2017-08-11 西安电子科技大学 The system and method for cryptographic service is provided by virtualizing encryption device cluster
CN108063813A (en) * 2017-12-15 2018-05-22 华中农业大学 The method and system of cryptographic service network parallelization under a kind of cluster environment
CN108768878A (en) * 2018-06-06 2018-11-06 北京奇艺世纪科技有限公司 A kind of SiteServer LBS, method, apparatus and load-balancing device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李春晖: ""云计算环境下资源负载均衡调度优化仿真"", 《计算机仿真》, vol. 34, no. 12, pages 420 - 425 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995725A (en) * 2019-12-11 2020-04-10 北京明略软件系统有限公司 Data processing method and device, electronic equipment and computer readable storage medium
CN110995725B (en) * 2019-12-11 2021-12-07 北京明略软件系统有限公司 Data processing method and device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN109684081B (en) 2023-11-07

Similar Documents

Publication Publication Date Title
CN105159781B (en) Adjust the method, apparatus and intelligent terminal of intelligent terminal application network speed
WO2020097185A3 (en) Systems and methods for application pre-launch
CN108574599B (en) Password resource pool, password resource pool management method, management platform and management system
CN106294472A (en) The querying method of a kind of Hadoop data base HBase and device
CN113259415B (en) Network message processing method and device and network server
CN105721552B (en) A kind of method and DNS system for realizing dynamic load leveling based on DNS
US20160218939A1 (en) Distributed multi-site cloud deployment
MX2007010921A (en) Method for communication between an application and a client.
US10581923B2 (en) System and method for configuration of a connected device connection
CN109412878A (en) Multi-tenant service access implementation method, device and electronic equipment
CN107645540A (en) The load-balancing method of web application systems
CN104852859A (en) Aggregate interface service processing method and aggregate interface service processing equipment
CN105357239A (en) Method and device for providing service, and method and device for acquiring service
CN105591959A (en) System and method for load balancing by SSL session resuming
CN109684081A (en) A kind of allocation processing method of load balancing in cluster
CN109743357A (en) A kind of successional implementation method of business access and device
CN101197708B (en) Net element automatic discovering and configuring method
WO2012000455A1 (en) Client terminal and load balancing method
CN116743836A (en) Long connection communication link establishment method and device, electronic equipment and storage medium
CN111427703A (en) Industrial data real-time display method and system
CN109981725A (en) A kind of communication means across security domain, server and readable storage medium storing program for executing
CN108388475A (en) A kind of method and system based on terminal type provisioning API resource
CN103841221A (en) Strategy execution method, system and equipment, and control equipment
CN109379444B (en) Method and system for providing private cloud service based on automatic adaptation
CN112737827A (en) Resource allocation method, device and system

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