WO2017096838A1 - 负载均衡配置方法、设备及系统 - Google Patents

负载均衡配置方法、设备及系统 Download PDF

Info

Publication number
WO2017096838A1
WO2017096838A1 PCT/CN2016/088866 CN2016088866W WO2017096838A1 WO 2017096838 A1 WO2017096838 A1 WO 2017096838A1 CN 2016088866 W CN2016088866 W CN 2016088866W WO 2017096838 A1 WO2017096838 A1 WO 2017096838A1
Authority
WO
WIPO (PCT)
Prior art keywords
load balancing
balancing configuration
configuration file
server
load
Prior art date
Application number
PCT/CN2016/088866
Other languages
English (en)
French (fr)
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 US15/246,523 priority Critical patent/US20170171301A1/en
Publication of WO2017096838A1 publication Critical patent/WO2017096838A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • H04L41/0836Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability to enhance reliability, e.g. reduce downtime
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • 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/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/53Network services using third party service providers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/564Enhancement of application control based on intercepted application data

Definitions

  • the embodiments of the present invention relate to the field of information technologies, and in particular, to a load balancing configuration method, device, and system.
  • the embodiments of the present invention provide a load balancing configuration method, device, and system, which are used to solve the problem of low efficiency and low accuracy of the load balancing configuration in the prior art.
  • the embodiment of the invention provides a load balancing configuration method, including:
  • the receiving load balancing configuration information input through the operation interface includes:
  • the load balancing configuration information includes the identifier information of the load balancing server to be configured and the weight value of the load balancing, and the detecting whether the load balancing configuration information meets a preset condition;
  • the method further includes:
  • the equalization server loads the updated load balancing configuration file.
  • An embodiment of the present invention provides another load balancing configuration method, including:
  • the load balancing configuration file is a configuration file generated by the client according to the obtained load balancing configuration information input through the operation interface
  • the method further includes:
  • notification information is used to notify the proxy server that the load balancing configuration file sent by the client exists to be updated
  • the indicating that the load balancing server to be configured loads the load balancing configuration file includes:
  • An embodiment of the present invention provides a client, including:
  • a detecting unit configured to detect whether the load balancing configuration information meets a preset condition
  • a generating unit configured to generate a load balancing configuration file according to the load balancing configuration information, if the load balancing configuration information is configured to meet a preset condition
  • a sending unit configured to send the load balancing configuration file to the proxy server, so that the proxy server indicates that the load balancing server to be configured loads the load balancing configuration file.
  • the receiving unit is specifically configured to receive load balancing configuration information directly input through an operation interface;
  • the load balancing configuration information includes the identifier information of the load balancing server to be configured and the weight value of the load balancing.
  • the detecting unit is specifically configured to detect whether the identifier information meets preset identifier information and whether the weight value meets a preset weight threshold.
  • the sending unit is further configured to send the load balancing configuration file to the storage server, so that when the storage server detects that the load balancing configuration file is updated, the proxy server is notified to obtain the updated load balancing configuration. And indicating to the load balancing server to be configured to load the updated load balancing configuration file.
  • An embodiment of the present invention provides another client, including:
  • One or more processors are One or more processors.
  • the memory stores instructions that are configured to be executed by the one or more processors, and the one or more processors can perform the following operations by executing the instructions:
  • the embodiment of the invention provides a proxy server, including:
  • a receiving unit configured to receive a load balancing configuration file sent by the client, where the load balancing configuration file is a configuration file generated by the client according to the acquired load balancing configuration information input through the operation interface;
  • a sending unit configured to send the load balancing configuration file to the load balancing server to be configured
  • an indicating unit configured to instruct the load balancing server to be configured to load a load balancing configuration file.
  • the proxy server further includes: an obtaining unit,
  • the receiving unit is further configured to receive the notification information sent by the storage server, where the notification information is used to notify the proxy server that the load balancing configuration file sent by the client exists to be updated;
  • the obtaining unit is configured to obtain the updated load balancing configuration file.
  • the indication unit is configured to instruct the load balancing server to be configured to load the updated load balancing configuration file.
  • An embodiment of the present invention provides another proxy server, including:
  • One or more processors are One or more processors.
  • the memory stores instructions that are configured to be executed by the one or more processors, and the one or more processors can perform the following operations by executing the instructions:
  • the load balancing configuration file is a configuration file generated by the client according to the obtained load balancing configuration information input through the operation interface
  • the embodiment of the invention provides a load balancing configuration system, including:
  • a client configured to receive load balancing configuration information input through the operation interface; to detect whether the load balancing configuration information meets a preset condition; if yes, generate a load balancing configuration file according to the load balancing configuration information;
  • the balance profile is sent to the proxy server;
  • a proxy server configured to send the load balancing configuration file to the load balancing server to be configured, and instruct the load balancing server to be configured to load a load balancing configuration file.
  • the load balancing configuration method, device, and system provided by the embodiment of the present invention generate a load balancing configuration file according to the load balancing configuration information input by the operation interface, and send the load balancing configuration file to the proxy server, so that the proxy server indicates
  • the load balancing server is configured to load the load balancing configuration file.
  • the load balancing configuration is configured in the prior art, the professional needs to write a load balancing configuration file based on the load balancing configuration information to implement load balancing automatic configuration and improve load balancing.
  • the configuration is less efficient and accurate.
  • FIG. 1 is a flowchart of a load balancing configuration method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another load balancing configuration method according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of still another method for load balancing configuration according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of still another method for load balancing configuration according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a client according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of another client according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of another server according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of a load balancing configuration system according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic diagram of a physical structure of a server according to an embodiment of the present invention.
  • the embodiment of the invention provides a load balancing configuration method. As shown in FIG. 1 , the method includes:
  • the load balancing configuration information may include the identifier information of the load balancing server to be configured and the weight value of the load balancing.
  • the identifier of the load balancing server to be configured may be a combination of an Internet Protocol (IP) address and a port number of the load balancing server to be configured, or a name of the load balancing server to be configured, which is not implemented in the embodiment of the present invention. limited.
  • IP Internet Protocol
  • the identifier of the load balancing server to be configured may be 192.168.5.126:80, and the load balancing weight value. Can be 3.
  • the load balancing configuration information input through the operation interface may be load balancing configuration information directly input by the user through the operation interface, or may be load balancing configuration information sent by a third party through the operation interface.
  • the preset condition may be set according to the requirements of the user, or may be set according to the default mode of the system, which is not limited in the embodiment of the present invention.
  • the preset condition may be preset identifier information.
  • the IP address of the server in the cluster providing the network service is 192.168.5.1:80-192.168.5.126:65535
  • the preset identification information is any one of 192.168.5.1:80-192.168.5.126:65535. If the IP address of the load balancing server to be configured through the operation interface is 192.168.5.1:70, the identification information of the load balancing server to be configured does not meet the preset identification information.
  • the preset condition may be a preset weight threshold.
  • the preset weight threshold is [1-10], and when the weight value input through the operation interface is 8, it is confirmed that the weight value of the load balancing conforms to the preset weight threshold.
  • load balancing configuration information meets the preset condition, generate a load balancing configuration file according to the load balancing configuration information.
  • the load balancing configuration file is generated according to the load balancing configuration information input by the operation interface, thereby avoiding writing the load balancing configuration file manually, thereby reducing the grammar and related knowledge of the professional learning and mastering the writing load balancing configuration file.
  • the cost of knowledge increases the efficiency of the load balancing configuration.
  • the proxy server may send the load balancing server to the load balancing server to be configured, and then invoke the preset command to indicate that the load balancing server to be configured loads the load balancing configuration file, and the preset command may be Configure the load balancing server to restart and restart the load balancing configuration file.
  • the load balancing configuration file can be loaded.
  • the proxy server is configured to load the load balancing configuration file by the load balancing server to be configured, thereby improving the speed of the load balancing configuration, thereby improving the efficiency of the load balancing configuration.
  • the load balancing configuration method is provided by the embodiment of the present invention, and the load balancing configuration file is generated according to the load balancing configuration information input by the operation interface, and the load balancing configuration file is sent to the proxy server, so that the proxy server indicates that the proxy server is to be configured.
  • the load balancing server loads the load balancing configuration file.
  • An embodiment of the present invention provides another load balancing configuration method. As shown in FIG. 2, the method includes:
  • the step 201 may be: receiving load balancing configuration information input directly through the operation interface; or receiving load balancing configuration information sent by the third party through the operation interface.
  • the load balancing configuration information includes the identifier information of the load balancing server to be configured and the weight value of the load balancing.
  • the step 202 may be specifically: detecting whether the identifier information meets preset identifier information and whether the weight value meets a preset weight threshold.
  • load balancing configuration information meets the preset condition, generate a load balancing configuration file according to the load balancing configuration information.
  • the proxy server is notified to obtain the updated load balancing configuration file and instructs the load balancing server to be configured to load the updated load. Balance the configuration file.
  • the storage server detects that the load balancing configuration file exists.
  • the notification information may be sent to the proxy server.
  • the proxy server obtains the updated load balancing configuration file and indicates that the load balancing server to be configured loads the updated load balancing configuration. file.
  • the updated load balancing configuration file may be synchronized to the server in the same group of the load balancing server to be configured, thereby further improving the efficiency of the load balancing configuration.
  • the proxy server and the load balancing server to be configured can be installed on the same server.
  • the proxy server can directly save the updated load balancing configuration file to the local load balancing configuration file directory. Then instruct the load balancing server to be configured to reload the load balancing profile.
  • the proxy server when the load balancing configuration file is sent to the storage server, when the storage server detects that the load balancing configuration file is updated, the proxy server indicates that the load balancing server to be configured reloads the load balancing configuration file. It can avoid load balancing and reconfiguration, which can save system resources consumed by configuring load balancing.
  • Another load balancing configuration method provided by the embodiment of the present invention generates a load balancing configuration file according to the load balancing configuration information input by the operation interface, and sends the load balancing configuration file to the proxy server, so that the proxy server indicates Configure the load balancing server to load the load balancing configuration file.
  • the load balancing configuration is configured in the prior art, the professional needs to write the load balancing configuration file based on the load balancing configuration information to implement automatic load balancing configuration and improve load balancing configuration. The efficiency is lower and the accuracy.
  • the embodiment of the present invention provides a load balancing configuration method, which can be applied to a proxy server. As shown in FIG. 3, the method includes:
  • the load balancing configuration file is a configuration file generated by the client according to the acquired load balancing configuration information input through the operation interface.
  • the load balancing configuration information input through the operation interface may be load balancing configuration information directly input by the user through the operation interface, or may be load balancing configuration information sent by a third party through the operation interface.
  • Another load balancing configuration method provided by an embodiment of the present invention is input according to an operation interface.
  • the load balancing configuration information generates a load balancing configuration file, and sends the load balancing configuration file to the proxy server, so that the proxy server indicates that the load balancing server to be configured loads the load balancing configuration file, and changes the load in the prior art.
  • a professional needs to write a load balancing configuration file based on the load balancing configuration information to implement automatic load balancing configuration, which improves the efficiency and accuracy of the load balancing configuration.
  • the embodiment of the present invention provides a load balancing configuration method, which can be applied to a proxy server. As shown in FIG. 4, the method includes:
  • the load balancing configuration file is a configuration file generated by the client according to the acquired load balancing configuration information input through the operation interface.
  • the notification information is used to notify the proxy server that there is an update of the load balancing configuration file sent by the client.
  • a load balancing configuration method is provided by the embodiment of the present invention.
  • the load balancing configuration file is generated according to the load balancing configuration information input by the operation interface, and the load balancing configuration file is sent to the proxy server, so that the proxy server indicates Configure the load balancing server to load the load balancing configuration file.
  • the load balancing configuration is configured in the prior art, the professional needs to write the load balancing configuration file based on the load balancing configuration information to implement automatic load balancing configuration and improve load balancing configuration. The efficiency is lower and the accuracy.
  • the embodiment of the present invention provides a client.
  • the method includes: a receiving unit 51, a detecting unit 52, a generating unit 53, and a sending unit 54. .
  • the receiving unit 51 is configured to receive load balancing configuration information input through the operation interface.
  • the load balancing configuration information may include the identifier information of the load balancing server to be configured and the weight value of the load balancing.
  • the receiving unit 51 is a main functional module of the client that receives the load balancing configuration information input through the operation interface.
  • the detecting unit 52 is configured to detect whether the load balancing configuration information meets a preset condition.
  • the detecting unit 52 is a main functional module in the client that detects whether the load balancing configuration information meets a preset condition.
  • the generating unit 53 is configured to generate a load balancing configuration file according to the load balancing configuration information, if the load balancing configuration information meets a preset condition.
  • the generating unit 53 is a main functional module for generating a load balancing profile in the client.
  • the sending unit 54 is configured to send the load balancing configuration file to the proxy server.
  • the sending unit 54 is a main functional module for transmitting a load balancing profile in the client.
  • a related function module can be implemented by a hardware processor.
  • the client provided by the embodiment of the present invention generates a load balancing configuration file according to the load balancing configuration information input by the operation interface, and sends the load balancing configuration file to the proxy server, so that the proxy server indicates that the load balancing is to be configured.
  • the server loads the load balancing configuration file and changes the load balancing configuration file in the prior art.
  • the professional needs to write the load balancing configuration file based on the load balancing configuration information to implement load balancing automatic configuration and improve the efficiency of the load balancing configuration. Low and accurate.
  • an embodiment of the present invention provides another client.
  • the method includes: a receiving unit 61, a detecting unit 62, a generating unit 63, and a sending unit. 64.
  • the receiving unit 61 is configured to receive load balancing configuration information input through the operation interface.
  • the detecting unit 62 is configured to detect whether the load balancing configuration information meets a preset condition.
  • the generating unit 63 is configured to generate a load balancing configuration file according to the load balancing configuration information, if the balanced configuration information meets a preset condition.
  • the sending unit 64 is configured to send the load balancing configuration file to the proxy server.
  • the receiving unit 61 is specifically configured to receive a load balancing configuration directly input through an operation interface. Information; or
  • the load balancing configuration information includes identifier information of the load balancing server to be configured and a weight value of the load balancing.
  • the detecting unit 62 is specifically configured to detect whether the identifier information meets preset identifier information and whether the weight value meets a preset weight threshold.
  • the sending unit 64 is further configured to send the load balancing configuration file to the storage server, to notify the proxy server to obtain the updated load balancing when the storage server detects that the load balancing configuration file has an update.
  • the configuration file indicates that the load balancing server to be configured loads the updated load balancing configuration file.
  • a related function module can be implemented by a hardware processor.
  • Another client provided by the embodiment of the present invention generates a load balancing configuration file according to the load balancing configuration information input by the operation interface, and sends the load balancing configuration file to the proxy server, so that the proxy server indicates the load to be configured.
  • the load balancing configuration file is loaded by the equalization server.
  • an embodiment of the present invention provides a proxy server. As shown in FIG. 7, the method includes: a receiving unit 71, a sending unit 72, and an indicating unit 73.
  • the receiving unit 71 is configured to receive a load balancing configuration file sent by the client, where the load balancing configuration file is a configuration file generated by the client according to the acquired load balancing configuration information input through the operation interface.
  • the receiving unit 71 is a main functional module of the proxy server that receives the load balancing profile.
  • the sending unit 72 is configured to send the load balancing configuration file to the load balancing server to be configured.
  • the sending unit 72 is a main functional module for transmitting a load balancing profile in the proxy server.
  • the indicating unit 73 is configured to indicate that the load balancing server to be configured loads the load balancing configuration file.
  • the sending unit 73 is a main functional module in the proxy server that indicates that the load balancing server to be configured loads the load balancing configuration file.
  • a related function module can be implemented by a hardware processor.
  • the server provided by the embodiment of the present invention generates a load balancing configuration file according to the load balancing configuration information input by the operation interface, and sends the load balancing configuration file to the proxy server, so that the proxy server indicates the load balancing server to be configured.
  • the load balancing configuration file is loaded.
  • the professional needs to write a load balancing configuration file based on the load balancing configuration information to implement automatic load balancing configuration, and the efficiency of the load balancing configuration is low. And accuracy.
  • an embodiment of the present invention provides another proxy server. As shown in FIG. 8, the method includes: a receiving unit 81, a sending unit 82, and an indicating unit 83.
  • the receiving unit 81 is configured to receive a load balancing configuration file sent by the client, where the load balancing configuration file is a configuration file generated by the client according to the acquired load balancing configuration information input through the operation interface.
  • the sending unit 82 is configured to send the load balancing configuration file to the load balancing server to be configured.
  • the indicating unit 83 is configured to instruct the load balancing server to be configured to load a load balancing configuration file.
  • the proxy server further includes an obtaining unit 84.
  • the receiving unit 81 is further configured to receive the notification information sent by the storage server, where the notification information is used to notify the proxy server that the load balancing configuration file sent by the client is updated.
  • the obtaining unit 84 is configured to obtain the updated load balancing configuration file.
  • the sending unit 84 is a main functional module of the proxy server that obtains the updated load balancing profile.
  • the indicating unit 83 is configured to instruct the load balancing server to be configured to load the updated load balancing configuration file.
  • a related function module can be implemented by a hardware processor.
  • the server provided by the embodiment of the present invention generates a load balancing configuration file according to the load balancing configuration information input by the operation interface, and sends the load balancing configuration file to the proxy server, so that the proxy server indicates that the load balancing is to be configured.
  • the server loads the load balancing configuration file and changes the load balancing configuration file in the prior art.
  • the professional needs to write the load balancing configuration file based on the load balancing configuration information to implement load balancing automatic configuration and improve the efficiency of the load balancing configuration. Low and accurate.
  • the embodiment of the invention provides a load balancing configuration system, as shown in FIG. 9, a client 91 and a proxy server 92.
  • the client 91 is configured to receive load balancing configuration information input through the operation interface, and detect whether the load balancing configuration information meets a preset condition; if yes, generate a load balancing configuration file according to the load balancing configuration information; The load balancing profile is sent to the proxy server 92.
  • the proxy server 92 is configured to send the load balancing configuration file to the load balancing server to be configured and instruct the load balancing server to be configured to load the load balancing configuration file.
  • FIG. 10 is a schematic diagram showing the physical structure of a server according to an embodiment of the present invention.
  • the server may include: a processor 1001, a communication interface 1002, and a memory. (memory) 1003 and bus 1004, wherein the processor 1001, the communication interface 1002, and the memory 1003 complete communication with each other via the bus 1004.
  • Communication interface 1002 can be used for information transfer between the server and the client.
  • the processor 1001 may invoke the logic instructions in the memory 1003 to perform the following methods: receiving load balancing configuration information input through the operation interface; detecting whether the load balancing configuration information meets a preset condition; if yes, according to the load balancing The configuration information generates a load balancing configuration file, and sends the load balancing configuration file to the proxy server, so that the proxy server indicates that the load balancing server to be configured loads the load balancing configuration file.
  • the logic instructions in the memory 1003 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a computer readable storage.
  • the storage medium may be implemented in the form of a software functional unit, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
  • the load balancing configuration system provided by the embodiment of the present invention generates a load balancing configuration file according to the load balancing configuration information input by the operation interface, and sends the load balancing configuration file to the proxy server, so that the proxy server indicates that the proxy server is to be configured.
  • the load balancing server loads the load balancing configuration file.
  • the load balancing configuration is configured in the prior art, the professional needs to write a load balancing configuration file based on the load balancing configuration information to implement load balancing automatic configuration and improve load balancing configuration. Less efficient and accurate.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.

Abstract

本发明实施例提供一种负载均衡配置方法、设备及系统,涉及信息技术领域,主要在于解决目前负载均衡配置的效率较低和准确率较低的问题。所述方法包括:接收通过操作界面输入的负载均衡配置信息;检测所述负载均衡配置信息是否符合预置条件;若符合,则根据所述负载均衡配置信息生成负载均衡配置文件;将所述负载均衡配置文件发送给代理服务器,以便于所述代理服务器指示待配置负载均衡服务器加载负载均衡配置文件。本发明适用于负载均衡的配置。

Description

负载均衡配置方法、设备及系统
本申请基于申请号为2015109212382、申请日为2015年12月11日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本发明实施例涉及信息技术领域,尤其涉及一种负载均衡配置方法、设备及系统。
背景技术
随着互联网技术的不断发展和业务量的不断提高,网络的访问量和数据流量的也不断增长,使用单一的服务器设备已无法承担网络服务。因此,负载均衡的技术随着出现,即将网络服务分摊到多个服务器上,例如Web服务器、FTP服务器、企业关键应用服务器和其它关键任务服务器。将网络服务分摊给服务器之前,需要为服务器配置负载均衡的功能。
目前,在进行负载均衡配置时,需要专业人员根据负载均衡配置信息底层编写负载均衡配置文件。然而,专业人员在根据负载均衡配置信息底层编写负载均衡配置文件之前,需要学习和掌握编写负载均衡配置文件的语法以及相关知识,造成负载均衡配置的成本高,导致负载均衡配置的效率较低。此外,当存在多个服务器时,需要重复配置负载均衡多次,造成负载均衡配置的速度慢,而且容易出错,从而导致负载均衡配置的效率较低和准确性较低。
发明内容
本发明实施例提供一种负载均衡配置方法、设备及系统,用以解决现有技术中负载均衡配置的效率较低和准确率较低的问题。
本发明实施例提供一种负载均衡配置方法,包括:
接收通过操作界面输入的负载均衡配置信息;
检测所述负载均衡配置信息是否符合预置条件;
若符合,则根据所述负载均衡配置信息生成负载均衡配置文件;
将所述负载均衡配置文件发送给代理服务器,以便于所述代理服务器指示待配置负载均衡服务器加载负载均衡配置文件。
进一步地,所述接收通过操作界面输入的负载均衡配置信息包括:
接收直接通过操作界面输入的负载均衡配置信息;或者
接收第三方发送的通过操作界面输入的负载均衡配置信息。
所述负载均衡配置信息包括待配置负载均衡服务器的标识信息和负载均衡的权重值,所述检测所述负载均衡配置信息是否符合预置条件;
检测所述标识信息是否符合预置标识信息以及所述权重值是否符合预置权重阈值。
进一步地,所述方法还包括:
将所述负载均衡配置文件发送给存储服务器,以便于所述存储服务器检测到所述负载均衡配置文件存在更新时,通知所述代理服务器获取更新后的负载均衡配置文件并指示所述待配置负载均衡服务器加载所述更新后的负载均衡配置文件。
本发明实施例提供另一种负载均衡配置方法,包括:
接收客户端发送的负载均衡配置文件,所述负载均衡配置文件为客户端根据获取的通过操作界面输入的负载均衡配置信息生成的配置文件;
将所述负载均衡配置文件发送给待配置负载均衡服务器并指示所述待配置负载均衡服务器加载负载均衡配置文件。
进一步地,所述方法还包括:
接收存储服务器发送的通知信息,所述通知信息用于通知代理服务器所述客户端发送的负载均衡配置文件存在更新;
获取更新后的所述负载均衡配置文件;
进一步地,所述指示所述待配置负载均衡服务器加载负载均衡配置文件包括:
指示所述待配置负载均衡服务器加载更新后的负载均衡配置文件。
本发明实施例提供一种客户端,包括:
检测单元,用于检测所述负载均衡配置信息是否符合预置条件;
生成单元,用于若检测负载均衡配置信息符合预置条件,则根据所述负载均衡配置信息生成负载均衡配置文件;
发送单元,用于将所述负载均衡配置文件发送给代理服务器,以便于所述代理服务器指示待配置负载均衡服务器加载负载均衡配置文件。
所述接收单元,具体用于接收直接通过操作界面输入的负载均衡配置信息;或者
接收第三方发送的通过操作界面输入的负载均衡配置信息。
所述负载均衡配置信息包括待配置负载均衡服务器的标识信息和负载均衡的权重值,
所述检测单元,具体用于检测所述标识信息是否符合预置标识信息以及所述权重值是否符合预置权重阈值。
所述发送单元,还用于将所述负载均衡配置文件发送给存储服务器,以便于所述存储服务器检测到所述负载均衡配置文件存在更新时,通知所述代理服务器获取更新后的负载均衡配置文件并指示所述待配置负载均衡服务器加载所述更新后的负载均衡配置文件。
本发明实施例提供另一种客户端,包括:
一个或多个处理器;和
存储器;
其中所述存储器中存储有指令,经配置所述指令由所述一个或多个处理器执行,所述一个或多个处理器通过执行所述指令能进行如下操作:
接收通过操作界面输入的负载均衡配置信息;
检测所述负载均衡配置信息是否符合预置条件;
若检测负载均衡配置信息符合预置条件,则根据所述负载均衡配置信息生成负载均衡配置文件;
将所述负载均衡配置文件发送给代理服务器,以便于所述代理服务器指示待配置负载均衡服务器加载负载均衡配置文件。
本发明实施例提供一种代理服务器,包括:
接收单元,用于接收客户端发送的负载均衡配置文件,所述负载均衡配置文件为客户端根据获取的通过操作界面输入的负载均衡配置信息生成的配置文件;
发送单元,用于将所述负载均衡配置文件发送给待配置负载均衡服务器;
指示单元,用于指示所述待配置负载均衡服务器加载负载均衡配置文件。
所述代理服务器还包括:获取单元,
所述接收单元,还用于接收存储服务器发送的通知信息,所述通知信息用于通知代理服务器所述客户端发送的负载均衡配置文件存在更新;
所述获取单元,用于获取更新后的所述负载均衡配置文件;
所述指示单元,用于指示所述待配置负载均衡服务器加载更新后的负载均衡配置文件。
本发明实施例提供另一种代理服务器,包括:
一个或多个处理器;和
存储器;
其中所述存储器中存储有指令,经配置所述指令由所述一个或多个处理器执行,所述一个或多个处理器通过执行所述指令能进行如下操作:
接收客户端发送的负载均衡配置文件,所述负载均衡配置文件为客户端根据获取的通过操作界面输入的负载均衡配置信息生成的配置文件;
将所述负载均衡配置文件发送给待配置负载均衡服务器;
指示所述待配置负载均衡服务器加载负载均衡配置文件。
本发明实施例提供一种负载均衡配置系统,包括:
客户端,用于接收通过操作界面输入的负载均衡配置信息;检测所述负载均衡配置信息是否符合预置条件;若符合,则根据所述负载均衡配置信息生成负载均衡配置文件;将所述负载均衡配置文件发送给代理服务器;
代理服务器,用于将所述负载均衡配置文件发送给待配置负载均衡服务器并指示所述待配置负载均衡服务器加载负载均衡配置文件。
本发明实施例提供的负载均衡配置方法、设备及系统,通过根据操作界面输入的负载均衡配置信息生成负载均衡配置文件,将所述负载均衡配置文件发送给代理服务器,以便于所述代理服务器指示待配置负载均衡服务器加载负载均衡配置文件,改变了现有技术中在进行负载均衡配置时,需要专业人员根据负载均衡配置信息底层编写负载均衡配置文件,实现了负载均衡的自动配置,提高负载均衡配置的效率较低和准确性。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的一种负载均衡配置方法流程图;
图2为本发明实施例提供的另一种负载均衡配置方法流程图;
图3为本发明实施例提供的又一种负载均衡配置方法流程图;
图4为本发明实施例提供的再一种负载均衡配置方法流程图;
图5为本发明实施例提供的一种客户端的结构示意图;
图6为本发明实施例提供的另一种客户端的结构示意图;
图7为本发明实施例提供的一种服务器的结构示意图;
图8为本发明实施例提供的另一种服务器的结构示意图;
图9为本发明实施例提供的一种负载均衡配置系统的结构示意图;
图10为本发明实施例提供的一种服务器的实体结构示意图。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例提供了一种负载均衡配置方法,如图1所示,所述方法包括:
101、接收通过操作界面输入的负载均衡配置信息。
其中,所述负载均衡配置信息可以包括待配置负载均衡服务器的标识信息和负载均衡的权重值。所述待配置负载均衡服务器的标识信息可以为待配置负载均衡服务器的互联网协议(Internet Protocol,IP)地址和端口号的组合,也可以为待配置负载均衡服务器的名称,本发明实施例不做限定。例如,待配置负载均衡服务器的标识信息可以为192.168.5.126:80,负载均衡的权重值 可以为3。
其中,通过操作界面输入的负载均衡配置信息可以为用户通过操作界面直接输入的负载均衡配置信息,也可以为第三方通过操作界面发送的负载均衡配置信息。通过设置和开放操作界面,可以实现普通用户进行负载均衡的配置,节省了专业运维人员进行负载均衡的配置所消耗的工作成本。
102、检测负载均衡配置信息是否符合预置条件。
其中,预置条件可以根据用户的需求进行设置,也可以根据系统的默认模式进行设置,本发明实施例不做限定。
需要说明的是,当负载均衡配置信息为待配置负载均衡服务器的标识信息时,预置条件可以为预置标识信息。例如,提供网络服务的集群中的服务器的IP地址为192.168.5.1:80-192.168.5.126:65535,预置标识信息为192.168.5.1:80-192.168.5.126:65535中任意一个。若通过操作界面输入的待配置负载均衡服务器的IP地址为192.168.5.1:70,则确认待配置负载均衡服务器的标识信息不符合预置标识信息。
当负载均衡配置信息为负载均衡的权重值时,预置条件可以为预置权重阈值。例如,预置权重阈值为[1-10],当通过操作界面输入的权重值为8,则确认负载均衡的权重值符合预置权重阈值。
103、若负载均衡配置信息符合预置条件,则根据负载均衡配置信息生成负载均衡配置文件。
对于本发明实施例,通过根据操作界面输入的负载均衡配置信息生成负载均衡配置文件,能够避免通过人工的方式编写负载均衡配置文件,降低了专业人员学习和掌握编写负载均衡配置文件的语法以及相关知识的成本,提高了负载均衡配置的效率。
104、将负载均衡配置文件发送给代理服务器。
进一步地,以便于所述代理服务器指示待配置负载均衡服务器加载负载均衡配置文件。
对于本发明实施例,代理服务器接收到负载均衡配置文件后可以发送给待配置负载均衡服务器,然后调用预置命令指示待配置负载均衡服务器加载负载均衡配置文件,所述预置命令可以为指示待配置负载均衡服务器关机重启的命令,待配置负载均衡服务器关机重启后即可加载负载均衡配置文件。
对于本发明实施例,通过所述代理服务器指示待配置负载均衡服务器加载负载均衡配置文件,能够提高负载均衡配置的速度,从而能够提高负载均衡配置的效率。此外,能够避免通过专业人员重复配置负载均衡时出现的错误,从而能够提高提高负载均衡配置的准确率。
本发明实施例提供的一种负载均衡配置方法,通过根据操作界面输入的负载均衡配置信息生成负载均衡配置文件,将所述负载均衡配置文件发送给代理服务器,以便于所述代理服务器指示待配置负载均衡服务器加载负载均衡配置文件,改变了现有技术中在进行负载均衡配置时,需要专业人员根据负载均衡配置信息底层编写负载均衡配置文件,实现了负载均衡的自动配置,提高负载均衡配置的效率较低和准确性。
本发明实施例提供了另一种负载均衡配置方法,如图2所示,所述方法包括:
201、接收通过操作界面输入的负载均衡配置信息。
对于本发明实施例,步骤201具体可以为:接收直接通过操作界面输入的负载均衡配置信息;或者接收第三方发送的通过操作界面输入的负载均衡配置信息。
202、检测负载均衡配置信息是否符合预置条件。
其中,所述负载均衡配置信息包括待配置负载均衡服务器的标识信息和负载均衡的权重值。对于本发明实施例,步骤202具体可以为;检测所述标识信息是否符合预置标识信息以及所述权重值是否符合预置权重阈值。
203、若负载均衡配置信息符合预置条件,则根据负载均衡配置信息生成负载均衡配置文件。
204、将负载均衡配置文件发送给代理服务器。
进一步地,以便于所述代理服务器指示待配置负载均衡服务器加载负载均衡配置文件。
205、将负载均衡配置文件发送给存储服务器。
进一步地,以便于所述存储服务器检测到所述负载均衡配置文件存在更新时,通知所述代理服务器获取更新后的负载均衡配置文件并指示所述待配置负载均衡服务器加载所述更新后的负载均衡配置文件。
对于本发明实施例,所述存储服务器检测到所述负载均衡配置文件存在 更新时,可以向所述代理服务器发送通知信息,所述代理服务器接收到通知信息后,则获取更新后的所述负载均衡配置文件并指示所述待配置负载均衡服务器加载更新后的负载均衡配置文件。此外,当接收到通知信息时,可以将更新后的所述负载均衡配置文件同步给待配置负载均衡服务器同组的服务器,从而能够进一步地提高负载均衡配置的效率。
需要说明的是,代理服务器和待配置负载均衡服务器可以安装在同一个服务器上,当代理服务器接收到通知信息时,可以直接将更新的负载均衡配置文件保存到本地的负载均衡配置文件目录中,然后指示待配置负载均衡服务器重新加载负载均衡配置文件。
对于本发明实施例,通过将负载均衡配置文件发送给存储服务器,当所述存储服务器检测到所述负载均衡配置文件存在更新时,再由代理服务器指示待配置负载均衡服务器重新加载负载均衡配置文件,可以避免负载均衡重复配置,从而能够节省配置负载均衡所消耗的系统资源。
本发明实施例提供的另一种负载均衡配置方法,通过根据操作界面输入的负载均衡配置信息生成负载均衡配置文件,将所述负载均衡配置文件发送给代理服务器,以便于所述代理服务器指示待配置负载均衡服务器加载负载均衡配置文件,改变了现有技术中在进行负载均衡配置时,需要专业人员根据负载均衡配置信息底层编写负载均衡配置文件,实现了负载均衡的自动配置,提高负载均衡配置的效率较低和准确性。
本发明实施例提供了又一种负载均衡配置方法,可以应用于代理服务器,如图3所示,所述方法包括:
301、接收客户端发送的负载均衡配置文件。
其中,所述负载均衡配置文件为客户端根据获取的通过操作界面输入的负载均衡配置信息生成的配置文件。
其中,通过操作界面输入的负载均衡配置信息可以为用户通过操作界面直接输入的负载均衡配置信息,也可以为第三方通过操作界面发送的负载均衡配置信息。
302、将负载均衡配置文件发送给待配置负载均衡服务器。
303、指示待配置负载均衡服务器加载负载均衡配置文件。
本发明实施例提供的又一种负载均衡配置方法,通过根据操作界面输入 的负载均衡配置信息生成负载均衡配置文件,将所述负载均衡配置文件发送给代理服务器,以便于所述代理服务器指示待配置负载均衡服务器加载负载均衡配置文件,改变了现有技术中在进行负载均衡配置时,需要专业人员根据负载均衡配置信息底层编写负载均衡配置文件,实现了负载均衡的自动配置,提高负载均衡配置的效率较低和准确性。
本发明实施例提供了再一种负载均衡配置方法,可以应用于代理服务器,如图4所示,所述方法包括:
401、接收客户端发送的负载均衡配置文件。
其中,所述负载均衡配置文件为客户端根据获取的通过操作界面输入的负载均衡配置信息生成的配置文件。
402、将负载均衡配置文件发送给待配置负载均衡服务器。
403、指示待配置负载均衡服务器加载负载均衡配置文件。
404、接收存储服务器发送的通知信息。
其中,所述通知信息用于通知代理服务器所述客户端发送的负载均衡配置文件存在更新。
405、获取更新后的负载均衡配置文件。
406、指示待配置负载均衡服务器加载更新后的负载均衡配置文件。
本发明实施例提供的再一种负载均衡配置方法,通过根据操作界面输入的负载均衡配置信息生成负载均衡配置文件,将所述负载均衡配置文件发送给代理服务器,以便于所述代理服务器指示待配置负载均衡服务器加载负载均衡配置文件,改变了现有技术中在进行负载均衡配置时,需要专业人员根据负载均衡配置信息底层编写负载均衡配置文件,实现了负载均衡的自动配置,提高负载均衡配置的效率较低和准确性。
进一步的,作为图1所述方法的具体实现,本发明实施例提供了一种客户端,如图5所示,所述方法包括:接收单元51、检测单元52、生成单元53、发送单元54。
接收单元51,用于接收通过操作界面输入的负载均衡配置信息。所述负载均衡配置信息可以包括待配置负载均衡服务器的标识信息和负载均衡的权重值。接收单元51是本客户端中接收通过操作界面输入的负载均衡配置信息的主要功能模块。
检测单元52,用于检测所述负载均衡配置信息是否符合预置条件。检测单元52是本客户端中检测所述负载均衡配置信息是否符合预置条件的主要功能模块。
生成单元53,用于若所述负载均衡配置信息符合预置条件,则根据所述负载均衡配置信息生成负载均衡配置文件。生成单元53是本客户端中生成负载均衡配置文件的主要功能模块。
发送单元54,用于将所述负载均衡配置文件发送给代理服务器。发送单元54是本客户端中发送负载均衡配置文件的主要功能模块。
进一步地,以便于所述代理服务器指示待配置负载均衡服务器加载负载均衡配置文件。
需要说明的是,本发明实施例提供的一种客户端所涉及各功能单元的其他相应描述,可以参考图1所示方法的对应描述,在此不再赘述。本发明实施例中可以通过硬件处理器来实现相关功能模块。
本发明实施例提供的一种客户端,通过根据操作界面输入的负载均衡配置信息生成负载均衡配置文件,将所述负载均衡配置文件发送给代理服务器,以便于所述代理服务器指示待配置负载均衡服务器加载负载均衡配置文件,改变了现有技术中在进行负载均衡配置时,需要专业人员根据负载均衡配置信息底层编写负载均衡配置文件,实现了负载均衡的自动配置,提高负载均衡配置的效率较低和准确性。
进一步地,作为图2所述方法的具体实现,本发明实施例提供了另一种客户端,如图6所示,所述方法包括:接收单元61、检测单元62、生成单元63、发送单元64。
接收单元61,用于接收通过操作界面输入的负载均衡配置信息。
检测单元62,用于检测所述负载均衡配置信息是否符合预置条件。
生成单元63,用于若所述均衡配置信息符合预置条件,则根据所述负载均衡配置信息生成负载均衡配置文件。
发送单元64,用于将所述负载均衡配置文件发送给代理服务器。
进一步地,以便于所述代理服务器指示待配置负载均衡服务器加载负载均衡配置文件。
所述接收单元61,具体用于接收直接通过操作界面输入的负载均衡配置 信息;或者
接收第三方发送的通过操作界面输入的负载均衡配置信息。
所述负载均衡配置信息包括待配置负载均衡服务器的标识信息和负载均衡的权重值。
所述检测单元62,具体用于检测所述标识信息是否符合预置标识信息以及所述权重值是否符合预置权重阈值。
所述发送单元64,还用于将所述负载均衡配置文件发送给存储服务器,以便于所述存储服务器检测到所述负载均衡配置文件存在更新时,通知所述代理服务器获取更新后的负载均衡配置文件并指示所述待配置负载均衡服务器加载所述更新后的负载均衡配置文件。
需要说明的是,本发明实施例提供的另一种客户端所涉及各功能单元的其他相应描述,可以参考图2所示方法的对应描述,在此不再赘述。本发明实施例中可以通过硬件处理器来实现相关功能模块。
本发明实施例提供的另一种客户端,通过根据操作界面输入的负载均衡配置信息生成负载均衡配置文件,将所述负载均衡配置文件发送给代理服务器,以便于所述代理服务器指示待配置负载均衡服务器加载负载均衡配置文件,改变了现有技术中在进行负载均衡配置时,需要专业人员根据负载均衡配置信息底层编写负载均衡配置文件,实现了负载均衡的自动配置,提高负载均衡配置的效率较低和准确性。
进一步地,作为图3所述方法的具体实现,本发明实施例提供了一种代理服务器,如图7所示,所述方法包括:接收单元71、发送单元72、指示单元73。
接收单元71,用于接收客户端发送的负载均衡配置文件,所述负载均衡配置文件为客户端根据获取的通过操作界面输入的负载均衡配置信息生成的配置文件。接收单元71是本代理服务器中接收负载均衡配置文件的主要功能模块。
发送单元72,用于将所述负载均衡配置文件发送给待配置负载均衡服务器。发送单元72是本代理服务器中发送负载均衡配置文件的主要功能模块。
指示单元73,用于指示所述待配置负载均衡服务器加载负载均衡配置 文件。发送单元73是本代理服务器中指示所述待配置负载均衡服务器加载负载均衡配置文件的主要功能模块。
需要说明的是,本发明实施例提供的一种代理服务器所涉及各功能单元的其他相应描述,可以参考图3所示方法的对应描述,在此不再赘述。本发明实施例中可以通过硬件处理器来实现相关功能模块。
本发明实施例提供的一种服务器,通过根据操作界面输入的负载均衡配置信息生成负载均衡配置文件,将所述负载均衡配置文件发送给代理服务器,以便于所述代理服务器指示待配置负载均衡服务器加载负载均衡配置文件,改变了现有技术中在进行负载均衡配置时,需要专业人员根据负载均衡配置信息底层编写负载均衡配置文件,实现了负载均衡的自动配置,提高负载均衡配置的效率较低和准确性。
进一步地,作为图4所述方法的具体实现,本发明实施例提供了另一种代理服务器,如图8所示,所述方法包括:接收单元81、发送单元82、指示单元83。
接收单元81,用于接收客户端发送的负载均衡配置文件,所述负载均衡配置文件为客户端根据获取的通过操作界面输入的负载均衡配置信息生成的配置文件。
发送单元82,用于将所述负载均衡配置文件发送给待配置负载均衡服务器。
指示单元83,用于指示所述待配置负载均衡服务器加载负载均衡配置文件。
所述代理服务器还包括:获取单元84。
所述接收单元81,还用于接收存储服务器发送的通知信息,所述通知信息用于通知代理服务器所述客户端发送的负载均衡配置文件存在更新。
所述获取单元84,用于获取更新后的所述负载均衡配置文件。发送单元84是本代理服务器中获取更新后的所述负载均衡配置文件的主要功能模块。
所述指示单元83,用于指示所述待配置负载均衡服务器加载更新后的负载均衡配置文件。
需要说明的是,本发明实施例提供的另一种代理服务器所涉及各功能单 元的其他相应描述,可以参考图4所示方法的对应描述,在此不再赘述。本发明实施例中可以通过硬件处理器来实现相关功能模块。
本发明实施例提供的另一种服务器,通过根据操作界面输入的负载均衡配置信息生成负载均衡配置文件,将所述负载均衡配置文件发送给代理服务器,以便于所述代理服务器指示待配置负载均衡服务器加载负载均衡配置文件,改变了现有技术中在进行负载均衡配置时,需要专业人员根据负载均衡配置信息底层编写负载均衡配置文件,实现了负载均衡的自动配置,提高负载均衡配置的效率较低和准确性。
本发明实施例提供了一种负载均衡配置系统,如图9所示,客户端91、代理服务器92。
客户端91,用于接收通过操作界面输入的负载均衡配置信息;检测所述负载均衡配置信息是否符合预置条件;若符合,则根据所述负载均衡配置信息生成负载均衡配置文件;将所述负载均衡配置文件发送给代理服务器92。
代理服务器92,用于将所述负载均衡配置文件发送给待配置负载均衡服务器并指示所述待配置负载均衡服务器加载负载均衡配置文件。
需要说明的是,针对上述客户端、服务器及负载均衡配置系统,凡是本发明实施例中使用到的各个单元模块的功能都可以通过硬件处理器(hardware processor)来实现。
示例性的,如图10所示,图10示出了本发明实施例提供的一种服务器的实体结构示意图,该服务器可以包括:处理器(processor)1001、通信接口(Communications Interface)1002、存储器(memory)1003和总线1004,其中,处理器1001、通信接口1002、存储器1003通过总线1004完成相互间的通信。通信接口1002可以用于服务器与客户端之间的信息传输。处理器1001可以调用存储器1003中的逻辑指令,以执行如下方法:接收通过操作界面输入的负载均衡配置信息;检测所述负载均衡配置信息是否符合预置条件;若符合,则根据所述负载均衡配置信息生成负载均衡配置文件;将所述负载均衡配置文件发送给代理服务器,以便于所述代理服务器指示待配置负载均衡服务器加载负载均衡配置文件。
此外,上述的存储器1003中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存 储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
本发明实施例提供的一种负载均衡配置系统,通过根据操作界面输入的负载均衡配置信息生成负载均衡配置文件,将所述负载均衡配置文件发送给代理服务器,以便于所述代理服务器指示待配置负载均衡服务器加载负载均衡配置文件,改变了现有技术中在进行负载均衡配置时,需要专业人员根据负载均衡配置信息底层编写负载均衡配置文件,实现了负载均衡的自动配置,提高负载均衡配置的效率较低和准确性。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不 使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims (15)

  1. 一种负载均衡配置方法,其特征在于,包括:
    接收通过操作界面输入的负载均衡配置信息;
    检测所述负载均衡配置信息是否符合预置条件;
    若符合,则根据所述负载均衡配置信息生成负载均衡配置文件;
    将所述负载均衡配置文件发送给代理服务器,以便于所述代理服务器指示待配置负载均衡服务器加载负载均衡配置文件。
  2. 根据权利要求1所述的负载均衡配置方法,其特征在于,所述接收通过操作界面输入的负载均衡配置信息包括:
    接收直接通过操作界面输入的负载均衡配置信息;或者
    接收第三方发送的通过操作界面输入的负载均衡配置信息。
  3. 根据权利要求1所述的负载均衡配置方法,其特征在于,所述负载均衡配置信息包括待配置负载均衡服务器的标识信息和负载均衡的权重值,所述检测所述负载均衡配置信息是否符合预置条件;
    检测所述标识信息是否符合预置标识信息以及所述权重值是否符合预置权重阈值。
  4. 根据权利要求1所述的负载均衡配置方法,其特征在于,所述方法还包括:
    将所述负载均衡配置文件发送给存储服务器,以便于所述存储服务器检测到所述负载均衡配置文件存在更新时,通知所述代理服务器获取更新后的负载均衡配置文件并指示所述待配置负载均衡服务器加载所述更新后的负载均衡配置文件。
  5. 一种负载均衡配置方法,其特征在于,包括:
    接收客户端发送的负载均衡配置文件,所述负载均衡配置文件为客户端根据获取的通过操作界面输入的负载均衡配置信息生成的配置文件;
    将所述负载均衡配置文件发送给待配置负载均衡服务器并指示所述待配置负载均衡服务器加载负载均衡配置文件。
  6. 根据权利要求5所述的负载均衡配置方法,其特征在于,还包括:
    接收存储服务器发送的通知信息,所述通知信息用于通知代理服务器所述客户端发送的负载均衡配置文件存在更新;
    获取更新后的所述负载均衡配置文件;
    所述指示所述待配置负载均衡服务器加载负载均衡配置文件包括:
    指示所述待配置负载均衡服务器加载更新后的负载均衡配置文件。
  7. 一种客户端,其特征在于,包括:
    接收单元,用于接收通过操作界面输入的负载均衡配置信息;
    检测单元,用于检测所述负载均衡配置信息是否符合预置条件;
    生成单元,用于若检测负载均衡配置信息符合预置条件,则根据所述负载均衡配置信息生成负载均衡配置文件;
    发送单元,用于将所述负载均衡配置文件发送给代理服务器,以便于所述代理服务器指示待配置负载均衡服务器加载负载均衡配置文件。
  8. 根据权利要求7所述的客户端,其特征在于,
    所述接收单元,具体用于接收直接通过操作界面输入的负载均衡配置信息;或者
    接收第三方发送的通过操作界面输入的负载均衡配置信息。
  9. 根据权利要求7所述的客户端,其特征在于,所述负载均衡配置信息包括待配置负载均衡服务器的标识信息和负载均衡的权重值,
    所述检测单元,具体用于检测所述标识信息是否符合预置标识信息以及所述权重值是否符合预置权重阈值。
  10. 根据权利要求7所述的客户端,其特征在于,
    所述发送单元,还用于将所述负载均衡配置文件发送给存储服务器,以便于所述存储服务器检测到所述负载均衡配置文件存在更新时,通知所述代理服务器获取所述负载均衡配置文件并指示所述待配置负载均衡服务器加载负载均衡配置文件。
  11. 一种客户端,其特征在于,包括:
    一个或多个处理器;和
    存储器;
    其中所述存储器中存储有指令,经配置所述指令由所述一个或多个处理器执行,所述一个或多个处理器通过执行所述指令能进行如下操作:
    接收通过操作界面输入的负载均衡配置信息;
    检测所述负载均衡配置信息是否符合预置条件;
    若检测负载均衡配置信息符合预置条件,则根据所述负载均衡配置信息生成负载均衡配置文件;
    将所述负载均衡配置文件发送给代理服务器,以便于所述代理服务器指示待配置负载均衡服务器加载负载均衡配置文件。
  12. 一种代理服务器,其特征在于,包括:
    接收单元,用于接收客户端发送的负载均衡配置文件,所述负载均衡配置文件为客户端根据获取的通过操作界面输入的负载均衡配置信息生成的配置文件;
    发送单元,用于将所述负载均衡配置文件发送给待配置负载均衡服务器;
    指示单元,用于指示所述待配置负载均衡服务器加载负载均衡配置文件。
  13. 根据权利要求12所述的代理服务器,其特征在于,所述代理服务器还包括:获取单元,
    所述接收单元,还用于接收存储服务器发送的通知信息,所述通知信息用于通知代理服务器所述客户端发送的负载均衡配置文件存在更新;
    所述获取单元,用于获取更新后的所述负载均衡配置文件;
    所述指示单元,用于指示所述待配置负载均衡服务器加载更新后的负载均衡配置文件。
  14. 一种代理服务器,其特征在于,包括:
    一个或多个处理器;和
    存储器;
    其中所述存储器中存储有指令,经配置所述指令由所述一个或多个处理器执行,所述一个或多个处理器通过执行所述指令能进行如下操作:
    接收客户端发送的负载均衡配置文件,所述负载均衡配置文件为客户端根据获取的通过操作界面输入的负载均衡配置信息生成的配置文件;
    将所述负载均衡配置文件发送给待配置负载均衡服务器;
    指示所述待配置负载均衡服务器加载负载均衡配置文件。
  15. 一种负载均衡配置系统,其特征在于,包括权利要求7-11任一项所述的客户端和权利要求12-14任一项所述的代理服务器。
PCT/CN2016/088866 2015-12-11 2016-07-06 负载均衡配置方法、设备及系统 WO2017096838A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/246,523 US20170171301A1 (en) 2015-12-11 2016-08-24 Method, device and system for load balancing configuration

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510921238.2 2015-12-11
CN201510921238.2A CN105871588A (zh) 2015-12-11 2015-12-11 负载均衡配置方法、设备及系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/246,523 Continuation US20170171301A1 (en) 2015-12-11 2016-08-24 Method, device and system for load balancing configuration

Publications (1)

Publication Number Publication Date
WO2017096838A1 true WO2017096838A1 (zh) 2017-06-15

Family

ID=56624535

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/088866 WO2017096838A1 (zh) 2015-12-11 2016-07-06 负载均衡配置方法、设备及系统

Country Status (3)

Country Link
US (1) US20170171301A1 (zh)
CN (1) CN105871588A (zh)
WO (1) WO2017096838A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287021A (zh) * 2019-05-17 2019-09-27 平安科技(深圳)有限公司 负载均衡应用管理方法、装置、计算机设备及存储介质
CN112187905A (zh) * 2020-09-22 2021-01-05 烽火通信科技股份有限公司 一种负载均衡接口表维护方法、设备及系统

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833492B (zh) * 2018-05-24 2022-05-27 中国平安人寿保险股份有限公司 提高服务器调用准确率的方法、装置、客户端和系统
CN109618000B (zh) * 2019-01-09 2021-08-31 广州视源电子科技股份有限公司 负载均衡服务的主从切换方法、装置、系统及服务器
CN109871941B (zh) * 2019-02-18 2020-02-21 中科寒武纪科技股份有限公司 数据处理方法、装置及相关产品
CN110417870B (zh) * 2019-07-05 2022-05-13 北京达佳互联信息技术有限公司 配置文件管理方法、装置、设备和存储介质
CN110908872B (zh) * 2019-11-29 2023-04-25 杭州迪普科技股份有限公司 一种服务器状态检测方法及系统
CN111475289B (zh) * 2020-03-26 2024-04-12 北京世纪家天下科技发展有限公司 负载均衡方法及装置
CN115277573A (zh) * 2022-08-09 2022-11-01 康键信息技术(深圳)有限公司 发布应用任务的负载均衡处理方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793275A (zh) * 2012-10-31 2014-05-14 北京华胜天成科技股份有限公司 实现负载均衡的系统及处理方法
US20140310390A1 (en) * 2013-04-16 2014-10-16 Amazon Technologies, Inc. Asymmetric packet flow in a distributed load balancer
CN104468226A (zh) * 2014-12-18 2015-03-25 山东中创软件工程股份有限公司 基于Nginx的配置方法及装置
CN104468735A (zh) * 2014-11-19 2015-03-25 山东中创软件工程股份有限公司 基于图形用户界面的负载均衡器的管理方法及装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100430917C (zh) * 2005-04-22 2008-11-05 天津曙光计算机产业有限公司 一种自主构造机群操作系统内核的方法及智能构造器
CN104580538B (zh) * 2015-02-12 2018-02-23 山东大学 一种提高Nginx服务器负载均衡效率的方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793275A (zh) * 2012-10-31 2014-05-14 北京华胜天成科技股份有限公司 实现负载均衡的系统及处理方法
US20140310390A1 (en) * 2013-04-16 2014-10-16 Amazon Technologies, Inc. Asymmetric packet flow in a distributed load balancer
CN104468735A (zh) * 2014-11-19 2015-03-25 山东中创软件工程股份有限公司 基于图形用户界面的负载均衡器的管理方法及装置
CN104468226A (zh) * 2014-12-18 2015-03-25 山东中创软件工程股份有限公司 基于Nginx的配置方法及装置

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287021A (zh) * 2019-05-17 2019-09-27 平安科技(深圳)有限公司 负载均衡应用管理方法、装置、计算机设备及存储介质
CN110287021B (zh) * 2019-05-17 2023-09-26 平安科技(深圳)有限公司 负载均衡应用管理方法、装置、计算机设备及存储介质
CN112187905A (zh) * 2020-09-22 2021-01-05 烽火通信科技股份有限公司 一种负载均衡接口表维护方法、设备及系统

Also Published As

Publication number Publication date
US20170171301A1 (en) 2017-06-15
CN105871588A (zh) 2016-08-17

Similar Documents

Publication Publication Date Title
WO2017096838A1 (zh) 负载均衡配置方法、设备及系统
US11429408B2 (en) System and method for network function virtualization resource management
US10148511B2 (en) Managing servers based on pairing keys to implement an administrative domain-wide policy
WO2018024059A1 (zh) 一种虚拟化网络中业务部署的方法和装置
US20210037466A1 (en) Elastic Resource Control in a Container Orchestration Environment
US8774054B2 (en) Network policy configuration method, management device, and network management center device
WO2017092347A1 (zh) 一种分布式高速缓存系统中的客户端配置更新方法、设备及系统
WO2016155394A1 (zh) 一种虚拟网络功能间链路建立方法及装置
US8903960B2 (en) Activate attribute for service profiles in unified computing system
US10140140B2 (en) Cloud virtual machine customization using extension framework
US20140280800A1 (en) Apparatus and method to maintain consistent operational states in in cloud-based infrastructures
EP3588856B1 (en) Technologies for hot-swapping a legacy appliance with a network functions virtualization appliance
US9591079B2 (en) Method and apparatus for managing sessions of different websites
WO2018039973A1 (zh) 网络功能处理方法及相关设备
US8543680B2 (en) Migrating device management between object managers
US11671459B2 (en) Managing network connections based on their endpoints
WO2015127850A1 (zh) 一种数据升级的方法和中心服务器
US11316736B2 (en) Intent-based networking using device administrative shell
CN117014308A (zh) 交换机堆栈的远程管理
US20200267230A1 (en) Tracking client sessions in publish and subscribe systems using a shared repository
US11716382B2 (en) System and method for replication of storage presentation in application orchestration
US20220138220A1 (en) Dedicated replication channels for replicating records between regions
WO2022028092A1 (zh) 一种vnf实例化的方法和装置
CN112003731B (zh) 配置方法及装置
US11880586B2 (en) Storage array remote replication

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16872040

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16872040

Country of ref document: EP

Kind code of ref document: A1