CN104079630A - Business server side load balancing method, client side, server side and system - Google Patents

Business server side load balancing method, client side, server side and system Download PDF

Info

Publication number
CN104079630A
CN104079630A CN201410251491.7A CN201410251491A CN104079630A CN 104079630 A CN104079630 A CN 104079630A CN 201410251491 A CN201410251491 A CN 201410251491A CN 104079630 A CN104079630 A CN 104079630A
Authority
CN
China
Prior art keywords
service
server
physical address
client
distributed
Prior art date
Application number
CN201410251491.7A
Other languages
Chinese (zh)
Inventor
邱城晓
庄明光
张强
段晴
施健
施雷
杜永健
朱慜珺
杨东平
Original Assignee
中国建设银行股份有限公司
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 中国建设银行股份有限公司 filed Critical 中国建设银行股份有限公司
Priority to CN201410251491.7A priority Critical patent/CN104079630A/en
Publication of CN104079630A publication Critical patent/CN104079630A/en

Links

Abstract

The embodiment of the invention discloses a business server side load balancing method, a client side, a server side and a system. The business server side load balancing method comprises the steps that the business client side obtains business identification corresponding to a business request currently submitted by a user, obtains at least one physical address, corresponding to the business identification, of a business server in a distributed cluster server, determines the target physical address in the physical address of the business server according to the preset load balancing algorithm and establishes communication connection with the business server corresponding to the target physical address. According to the business server side load balancing method, the client side, the server side and the system, distributed load dispatching based on business can be achieved through the business server side, so that the resource utilization rate is increased, the dispatching risk is reduced, and the cost is low.

Description

一种业务服务端负载均衡方法、客户端、服务端以及系统 A service server load balancing methods, client, server and systems

技术领域 FIELD

[0001] 本发明涉及互联网技术领域,尤其涉及一种业务服务端负载均衡方法、客户端、月艮务端以及系统。 [0001] The present invention relates to the field of Internet technologies, particularly to a method for traffic load balancing server, client, and month that works to end systems.

背景技术 Background technique

[0002] 现有网络的各个核心部分随着业务量的提高,访问量和数据流量的快速增长,其处理能力和计算强度也相应地增大,使得单一的服务器设备无法处理事务。 [0002] The core portion of each of the existing network with increasing traffic, the rapid growth of traffic and data traffic, its power and computing strength increases correspondingly, so that the server apparatus can not handle a single transaction. 在此情况下,负载均衡技术应运而生,即将负载(事务)进行平衡、分摊到多个操作单元上进行执行,例如Web (World Wide Web,万维网)月艮务器、FTP (File Transfer Protocol,文件传输协议)服务器、企业关键应用服务器和关键任务服务器等,从而共同完成事务。 In this case, load balancing technologies have emerged about to load (affairs) balance, be allocated to execute on multiple operating units, such as Web (World Wide Web, the World Wide Web) May that works to implement, FTP (File Transfer Protocol, file transfer protocol) server, business-critical application servers and mission-critical servers, so as to jointly complete the transaction. 负载均衡技术建立在现有网络结构之上,它提供了一种廉价有效透明的方法扩展网络设备和服务器的带宽、增加吞吐量、加强网络数据处理能力、提高网络的灵活性和可用性。 Load balancing based on the existing network architecture, it provides a cheap and effective way to extend the bandwidth of transparent network devices and servers increase throughput, enhance network data processing capability, flexibility, and availability of the network.

[0003] 现有的负载均衡技术可以通过硬件负载均衡设备F5或者中间件tuxedo实现负载均衡。 [0003] The prior art load balancing load balancing device may be implemented by hardware or middleware tuxedo F5 load balancing. F5以自身的一个虚拟地址对应多个服务器的真实地址,客户端通过F5的虚拟地址与F5建立连接,F5通过预设负载均衡算法确定目标服务器,并根据目标服务器的地址将客户端发送的数据转发给目标服务器。 F5 to own a virtual address corresponding to the real address multiple servers, client establishes a virtual address by F5 and F5 connection, F5 is determined by a preset target server load balancing algorithm, and sends the client the address of the target server's data forwarded to the target server. 中间件Tuxedo是一种客户端/服务器的“中间件”产品,它在客户端和服务器之间进行调节,以保证正确地处理事务,中间件tuxedo实际上为中间件软件,tuxedo端提供从一个中心点对整个分布式端进行全局监控及管理的能力,管理员能根据一个整体端视图(而不仅是单个节点或单元)提供的信息,实现目标服务器的选择,并将客户端发送的数据转发给目标服务器。 Tuxedo middleware is a client / server "middleware" products, which is adjustable between client and server, to ensure proper handling of affairs, in fact, provide middleware tuxedo from a middleware software, tuxedo end distributed throughout the central point of the ability to end global monitoring and management, according to data administrators can end view of a whole (rather than just a single node or element) provided information to achieve select the target server, and sends the customer's forwarding to the target server.

[0004] 现有技术中,F5是单点设备,影响整个集群架构的设计,调度方式单一,并且成本较高,中间件tuxedo对中间件的依赖较强,同时中间件涉及额外的费用,若F5或者中间件tuxedo出现故障,将无法实现负载均衡,风险较高。 [0004] prior art, F5 device is a single point, affect the entire cluster architecture design, scheduling a single, and the high cost of middleware tuxedo strong reliance on middleware, and middleware involve additional costs, if F5 or middleware tuxedo fails, load balancing will not be achieved, the higher the risk.

发明内容 SUMMARY

[0005] 本发明实施例所要解决的技术问题在于,提供一种业务服务端负载均衡方法、客户端、服务端以及系统,可提高资源利用率,降低调度风险,并且成本较低。 [0005] Example embodiment of the present technical problem to be solved by the invention is to provide a method for traffic load balancing server, client, server, and system, can improve resource utilization, reduce the operation risk, and low cost.

[0006] 为了解决上述技术问题,本发明实施例提供了一种业务服务器负载均衡方法,包括: [0006] To solve the above problems, the present invention provides a service server load balancing method, comprising:

[0007] 业务客户端获取用户当前提交的业务请求对应的业务标识; [0007] The service client acquires the user's current service corresponding to the request submitted by the service identifier;

[0008] 所述业务客户端在分布式集群服务器中获取与所述业务标识对应的至少一个业务服务器的物理地址; [0008] The service client acquires the service identifier corresponding to a server in a distributed cluster of at least one physical address of the service server;

[0009] 所述业务客户端根据预设负载均衡算法,在所述获取到的至少一个业务服务器的物理地址中确定目标物理地址; [0009] The service client according to a preset load balancing algorithm to determine the target physical address in the physical address of the acquired at least one service server;

[0010] 所述业务客户端和所述目标物理地址对应的业务服务器之间建立通信连接。 Establishing a communication connection between [0010] the service client and the target physical address corresponding to the service server.

[0011] 相应地,本发明实施例还提供了一种业务服务器负载均衡方法,包括: [0011] Accordingly, embodiments of the present invention further provides a service server load balancing method, comprising:

[0012] 分布式服务端接收业务客户端发送的业务标识; [0012] Distributed service identifier server receives traffic sent by a client;

[0013] 所述分布式服务端根据所述业务标识,向所述业务客户端发送分布式集群服务器中与所述业务标识对应的至少一个业务服务器的物理地址,以使所述业务客户端根据预设负载均衡算法,在所述至少一个业务服务器的物理地址中确定目标物理地址,所述业务客户端和所述目标物理地址对应的业务服务器之间建立通信连接。 [0013] The distributed server according to the service identifier, the service sends the client server distributed cluster with at least one physical address of the service server corresponding to the service identifier, so that the service client according to a predetermined load balancing algorithm, a physical address of the at least one service server determines the physical address of the target, establishing a communication connection between said service client and the target physical address corresponding to the service server.

[0014] 相应地,本发明实施例还提供了一种业务客户端,包括: [0014] Accordingly, embodiments of the present invention further provides a service client, comprising:

[0015] 业务标识获取单元,用于获取用户当前提交的业务请求对应的业务标识; [0015] service identifier acquisition unit for acquiring the current user service request submitted corresponding service identifier;

[0016] 物理地址获取单元,用于在分布式集群服务器中获取与所述业务标识获取单元获取到的业务标识对应的至少一个业务服务器的物理地址; [0016] physical address acquisition unit for acquiring the service identifier acquiring at least one physical address of the service server corresponding to the service identifier obtaining unit to the server in a distributed cluster;

[0017] 物理地址确定单元,用于根据预设负载均衡算法,在所述物理地址获取单元获取到的至少一个业务服务器的物理地址中确定目标物理地址; [0017] physical address determination unit, according to a preset load balancing algorithm acquisition unit acquires the physical address of the at least one service server determines the target physical address of the physical address;

[0018] 通信连接建立单元,用于和所述物理地址确定单元确定的目标物理地址对应的业务服务器之间建立通信连接。 [0018] The communication connection establishment unit, and for determining the physical address to establish a communication connection between the target unit determines the physical address corresponding to the service server.

[0019] 相应地,本发明实施例还提供了一种分布式服务端,包括: [0019] Accordingly, embodiments of the present invention further provides a distributed server, comprising:

[0020] 业务标识接收单元,用于接收业务客户端发送的业务标识; [0020] service identifier receiving unit for receiving a service identifier of the service sent by the client;

[0021] 物理地址发送单元,用于根据所述业务标识,向所述业务客户端发送分布式集群服务器中与所述业务标识对应的至少一个业务服务器的物理地址,以使所述业务客户端根据预设负载均衡算法,在所述至少一个业务服务器的物理地址中确定目标物理地址,所述业务客户端和所述目标物理地址对应的业务服务器之间建立通信连接。 [0021] The physical address of a transmission unit for transmitting at least one service server the physical address of the server in the distributed cluster service identifier corresponding to the service client according to the service identifier, so that the service client the predetermined load balancing algorithm to determine the physical address of the target physical address in the at least one service server, the service to establish a communication connection between the client and the target physical address corresponding to the service server.

[0022] 相应地,本发明实施例还提供了一种业务服务器负载均衡系统,所述系统包括业务客户端和业务服务器,其中: [0022] Accordingly, embodiments of the present invention further provides a service server load balancing system, said system comprising a service client and a service server, wherein:

[0023] 所述业务客户端,用于获取用户当前提交的业务请求对应的业务标识;在分布式集群服务器中获取与所述业务标识对应的至少一个业务服务器的物理地址;根据预设负载均衡算法,在所述获取到的至少一个业务服务器的物理地址中确定目标物理地址;和所述目标物理地址对应的业务服务器之间建立通信连接; [0023] The service client, configured to obtain the user's current service corresponding to the request submitted by the service identifier; obtaining at least one physical address of the service server corresponding to the service identifier in a distributed server cluster; according to a preset load balancing algorithm, determining a target physical address of the physical address acquired at least one service server; establishing a communication connection between the target and the physical address corresponding to the service server;

[0024] 所述业务服务器,用于和所述业务客户端之间建立通信连接。 [0024] The service server, for establishing a communication connection between the client and the service.

[0025] 实施本发明实施例,具有如下有益效果:业务客户端获取用户当前提交的业务请求对应的业务标识,在分布式集群服务器中获取与业务标识对应的至少一个业务服务器的物理地址,根据预设负载均衡算法,在获取到的至少一个业务服务器的物理地址中确定目标物理地址,并和目标物理地址对应的业务服务器之间建立通信连接,可通过业务客户端实现基于业务的分布式负载调度,提高资源利用率,降低调度风险,并且成本较低。 [0025] Example embodiments of the present invention has the following advantages: a service client acquires the user's current service corresponding to the request submitted by the service identifier, obtaining at least one physical address of the service server corresponding to the service identifier in a distributed server cluster in accordance with a predetermined load balancing algorithm to determine the target physical address to the physical address acquired at least one service server, and between the target and the physical address corresponding to the service server establishes a communication connection, based on the traffic load can be realized by a distributed service client scheduling, improve resource utilization, reduce schedule risk, and lower costs.

附图说明 BRIEF DESCRIPTION

[0026] 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 [0026] In order to more clearly illustrate the technical solutions in the embodiments or the prior art embodiment of the present invention, briefly describes the accompanying drawings required for describing the embodiments used in the following embodiments will be apparent in the following description of the drawings are Some embodiments of the invention, those of ordinary skill in the art is concerned, without creative efforts, can derive from these drawings other drawings.

[0027] 图1是本发明实施例中第一方面提供的一种业务服务器负载均衡方法的流程示意图; [0027] FIG. 1 is a schematic diagram of the process server load balancing method of a service providing a first embodiment of the present invention;

[0028] 图2是本发明实施例中第二方面提供的一种业务服务器负载均衡方法的流程示意图; [0028] FIG. 2 is a schematic diagram of the process server load balancing method of a service provided by the embodiment of the second aspect of the present invention;

[0029] 图3是本发明实施例中第三方面提供的一种业务服务器负载均衡方法的流程示意图; [0029] FIG. 3 is a schematic diagram of the process server load balancing method of a service provided by the embodiment of the third aspect of the present invention;

[0030] 图4是本发明实施例中提供的一种业务客户端的结构示意图; [0030] FIG. 4 is a schematic structural diagram of a service providing terminal customers embodiment of the present invention;

[0031] 图5是本发明实施例中图4的物理地址获取单元的结构示意图; [0031] FIG. 5 is a schematic structural unit acquires the physical address map in Example 4 of the embodiment of the present invention;

[0032] 图6是本发明实施例中提供的一种分布式服务端的结构示意图; [0032] FIG. 6 is a schematic structural diagram of a distributed server provided in the embodiment according to the present invention;

[0033] 图7是本发明实施例中图6的更新单元的一种结构示意图; [0033] FIG. 7 is a schematic structural diagram of the update unit of FIG. 6 of the present invention;

[0034] 图8是本发明实施例中图6的更新单元的另一种结构示意图; [0034] FIG. 8 is another schematic structural diagram in FIG. 6 of the embodiment of the present invention, updating unit;

[0035] 图9是本发明实施例中提供的一种业务服务器负载均衡系统的结构示意图。 [0035] FIG. 9 is a schematic structural diagram of a service server load balancing system according to the embodiment of the present invention is provided.

具体实施方式 Detailed ways

[0036] 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。 [0036] below in conjunction with the present invention in the accompanying drawings, technical solutions of embodiments of the present invention are clearly and completely described, obviously, the described embodiments are part of the embodiments of the present invention rather than all embodiments . 基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, all other embodiments of ordinary skill in the art without any creative effort shall fall within the scope of the present invention.

[0037] 本发明实施例中,业务客户端可以基于业务标识寻址,并根据预设负载均衡算法,实现业务服务器负载均衡,提高资源利用率,降低调度风险,并且成本较低。 Embodiment [0037] In the present invention, the client service may be based on the service identifier address, and according to a preset load balancing algorithm, the service server load balancing, resource utilization, reduce the operation risk, and low cost. 另外,本发明实施例中的分布式服务端基于分布式应用程序协调服务zookeeper实现,负责存储和管理各个业务服务器的物理地址和业务信息及其业务寻址信息,其中业务信息可以包括业务标识和业务优先级等信息,业务寻址信息可以包括业务版本、业务组件、业务标识对应的业务服务器的物理地址等信息,zookeeper是基于观察者模式设计的分布式服务管理框架,分布式服务端可以通过zookeeper的通知机制实现业务服务器的物理地址的实时性和业务客户端的预设存储器中的业务服务器的物理地址的实时性。 Further, in the embodiment of the distributed server is responsible for storing and managing a physical address of each service server and the service information and service information of the present invention addressing implemented based distributed applications ZooKeeper coordination service,, wherein the traffic information may include a service identifier and service priority information, service addressing information may include version information services, service components, the service identifier corresponding to the physical address of the service server, a distributed service management framework ZooKeeper based observer design pattern, can be distributed by the server real-time and real-time physical address preset memory business clients in the business server's physical address zookeeper notification mechanism to achieve business server. 另外,本发明实施例中的业务服务器支持集群功能,即一组相互独立的业务服务器在网络中表现为单一的系统,并以单一系统的模式加以管理,当一个业务服务器发生故障时,应用服务将被重新启动或被另一个业务服务器自动接管。 Further, the service server supporting the cluster function in the embodiment of the present invention, i.e., a group of independent service server manifested as a single system in a network, and managed in a single model system, when a service server fails, the application service It will be restarted or another server automatically takes over the business.

[0038] 请参见图1,图1是本发明实施例中第一方面提供的一种业务服务器负载均衡方法的流程示意图,如图所示本实施例中的业务服务器负载均衡方法可以包括: [0038] Referring to FIG. 1, FIG. 1 is a schematic diagram of a business process server load balancing method according to the first aspect of the embodiment of the present invention, as the service server load balancing method of the present embodiment illustrated embodiment may include:

[0039] 步骤S101,获取用户当前提交的业务请求对应的业务标识。 [0039] In step S101, the user acquires the current service corresponding to the request submitted by the service identifier.

[0040] 业务客户端可以获取用户当前提交的业务请求对应的业务标识,其中业务请求可以包括针对存款、贷款、投资或者咨询顾问等业务的请求,则业务标识可以包括用户当前提交的针对存款、贷款、投资或者咨询顾问等业务请求对应的业务标识。 [0040] Business clients can obtain service user's current request submitted by the corresponding service identification, which service request may include a request for deposit, loan, investment or consulting and other services, the service identifier may include for deposits user currently committed, loans, investments or other business consulting service identifier corresponding to the request.

[0041] 步骤S102,在分布式集群服务器中获取与业务标识对应的至少一个业务服务器的物理地址。 [0041] step S102, acquires the physical address of the at least one service identifier of the service server corresponding to the server in a distributed cluster.

[0042] 业务客户端获取到业务标识后,可以在分布式集群服务器中获取与该业务标识对应的至少一个业务服务器的物理地址。 After the [0042] service client acquires the service identifier can acquire the physical address of the at least one service server corresponding to the service identifier in a distributed server cluster.

[0043] 具体的,业务客户端可以通过API (Applicat1n Program Interface,应用程序接口)将获取到的业务标识发送给分布式服务端,以使分布式服务端在分布式集群服务器中查找与该业务标识对应的至少一个业务服务器的物理地址,分布式服务端将查找到的至少一个业务服务器的物理地址发送给业务客户端,其中API由预设开发框架封装,并由预设开发框架实现具体的应用逻辑,保证应用逻辑和底层技术逻辑的切分,则基于服务码的寻址模式对具体的应用透明,性能较高。 [0043] Specifically, business clients can get to the service identifier is sent to the server distributed by API (Applicat1n Program Interface, Application Programming Interface) to enable distributed server and locate the business in a distributed server cluster identifying at least one physical address corresponding to the service server, distributed server to find the physical address of the at least one service server transmits to the service client, wherein the predetermined development framework API package, achieved by preset specific development framework application logic, application logic and ensure that the underlying technology logical segmentation, addressing mode based on the service code of the particular application transparency, higher performance.

[0044] 可选的,业务客户端也可以在预设存储器中获取分布式集群服务器中与该业务标识对应的至少一个业务服务器的物理地址,可提高地址获取效率。 [0044] Alternatively, the client service may acquire the at least one physical address of the service server in a distributed server cluster corresponding to the service identifier in the preset memory, the address acquisition efficiency can be improved. 其中分布式集群服务器可以基于zookeeper实现,可以包括多个业务服务器,分布式集群服务器可以支持集群功能,即分布式集群服务器中的多个业务服务器以集群方式部署。 Which can be based on a distributed cluster servers to achieve zookeeper, may include a plurality of business servers, distributed cluster server can support clustering capabilities that distributed cluster of servers in multiple business servers deployed in a cluster.

[0045] 步骤S103,根据预设负载均衡算法,在获取到的至少一个业务服务器的物理地址中确定目标物理地址。 [0045] step S103, a default load balancing algorithm to determine the target physical address acquired at least one physical address of the service server.

[0046] 业务客户端获取到该业务标识对应的至少一个业务服务器的物理地址后,可以根据预设负载均衡算法,在获取到的至少一个业务服务器的物理地址中确定目标物理地址。 After the [0046] service client acquires at least one physical address of the service server corresponding to the identifier of the service, according to a predetermined load balancing algorithm to determine the target physical address to the physical address acquired at least one service server.

[0047] 具体的,预设负载均衡算法可以包括轮询算法、最少连接算法、响应时间算法等,例如,业务客户端可以根据轮询算法,在获取到的至少一个业务服务器的物理地址中确定针对最近一次业务请求连接的业务服务器的物理地址,其中所述至少一个业务服务器的物理地址是根据预设排列顺序进行排列的,则业务客户端可以根据确定的针对最近一次业务请求连接的业务服务器的物理地址,在排列的至少一个业务服务器的物理地址中获取目标物理地址,其中轮询算法适合于分布式集群服务器中所有服务器都有相同的软硬件配置并且平均服务请求相对均衡的情况,最少连接算法适合于针对业务请求的处理时间较长的负载均衡的情况,响应速度算法能较好地反映分布式集群服务器中各个业务服务器的当前运行状态。 [0047] Specifically, a predetermined load balancing algorithm may include a polling algorithm, least connections algorithm, response time algorithm, e.g., polling service client according to the algorithm, to determine the physical address acquired at least one service server wherein said physical address of the at least one service server is arranged for the physical address of the service server connection request is the most recent service according to a preset arrangement order, the service client can determined for the most recent service requests the service server connection physical address, the physical address of the target acquired in the at least one physical address of the service server arrangement, wherein the polling algorithm is adapted to all servers in a distributed server cluster have the same hardware and software configurations and where the average service request relatively balanced, at least algorithm is suitable for connection to a longer processing time of service requests load balancing, the response speed of the algorithm can reflect the current status of each service server running a distributed server cluster. 现有技术F5基于最少连接算法实现负载均衡,调度方式单一,本发明实施例中业务客户端可以根据不同的场景预先设定对应的负载均衡算法,实现分布式负载调度,灵活性较高,提升负载均衡效率。 Based on the prior art F5 load balancing algorithm least connected, a single scheduling mode, embodiments of the present invention the client service may be preset corresponding to the scene according to different load balancing algorithm, distributed scheduling load, high flexibility, to enhance the load balancing efficiency.

[0048] 步骤S104,和目标物理地址对应的业务服务器之间建立通信连接。 Establishing a communication connection between the [0048] step S104, and the target physical address corresponding to the service server.

[0049] 业务服务器确定目标物理地址后,可以和目标物理地址对应的业务服务器之间建立通信连接,以实现业务服务器的负载均衡。 After [0049] The service server determines the physical address of a target, a communication connection may be established between the target and the physical address corresponding to the service server to the service server load balancing.

[0050] 在图1所示的业务服务器负载均衡方法中,业务客户端获取用户当前提交的业务请求对应的业务标识,在分布式集群服务器中获取与该业务标识对应的至少一个业务服务器的物理地址,并根据预设负载均衡算法,在获取到的至少一个业务服务器的物理地址中确定目标物理地址,和目标物理地址对应的业务服务器之间建立通信连接,可通过业务客户端实现基于业务的分布式负载调度,提高资源利用率,降低调度风险,并且成本较低。 [0050] In the service server load balancing method shown in FIG. 1, the service client acquires the user's current service corresponding to the request submitted by the service identifier, obtaining at least one physical service server corresponding to the service identifier in a distributed server cluster address, according to a predetermined load balancing algorithm to determine a communication connection between the target physical address, and destination physical address corresponding to the service server in the acquired physical address of the at least one service server may be implemented by a service client based on distributed workload scheduling, improve resource utilization, reduce schedule risk, and lower costs.

[0051] 请参见图2,图2是本发明实施例中第二方面提供的一种业务服务器负载均衡方法的流程示意图,如图所示本实施例中的业务服务器负载均衡方法可以包括: [0051] Referring to FIG. 2, FIG. 2 is a flow diagram of a service server load balancing method described in the second aspect of the present invention to an embodiment, as shown in FIG present service server load balancing method in the embodiment may include:

[0052] 步骤S201,分布式服务端更新业务服务器的地址数据。 [0052] step S201, the distributed services client update address data service server.

[0053] 分布式服务端可以更新业务服务器的地址数据,可选的,分布式服务端监控分布式集群服务器中的业务服务器的业务信息及其业务寻址信息,其中业务信息可以包括业务标识和业务优先级等信息,业务寻址信息可以包括业务版本、业务组件、业务标识对应的业务服务器的物理地址等信息,若业务服务器的业务信息及其业务寻址信息被修改或者删除,则分布式服务端可以更新该业务服务器的地址数据,其中地址数据可以包括业务服务器的物理地址或者业务信息等,本发明实施例可保证分布式服务端存储的地址数据的实时性。 [0053] The distributed server may update the service server address data, optional, service information and service addressing information distributed server cluster servers distributed monitoring service server, wherein the service information may include a service identifier and service priority information, service addressing information may include version information services, service components, the service identifier corresponding to the physical address of the service server, the service information and the service if the service server addressing information is modified or deleted, the distributed server may update the address data of the service server, wherein the address data may include a physical address or a service information like service server, embodiments of the present invention can ensure the real time of the address data stored in the distributed server.

[0054] 可选的,在分布式集群服务器中增加一台业务服务器时,分布式服务端可以接收该业务服务器发送的注册请求,该注册请求可以携带该业务服务器的物理地址,则分布式服务端可以更新该业务服务器的地址数据,即存储针对各个业务标识的该业务服务器的物理地址,本实施例动态扩展能力较高,可支持负载模式的扩展。 When [0054] Alternatively, adding a service server in a distributed server cluster, a distributed server may receive the registration request sent by the service server, the registration request may carry a physical address of the service server, the distributed services end of the service server can update the address data, i.e. for storing physical address of the service server identifier of each service, the higher the present embodiment dynamically embodiment scalability to support extended load mode.

[0055] 步骤S202,若更新的业务服务器的地址数据包括业务服务器的物理地址,则分布式服务端将通知信息发送给业务客户端。 [0055] step S202, if the address data updated service address of the service server comprises a physical server, distributed server sends a notification message to the service client.

[0056] 若更新的业务服务器的地址数据包括业务服务器的物理地址,则分布式服务端可以将通知信息发送给业务客户端,以通知业务客户端同步更新预设存储器中的业务标识对应的上述业务服务器的物理地址,可保证预设存储器中的业务服务器的物理地址的实时性。 [0056] If the address data is updated service address of the service server comprises a physical server, distributed server may send a notification message to the service client to client synchronization update notification service corresponding to the service identifier in the preset memory the physical address of the server business, can ensure real-time physical address of the preset memory business server.

[0057] 步骤S203,业务客户端根据通知信息,更新预设存储器中的业务标识对应的业务服务器的物理地址。 [0057] step S203, the service client according to the notification information, to update the default physical address memory corresponding to the service identifier of the service server.

[0058] 业务客户端接收到分布式服务端发送的通知信息后,可以根据通知信息,更新预设存储器中的业务标识对应的上述业务服务器的物理地址。 [0058] service after receiving a notification sent by the server information distributed, according to the notification information, to update the physical address of the preset memory of the service server corresponding to the service identifier.

[0059] 步骤S204,业务客户端获取用户当前提交的业务请求对应的业务标识。 [0059] Step S204, the service client acquires the user's current service corresponding to the request submitted by the service identifier.

[0060] 业务客户端可以获取用户当前提交的业务请求对应的业务标识,业务请求可以包括针对存款、贷款、投资或者咨询顾问等业务的请求,则业务标识可以包括用户当前提交的针对存款、贷款、投资或者咨询顾问等业务请求对应的业务标识。 [0060] Business clients can obtain service user's current request submitted by the corresponding service identification, service request may include a request for deposit, loan, investment or consulting and other services, the service identifier may include for deposits user currently committed loan investment consultants and other service request or corresponding service identifier.

[0061] 步骤S205,业务客户端在预设存储器中获取分布式集群服务器中与该业务标识对应的至少一个业务服务器的物理地址。 [0061] step S205, the service client acquires the physical address of the at least one service server in a distributed server cluster corresponding to the service identifier in the preset memory.

[0062] 业务客户端获取到业务标识后,可以在预设存储器中获取分布式集群服务器中与该业务标识对应的至少一个业务服务器的物理地址,其中,业务客户端预先将分布式服务端发送的该业务标识对应的至少一个业务服务器的物理地址存储到预设存储器中。 After the [0062] service client acquires the service identifier, may be obtained, wherein the service client sends distributed cluster server in advance with at least one physical address of the service server corresponding to the identifier of the service in the distributed server preset memory the service identifier corresponding to the at least one physical address of the service server stores the preset memory.

[0063] 本发明实施例中,业务客户端、预设存储器以及分布式服务端通过接口进行交互,预设存储器面向接口进行操作,即不关注分布式服务端是分布式缓存组件、数据库、文件或者在线数据通道等,预设存储器提供接口给业务客户端,业务客户端在预设存储器中获取业务服务器的物理地址,而不用关注业务服务器的物理地址是如何得到的,则预设存储器使业务客户端和分布式服务端形成松耦合的关系,可降低业务客户端和分布式服务端之间的依赖性。 [0063] embodiment, the service client embodiment of the present invention, the preset memory and distributed server interact through the interface, the preset memory for the user interface, i.e., is not concerned with a distributed server-side distributed cache components, databases, files or how online data channels, etc., the preset memory provides an interface to the business client, business client to obtain the physical address of the server business in the preset memory, rather than focus on the business server physical address is obtained, then the preset memory business and distributed client server relationship is formed loosely coupled, can reduce the dependency between the client and the distributed service server.

[0064] 步骤S206,业务客户端根据预设负载均衡算法,在获取到的至少一个业务服务器的物理地址中确定目标物理地址。 [0064] step S206, the service client according to a preset load balancing algorithm to determine the target physical address to the physical address acquired at least one service server.

[0065] 具体的,预设负载均衡算法可以包括轮询算法、最少连接算法、响应时间算法等,例如,业务客户端可以根据轮询算法,在获取到的至少一个业务服务器的物理地址中确定针对最近一次业务请求连接的业务服务器的物理地址,其中所述至少一个业务服务器的物理地址是根据预设排列顺序进行排列的,则业务客户端可以根据确定的针对最近一次业务请求连接的业务服务器的物理地址,在排列的至少一个业务服务器的物理地址中获取目标物理地址,其中轮询算法适合于分布式集群服务器中所有服务器都有相同的软硬件配置并且平均服务请求相对均衡的情况,最少连接算法适合于针对业务请求的处理时间较长的负载均衡的情况,响应速度算法能较好地反映分布式集群服务器中各个业务服务器的当前运行状态。 [0065] Specifically, a predetermined load balancing algorithm may include a polling algorithm, least connections algorithm, response time algorithm, e.g., polling service client according to the algorithm, to determine the physical address acquired at least one service server wherein said physical address of the at least one service server is arranged for the physical address of the service server connection request is the most recent service according to a preset arrangement order, the service client can determined for the most recent service requests the service server connection physical address, the physical address of the target acquired in the at least one physical address of the service server arrangement, wherein the polling algorithm is adapted to all servers in a distributed server cluster have the same hardware and software configurations and where the average service request relatively balanced, at least algorithm is suitable for connection to a longer processing time of service requests load balancing, the response speed of the algorithm can reflect the current status of each service server running a distributed server cluster. 现有技术F5基于最少连接算法实现负载均衡,调度方式单一,本发明实施例中业务客户端可以根据不同的场景预先设定对应的负载均衡算法,实现分布式负载调度,灵活性较高,提升负载均衡效率。 Based on the prior art F5 load balancing algorithm least connected, a single scheduling mode, embodiments of the present invention the client service may be preset corresponding to the scene according to different load balancing algorithm, distributed scheduling load, high flexibility, to enhance the load balancing efficiency.

[0066] 步骤S207,业务客户端和目标物理地址对应的业务服务器之间建立通信连接。 [0066] Step S207, the communication connection is established between the service client and the destination physical address corresponding to the service server.

[0067] 业务服务器确定目标物理地址后,可以和目标物理地址对应的业务服务器之间建立通信连接,以实现业务服务器的负载均衡。 After [0067] The service server determines the physical address of a target, a communication connection may be established between the target and the physical address corresponding to the service server to the service server load balancing.

[0068] 在可选实施例中,若目标物理地址对应的业务服务器确定和业务服务器之间的通信连接超时,则目标物理地址对应的业务服务器可以向分布式服务端发送针对该业务标识的连接超时信息,分布式服务端可以根据接收到的连接超时信息,删除针对该业务标识的目标物理地址,并发送通知信息给业务客户端,以使业务客户端根据该通知信息删除预设存储器中针对该业务标识的目标物理地址,可保证预设存储器中的业务服务器的物理地址的实时性。 Communication between the connection timeout [0068] In an alternative embodiment, if the target physical address corresponding to the service server and the service server is determined, the target physical address corresponding to the service server may send the service identifier for the connection to a distributed server timeout information, the server can be distributed according to the physical address of the target service identifier, and transmits the notification information to the service client to allow the client to delete business preset memory for the notification information according to the received connection timeout information, delete target physical address of the service identifier can ensure real-time physical address of the preset memory service server.

[0069] 在图2所示的业务服务器负载均衡方法中,若分布式服务端更新的业务服务器的地址数据包括业务服务器的物理地址,则分布式服务端将通知信息发送给业务客户端,业务客户端根据通知信息,更新预设存储器中的业务标识对应的业务服务器的物理地址,进一步的,业务客户端获取用户当前提交的业务请求对应的业务标识,在预设存储器中获取分布式集群服务器中与该业务标识对应的至少一个业务服务器的物理地址,并根据预设负载均衡算法,在获取到的至少一个业务服务器的物理地址中确定目标物理地址,和目标物理地址对应的业务服务器之间建立通信连接,可通过业务客户端实现基于业务的分布式负载调度,提高资源利用率,降低调度风险,并且成本较低。 [0069] In the service server load balancing method shown in FIG. 2, if the address data distributed server updates the physical address of the service server comprises a service server, distributed server sends a notification message to the service client, business the client notification information, updates the physical address of a preset memory of the service server corresponding to the service identifier, further, the service client acquires the user's current service corresponding to the request submitted by the service identifier, the server acquires distributed cluster in the preset memory with the service identifier corresponding to the physical address of the at least one service server, and in accordance with a predetermined load balancing algorithm to determine between the target physical address, and destination physical address corresponding to the acquired service server in the at least one physical address of the service server establishing a communication connection can be realized through the business client distributed load scheduling based on business, improve resource utilization, reduce schedule risk, and lower costs.

[0070] 请参见图3,图3是本发明实施例中第三方面提供的一种业务服务器负载均衡方法的流程示意图,如图所示本实施例中的业务服务器负载均衡方法可以包括: [0070] Referring to FIG. 3, FIG. 3 is a flow diagram of a service server load balancing method described in the third aspect of the present invention to an embodiment, as shown in FIG present service server load balancing method in the embodiment may include:

[0071 ] 步骤S301,业务服务器向分布式服务端发送注册指令,该注册指令携带业务服务器的物理地址。 [0071] step S301, the service server sends a registration instruction to the distributed server, the registration instruction carries the physical address of the service server.

[0072] 分布式集群服务器中的各个业务服务器可以分别向分布式服务端发送注册指令,该注册指令可以携带业务服务器的物理地址。 [0072] distributed cluster server of each service server may transmit the registration instruction are distributed server, the registration instruction may carry physical address of the service server.

[0073] 步骤S302,分布式服务端存储业务标识对应的业务服务器的物理地址。 [0073] step S302, the server stores the physical address of the distributed service identifier corresponding to the service server.

[0074] 分布式服务端接收到业务服务器发送的物理地址后,可以存储业务标识对应的该业务服务器的物理地址。 [0074] The physical address of the distributed services. After receiving the physical address of the service sent by the server, may store a service identifier corresponding to the service server.

[0075] 步骤S303,业务客户端获取用户当前提交的业务请求对应的业务标识。 [0075] Step S303, the service client acquires the user identifier of the current service corresponding to the request submitted by the service.

[0076] 业务客户端可以获取用户当前提交的业务请求对应的业务标识,业务请求可以包括针对存款、贷款、投资或者咨询顾问等业务的请求,则业务标识可以包括用户当前提交的针对存款、贷款、投资或者咨询顾问等业务请求对应的业务标识。 [0076] Business clients can obtain service user's current request submitted by the corresponding service identification, service request may include a request for deposit, loan, investment or consulting and other services, the service identifier may include for deposits user currently committed loan investment consultants and other service request or corresponding service identifier.

[0077] 步骤S304,业务客户端将获取到的业务标识发送给分布式服务端。 [0077] step S304, the acquired business client service identifier is sent to the distributed server.

[0078] 具体的,业务客户端可以通过API (Applicat1n Program Interface,应用程序接口)将获取到的业务标识发送给分布式服务端,以使分布式服务端在分布式集群服务器中查找与该业务标识对应的至少一个业务服务器的物理地址,分布式服务端将查找到的至少一个业务服务器的物理地址发送给业务客户端,其中API由预设开发框架封装,并由预设开发框架实现具体的应用逻辑,保证应用逻辑和底层技术逻辑的切分,则基于服务码的寻址模式对具体的应用透明,性能较高。 [0078] Specifically, business clients can get to the service identifier is sent to the server distributed by API (Applicat1n Program Interface, Application Programming Interface) to enable distributed server and locate the business in a distributed server cluster identifying at least one physical address corresponding to the service server, distributed server to find the physical address of the at least one service server transmits to the service client, wherein the predetermined development framework API package, achieved by preset specific development framework application logic, application logic and ensure that the underlying technology logical segmentation, addressing mode based on the service code of the particular application transparency, higher performance.

[0079] 步骤S305,分布式服务端根据该业务标识,向业务客户端发送分布式集群服务器中与该业务标识对应的至少一个业务服务器的物理地址。 [0079] step S305, the distributed server according to the service identifier, send the physical address of the at least one service server in a distributed server cluster corresponding to the service identifier to the service client.

[0080] 分布式服务端可以根据该业务标识,查找与该业务标识对应的至少一个业务服务器的物理地址,并将该业务标识对应的至少一个业务服务器的物理地址发送给业务客户端。 [0080] The distributed server according to the service identifier, to find at least one physical address of the service server corresponding to the service identifier, and transmits the service server the physical address of the at least one service identifier corresponding to the service client.

[0081] 步骤S306,业务客户端根据预设负载均衡算法,在获取到的至少一个业务服务器的物理地址中确定目标物理地址。 [0081] step S306, the service client according to a preset load balancing algorithm to determine the target physical address to the physical address acquired at least one service server.

[0082] 具体的,预设负载均衡算法可以包括轮询算法、最少连接算法、响应时间算法等,例如,业务客户端可以根据轮询算法,在获取到的至少一个业务服务器的物理地址中确定针对最近一次业务请求连接的业务服务器的物理地址,其中所述至少一个业务服务器的物理地址是根据预设排列顺序进行排列的,则业务客户端可以根据确定的针对最近一次业务请求连接的业务服务器的物理地址,在排列的至少一个业务服务器的物理地址中获取目标物理地址,其中轮询算法适合于分布式集群服务器中所有服务器都有相同的软硬件配置并且平均服务请求相对均衡的情况,最少连接算法适合于针对业务请求的处理时间较长的负载均衡的情况,响应速度算法能较好地反映各个业务服务器的当前运行状态。 [0082] Specifically, a predetermined load balancing algorithm may include a polling algorithm, least connections algorithm, response time algorithm, e.g., polling service client according to the algorithm, to determine the physical address acquired at least one service server wherein said physical address of the at least one service server is arranged for the physical address of the service server connection request is the most recent service according to a preset arrangement order, the service client can determined for the most recent service requests the service server connection physical address, the physical address of the target acquired in the at least one physical address of the service server arrangement, wherein the polling algorithm is adapted to all servers in a distributed server cluster have the same hardware and software configurations and where the average service request relatively balanced, at least algorithm is suitable for connection to a longer processing time of service requests load balancing, the response speed of the algorithm can reflect the current operating status of each service server. 现有技术F5基于最少连接算法实现负载均衡,调度方式单一,本发明实施例中业务客户端可以根据不同的场景预先设定对应的负载均衡算法,实现分布式负载调度,灵活性较高,提升负载均衡效率。 Based on the prior art F5 load balancing algorithm least connected, a single scheduling mode, embodiments of the present invention the client service may be preset corresponding to the scene according to different load balancing algorithm, distributed scheduling load, high flexibility, to enhance the load balancing efficiency.

[0083] 在可选实施例中,业务客户端可以将获取到的业务标识对应的至少一个业务服务器的物理地址存储到预设存储器中。 [0083] In an alternative embodiment, the client service may be obtained at least one physical address of the service server corresponding to the service identifier stored in the preset memory.

[0084] 步骤S307,业务客户端和目标物理地址对应的业务服务器之间建立通信连接。 [0084] step S307, communication connection is established between the service client and the destination physical address corresponding to the service server.

[0085] 业务服务器确定目标物理地址后,可以和目标物理地址对应的业务服务器之间建立通信连接,以实现业务服务器的负载均衡。 After [0085] The service server determines the physical address of a target, a communication connection may be established between the target and the physical address corresponding to the service server to the service server load balancing.

[0086] 在图3所示的业务服务器负载均衡方法中,分布式服务端根据业务服务器发送的注册指令,存储业务标识对应的业务服务器的物理地址,业务客户端将用户当前提交的业务请求对应的业务标识发送给分布式服务端,则分布式服务端根据该业务标识,向业务客户端发送分布式集群服务器中与该业务标识对应的至少一个业务服务器的物理地址,业务客户端根据预设负载均衡算法,在获取到的至少一个业务服务器的物理地址中确定目标物理地址,业务客户端和目标物理地址对应的业务服务器之间建立通信连接,可通过业务客户端实现基于业务的分布式负载调度,提高资源利用率,降低调度风险,并且成本较低。 [0086] In the service server load balancing method shown in FIG. 3, the distributed registration instruction sent by the server according to the service server, the physical address corresponding to the service identifier stored in the service server, the service client service request submitted by the user corresponds to the current the distributed service identifier to the server, the distributed server, the physical address of the at least one transmission service server in a distributed server cluster corresponding to the service identifier to the service client according to the service identifier, the service client according to a preset load balancing algorithm to determine the target physical address to the physical address acquired at least one service server, establishing a communication connection between the service client and the destination physical address corresponding to the service server, may be implemented based on the traffic load is distributed by the service client scheduling, improve resource utilization, reduce schedule risk, and lower costs.

[0087] 请参见图4,图4是本发明实施例中提供的一种业务客户端400的结构示意图,如图所示本发明实施例中的业务客户端400至少可以包括业务标识获取单元401、物理地址获取单元402、物理地址确定单元403以及通信连接建立单元404,其中: [0087] Referring to FIG. 4, FIG. 4 is a block diagram of an embodiment provided service client terminal 400 of the embodiment of the present invention, as shown in the customer service shown in the embodiment of the present invention may include at least 400 end service identification obtaining unit 401 , the physical address obtaining unit 402, a physical address determination unit 403 and a communication connection establishing unit 404, wherein:

[0088] 业务标识获取单元401,用于获取用户当前提交的业务请求对应的业务标识,业务请求可以包括针对存款、贷款、投资或者咨询顾问等业务的请求,则业务标识可以包括用户当前提交的针对存款、贷款、投资或者咨询顾问等业务请求对应的业务标识。 [0088] service identification obtaining unit 401 is configured to obtain the user's current service corresponding to the request submitted by the service identifier, the service request may include a request for deposits, loans, investments or other business consultant, the service identifier may include the user's current submission for deposits, loans, investments or other business consulting service identifier corresponding to the request.

[0089] 物理地址获取单元402,用于在分布式集群服务器中获取与业务标识获取单元401获取到的业务标识对应的至少一个业务服务器的物理地址。 [0089] physical address obtaining unit 402, configured to obtain service identifier acquisition unit and the at least one physical address of the service server corresponding to the service identifier 401 acquired in the distributed cluster servers.

[0090] 物理地址确定单元403,用于根据预设负载均衡算法,在物理地址获取单元402获取到的至少一个业务服务器的物理地址中确定目标物理地址。 [0090] physical address determination unit 403, according to a preset load balancing algorithm acquiring unit 402 acquires the physical address to the physical address of the at least one service server determines the target physical address.

[0091] 具体的,预设负载均衡算法可以包括轮询算法、最少连接算法、响应时间算法等,例如,物理地址确定单元403可以根据轮询算法,在获取到的至少一个业务服务器的物理地址中确定针对最近一次业务请求连接的业务服务器的物理地址,其中所述至少一个业务服务器的物理地址是根据预设排列顺序进行排列的,则物理地址确定单元403可以根据确定的针对最近一次业务请求连接的业务服务器的物理地址,在排列的至少一个业务服务器的物理地址中获取目标物理地址,本发明实施例中业务客户端可以实现分布式负载调度,灵活性较高,提升负载均衡效率。 [0091] Specifically, a predetermined load balancing algorithm may include a polling algorithm, least connections algorithm, algorithm response time, e.g., a physical address determination unit 403 according to a polling algorithm, the acquired physical address in the at least one service server is determined for the physical address of the service server connection request is the most recent service, wherein the physical address of the at least one service server is arranged according to a predetermined arrangement order, the physical address determination unit 403 may determine that the most recent request for a service in accordance with the physical address of the service server connection, obtaining at least one physical address of the service server the physical address of the target arrangement, embodiment the load distributed scheduling service client may be implemented according to the present invention, high flexibility, to enhance the efficiency of load balancing.

[0092] 通信连接建立单元404,用于和物理地址确定单元403确定的目标物理地址对应的业务服务器之间建立通信连接。 [0092] The communication connection establishment unit 404, and a physical address is determined for establishing a communication connection between the target unit 403 determines a physical address corresponding to the service server.

[0093] 作为一种可选的实施方式,本发明实施例中的物理地址获取单元402还可以包括: [0093] As an alternative embodiment, the physical address acquisition unit 402 in the embodiment of the present invention may further embodiment comprises:

[0094] 业务标识发送模块501,用于向分布式服务端发送所述业务标识。 [0094] service identifier and a sending module 501, configured to send the service identifier to the distributed server.

[0095] 业务标识发送模块501可以通过API将获取到的业务标识发送给分布式服务端,以使分布式服务端在分布式集群服务器中查找与该业务标识对应的至少一个业务服务器的物理地址,其中API由预设开发框架封装,并由预设开发框架实现具体的应用逻辑,保证应用逻辑和底层技术逻辑的切分,则基于服务码的寻址模式对具体的应用透明,性能较高。 The physical address [0095] transmitting the service identifier module 501 may be acquired through an API service identifier to a distributed server for a distributed server looks for at least a service server corresponding to the service identifier in a distributed server cluster wherein the predetermined development framework API package, a predetermined development framework by application specific logic implemented to ensure that the underlying application logic and technology logical segmentation, addressing mode based on the service code of the particular application transparency, higher performance .

[0096] 物理地址获取模块502,用于接收所述分布式服务端发送的所述分布式集群服务器中与所述业务标识对应的至少一个业务服务器的物理地址。 [0096] module 502 acquires a physical address, the physical address for the at least one service server receives the distributed cluster server in the distributed server transmits to the service corresponding to the identifier.

[0097] 作为一种可选的实施方式,本发明实施例中的业务客户端400还可以包括: [0097] As an alternative embodiment, the service client in the embodiment of the present invention may further include an end 400:

[0098] 存储单元405,用于将业务标识获取单元401获取到的业务标识对应的物理地址获取单元402获取到的至少一个业务服务器的物理地址存储到预设存储器中。 [0098] storage unit 405, a service identifier obtaining unit 401 obtains the physical address corresponding to the service identifier acquisition unit 402 acquires the physical address of the at least one service server is stored in the preset memory.

[0099] 作为一种可选的实施方式,物理地址获取单元402,用于在预设存储器中获取所述分布式集群服务器中与所述业务标识对应的至少一个业务服务器的物理地址。 [0099] As an alternative embodiment, the physical address obtaining unit 402, configured to obtain the physical address of the at least one service server in the distributed server cluster corresponding to the service identifier in the preset memory.

[0100] 作为一种可选的实施方式,本发明实施例中的业务客户端400还可以包括: [0100] As an alternative embodiment, the service client in the embodiment of the present invention may further include an end 400:

[0101] 通知信息接收单元406,用于接收所述分布式服务端发送的通知信息。 [0101] notification information receiving unit 406, configured to receive notification information sent by the distributed server.

[0102] 更新单元407,用于根据通知信息接收单元406接收到的通知信息,更新所述预设存储器中的业务标识对应的业务服务器的物理地址。 [0102] updating unit 407, for receiving the notification information according to the notification information receiving unit 406, update the preset memory physical address corresponding to the service identifier of the service server.

[0103] 在图4和图5所示的业务客户端400中,业务标识获取单元401获取用户当前提交的业务请求对应的业务标识,物理地址获取单元402在分布式集群服务器中获取与业务标识对应的至少一个业务服务器的物理地址,物理地址确定单元403根据预设负载均衡算法,在获取到的至少一个业务服务器的物理地址中确定目标物理地址,通信连接建立单元404和确定的目标物理地址对应的业务服务器之间建立通信连接,可通过业务客户端400实现基于业务的分布式负载调度,提高资源利用率,降低调度风险,并且成本较低。 [0103] In the service client shown in FIG. 5 and FIG ends 400, acquisition unit 401 acquires service identification unit 402 acquires the distributed cluster server service identifier of the user of the current service corresponding to the request submitted by the service identifier, the physical address obtained corresponding at least one physical address, the physical address of the service server determining unit 403 according to a preset load balancing algorithm to determine the target physical address acquired at least one physical address of the service server, the physical address of the target to establish a communication connection unit 404 and the determination of establishing communication between the service server corresponding to the connection 400 may be implemented based on distributed load scheduling service, improved resource utilization and reduce the risk of scheduling operations by the client, and low cost.

[0104] 请参见图6,图6是本发明实施例中提供的一种分布式服务端600的结构示意图,如图所示本发明实施例中的分布式服务端600至少可以包括业务标识接收单元601以及物理地址发送单元602,其中: [0104] Referring to FIG. 6, FIG. 6 is a schematic structural diagram of a distributed server 600 of the embodiment of the present invention to provide a distributed server in the embodiment of the present invention shown in FIG. 600 may include at least the service identifier receiving unit 601 and a transmission unit 602 the physical address, wherein:

[0105] 业务标识接收单元601,用于接收业务客户端发送的业务标识。 [0105] service identifier receiving unit 601, for receiving a service identifier sent by the client service.

[0106] 物理地址发送单元602,用于根据所述业务标识,向所述业务客户端发送分布式集群服务器中与所述业务标识对应的至少一个业务服务器的物理地址,以使所述业务客户端根据预设负载均衡算法,在所述至少一个业务服务器的物理地址中确定目标物理地址,所述业务客户端和所述目标物理地址对应的业务服务器之间建立通信连接。 [0106] physical address transmission unit 602 for transmitting the physical address of the at least one service distributed server cluster servers to the service identifier corresponding to the service client according to the service identifier, so that the service client end according to a preset load balancing algorithm to determine the physical address of the target physical address in the at least one service server, the service to establish a communication connection between the client and the target physical address corresponding to the service server.

[0107] 作为一种可选的实施方式,本发明实施例中的分布式服务端600还可以包括: [0107] As an alternative embodiment, the embodiment of the distributed server 600 of this embodiment of the present invention may further comprise:

[0108] 注册指令接收单元603,用于接收所述分布式集群服务器中的业务服务器发送的注册指令,所述注册指令携带所述业务服务器的物理地址。 [0108] registration instruction reception unit 603, an instruction register for receiving said distributed service cluster server sent by the server, the registration instruction carries the physical address of the service server.

[0109] 存储单元604,用于存储业务标识对应的所述业务服务器的物理地址,触发业务标识接收单元601接收业务客户端发送的业务标识。 [0109] The storage unit 604, a physical address of the service server stores the service identifier corresponding to the service identifier of the trigger receiving unit 601 receives the service identifier sent by the client service.

[0110] 作为一种可选的实施方式,本发明实施例中的分布式服务端600还可以包括: [0110] As an alternative embodiment, the embodiment of the distributed server 600 of this embodiment of the present invention may further comprise:

[0111] 更新单元605,用于更新所述业务服务器的地址数据。 [0111] updating unit 605 for updating the address data of the service server.

[0112] 通知信息发送单元606,用于若更新单元605更新的所述业务服务器的地址数据包括所述业务服务器的物理地址,则所述分布式服务端将通知信息发送给所述业务客户端,以使所述业务客户端根据所述接收到的通知信息,更新预设存储器中的业务标识对应的所述业务服务器的物理地址。 [0112] notification information transmitting unit 606, if the address data updating unit 605 updates the service server includes a physical address of the service server, said distributed server transmits notification information to the service client , so that the service client according to the received notification information, update the service identifier corresponding to the preset memory physical address of the service server.

[0113] 作为一种可选的实施方式,本发明实施例中的更新单元605可以如图7所示,进一步包括: [0113] As an alternative embodiment, the updating unit 605 embodiment of the present invention may be embodiment 7, further comprising:

[0114] 监控模块701,用于监控所述业务服务器的业务信息及其业务寻址信息。 [0114] The monitoring module 701 for monitoring the service server and the service information service addressing information.

[0115] 更新模块702,用于若监控模块701监控到所述业务服务器的业务信息及其业务寻址信息被修改或者删除,则更新所述业务服务器的地址数据。 [0115] updating module 702, monitoring module 701 for monitoring if the service server to the service information and the service addressing information is modified or deleted, the address data is updated in the service server.

[0116] 作为一种可选的实施方式,若所述更新的所述业务服务器包括目标物理地址对应的业务服务器,则本发明实施例中的更新单元605可以如图8所示,进一步包括: [0116] As an alternative embodiment, if the update of the service server includes a target physical address corresponding to the service server, the update unit 605 of the present invention may be embodiment 8, further comprising:

[0117] 超时信息接收模块801,用于若所述目标物理地址对应的业务服务器与所述业务客户端之间连接超时,则接收所述目标物理地址对应的业务服务器发送的针对所述业务标识的连接超时信息。 [0117] Timeout information receiving module 801, a connection time-out between the target if the physical address corresponding to the service server and the service client, the receiving of the target physical address corresponding to the service server for transmitting the service identifier connection timeout information.

[0118] 物理地址删除模块802,用于根据超时信息接收模块801接收到的连接超时信息,删除针对所述业务标识的所述目标物理地址。 [0118] physical address deleting module 802, a connection timeout information received based on the timeout information receiving module 801, deleting the target physical address for the identified service.

[0119] 在图6、图7以及图8所示的分布式服务端中,业务标识接收单元601接收业务客户端发送的业务标识,物理地址发送单元602根据所述业务标识,向所述业务客户端发送分布式集群服务器中与所述业务标识对应的至少一个业务服务器的物理地址,以使所述业务客户端根据预设负载均衡算法,在所述至少一个业务服务器的物理地址中确定目标物理地址,所述业务客户端和所述目标物理地址对应的业务服务器之间建立通信连接,可提高资源利用率,降低调度风险,并且成本较低。 [0119] In FIG. 6, FIG. 7 and FIG. 8 ends distributed service, service identifier identifies the physical address of the service receiving unit 601 receives the service client to send a transmission unit according to the service identifier 602, to the service the client sends the server the physical address of the at least one service in a distributed server cluster corresponding to the service identifier, so that the service client according to a preset load balancing algorithm, the at least one physical address of the service server determines a target in the physical address, service established between the client and the target physical address corresponding to the communication service server connection for increased resource utilization and reduce the risk of scheduling, and low cost.

[0120] 请参见图9,图9是本发明实施例中提供的一种业务服务器负载均衡系统900的结构示意图,如图所示本发明实施例中的业务服务器负载均衡系统900至少可以包括业务客户端901和业务服务器902,业务客户端901可以结合图4和图5所示的业务客户端,业务服务器902可以结合图6、图7和图8所示的业务服务器,其中: [0120] Referring to FIG. 9, FIG. 9 is a schematic structural diagram of a service server load balancing system according to an embodiment of the present invention provided 900, the present invention is shown in FIG embodiment of a service server load balancing system 900 may include at least service service server 901 and client 902, 901 may be bonded to service client service client shown in FIG. 4 and FIG. 5, the service server 902 may be bonded to FIG. 6, FIG 7 and FIG 8, the service server, wherein:

[0121] 业务客户端901,用于获取用户当前提交的业务请求对应的业务标识;在分布式集群服务器中获取与所述业务标识对应的至少一个业务服务器的物理地址;根据预设负载均衡算法,在所述获取到的至少一个业务服务器的物理地址中确定目标物理地址;和所述目标物理地址对应的业务服务器之间建立通信连接。 [0121] service client 901, for acquiring the current user service request submitted corresponding service identifier; obtaining at least one physical address of the service server corresponding to the service identifier in a distributed server cluster; according to a preset load balancing algorithm determining a target physical address of the physical address acquired at least one service server; establishing a communication connection between the target and the physical address of the corresponding service server.

[0122] 业务服务器902,用于和所述业务客户端之间建立通信连接。 [0122] The service server 902, for establishing a communication connection between the client and the service.

[0123] 作为一种可选的实施方式,本发明实施例中的业务服务器负载均衡系统900还可以包括分布式服务端903,其中: [0123] As an alternative embodiment, the service server load balancing system 900 in the embodiment of the present invention may further comprise a distributed service terminal 903, wherein:

[0124] 业务客户端901,用于将获取到的业务标识发送给分布式服务端903。 [0124] service client 901 for the acquired business ID to a distributed server 903.

[0125] 进一步的,分布式服务端903,用于将所述分布式集群服务器中与所述业务标识对应的至少一个业务服务器的物理地址发送给业务客户端901。 [0125] Further, the distributed server 903, for transmitting at least one service server the physical address of the server in the distributed cluster service identifier corresponding to the service client 901.

[0126] 进一步可选的,业务客户端901,用于将分布式服务端903发送的所述业务标识对应的至少一个业务服务器的物理地址存储到预设存储器中。 [0126] Further, optionally, the client service 901, for storing at least one service server the physical address of the service server 903 transmits the distributed corresponding to the identifier to the preset memory.

[0127] 作为一种可选的实施方式,业务客户端901,用于在预设存储器中获取所述分布式集群服务器中与所述业务标识对应的至少一个业务服务器的物理地址。 [0127] As an alternative embodiment, the service client 901, at least for acquiring the physical address of a service server in the distributed server cluster corresponding to the service identifier in the preset memory.

[0128] 作为一种可选的实施方式,分布式服务端903,还用于更新业务服务器的地址数据,若更新的业务服务器的地址数据包括所述业务服务器的物理地址,则分布式服务端903将通知信息发送给业务客户端901。 [0128] As an alternative embodiment, the distributed server 903 is further configured to update the business server address data, the address data if the update service server includes a physical address of the service server, distributed server 903 notification information to service client 901.

[0129] 进一步的,业务客户端901,用于根据所述接收到的通知信息,更新预设存储器中的业务标识对应的所述业务服务器的物理地址。 [0129] Further, the service client 901, according to the received notification information, updates are scheduled physical address of the service server memory corresponding to the service identifier.

[0130] 可选的,分布式服务端903监控所述分布式集群服务器中的业务服务器的业务信息及其业务寻址信息,若所述业务服务器的业务信息及其业务寻址信息被修改或者删除,则更新所述业务服务器的地址数据。 [0130] Alternatively, the serving service information distributed service addressing information 903 and the distributed monitoring service server cluster server terminal, if the service information and the service information of the service server address to be modified or deleted, the service server address data is updated.

[0131] 可选的,若所述目标物理地址对应的业务服务器902与业务客户端901之间连接超时,则分布式服务端903接收目标物理地址对应的业务服务器902发送的针对所述业务标识的连接超时信息,并根据接收到的连接超时信息,删除针对所述业务标识的所述目标物理地址。 [0131] Alternatively, if the connection time-out between the target physical address corresponding to the service server 902 and the service client 901, the server 903 receives the distributed target physical address corresponding to the service server 902 for transmitting the service identifier connection timeout information, and according to the received connection timeout information, delete a target physical address for the identified service.

[0132] 本实施例中的业务服务器负载均衡系统中,业务客户端901获取用户当前提交的业务请求对应的业务标识,在分布式集群服务器中获取与所述业务标识对应的至少一个业务服务器的物理地址,根据预设负载均衡算法,在获取到的至少一个业务服务器的物理地址中确定目标物理地址,和目标物理地址对应的业务服务器之间建立通信连接,可提高资源利用率,降低调度风险,并且成本较低。 [0132] The present acquiring the current user 901 to submit a service request corresponding to the service identifier in the embodiment system, the service server load balancing, service client embodiment, obtaining at least one service server and the service corresponding to the identifier in a distributed server cluster physical address according to a preset load balancing algorithm to determine a communication connection between the target physical address, and destination physical address corresponding to the service server in the acquired physical address in the at least one service server may improve resource utilization, reduce the operation risk and lower costs.

[0133] 本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。 [0133] Those of ordinary skill in the art may understand that the above-described method embodiments all or part of the processes may be related hardware instructed by a computer program, the program may be stored in a computer readable storage medium, when the program is executed, the processes of the foregoing method embodiments. 其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory, ROM)或随机存储记忆体(Random AccessMemory, RAM)等。 Wherein the storage medium may be a magnetic disk, an optical disk, read-only memory (Read-Only Memory, ROM) or a random access memory (Random AccessMemory, RAM) and the like.

[0134] 需要说明的是,在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。 [0134] Incidentally, in the above embodiment, the description of the various embodiments have different emphases, not described in detail a portion of the embodiments, reference may be described in other embodiments. 其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。 Secondly, those skilled in the art should also understand that the embodiments are described in the specification are exemplary embodiments, actions and modules involved are not necessarily required by the present invention.

[0135] 本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。 The method of embodiment The procedure of Example [0135] The present invention may adjust the order, deletion, and combined according to need.

[0136] 本发明实施例装置中的单元或模块可以根据实际需要进行合并、划分和删减。 Embodiment [0136] The present invention apparatus may be combined units or modules according to actual needs, division and deletion.

[0137] 本发明实施例中所述单元或模块,可以通过通用集成电路,例如CPU (CentralProcessing Unit,中央处理器),或通过ASIC (Applicat1n Specific IntegratedCircuit,专用集成电路)来实现。 Units or modules described in the embodiment [0137] of the present invention, a universal integrated circuit can be, for example, CPU (CentralProcessing Unit, central processing unit), or by ASIC (Applicat1n Specific IntegratedCircuit, application specific integrated circuit).

[0138] 以上对本发明实施例所提供的业务服务器负载均衡方法、客户端、服务端及系统进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 It described in detail service server load balancing method embodiment provided by the client, server and system for [0138] the above embodiment of the present invention described herein through specific examples of the principles and embodiments of the invention are set forth in the above embodiment the description is intended to help understand the method and core idea of ​​the present invention; while those of ordinary skill in the art, according to the ideas of the present invention, there are changes in the specific embodiment and application of the embodiment, the sum described later, the present specification shall not be construed as limiting the present invention.

Claims (21)

1.一种业务服务器负载均衡方法,其特征在于,所述方法包括: 业务客户端获取用户当前提交的业务请求对应的业务标识; 所述业务客户端在分布式集群服务器中获取与所述业务标识对应的至少一个业务服务器的物理地址; 所述业务客户端根据预设负载均衡算法,在所述获取到的至少一个业务服务器的物理地址中确定目标物理地址; 所述业务客户端和所述目标物理地址对应的业务服务器之间建立通信连接。 1. A service server load balancing method, wherein the method comprises: a service client acquires the user's current service corresponding to the request submitted by the service identifier; the service client acquires the service in the distributed server cluster physical address corresponding to the identifier of at least one service server; the service client according to a predetermined load balancing algorithm to determine the target physical address in the acquired physical address in the at least one service server; the client and the service establishing a communication connection between the target physical address corresponding to the service server.
2.如权利要求1所述的方法,其特征在于,所述业务客户端在分布式集群服务器中获取与所述业务标识对应的至少一个业务服务器的物理地址包括: 所述业务客户端向分布式服务端发送所述业务标识; 所述业务客户端接收所述分布式服务端发送的所述分布式集群服务器中与所述业务标识对应的至少一个业务服务器的物理地址。 2. The method according to claim 1, characterized in that, the service client acquires at least one physical address of the service server corresponding to the service identifier included in the distributed cluster server: the client to the distribution service server sends the service type identifier; the client receives the distributed traffic sent by the server in the distributed server to the service cluster identifier corresponding to at least a physical address of a service server.
3.如权利要求2所述的方法,其特征在于,所述方法还包括: 所述业务客户端将所述业务标识和所述至少一个业务服务器的物理地址的对应关系存储到预设存储器中。 3. The method according to claim 2, wherein said method further comprises: the service customer terminal preset memory storing the corresponding relationship between the physical address of the service identifier and the at least one service server to .
4.如权利要求1所述的方法,其特征在于,所述业务客户端在分布式集群服务器中获取与所述业务标识对应的至少一个业务服务器的物理地址包括: 所述业务客户端在所述预设存储器中获取所述分布式集群服务器中与所述业务标识对应的至少一个业务服务器的物理地址。 4. The method according to claim 1, characterized in that, the service client acquires at least one physical address of the service server corresponding to the service identifier included in the distributed cluster server: the client in the service obtaining said preset memory physical address of the at least one service server in the distributed server cluster corresponding to the service identifier.
5.如权利要求4所述的方法,其特征在于,所述方法还包括: 所述业务客户端接收所述分布式服务端发送的通知信息; 所述业务客户端根据所述接收到的通知信息,更新所述预设存储器中的业务标识对应的业务服务器的物理地址。 The notification service according to the received client; and the service client receives the distributed server transmits notification information: 5. A method as claimed in claim 4, wherein said method further comprises information, updating the preset memory physical address corresponding to the service identifier of the service server.
6.一种业务服务器负载均衡方法,其特征在于,所述方法包括: 分布式服务端接收业务客户端发送的业务标识; 所述分布式服务端根据所述业务标识,向所述业务客户端发送分布式集群服务器中与所述业务标识对应的至少一个业务服务器的物理地址,以使所述业务客户端根据预设负载均衡算法,在所述至少一个业务服务器的物理地址中确定目标物理地址,所述业务客户端和所述目标物理地址对应的业务服务器之间建立通信连接。 A service server load balancing method, wherein the method comprises: a distributed service server receives the service identifier sent by the client; the distributed server according to the service identifier, the service to the client distributed cluster server transmits the service identifier corresponding to the physical address of the at least one service server, so that the service client, the at least one physical address of the service server determines the physical address of a target according to a predetermined load balancing algorithm establishing service between the client and the target physical address corresponding to the communication service server connection.
7.如权利要求6所述的方法,其特征在于,所述分布式服务端接收业务客户端发送的业务标识之前,所述方法还包括: 所述分布式服务端接收所述分布式集群服务器中的业务服务器发送的注册指令,所述注册指令携带所述业务服务器的物理地址; 所述分布式服务端存储业务标识对应的所述业务服务器的物理地址。 Before 7. The method according to claim 6, wherein the distributed service server receives the service identifier sent by the client, the method further comprising: receiving said distributed service said distributed server cluster the service registration instruction sent by the server, the registration instruction carries the physical address of the service server; physical address of the service server stores the distributed server corresponding to the service identifier.
8.如权利要求7所述的方法,其特征在于,所述方法还包括: 所述分布式服务端更新所述业务服务器的地址数据; 若所述更新的所述业务服务器的地址数据包括所述业务服务器的物理地址,则所述分布式服务端将通知信息发送给所述业务客户端,以使所述业务客户端根据所述接收到的通知信息,更新预设存储器中的业务标识对应的所述业务服务器的物理地址。 8. The method according to claim 7, wherein said method further comprises: updating a server of the distributed service server address data; if the data of the updated address of the service server comprises said physical address of the service server, said distributed server transmits the notification information to the service client, so that the service client according to the received notification information, update the preset memory corresponding to the service identifier a physical address of the service server.
9.如权利要求8所述的方法,其特征在于,所述分布式服务端更新所述业务服务器的地址数据包括: 所述分布式服务端监控所述业务服务器的业务信息及其业务寻址信息; 若所述分布式服务端监控到所述业务服务器的业务信息及其业务寻址信息被修改或者删除,则更新所述业务服务器的地址数据。 9. The method according to claim 8, wherein the distributed server to update the address of the data service server comprising: monitoring the distributed server of the service server and the service addressing service information information; if the distributed server to the monitoring service and the service information of the service server addressing information is modified or deleted, updating the address data service server.
10.如权利要求8所述的方法,其特征在于,所述业务服务器包括所述目标物理地址对应的业务服务器; 所述分布式服务端更新所述业务服务器的地址数据包括: 若所述目标物理地址对应的业务服务器与所述业务客户端之间连接超时,则所述分布式服务端接收所述目标物理地址对应的业务服务器发送的针对所述业务标识的连接超时信息; 所述分布式服务端根据所述接收到的连接超时信息,删除针对所述业务标识的所述目标物理地址。 10. The method according to claim 8, wherein said service server comprises the target physical address corresponding to the service server; the update server of the distributed service server address data comprises: if the target connection time-out between the physical address corresponding to the service server and the service client, the distributed service then receives the information for the connection timeout target service identifier corresponding to the physical address transmitted from the service server; the distributed the server is connected to the timeout information received, deleting the target physical address for the identified service.
11.一种业务客户端,其特征在于,所述业务客户端包括: 业务标识获取单元,用于获取用户当前提交的业务请求对应的业务标识; 物理地址获取单元,用于在分布式集群服务器中获取与所述业务标识获取单元获取到的业务标识对应的至少一个业务服务器的物理地址; 物理地址确定单元,用于根据预设负载均衡算法,在所述物理地址获取单元获取到的至少一个业务服务器的物理地址中确定目标物理地址; 通信连接建立单元,用于和所述物理地址确定单元确定的目标物理地址对应的业务服务器之间建立通信连接。 A service client, wherein the service client comprises: a service identifier acquisition unit for acquiring the current user service request submitted corresponding service identifier; physical address obtaining unit, in a distributed server cluster acquiring the service identifier and the at least one service server acquires the service identifier corresponding to the unit acquired physical address; physical address determination unit, according to a preset load balancing algorithm, the acquiring unit acquires the physical address of the at least one determining a physical address of the target physical address of the service server; communication connection establishment unit, and for determining the physical address to establish a communication connection between the target unit determines the physical address corresponding to the service server.
12.如权利要求11所述的业务客户端,其特征在于,所述物理地址获取单元包括: 业务标识发送模块,用于向分布式服务端发送所述业务标识; 物理地址获取模块,用于接收所述分布式服务端发送的所述分布式集群服务器中与所述业务标识对应的至少一个业务服务器的物理地址。 12. The service client according to claim 11, wherein the physical address obtaining unit includes: a service identifier and a sending module, configured to send the service identifier to a distributed server; physical address obtaining module, configured to receiving at least one of the physical address of the service server distributed distributed cluster server sent by the server with the service corresponding to the identifier.
13.如权利要求12所述的业务客户端,其特征在于,所述业务客户端还包括: 存储单元,用于将所述业务标识获取单元获取到的业务标识和所述物理地址获取单元获取到的至少一个业务服务器的物理地址的对应关系存储到预设存储器中。 13. The service client according to claim 12, wherein said service client further comprising: a storage unit for acquiring the service identifier to a service identifier acquisition unit and acquires the physical address obtaining unit at least one corresponding relation to the physical address of the service server is stored in the preset memory.
14.如权利要求11所述的业务客户端,其特征在于, 所述物理地址获取单元,用于在所述预设存储器中获取所述分布式集群服务器中与所述业务标识对应的至少一个业务服务器的物理地址。 14. The service client according to claim 11, wherein the physical address obtaining unit, configured to obtain the preset memory in the distributed server cluster with the corresponding at least one service identifier physical address of the service server.
15.如权利要求14所述的业务客户端,其特征在于,所述业务客户端还包括: 通知信息接收单元,用于接收所述分布式服务端发送的通知信息; 更新单元,用于根据所述通知信息接收单元接收到的通知信息,更新所述预设存储器中的业务标识对应的业务服务器的物理地址。 Updating unit configured to; notification information receiving unit for receiving notification information transmitted from the distributed server: 15. The service client according to claim 14, wherein said service client further includes the notification information received by the notification information receiving unit, updates the preset memory physical address service identifier corresponding to the service server.
16.一种分布式服务端,其特征在于,所述分布式服务端包括: 业务标识接收单元,用于接收业务客户端发送的业务标识; 物理地址发送单元,用于根据所述业务标识,向所述业务客户端发送分布式集群服务器中与所述业务标识对应的至少一个业务服务器的物理地址,以使所述业务客户端根据预设负载均衡算法,在所述至少一个业务服务器的物理地址中确定目标物理地址,所述业务客户端和所述目标物理地址对应的业务服务器之间建立通信连接。 16. A distributed service side, characterized in that said distributed server comprising: a service identifier receiving unit for receiving a service identifier of the service sent by the client; physical address transmitting means according to said service identifier, transmitting a physical address of the at least one service distributed server cluster servers to the service identifier corresponding to the service client to allow the client according to a preset traffic load balancing algorithm, the at least one physical server in the service determining a target physical address of the address, establishing a communication connection between the client and the service target physical address corresponding to the service server.
17.如权利要求16所述的分布式服务端,其特征在于,所述分布式服务端还包括: 注册指令接收单元,用于接收所述分布式集群服务器中的业务服务器发送的注册指令,所述注册指令携带所述业务服务器的物理地址; 存储单元,用于存储业务标识对应的所述业务服务器的物理地址,触发所述业务标识接收单元接收所述业务客户端发送的业务标识。 17. The distributed server according to claim 16, characterized in that said distributed server further comprising: a registration instruction reception unit, for receiving the registration instruction distributed cluster service server sent by the server, the physical address of the service server registration instruction carries; a storage unit, a physical storage address of the service server corresponding to the service identifier, the service identifier trigger receiving unit receives the service identifier sent by the client service.
18.如权利要求17所述的分布式服务端,其特征在于,所述分布式服务端还包括: 更新单元,用于更新所述业务服务器的地址数据; 通知信息发送单元,用于若所述更新单元更新的所述业务服务器的地址数据包括所述业务服务器的物理地址,则所述分布式服务端将通知信息发送给所述业务客户端,以使所述业务客户端根据所述接收到的通知信息,更新预设存储器中的业务标识对应的所述业务服务器的物理地址。 18. The distributed server according to claim 17, characterized in that said distributed server further comprising: updating means for updating said address data service server; notification information transmitter unit configured to, if the said update unit updates the address data of the service server comprises a physical address of the service server, said distributed server transmits the notification information to the service client to allow the client according to the received service the notification information, updating the service identifier corresponding to a predetermined physical address in the memory of the service server.
19.如权利要求18所述的分布式服务端,其特征在于,所述更新单元包括: 监控模块,用于监控所述业务服务器的业务信息及其业务寻址信息; 更新模块,用于若所述监控模块监控到所述业务服务器的业务信息及其业务寻址信息被修改或者删除,则更新所述业务服务器的地址数据。 Updating module, if used; monitoring module configured to monitor the service information and the service of the service server address information: the distributed server as claimed in claim 18, wherein the update unit comprises the monitoring module to the monitoring service server and service information service addressing information is modified or deleted, the address data is updated in the service server.
20.如权利要求18所述的分布式服务端,其特征在于,所述业务服务器包括所述目标物理地址对应的业务服务器; 所述更新单元包括: 超时信息接收模块,用于若所述目标物理地址对应的业务服务器与所述业务客户端之间连接超时,则接收所述目标物理地址对应的业务服务器发送的针对所述业务标识的连接超时信息; 物理地址删除模块,用于根据所述超时信息接收模块接收到的连接超时信息,删除针对所述业务标识的所述目标物理地址。 20. The distributed server according to claim 18, wherein said service server comprises the target physical address corresponding to the service server; the update unit comprises: timeout information receiving module, configured to, if the target timeout connection between the physical address corresponding to the service server service client, the target receives the corresponding physical address for the service server transmits service identification information timeout; physical address removing module, according to the timeout information receiving module receives the connection timeout information, delete a target physical address for the identified service.
21.—种业务服务器负载均衡系统,其特征在于,所述系统包括如权利要求11~15中任一项所述的业务客户端和业务服务器,其中: 所述业务客户端,用于获取用户当前提交的业务请求对应的业务标识;在分布式集群服务器中获取与所述业务标识对应的至少一个业务服务器的物理地址;根据预设负载均衡算法,在所述获取到的至少一个业务服务器的物理地址中确定目标物理地址;和所述目标物理地址对应的业务服务器之间建立通信连接; 所述业务服务器,用于和所述业务客户端之间建立通信连接。 21.- kinds of service server load balancing system, wherein the system comprises a service such as a service client and server according to any one of claims 11 to 15, wherein: the service client, configured to obtain user the current service request submitted corresponding service identifier; acquiring at least one physical address of the service server corresponding to the service identifier in a distributed server cluster; according to a preset load balancing algorithm, the acquired at least one service server determining a physical address of the physical address of the target; establishing a communication connection between the target and the physical address corresponding to the service server; establishing a communication connection between the service server and the service for the client.
CN201410251491.7A 2014-06-09 2014-06-09 Business server side load balancing method, client side, server side and system CN104079630A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410251491.7A CN104079630A (en) 2014-06-09 2014-06-09 Business server side load balancing method, client side, server side and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410251491.7A CN104079630A (en) 2014-06-09 2014-06-09 Business server side load balancing method, client side, server side and system

Publications (1)

Publication Number Publication Date
CN104079630A true CN104079630A (en) 2014-10-01

Family

ID=51600670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410251491.7A CN104079630A (en) 2014-06-09 2014-06-09 Business server side load balancing method, client side, server side and system

Country Status (1)

Country Link
CN (1) CN104079630A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618466A (en) * 2015-01-20 2015-05-13 上海交通大学 System for balancing load and controlling overload based on message transfer and control method of system
CN105141452A (en) * 2015-08-07 2015-12-09 北京思特奇信息技术股份有限公司 High-performance service system and method based on CXF
CN105610907A (en) * 2015-12-18 2016-05-25 华夏银行股份有限公司 Server access method and device
CN105607951A (en) * 2015-12-17 2016-05-25 北京奇虎科技有限公司 Method and device for processing data request and obtaining server information
CN106302648A (en) * 2016-07-29 2017-01-04 北京小米移动软件有限公司 Method for processing business and device
CN106375355A (en) * 2015-07-20 2017-02-01 中兴通讯股份有限公司 Load balancing processing method and apparatus
CN106445536A (en) * 2016-09-28 2017-02-22 湛江市霞山区新软佳科技有限公司 Automated business design management system
CN106550003A (en) * 2015-09-23 2017-03-29 腾讯科技(深圳)有限公司 The control method of load balancing, apparatus and system
CN106549878A (en) * 2016-10-26 2017-03-29 中国银联股份有限公司 A kind of service shunting method and device
CN106657367A (en) * 2016-12-30 2017-05-10 北京三快在线科技有限公司 Service data acquisition method, device and system
CN106899680A (en) * 2017-03-09 2017-06-27 上海亿账通区块链科技有限公司 The burst treating method and apparatus of multi-tiling chain
CN107172214A (en) * 2017-07-18 2017-09-15 广州华多网络科技有限公司 A kind of service node with load balancing finds method and device
CN107368259A (en) * 2017-05-25 2017-11-21 阿里巴巴集团控股有限公司 A kind of method and apparatus that business datum is write in the catenary system to block
CN107807815A (en) * 2017-10-19 2018-03-16 北京京东尚科信息技术有限公司 The method and apparatus of distributed treatment task
WO2019034091A1 (en) * 2017-08-15 2019-02-21 中兴通讯股份有限公司 Distribution method for distributed data computing, device, server and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316138A (en) * 2010-07-02 2012-01-11 深圳市财付通科技有限公司 Client end and load balance method
US20120231824A1 (en) * 2011-03-10 2012-09-13 Miroslav Budic Load balancing in a cellular telecommunication network
CN102761618A (en) * 2012-07-03 2012-10-31 杭州华三通信技术有限公司 Method, equipment and system for realizing load balancing
CN103457870A (en) * 2013-09-25 2013-12-18 武汉理工大学 Load-balancing and high-availability sub system used for distribution-type system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316138A (en) * 2010-07-02 2012-01-11 深圳市财付通科技有限公司 Client end and load balance method
US20120231824A1 (en) * 2011-03-10 2012-09-13 Miroslav Budic Load balancing in a cellular telecommunication network
CN102761618A (en) * 2012-07-03 2012-10-31 杭州华三通信技术有限公司 Method, equipment and system for realizing load balancing
CN103457870A (en) * 2013-09-25 2013-12-18 武汉理工大学 Load-balancing and high-availability sub system used for distribution-type system and method

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618466A (en) * 2015-01-20 2015-05-13 上海交通大学 System for balancing load and controlling overload based on message transfer and control method of system
CN106375355A (en) * 2015-07-20 2017-02-01 中兴通讯股份有限公司 Load balancing processing method and apparatus
CN105141452A (en) * 2015-08-07 2015-12-09 北京思特奇信息技术股份有限公司 High-performance service system and method based on CXF
CN106550003A (en) * 2015-09-23 2017-03-29 腾讯科技(深圳)有限公司 The control method of load balancing, apparatus and system
CN105607951A (en) * 2015-12-17 2016-05-25 北京奇虎科技有限公司 Method and device for processing data request and obtaining server information
CN105610907A (en) * 2015-12-18 2016-05-25 华夏银行股份有限公司 Server access method and device
CN106302648B (en) * 2016-07-29 2019-05-07 北京小米移动软件有限公司 Method for processing business and device
CN106302648A (en) * 2016-07-29 2017-01-04 北京小米移动软件有限公司 Method for processing business and device
CN106445536A (en) * 2016-09-28 2017-02-22 湛江市霞山区新软佳科技有限公司 Automated business design management system
CN106549878A (en) * 2016-10-26 2017-03-29 中国银联股份有限公司 A kind of service shunting method and device
CN106657367A (en) * 2016-12-30 2017-05-10 北京三快在线科技有限公司 Service data acquisition method, device and system
CN106899680A (en) * 2017-03-09 2017-06-27 上海亿账通区块链科技有限公司 The burst treating method and apparatus of multi-tiling chain
CN106899680B (en) * 2017-03-09 2019-07-30 深圳壹账通智能科技有限公司 The fragment treating method and apparatus of multi-tiling chain
CN107368259A (en) * 2017-05-25 2017-11-21 阿里巴巴集团控股有限公司 A kind of method and apparatus that business datum is write in the catenary system to block
CN107172214A (en) * 2017-07-18 2017-09-15 广州华多网络科技有限公司 A kind of service node with load balancing finds method and device
WO2019034091A1 (en) * 2017-08-15 2019-02-21 中兴通讯股份有限公司 Distribution method for distributed data computing, device, server and storage medium
CN107807815A (en) * 2017-10-19 2018-03-16 北京京东尚科信息技术有限公司 The method and apparatus of distributed treatment task

Similar Documents

Publication Publication Date Title
CN104468688B (en) Method and apparatus for network virtualization
US8099615B2 (en) Method and system for power management in a virtual machine environment without disrupting network connectivity
US9692708B2 (en) System and method for routing service requests
US8276139B2 (en) Provisioning virtual machine placement
US8307362B1 (en) Resource allocation in a virtualized environment
US8954992B2 (en) Distributed and scaled-out network switch and packet processing
US9311162B2 (en) Flexible cloud management
CN101207550B (en) Load balancing system and method for multi business to implement load balancing
US8909698B2 (en) Grid-enabled, service-oriented architecture for enabling high-speed computing applications
US20070088703A1 (en) Peer-to-peer auction based data distribution
US7200657B2 (en) Autonomic provisioning of network-accessible service behaviors within a federated grid infrastructure
JP3980596B2 (en) Method and system for remotely and dynamically configuring a server
JP2018518744A (en) Automatic scaling of resource instance groups within a compute cluster
US6597956B1 (en) Method and apparatus for controlling an extensible computing system
US10187491B2 (en) Request-response processing an a content delivery network
US8190740B2 (en) Systems and methods for dynamically provisioning cloud computing resources
CA2697540C (en) Executing programs based on user-specified constraints
EP2656215B1 (en) Scheduling and management in a personal datacenter
US9705800B2 (en) Load distribution in data networks
Yi et al. A comprehensive survey of network function virtualization
US7146233B2 (en) Request queue management
US8756329B2 (en) System and method for parallel multiplexing between servers in a cluster
US20100287280A1 (en) System and method for cloud computing based on multiple providers
US8095670B2 (en) Protocol for enabling dynamic and scalable federation of enterprise service buses
US20110055398A1 (en) Methods and systems for flexible cloud management including external clouds

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
WD01