WO2017124933A1 - 一种信息处理方法、装置和系统 - Google Patents

一种信息处理方法、装置和系统 Download PDF

Info

Publication number
WO2017124933A1
WO2017124933A1 PCT/CN2017/070631 CN2017070631W WO2017124933A1 WO 2017124933 A1 WO2017124933 A1 WO 2017124933A1 CN 2017070631 W CN2017070631 W CN 2017070631W WO 2017124933 A1 WO2017124933 A1 WO 2017124933A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
end server
configuration
instruction information
address information
Prior art date
Application number
PCT/CN2017/070631
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 阿里巴巴集团控股有限公司
Publication of WO2017124933A1 publication Critical patent/WO2017124933A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2255Hash tables
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • 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/104Peer-to-peer [P2P] networks
    • H04L67/1061Peer-to-peer [P2P] networks using node-based peer discovery mechanisms
    • H04L67/1065Discovery involving distributed pre-established resource-based relationships among peers, e.g. based on distributed hash tables [DHT] 

Definitions

  • the present application relates to the field of Internet technologies, and in particular, to an information processing method, an information processing apparatus, and an information processing system.
  • servers of a large number of cloud services need to update configuration information frequently to meet user needs. Take the load balancing cloud service as an example. You need to update the configuration information of the back-end server in the front-end server to ensure that the user's access request is accurately dispatched to the back-end server that works normally. In practical applications, applications that detect the working state of the back-end server, such as Keepalived, are usually used to update the configuration information. Keepalived is a software that implements a service high availability scheme based on VRRP (Virtual Router Redundancy Protocol) technology. Keepalived is mainly used to detect the status of the back-end server.
  • VRRP Virtual Router Redundancy Protocol
  • Keepalived will detect it and remove the faulty back-end server from the system.
  • Keepalived Automatically add backend servers to the server farm. Because Keepalived's server state detection application's memory usually stores the memory structure of the back-end server's configuration information, it can be used to update information.
  • the configuration information when updating the configuration information, it is usually first to generate an updated configuration file and trigger Keepalived to reload the configuration file. Keepalived compares the update configuration file with the historical configuration file, finds whether the configuration information of the back-end server changes one by one, and generates a modification instruction for the changed configuration information, and the front-end server updates the configuration information of the back-end server according to the modification instruction.
  • the configuration information of each back-end server needs to be searched and compared.
  • the entire information update process requires more processing resources.
  • the update process takes a lot of time, resulting in a problem of low information update efficiency.
  • embodiments of the present application have been made in order to provide an information processing method, a corresponding information processing apparatus, and a corresponding information processing system that overcome the above problems or at least partially solve the above problems.
  • an information processing method including:
  • the front-end server performs load balancing processing on the at least one back-end server.
  • the indicating, according to the first configuration instruction information, that the front-end server processes configuration information for the at least one back-end server includes:
  • the preset database is a hash table
  • the searching, in the preset database, the target address information corresponding to the conversion according to the original address information includes:
  • the indicating, according to the first configuration instruction information, that the front-end server processes configuration information for the at least one back-end server includes:
  • the method further includes:
  • an information processing apparatus including:
  • a first configuration instruction information receiving module configured to provide an interface that allows the instruction information to be accessed by the device, and receive, by the interface, the first configuration instruction information sent by the instruction information control device;
  • an indication module configured to instruct the front-end server to process configuration information for the at least one back-end server according to the first configuration instruction information.
  • the front-end server performs load balancing processing on the at least one back-end server.
  • the indication module includes:
  • the target address information searching sub-module is configured to obtain the original address information of the back-end server from the first configuration instruction information, and search the preset database for the target address information correspondingly converted according to the original address information;
  • the second configuration instruction information generating submodule is configured to generate second configuration instruction information according to the target address information, so that the front end server processes the configuration information of the backend server indicated by the target address information.
  • the preset database is a hash table
  • the target address information searching submodule includes:
  • a target key value calculation subunit configured to calculate a target key value of the original address information
  • the target address information finding subunit is configured to find, in the hash table, target address information whose key value matches the target key value.
  • the indication module includes:
  • a configuration information processing submodule configured to instruct the front end server to perform addition, deletion, and/or modification processing on the configuration information of the backend server stored in the front end server according to the first configuration instruction information.
  • the device further includes:
  • the abnormality identifier adding module is configured to add an abnormality identifier to the original address information and generate a record log when the target address information whose key value matches the target key value is not found in the hash table.
  • an information processing system including:
  • Front-end server, back-end server, and command information control device
  • the front end server includes:
  • a first configuration instruction information receiving module configured to provide an interface that allows the instruction information to be accessed by the device, and receive, by the interface, the first configuration instruction information sent by the instruction information control device;
  • an indication module configured to instruct the front-end server to process configuration information for the at least one back-end server according to the first configuration instruction information
  • the backend server includes:
  • An access request scheduling receiving module configured to receive an access request that is sent by the front-end server according to configuration information of the back-end server;
  • the instruction information control device is configured to access the front-end server, and send the first configuration instruction information to the front-end server through an interface provided by the front-end server.
  • the embodiment of the present application does not need to perform the processing of reading the configuration file, comparing the old and new configuration files, and searching for the configuration information every time the configuration information is updated, thereby saving processing resources. At the same time, the time spent updating the configuration information is saved, and the efficiency of updating the configuration information is improved.
  • the updated configuration information can take effect in a short period of time and restore the service to the user, improving the user experience.
  • Embodiment 1 is a flow chart showing the steps of Embodiment 1 of an information processing method according to the present application;
  • Embodiment 2 is a flow chart showing the steps of Embodiment 2 of an information processing method of the present application
  • Embodiment 3 is a structural block diagram of Embodiment 1 of an information processing apparatus according to the present application.
  • FIG. 4 is a structural block diagram of a second embodiment of an information processing apparatus according to the present application.
  • FIG. 5 is a flow chart of information processing of a Keepalived-based Hotconf interface according to the present application.
  • FIG. 6 is a schematic diagram of a topology-based information update system of the present application.
  • FIG. 7 is a structural block diagram of an embodiment of an information processing system of the present application.
  • back-end servers In the application scenario of the load balancing cloud service, multiple back-end servers (Real Servers, RSs) are usually organized into one virtual server for user access.
  • the front-end server can schedule traffic forwarding to one or more of the back-end servers to implement load balancing of the back-end server.
  • some back-end servers may not be able to serve normally due to insufficient storage space or excessive processing load.
  • the modification instruction information is generated according to the changed configuration information to update the configuration information by comparing the old and new configuration information.
  • the configuration file including the configuration information of the backend server may be first generated, and the Keepalived is triggered to load the configuration file, and the memory structure is generated according to the configuration information about the backend server in the configuration file, that is, each backend server Configuration information will generate a The corresponding memory structure, the memory structure is linked by a linked list.
  • Keepalived When a configuration information update is required, it is possible to trigger Keepalived to reload the updated configuration file.
  • Keepalived For the updated configuration file and historical configuration file, Keepalived first selects the configuration information of a back-end server from the historical configuration file, and then sequentially searches for the configuration information of the corresponding back-end server in the updated configuration file, according to the search result. Update the configuration information accordingly.
  • the load balancing cloud service system often has tens of thousands of back-ends. It is very time-consuming for the server to perform the search processing according to the current update method, and the updated configuration information takes a long time to take effect, resulting in a situation in which the service is unavailable for a long time, which affects the user experience.
  • FIG. 1 a flow chart of a first embodiment of an information processing method of the present application is shown, which may specifically include the following steps:
  • Step 101 Provide an interface that allows the instruction information to control device access, and receive, by using the interface, the first configuration instruction information sent by the instruction information control device.
  • the instruction information control device may be provided with an interface that allows access by the instruction information control device, so that the instruction information control device modifies the memory structure generated according to the configuration information.
  • the instruction information control device may be an upper layer control system responsible for global configuration information update.
  • a specific interface may be opened to the instruction information control device for the instruction information control device to call the memory structure of the configuration information stored in the memory of the application.
  • Keepalived processes configuration information
  • Keepalived Hotconf was originally used for the hot configuration function of the application, and the hot configuration function allows the application to be upgraded at runtime without restarting and loading the configuration file.
  • the open-open Hotconf interface of Keepalived may be used for accessing the instruction information control device to receive the first configuration instruction information.
  • the first configuration instruction information sent by the instruction information control device can be received by opening the interface accessed by the instruction information control device.
  • Step 102 Instruct the front-end server to process configuration information for the at least one back-end server according to the first configuration instruction information.
  • the indicating, by the first configuration instruction information, that the front-end server processes configuration information for the at least one back-end server includes:
  • the first configuration instruction information may include address information of the backend server and corresponding operation processing information.
  • the address information of the backend server may be used as an identifier of the backend server for determining configuration information of the targeted backend server; the operation processing information is used to determine adding, deleting, or modifying the configuration information of the targeted backend server. Operational processing.
  • the operation processing of adding, deleting, or modifying the configuration information of the one or more back-end servers by the front-end server may be instructed according to the first configuration instruction information.
  • the address information of the backend server included in the first configuration instruction information is not the uniquely determined address information of the backend server in its virtual network. Therefore, the original address information of the backend server may be obtained from the first configuration instruction information, and the original address information is used to search the preset database for the target address information uniquely determined by the backend server in the network to which the backend server belongs, and the target is utilized.
  • the address information generates a second configuration instruction information, which is used to instruct the front-end server to perform operations such as adding, deleting, or modifying configuration information of one or more back-end servers.
  • the front-end server in the load balancing cloud service system may be an LVS (Linux Virtual Server), and an IPVS (IP Virtual Service Switch) may be run on the LVS, and the packet at the kernel level in the IPVS is used.
  • Forwarding module to implement traffic forwarding and load balancing for multiple back-end servers. In practical applications, you can put Keepalived
  • the server state detection application is installed on the LVS.
  • the front-end server can update the configuration information of the local back-end server according to the generated modification instruction, so that the user access request data packet can be forwarded and dispatched to the appropriate back-end server according to the updated configuration information.
  • the information update manner provided by the embodiment of the present application is applicable not only to the load balancing cloud service system but also to other cloud services in the cloud computing scenario.
  • a person skilled in the art can update other types of information by using the core concept provided by the embodiments of the present application according to actual needs, for example, receiving routing table update instruction information through an open interface, updating instruction information according to the received routing table, and indicating the front-end server. Update its routing table.
  • the server status detection application may be deployed on the front-end server, and the server status detection application opens an access interface to the instruction information control device to receive the first configuration instruction information sent by the instruction information control device, according to the received A configuration instruction information is used to process the configuration information of the saved backend server.
  • a configuration information update server that opens an access interface to the instruction information control device may be separately deployed, and the configuration information update server receives the first configuration instruction information sent by the instruction information control device.
  • the configuration information update server instructs the front-end server to process the configuration information of the back-end server saved by the front-end server according to the received first configuration instruction information.
  • first configuration instruction information for instructing a front-end server to process configuration information of a back-end server is received through an interface that allows instruction information to be accessed by the instruction information.
  • the embodiment of the present application does not need to perform the processing of reading the configuration file, comparing the old and new configuration files, and searching for the configuration information every time the configuration information is updated, thereby saving processing resources. At the same time, the time spent updating the configuration information is saved, and the efficiency of updating the configuration information is improved.
  • the updated configuration information can take effect in a short period of time and restore the service to the user, improving the user experience.
  • FIG. 2 a flow chart of the steps of the second embodiment of the information processing method of the present application is shown, which may specifically include the following steps:
  • Step 201 Provide an interface that allows the instruction information to control device access, and receive, by using the interface, the first configuration instruction information sent by the instruction information control device.
  • the first configuration instruction information sent by the instruction information control device can be received by opening the interface accessed by the instruction information control device.
  • step 202 the original address information of the backend server is obtained from the first configuration instruction information, and the target address information correspondingly converted according to the original address information is searched in the preset database.
  • the original address information of the backend server may be obtained from the first configuration instruction information sent by the instruction information control device, for example, the VIP address of the backend server is 192.168.1.1:80.
  • the target address information converted according to the original address information can be stored in the preset database.
  • the front-end server may perform load balancing processing on at least one back-end server in the first network.
  • the address information of the backend server included is the original address information in the entire network, and the address information in the virtual network to which the backend server belongs. It is not the same, the backend server for which the instruction information is directed cannot be determined based on the original address. Therefore, the original address information of the backend server in the second network may be obtained in the first configuration instruction information, and the target of the backend server in the first network to which the backend server belongs is searched in the preset database according to the obtained original address information. Address information.
  • the preset database may be a hash table, and the searching for the target address information correspondingly converted according to the original address information in the preset database may include the following sub-steps:
  • Sub-step S11 calculating a target key value of the original address information.
  • Sub-step S12 searching for the target address information whose key value matches the target key value in the hash table.
  • the target key value can be calculated based on the original address information, for example, can be calculated by a hash algorithm (Hash). Using the calculated target key value, the address information matching the target key value is found in the hash table as the target address information of the corresponding backend server.
  • Hash hash algorithm
  • the hash table is used to store the configuration information of the backend server, and the organization form of the memory structure generated according to the configuration information is optimized, and the search method of the hash algorithm is combined. Improves the efficiency of finding the target address information of the backend server.
  • Sub-step S13 when the target address information whose key value matches the target key value is not found in the hash table, an abnormality identifier is added for the original address information and a record log is generated.
  • the matching target address information When the matching target address information is not found, it indicates that the original address information of the backend server included in the first configuration instruction information is incorrect, and an abnormal identifier may be added and a log is generated. It is also possible to print a log containing the original address error and end the update process.
  • Step 203 Generate second configuration instruction information according to the target address information, so that the front-end server processes configuration information of the back-end server indicated by the target address information.
  • a second configuration instruction information including the target address information may be generated.
  • the front-end server can determine the back-end server that needs to be processed according to the target address information in the second configuration instruction information.
  • the processing of reading the configuration file, comparing the old and new configuration files, and searching for the configuration information are not required for each configuration information update, thereby saving processing resources.
  • the time spent updating the configuration information is saved, and the efficiency of updating the configuration information is improved.
  • FIG. 5 and FIG. 6 In order to facilitate the understanding of the embodiments of the present application, those skilled in the art will refer to FIG. 5 and FIG. 6 below. The embodiments of the present application are described.
  • Figure 5 shows a flow chart of information processing based on the Keepalived Hotconf interface.
  • the upper control system sends the command to delete the backend server whose VIP is 192.168.1.1:80 through the Hotconf interface provided by Keepalived.
  • the Keepalived application converts 192.168.1.1:80 into a target key value Key through the hash algorithm, and uses this Key to find the corresponding backend server in the hash table. If the corresponding backend server is found, a corresponding delete instruction message is generated and sent to the IPVS kernel module of the front-end server, and the process ends. If the corresponding backend server is not found, the error log is printed and the process ends.
  • Figure 6 shows a schematic diagram of a topology-based information update system.
  • the information update system of the present application can be established based on a topology architecture, wherein an upper layer control system, a front end server and a plurality of back end servers are deployed, wherein the front end server can be set as an LVS server with Keepalived installed.
  • the upper control system can send the first configuration command information to the front-end server through the Keepealed Hotconf interface that is open to the outside server.
  • the front-end server may perform operations such as adding, deleting, or modifying the configuration information of the back-end server stored in the Keepalived according to the received first configuration instruction information, so that the front-end server can be more based on the updated configuration information.
  • the back-end servers perform load balancing scheduling processing.
  • Embodiment 1 of an information processing apparatus of the present application is shown, which may specifically include the following modules:
  • the first configuration instruction information receiving module 301 is configured to provide an interface that allows the instruction information to control the access of the device, and receive, by using the interface, the first configuration instruction information sent by the instruction information control device.
  • the indication module 302 is configured to instruct the front-end server to process configuration information for the at least one back-end server according to the first configuration instruction information.
  • the embodiment of the present application does not need to perform the processing of reading the configuration file, comparing the old and new configuration files, and searching for the configuration information every time the configuration information is updated, thereby saving processing resources. At the same time, the time spent updating the configuration information is saved, and the efficiency of updating the configuration information is improved.
  • the updated configuration information can take effect in a short period of time and restore the service to the user, improving the user experience.
  • FIG. 4 a structural block diagram of a second embodiment of an information processing apparatus of the present application is shown, which may specifically include the following modules:
  • the first configuration instruction information receiving module 401 is configured to provide an interface that allows the instruction information to be accessed by the device, and receive, by using the interface, the first configuration instruction information sent by the instruction information control device.
  • the indicating module 402 is configured to instruct the front-end server to process configuration information for the at least one back-end server according to the first configuration instruction information.
  • the abnormality identifier adding module 403 is configured to: when the target address information whose key value matches the target key value is not found in the hash table, add an abnormality identifier to the original address information and generate a record log.
  • the front-end server performs load balancing processing on at least one back-end server.
  • the indication module 402 may include:
  • the target address information searching sub-module is configured to obtain the original address information of the back-end server from the first configuration instruction information, and search the preset database for the target address information correspondingly converted according to the original address information;
  • the second configuration instruction information generating submodule is configured to generate second configuration instruction information according to the target address information, so that the front end server processes the configuration information of the backend server indicated by the target address information.
  • the indication module 402 may include:
  • a configuration information processing submodule configured to instruct the front end server to perform addition, deletion, and/or modification processing on the configuration information of the backend server stored in the front end server according to the first configuration instruction information.
  • the preset database is a hash table
  • the target address information searching submodule may include:
  • a target key value calculation subunit configured to calculate a target key value of the original address information
  • the target address information finding subunit is configured to find, in the hash table, target address information whose key value matches the target key value.
  • the processing of reading the configuration file, comparing the old and new configuration files, and searching for the configuration information are not required for each configuration information update, thereby saving processing resources.
  • the time spent updating the configuration information is saved, and the efficiency of updating the configuration information is improved.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • FIG. 7 a structural block diagram of an embodiment of an information processing system of the present application is shown, which may specifically include:
  • the front end server 701 can include:
  • a first configuration instruction information receiving module configured to provide an interface that allows the instruction information to be accessed by the device, and receive, by the interface, the first configuration instruction information sent by the instruction information control device;
  • an indication module configured to instruct the front-end server to process configuration information for the at least one back-end server according to the first configuration instruction information
  • the backend server 702 can include:
  • An access request scheduling receiving module configured to receive an access request that is sent by the front-end server according to configuration information of the back-end server;
  • the instruction information control device 703 is configured to access the front-end server, and send the first configuration instruction information to the front-end server through an interface provided by the front-end server.
  • the embodiment of the present application does not need to perform the processing of reading the configuration file, comparing the old and new configuration files, and searching for the configuration information every time the configuration information is updated, thereby saving processing resources. At the same time, the time spent updating the configuration information is saved, and the efficiency of updating the configuration information is improved.
  • the updated configuration information can take effect in a short period of time and restore the service to the user, improving the user experience.
  • embodiments of the embodiments of the present application can be provided as a method, apparatus, or computer program product. Therefore, the embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, embodiments of the present application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
  • RAM random access memory
  • ROM read only memory
  • Memory is an example of a computer readable medium.
  • Computer readable media includes both permanent and non-persistent, removable and non-removable media.
  • Information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
  • computer readable media does not include non-persistent computer readable media, such as modulated data signals and carrier waves.
  • Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
  • These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal device to produce a machine such that instructions are executed by a processor of a computer or other programmable data processing terminal device
  • Means are provided for implementing the functions specified in one or more of the flow or in one or more blocks of the flow chart.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the instruction device implements the functions specified in one or more blocks of the flowchart or in a flow or block of the flowchart.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请实施例提供了一种信息处理方法,其特征在于,包括:提供允许指令信息控制设备访问的接口,并通过所述接口接收所述指令信息控制设备发送的第一配置指令信息;根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息。根据本申请实施例,无须每次配置信息更新都进行读取配置文件、比对新旧配置文件和查找配置信息的处理,节省了处理资源。同时,也节省了配置信息更新耗费的时间,提升了配置信息更新的效率

Description

一种信息处理方法、装置和系统 技术领域
本申请涉及互联网技术领域,特别是涉及一种信息处理方法、一种信息处理装置和一种信息处理系统。
背景技术
在云计算场景下,大量云服务的服务器都需要经常更新配置信息,以满足用户需求。以负载均衡云服务为例,需要更新前端服务器中的后端服务器的配置信息,以保证准确地将用户的访问请求调度到正常工作的后端服务器。实际应用中,通常会利用检测后端服务器工作状态的应用程序,例如Keepalived,负责对配置信息的更新处理。Keepalived是一个基于VRRP(Virtual Router Redundancy Protocol,虚拟路由冗余协议)技术的实现服务高可用方案的软件。Keepalived主要用于检测后端服务器的状态,如果有一台后端服务器死机,或工作出现故障,Keepalived将检测到,并将有故障的后端服务器从系统中剔除,当后端服务器工作正常后Keepalived自动将后端服务器加入到服务器群中。因为Keepalived的服务器状态检测应用程序的内存中,通常保存有后端服务器的配置信息的内存结构,因此可利用其进行信息更新。
具体地,在更新配置信息时,通常是首先生成一个更新后的配置文件,并触发Keepalived重新加载该配置文件。Keepalived将更新配置文件与历史配置文件进行对比,逐一查找后端服务器的配置信息是否发生变更,并针对发生变更的配置信息生成修改指令,前端服务器根据该修改指令更新后端服务器的配置信息。
然而,目前的配置信息更新方式中,需要针对每一个后端服务器的配置信息进行查找和对比处理,当云服务存在大量的后端服务器,整个信息更新过程需要耗费较多的处理资源。而且,更新过程耗费了较多的时间,造成了信息更新效率较低的问题。
发明内容
鉴于上述问题,提出了本申请实施例以便提供一种克服上述问题或者至少部分地解决上述问题的一种信息处理方法、相应的一种信息处理装置和相应的一种信息处理系统。
为了解决上述问题,本申请公开了一种信息处理方法,包括:
提供允许指令信息控制设备访问的接口,并通过所述接口接收所述指令信息控制设备发送的第一配置指令信息;
根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息。
可选地,所述前端服务器对至少一个后端服务器进行负载均衡处理。
可选地,所述根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息包括:
从所述第一配置指令信息中获取后端服务器的原始地址信息,在预置数据库中查找根据所述原始地址信息对应转换的目标地址信息;
根据所述目标地址信息生成第二配置指令信息,以供所述前端服务器对所述目标地址信息指示的后端服务器的配置信息进行处理。
可选地,所述预置数据库为哈希表,所述在预置数据库中查找根据所述原始地址信息对应转换的目标地址信息包括:
计算所述原始地址信息的目标关键值;
在所述哈希表中查找关键值匹配于所述目标关键值的目标地址信息。
可选地,所述根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息包括:
根据所述第一配置指令信息指示前端服务器针对保存在所述前端服务器中的后端服务器的配置信息进行增加、删除和/或修改处理。
可选地,所述方法还包括:
当在所述哈希表中查找不到关键值匹配于所述目标关键值的目标地址信息,针对所述原始地址信息添加异常标识并生成记录日志。
为了解决上述问题,本申请还公开了一种信息处理装置,包括:
第一配置指令信息接收模块,用于提供允许指令信息控制设备访问的接口,并通过所述接口接收所述指令信息控制设备发送的第一配置指令信息;
指示模块,用于根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息。
可选地,所述前端服务器对至少一个后端服务器进行负载均衡处理。
可选地,所述指示模块包括:
目标地址信息查找子模块,用于从所述第一配置指令信息中获取后端服务器的原始地址信息,在预置数据库中查找根据所述原始地址信息对应转换的目标地址信息;
第二配置指令信息生成子模块,用于根据所述目标地址信息生成第二配置指令信息,以供所述前端服务器对所述目标地址信息指示的后端服务器的配置信息进行处理。
可选地,所述预置数据库为哈希表,所述目标地址信息查找子模块包括:
目标关键值计算子单元,用于计算所述原始地址信息的目标关键值;
目标地址信息查找子单元,用于在所述哈希表中查找关键值匹配于所述目标关键值的目标地址信息。
可选地,所述指示模块包括:
配置信息处理子模块,用于根据所述第一配置指令信息指示前端服务器针对保存在所述前端服务器中的后端服务器的配置信息进行增加、删除和/或修改处理。
可选地,所述装置还包括:
异常标识添加模块,用于当在所述哈希表中查找不到关键值匹配于所述目标关键值的目标地址信息,针对所述原始地址信息添加异常标识并生成记录日志。
为了解决上述问题,本申请还公开了一种信息处理系统,包括:
前端服务器、后端服务器和指令信息控制设备;
所述前端服务器包括:
第一配置指令信息接收模块,用于提供允许指令信息控制设备访问的接口,并通过所述接口接收所述指令信息控制设备发送的第一配置指令信息;
指示模块,用于根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息;
所述后端服务器包括:
访问请求调度接收模块,用于接收所述前端服务器根据所述后端服务器的配置信息调度的访问请求;
所述指令信息控制设备,用于访问所述前端服务器,并通过所述前端服务器提供的接口将所述第一配置指令信息下发至所述前端服务器。
本申请实施例包括以下优点:
相比起目前的通过配置文件进行信息处理的方式,本申请实施例无须每次配置信息更新都进行读取配置文件、比对新旧配置文件和查找配置信息的处理,节省了处理资源。同时,也节省了配置信息更新耗费的时间,提升了配置信息更新的效率。
而且,在响应用户的访问请求等的实时性要求较高的场景中,更新的配置信息在较短的时间内可以生效并恢复对用户的服务,改善了用户体验。
附图说明
图1是本申请的一种信息处理方法实施例一的步骤流程图;
图2是本申请的一种信息处理方法实施例二的步骤流程图;
图3是本申请的一种信息处理装置实施例一的结构框图;
图4是本申请的一种信息处理装置实施例二的结构框图;
图5是本申请的一种基于Keepalived的Hotconf接口的信息处理流程图;
图6是本申请的一种基于拓扑结构的信息更新系统示意图;
图7是本申请的一种信息处理系统实施例的结构框图。
具体实施方式
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。
负载均衡云服务的应用场景中,通常是将多个后端服务器(Real Server,RS)组织成一个虚拟服务器,以便于用户访问。针对用户的访问请求,可以由前端服务器将流量转发调度至其中一个或多个的后端服务器,以实现后端服务器的负载均衡。实际应用中,可能部分后端服务器因为存储空间不足或处理负载过大等的问题,而无法正常服务,针对这些异常的后端服务器,需要更新前端服务器中的后端服务器的配置信息,以重新配置后端服务器,避免将流量转发至异常的后端服务器。
采用Keepalived对后端服务器的配置信息的更新方式中,通常是通过比对新旧配置信息,根据发生更改的配置信息相应生成修改指示信息以更新其配置信息。
具体地,可以首先生成包含有后端服务器的配置信息的配置文件,并触发Keepalived加载该配置文件,根据配置文件中关于后端服务器的相关配置信息,生成内存结构,即每一个后端服务器的配置信息都会生成一个 相应的内存结构,内存结构之间通过链表连结。
当需要进行配置信息更新时,可以触发Keepalived重新加载更新的配置文件。针对更新的配置文件和历史配置文件,Keepalived首先从历史配置文件中选取一个后端服务器的配置信息,然后在更新的配置文件中按序查找是否有对应的后端服务器的配置信息,根据查找结果相应对配置信息进行更新。
根据目前的更新方式,假如有n个后端服务器,则每次更新需要进行查找的次数为n(n+1)/2次,然而,负载均衡云服务系统中往往具有上万台的后端服务器,根据目前的更新方式进行查找处理会非常耗时,而且还会导致更新的配置信息要较长时间才能生效,造成较长时间的服务不可用的情况,影响了用户体验。
参照图1,示出了本申请的一种信息处理方法实施例一的步骤流程图,具体可以包括如下步骤:
步骤101,提供允许指令信息控制设备访问的接口,并通过所述接口接收所述指令信息控制设备发送的第一配置指令信息。
本申请实施例中,具体地,可以通过TCP监听的方式向指令信息控制设备提供一个允许其访问的接口,以供指令信息控制设备修改根据配置信息生成的内存结构。实际应用中,指令信息控制设备可以是负责全局配置信息更新的上层控制系统。
当通过服务器状态检测应用程序进行配置信息的处理时,可以向指令信息控制设备开放一个特定接口,以供指令信息控制设备调用应用程序的内存中保存有的配置信息的内存结构。例如,通过Keepalived处理配置信息时,可以设置Keepalived向指令信息控制设备开放Hotconf接口,以供指令信息控制设备调用Keepalived内存中配置信息的内存结构。此外需要说明的是,Keepalived的Hotconf原本用于应用程序的热配置功能,热配置功能可以使得应用程序在运行时进行升级,而不需要重新启动和加载配置文件。在本申请实施例的方案中,可以利用Keepalived的对外开放的Hotconf接口供指令信息控制设备访问,以接收第一配置指令信息。
当然,本领域技术人员可以根据实际使用的应用程序开放供指令信息控制设备访问的接口。
通过开放给指令信息控制设备访问的接口,可以接收到指令信息控制设备发送的第一配置指令信息。
步骤102,根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息。
作为本发明实施例的优选示例,所述根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息包括:
根据所述第一配置指令信息指示前端服务器针对保存在所述前端服务器中的后端服务器的配置信息进行增加、删除和/或修改处理。
该第一配置指令信息可以包括有后端服务器的地址信息和相应的操作处理信息。后端服务器的地址信息可以作为后端服务器的标识,用于确定所针对的后端服务器的配置信息;操作处理信息用于确定对所针对的后端服务器的配置信息进行增加、删除或修改等的操作处理。
可以根据该第一配置指令信息指示前端服务器对一个或多个后端服务器的配置信息进行增加、删除或修改等的操作处理。或者,针对于负载均衡云服务系统,第一配置指令信息中所包含的后端服务器的地址信息并非后端服务器在其虚拟网络中的唯一确定的地址信息。因此可以先从第一配置指令信息中获取后端服务器的原始地址信息,并利用该原始地址信息在预置数据库中查找后端服务器在其所属的网络中唯一确定的目标地址信息,利用该目标地址信息生成一个第二配置指令信息,用于指示前端服务器对一个或多个后端服务器的配置信息进行增加、删除或修改等的操作处理。
其中,负载均衡云服务系统中的前端服务器可以为LVS(Linux Virtual Server,Linux虚拟服务器),在LVS上可以运行IPVS(IP Virtual Server,IP虚拟服务交换机),通过IPVS中位于内核层面的数据包转发模块,实现对多个后端服务器的流量转发和负载均衡。实际应用中,可以将Keepalived 等的服务器状态检测应用程序安装在LVS上。
前端服务器可以根据生成的修改指令相应更新本地的后端服务器的配置信息,从而可以根据更新的配置信息,将用户访问请求数据包转发调度到适合的后端服务器。
需要说明的是,本申请实施例所提供的信息更新方式不仅适用于负载均衡云服务系统,还可以适用于云计算场景下的其他云服务。本领域技术人员可以根据实际需要,利用本申请实施例所提供的核心构思更新其他类型的信息,例如通过对外开放的接口接收路由表更新指令信息,根据接收的路由表更新指令信息,指示前端服务器更新其路由表。
需要进一步说明的是,实际应用中可以由前端服务器执行上述的实施方式。具体地,可以将服务器状态检测应用程序部署在前端服务器上,通过服务器状态检测应用程序向指令信息控制设备开放访问接口,以接收指令信息控制设备发送的第一配置指令信息,根据接收到的第一配置指令信息,对所保存的后端服务器的配置信息进行处理。
此外,也可以单独部署一个向指令信息控制设备开放访问接口的配置信息更新服务器,由配置信息更新服务器接收指令信息控制设备发送的第一配置指令信息。配置信息更新服务器根据接收到的第一配置指令信息指示前端服务器对其所保存的后端服务器的配置信息进行处理。
根据本申请实施例,通过提供允许指令信息控制设备访问的接口,并通过该接口接收用于指示前端服务器处理后端服务器的配置信息的第一配置指令信息。相比起目前的通过配置文件进行信息处理的方式,本申请实施例无须每次配置信息更新都进行读取配置文件、比对新旧配置文件和查找配置信息的处理,节省了处理资源。同时,也节省了配置信息更新耗费的时间,提升了配置信息更新的效率。
而且,在响应用户的访问请求等的实时性要求较高的场景中,更新的配置信息在较短的时间内可以生效并恢复对用户的服务,改善了用户体验。
参照图2,示出了本申请的一种信息处理方法实施例二的步骤流程图,具体可以包括如下步骤:
步骤201,提供允许指令信息控制设备访问的接口,并通过所述接口接收所述指令信息控制设备发送的第一配置指令信息。
通过开放给指令信息控制设备访问的接口,可以接收到指令信息控制设备发送给的第一配置指令信息。
步骤202,从所述第一配置指令信息中获取后端服务器的原始地址信息,在预置数据库中查找根据所述原始地址信息对应转换的目标地址信息。
负载均衡云服务的应用场景中,可以从指令信息控制设备发送的第一配置指令信息中获取到后端服务器的原始地址信息,例如后端服务器的VIP地址192.168.1.1:80。
因为原始地址信息的信息结构比较复杂,将其存储在数据库后需要逐一比对,导致查找效率较低。因此,可以在预置数据库中存储根据原始地址信息转换的目标地址信息。转换的方式可以有多种,例如利用哈希表的映射方式,将VIP地址转换成一个较简单的数值,以便于信息的查找。
负载均衡云服务的应用场景中,前端服务器可以对处于第一网络中的至少一个后端服务器进行负载均衡处理。然而,指令信息控制设备所发送的第一配置指令信息中,所包含的后端服务器的地址信息是在整个网络范围内的原始地址信息,与后端服务器在其所属的虚拟网络中的地址信息并不相同,根据原始地址无法确定指令信息所针对的后端服务器。因此,可以在第一配置指令信息中获取后端服务器在第二网络中的原始地址信息,根据获取的原始地址信息,在预置数据库中查找后端服务器在其所属的第一网络中的目标地址信息。作为本发明实施例的优选示例,所述预置数据库可以为哈希表,所述在预置数据库中查找根据所述原始地址信息对应转换的目标地址信息可以包括以下子步骤:
子步骤S11,计算所述原始地址信息的目标关键值。
子步骤S12,在所述哈希表中查找关键值匹配于所述目标关键值的目标地址信息。
可以基于原始地址信息计算其目标关键值,例如可以通过哈希算法(Hash)进行计算。利用计算得到的目标关键值,在哈希表中查找到匹配于该目标关键值的地址信息,作为对应的后端服务器的目标地址信息。
相比起在基于链表连结的内存结构中逐条对比的查找方式,利用哈希表存储后端服务器的配置信息,优化了根据配置信息生成的内存结构的组织形式,并结合哈希算法的查找方式,提升了对后端服务器的目标地址信息的查找效率。
子步骤S13,当在所述哈希表中查找不到关键值匹配于所述目标关键值的目标地址信息,针对所述原始地址信息添加异常标识并生成记录日志。
当查找不到匹配的目标地址信息时,表明第一配置指令信息中包含的后端服务器的原始地址信息有误,可以相应添加异常标识并生成记录日志。此外还可以打印包含有原始地址错误的记录日志,并结束更新流程。
步骤203,根据所述目标地址信息生成第二配置指令信息,以供所述前端服务器对所述目标地址信息指示的后端服务器的配置信息进行处理。
在查找到后端服务器的目标地址信息后,可以生成一个包含有该目标地址信息的第二配置指令信息。前端服务器根据第二配置指令信息中的目标地址信息,可以确定需要进行处理的后端服务器。
根据本申请实施例,在负载均衡云服务的配置信息更新的应用场景中,无须每次配置信息更新都进行读取配置文件、比对新旧配置文件和查找配置信息的处理,节省了处理资源。同时,也节省了配置信息更新耗费的时间,提升了配置信息更新的效率。
为了便于本领域技术人员理解本申请实施例,以下结合图5和图6对 本申请实施例进行说明。
图5示出了基于Keepalived的Hotconf接口的信息处理流程图。从图中可见,上层控制系统通过Keepalived对外提供的Hotconf接口,下发删除VIP为192.168.1.1:80的后端服务器的指令。Keepalived应用程序通过哈希算法将192.168.1.1:80转换为一个目标关键值Key,通过这个Key在哈希表中查找对应的后端服务器。如果查找到对应的后端服务器,则生成相应的删除指令消息,并下发给前端服务器的IPVS内核模块,并结束流程。如果没有查找到对应的后端服务器,则打印错误日志,并结束流程。
图6示出了一种基于拓扑结构的信息更新系统示意图。从图中可见,本申请的信息更新系统可以基于拓扑架构而建立,其中部署有上层控制系统,前端服务器以及多个后端服务器,其中,前端服务器可以设置为安装有Keepalived的LVS服务器。上层控制系统可以通过前端服务器中对外开放的Keepalived的Hotconf接口,将第一配置指令信息发送给前端服务器。前端服务器可以根据接收到的第一配置指令信息,相应对保存在Keepalived中的后端服务器的配置信息进行增加、删除或修改等的操作处理,以便于前端服务器可以根据更新后的配置信息对多个后端服务器进行负载均衡的调度处理。
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请实施例并不受所描述的动作顺序的限制,因为依据本申请实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请实施例所必须的。
参照图3,示出了本申请的一种信息处理装置实施例一的结构框图,具体可以包括如下模块:
第一配置指令信息接收模块301,用于提供允许指令信息控制设备访问的接口,并通过所述接口接收所述指令信息控制设备发送的第一配置指令信息。
指示模块302,用于根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息。
相比起目前的通过配置文件进行信息处理的方式,本申请实施例无须每次配置信息更新都进行读取配置文件、比对新旧配置文件和查找配置信息的处理,节省了处理资源。同时,也节省了配置信息更新耗费的时间,提升了配置信息更新的效率。
而且,在响应用户的访问请求等的实时性要求较高的场景中,更新的配置信息在较短的时间内可以生效并恢复对用户的服务,改善了用户体验。
参照图4,示出了本申请的一种信息处理装置实施例二的结构框图,具体可以包括如下模块:
第一配置指令信息接收模块401,用于提供允许指令信息控制设备访问的接口,并通过所述接口接收所述指令信息控制设备发送的第一配置指令信息。
指示模块402,用于根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息。
异常标识添加模块403,用于当在所述哈希表中查找不到关键值匹配于所述目标关键值的目标地址信息,针对所述原始地址信息添加异常标识并生成记录日志。
作为本申请实施例的优选示例,所述前端服务器对至少一个后端服务器进行负载均衡处理。
作为本申请实施例的优选示例一,所述指示模块402可以包括:
目标地址信息查找子模块,用于从所述第一配置指令信息中获取后端服务器的原始地址信息,在预置数据库中查找根据所述原始地址信息对应转换的目标地址信息;
第二配置指令信息生成子模块,用于根据所述目标地址信息生成第二配置指令信息,以供所述前端服务器对所述目标地址信息指示的后端服务器的配置信息进行处理。
作为本申请实施例的优选示例二,所述指示模块402可以包括:
配置信息处理子模块,用于根据所述第一配置指令信息指示前端服务器针对保存在所述前端服务器中的后端服务器的配置信息进行增加、删除和/或修改处理。
作为本申请实施例的优选示例,所述预置数据库为哈希表,所述目标地址信息查找子模块可以包括:
目标关键值计算子单元,用于计算所述原始地址信息的目标关键值;
目标地址信息查找子单元,用于在所述哈希表中查找关键值匹配于所述目标关键值的目标地址信息。
根据本申请实施例,在负载均衡云服务的配置信息更新的应用场景中,无须每次配置信息更新都进行读取配置文件、比对新旧配置文件和查找配置信息的处理,节省了处理资源。同时,也节省了配置信息更新耗费的时间,提升了配置信息更新的效率。
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
参照图7,示出了本申请的一种信息处理系统实施例的结构框图,具体可以包括:
前端服务器701、后端服务器702和指令信息控制设备703;
所述前端服务器701可以包括:
第一配置指令信息接收模块,用于提供允许指令信息控制设备访问的接口,并通过所述接口接收所述指令信息控制设备发送的第一配置指令信息;
指示模块,用于根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息;
所述后端服务器702可以包括:
访问请求调度接收模块,用于接收所述前端服务器根据所述后端服务器的配置信息调度的访问请求;
所述指令信息控制设备703,可以用于访问所述前端服务器,并通过所述前端服务器提供的接口将所述第一配置指令信息下发至所述前端服务器。
相比起目前的通过配置文件进行信息处理的方式,本申请实施例无须每次配置信息更新都进行读取配置文件、比对新旧配置文件和查找配置信息的处理,节省了处理资源。同时,也节省了配置信息更新耗费的时间,提升了配置信息更新的效率。
而且,在响应用户的访问请求等的实时性要求较高的场景中,更新的配置信息在较短的时间内可以生效并恢复对用户的服务,改善了用户体验。
对于系统实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。
本领域内的技术人员应明白,本申请实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本申请实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
在一个典型的配置中,所述计算机设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非持续性的电脑可读媒体(transitory media),如调制的数据信号和载波。
本申请实施例是参照根据本申请实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本申请实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请实施例范围的所有变更和修改。
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。
以上对本申请所提供的一种信息处理方法、一种信息处理装置和一种信息处理系统,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (13)

  1. 一种信息处理方法,其特征在于,包括:
    提供允许指令信息控制设备访问的接口,并通过所述接口接收所述指令信息控制设备发送的第一配置指令信息;
    根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息。
  2. 根据权利要求1所述的方法,其特征在于,所述前端服务器对至少一个后端服务器进行负载均衡处理。
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息包括:
    从所述第一配置指令信息中获取后端服务器的原始地址信息,在预置数据库中查找根据所述原始地址信息对应转换的目标地址信息;
    根据所述目标地址信息生成第二配置指令信息,以供所述前端服务器对所述目标地址信息指示的后端服务器的配置信息进行处理。
  4. 根据权利要求3所述的方法,其特征在于,所述预置数据库为哈希表,所述在预置数据库中查找根据所述原始地址信息对应转换的目标地址信息包括:
    计算所述原始地址信息的目标关键值;
    在所述哈希表中查找关键值匹配于所述目标关键值的目标地址信息。
  5. 根据权利要求1所述的方法,其特征在于,所述根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息包括:
    根据所述第一配置指令信息指示前端服务器针对保存在所述前端服务器中的后端服务器的配置信息进行增加、删除和/或修改处理。
  6. 根据权利要求4所述的方法,其特征在于,所述方法还包括:
    当在所述哈希表中查找不到关键值匹配于所述目标关键值的目标地址信息,针对所述原始地址信息添加异常标识并生成记录日志。
  7. 一种信息处理装置,其特征在于,包括:
    第一配置指令信息接收模块,用于提供允许指令信息控制设备访问的接口,并通过所述接口接收所述指令信息控制设备发送的第一配置指令信息;
    指示模块,用于根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息。
  8. 根据权利要求7所述的装置,其特征在于,所述前端服务器对至少一个后端服务器进行负载均衡处理。
  9. 根据权利要求8所述的装置,其特征在于,所述指示模块包括:
    目标地址信息查找子模块,用于从所述第一配置指令信息中获取后端服务器的原始地址信息,在预置数据库中查找根据所述原始地址信息对应转换的目标地址信息;
    第二配置指令信息生成子模块,用于根据所述目标地址信息生成第二配置指令信息,以供所述前端服务器对所述目标地址信息指示的后端服务器的配置信息进行处理。
  10. 根据权利要求9所述的装置,其特征在于,所述预置数据库为哈希表,所述目标地址信息查找子模块包括:
    目标关键值计算子单元,用于计算所述原始地址信息的目标关键值;
    目标地址信息查找子单元,用于在所述哈希表中查找关键值匹配于所述目标关键值的目标地址信息。
  11. 根据权利要求7所述的装置,其特征在于,所述指示模块包括:
    配置信息处理子模块,用于根据所述第一配置指令信息指示前端服务器针对保存在所述前端服务器中的后端服务器的配置信息进行增加、删除 和/或修改处理。
  12. 根据权利要求10所述的装置,其特征在于,所述装置还包括:
    异常标识添加模块,用于当在所述哈希表中查找不到关键值匹配于所述目标关键值的目标地址信息,针对所述原始地址信息添加异常标识并生成记录日志。
  13. 一种信息处理系统,其特征在于,包括:
    前端服务器、后端服务器和指令信息控制设备;
    所述前端服务器包括:
    第一配置指令信息接收模块,用于提供允许指令信息控制设备访问的接口,并通过所述接口接收所述指令信息控制设备发送的第一配置指令信息;
    指示模块,用于根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息;
    所述后端服务器包括:
    访问请求调度接收模块,用于接收所述前端服务器根据所述后端服务器的配置信息调度的访问请求;
    所述指令信息控制设备,用于访问所述前端服务器,并通过所述前端服务器提供的接口将所述第一配置指令信息下发至所述前端服务器。
PCT/CN2017/070631 2016-01-18 2017-01-09 一种信息处理方法、装置和系统 WO2017124933A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610031093.3A CN106982236B (zh) 2016-01-18 2016-01-18 一种信息处理方法、装置和系统
CN201610031093.3 2016-01-18

Publications (1)

Publication Number Publication Date
WO2017124933A1 true WO2017124933A1 (zh) 2017-07-27

Family

ID=59339914

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/070631 WO2017124933A1 (zh) 2016-01-18 2017-01-09 一种信息处理方法、装置和系统

Country Status (3)

Country Link
CN (1) CN106982236B (zh)
TW (1) TWI728036B (zh)
WO (1) WO2017124933A1 (zh)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144979A (zh) * 2018-08-15 2019-01-04 中国建设银行股份有限公司 一种基于分布式应用系统的数据处理方法及装置
CN109597678A (zh) * 2018-10-09 2019-04-09 阿里巴巴集团控股有限公司 任务处理方法及装置
CN110990052A (zh) * 2019-11-29 2020-04-10 杭州迪普科技股份有限公司 一种配置保存方法及装置
CN111212399A (zh) * 2019-12-23 2020-05-29 新奇点企业管理集团有限公司 数据传输方法、装置、计算机存储介质及电子设备
CN111309371A (zh) * 2020-01-14 2020-06-19 网易(杭州)网络有限公司 一种查询方法和装置
CN111753205A (zh) * 2020-06-28 2020-10-09 北京百度网讯科技有限公司 信息处理方法、装置、电子设备及存储介质
CN112579933A (zh) * 2020-12-24 2021-03-30 中国农业银行股份有限公司 一种信息处理方法及装置
CN113904724A (zh) * 2021-10-12 2022-01-07 中国人民解放军战略支援部队信息工程大学 通信装置及通信系统
CN115150164A (zh) * 2022-06-30 2022-10-04 北京天融信网络安全技术有限公司 请求验证方法、装置、电子设备和计算机可读存储介质
CN115567392A (zh) * 2022-10-10 2023-01-03 浙江保融科技股份有限公司 一种客户内部业务系统自动部署升级方法

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109343891B (zh) * 2017-08-01 2022-02-18 阿里巴巴集团控股有限公司 数据处理的系统、方法及装置
CN109005071B (zh) * 2018-09-05 2021-05-25 网宿科技股份有限公司 一种决策部署方法和调度设备
CN109582485B (zh) * 2018-10-26 2022-05-03 创新先进技术有限公司 一种配置变更异常检测方法及装置
CN110162512B (zh) * 2019-05-05 2021-11-09 中国银行股份有限公司 一种日志检索方法、装置及存储介质
CN110334103B (zh) * 2019-05-09 2021-11-02 北京顺丰同城科技有限公司 推荐服务的更新方法、提供装置、访问装置和推荐系统
CN115087958B (zh) * 2020-03-12 2024-01-16 华为技术有限公司 数据更新方法、装置和设备
CN111726249B (zh) * 2020-06-02 2022-10-04 中盈优创资讯科技有限公司 网络设备的配置文件处理方法及装置
CN114531493B (zh) * 2020-11-23 2024-03-26 北京达佳互联信息技术有限公司 一种请求处理方法、装置、电子设备及存储介质
CN116708063A (zh) * 2022-12-23 2023-09-05 荣耀终端有限公司 日志上报方法、电子设备、云服务器及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103490963A (zh) * 2013-09-13 2014-01-01 天脉聚源(北京)传媒科技有限公司 一种控制局域网内被控设备的方法及装置
CN104965726A (zh) * 2015-03-10 2015-10-07 腾讯科技(深圳)有限公司 配置更新方法、装置及系统
CN105099761A (zh) * 2015-06-26 2015-11-25 广东欧珀移动通信有限公司 一种集中管理客户端的配置信息的方法和系统
CN105187230A (zh) * 2015-06-25 2015-12-23 走遍世界(北京)信息技术有限公司 服务器的切换方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7644120B2 (en) * 2000-09-15 2010-01-05 Invensys Systems, Inc. Industrial process control data access server supporting multiple client data exchange protocols
TWI245521B (en) * 2004-06-01 2005-12-11 Realtek Semiconductor Corp Network address-port translation device and method
US7996482B1 (en) * 2007-07-31 2011-08-09 Qurio Holdings, Inc. RDMA based real-time video client playback architecture
CN104090891B (zh) * 2013-12-12 2016-05-04 深圳市腾讯计算机系统有限公司 数据处理方法、装置及系统
CN104038376A (zh) * 2014-06-30 2014-09-10 浪潮(北京)电子信息产业有限公司 一种管理真实服务器的方法、装置及lvs集群系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103490963A (zh) * 2013-09-13 2014-01-01 天脉聚源(北京)传媒科技有限公司 一种控制局域网内被控设备的方法及装置
CN104965726A (zh) * 2015-03-10 2015-10-07 腾讯科技(深圳)有限公司 配置更新方法、装置及系统
CN105187230A (zh) * 2015-06-25 2015-12-23 走遍世界(北京)信息技术有限公司 服务器的切换方法及装置
CN105099761A (zh) * 2015-06-26 2015-11-25 广东欧珀移动通信有限公司 一种集中管理客户端的配置信息的方法和系统

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144979A (zh) * 2018-08-15 2019-01-04 中国建设银行股份有限公司 一种基于分布式应用系统的数据处理方法及装置
CN109597678A (zh) * 2018-10-09 2019-04-09 阿里巴巴集团控股有限公司 任务处理方法及装置
CN110990052A (zh) * 2019-11-29 2020-04-10 杭州迪普科技股份有限公司 一种配置保存方法及装置
CN110990052B (zh) * 2019-11-29 2023-09-26 杭州迪普科技股份有限公司 一种配置保存方法及装置
CN111212399B (zh) * 2019-12-23 2023-08-18 新奇点企业管理集团有限公司 数据传输方法、装置、计算机存储介质及电子设备
CN111212399A (zh) * 2019-12-23 2020-05-29 新奇点企业管理集团有限公司 数据传输方法、装置、计算机存储介质及电子设备
CN111309371A (zh) * 2020-01-14 2020-06-19 网易(杭州)网络有限公司 一种查询方法和装置
CN111753205A (zh) * 2020-06-28 2020-10-09 北京百度网讯科技有限公司 信息处理方法、装置、电子设备及存储介质
CN111753205B (zh) * 2020-06-28 2024-03-19 北京百度网讯科技有限公司 信息处理方法、装置、电子设备及存储介质
CN112579933A (zh) * 2020-12-24 2021-03-30 中国农业银行股份有限公司 一种信息处理方法及装置
CN112579933B (zh) * 2020-12-24 2023-12-08 中国农业银行股份有限公司 一种信息处理方法及装置
CN113904724A (zh) * 2021-10-12 2022-01-07 中国人民解放军战略支援部队信息工程大学 通信装置及通信系统
CN113904724B (zh) * 2021-10-12 2022-11-22 中国人民解放军战略支援部队信息工程大学 通信装置及通信系统
CN115150164A (zh) * 2022-06-30 2022-10-04 北京天融信网络安全技术有限公司 请求验证方法、装置、电子设备和计算机可读存储介质
CN115150164B (zh) * 2022-06-30 2023-09-26 北京天融信网络安全技术有限公司 请求验证方法、装置、电子设备和计算机可读存储介质
CN115567392A (zh) * 2022-10-10 2023-01-03 浙江保融科技股份有限公司 一种客户内部业务系统自动部署升级方法
CN115567392B (zh) * 2022-10-10 2023-08-15 浙江保融科技股份有限公司 一种客户内部业务系统自动部署升级方法

Also Published As

Publication number Publication date
TWI728036B (zh) 2021-05-21
CN106982236B (zh) 2020-07-28
CN106982236A (zh) 2017-07-25
TW201730789A (zh) 2017-09-01

Similar Documents

Publication Publication Date Title
WO2017124933A1 (zh) 一种信息处理方法、装置和系统
EP3547648B1 (en) Service processing and consensus method and device
US10997211B2 (en) Systems and methods for database zone sharding and API integration
US10977277B2 (en) Systems and methods for database zone sharding and API integration
US10715485B2 (en) Managing dynamic IP address assignments
US11368407B2 (en) Failover management using availability groups
JP2017538200A (ja) 分散環境におけるサービスアドレッシング
JP2016053951A (ja) 情報中心ネットワークにわたって分布及びフォールトトレラント状態を維持するシステム及び方法
WO2018233630A1 (zh) 故障发现
US10673694B2 (en) Private network mirroring
US20170329828A1 (en) Metadata tables for time-series data management
US11347808B1 (en) Dynamically-adaptive bloom-filter
US11336588B2 (en) Metadata driven static determination of controller availability
CN107181636B (zh) 一种负载均衡系统中的健康检查方法及装置
US11953997B2 (en) Systems and methods for cross-regional back up of distributed databases on a cloud service
US10078655B2 (en) Reconciling sensor data in a database
WO2016101759A1 (zh) 一种数据路由方法、数据管理装置和分布式存储系统
EP3080717A1 (en) Cache and non-cache usage in a distributed storage system
US10924452B1 (en) Auditing IP address assignments
US11593669B1 (en) Systems, methods, and apparatuses for detecting and creating operation incidents
US11422882B1 (en) Systems, methods, and apparatuses for determining causality for anomalies and/or events
WO2016095716A1 (zh) 一种故障信息处理方法与相关装置
CN113301173A (zh) 域名更新系统及方法、消息转发方法、服务器
CN113722157B (zh) 一种虚拟机数据管理方法、装置、设备及介质
CN114172853A (zh) 流量转发及裸机服务器的配置方法、装置

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: 17740964

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: 17740964

Country of ref document: EP

Kind code of ref document: A1