[go: up one dir, main page]

CN106982236B - An information processing method, device and system - Google Patents

An information processing method, device and system Download PDF

Info

Publication number
CN106982236B
CN106982236B CN201610031093.3A CN201610031093A CN106982236B CN 106982236 B CN106982236 B CN 106982236B CN 201610031093 A CN201610031093 A CN 201610031093A CN 106982236 B CN106982236 B CN 106982236B
Authority
CN
China
Prior art keywords
information
end server
configuration
instruction information
address information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610031093.3A
Other languages
Chinese (zh)
Other versions
CN106982236A (en
Inventor
许经纬
陈子昂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610031093.3A priority Critical patent/CN106982236B/en
Priority to PCT/CN2017/070631 priority patent/WO2017124933A1/en
Priority to TW106101583A priority patent/TWI728036B/en
Publication of CN106982236A publication Critical patent/CN106982236A/en
Application granted granted Critical
Publication of CN106982236B publication Critical patent/CN106982236B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • 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] 

Landscapes

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

Abstract

An embodiment of the present application provides an information processing method, including: providing an interface allowing an instruction information control device to access, and receiving first configuration instruction information sent by the instruction information control device through the interface; and instructing the front-end server to process the configuration information of at least one back-end server according to the first configuration instruction information. According to the embodiment of the application, the configuration files do not need to be read, the old configuration files are compared with the new configuration files, and the configuration information is searched without updating the configuration information every time, so that the processing resources are saved. Meanwhile, time consumed by updating the configuration information is saved, and the efficiency of updating the configuration information is improved.

Description

一种信息处理方法、装置和系统An information processing method, device and system

技术领域technical field

本申请涉及互联网技术领域,特别是涉及一种信息处理方法、一种信息处理装置和一种信息处理系统。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.

背景技术Background technique

在云计算场景下,大量云服务的服务器都需要经常更新配置信息,以满足用户需求。以负载均衡云服务为例,需要更新前端服务器中的后端服务器的配置信息,以保证准确地将用户的访问请求调度到正常工作的后端服务器。实际应用中,通常会利用检测后端服务器工作状态的应用程序,例如Keepalived,负责对配置信息的更新处理。Keepalived是一个基于VRRP(Virtual Router Redundancy Protocol,虚拟路由冗余协议)技术的实现服务高可用方案的软件。Keepalived主要用于检测后端服务器的状态,如果有一台后端服务器死机,或工作出现故障,Keepalived将检测到,并将有故障的后端服务器从系统中剔除,当后端服务器工作正常后Keepalived自动将后端服务器加入到服务器群中。因为Keepalived的服务器状态检测应用程序的内存中,通常保存有后端服务器的配置信息的内存结构,因此可利用其进行信息更新。In a cloud computing scenario, servers of a large number of cloud services need to frequently update configuration information to meet user needs. Taking the load balancing cloud service as an example, the configuration information of the back-end server in the front-end server needs to be updated to ensure that the user's access request is accurately dispatched to the back-end server that is working normally. In practical applications, applications that detect the working status of the backend server, such as Keepalived, are usually used to update the configuration information. Keepalived is a software based on VRRP (Virtual Router Redundancy Protocol, Virtual Router Redundancy Protocol) technology that implements a high-availability solution for services. Keepalived is mainly used to detect the status of the back-end server. If a back-end server crashes or the work fails, Keepalived will detect and remove the faulty back-end server from the system. When the back-end server works normally, Keepalived Automatically add backend servers to the server farm. Because Keepalived's server status detection application's memory, usually saves the memory structure of the configuration information of the back-end server, so it can be used to update the information.

具体地,在更新配置信息时,通常是首先生成一个更新后的配置文件,并触发Keepalived重新加载该配置文件。Keepalived将更新配置文件与历史配置文件进行对比,逐一查找后端服务器的配置信息是否发生变更,并针对发生变更的配置信息生成修改指令,前端服务器根据该修改指令更新后端服务器的配置信息。Specifically, when updating configuration information, an updated configuration file is usually generated first, and Keepalived is triggered to reload the configuration file. Keepalived compares the update configuration file with the historical configuration file, finds out whether the configuration information of the back-end server has changed 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.

然而,目前的配置信息更新方式中,需要针对每一个后端服务器的配置信息进行查找和对比处理,当云服务存在大量的后端服务器,整个信息更新过程需要耗费较多的处理资源。而且,更新过程耗费了较多的时间,造成了信息更新效率较低的问题。However, in the current configuration information update method, it is necessary to search and compare the configuration information of each backend server. When there are a large number of backend servers in the cloud service, the entire information update process requires more processing resources. Moreover, the update process consumes a lot of time, resulting in the problem of low information update efficiency.

发明内容SUMMARY OF THE INVENTION

鉴于上述问题,提出了本申请实施例以便提供一种克服上述问题或者至少部分地解决上述问题的一种信息处理方法、相应的一种信息处理装置和相应的一种信息处理系统。In view of the above problems, the embodiments of the present application are proposed 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.

为了解决上述问题,本申请公开了一种信息处理方法,包括:In order to solve the above problems, the present application discloses an information processing method, including:

提供允许指令信息控制设备访问的接口,并通过所述接口接收所述指令信息控制设备发送的第一配置指令信息;providing an interface that allows the instruction information control device to access, and receiving the first configuration instruction information sent by the instruction information control device through the interface;

根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息。The front-end server is instructed to process configuration information for at least one back-end server according to the first configuration instruction information.

可选地,所述前端服务器对至少一个后端服务器进行负载均衡处理。Optionally, the front-end server performs load balancing processing on at least one back-end server.

可选地,所述根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息包括:Optionally, the instructing the front-end server to process the configuration information for at least one back-end server according to the first configuration instruction information includes:

从所述第一配置指令信息中获取后端服务器的原始地址信息,在预置数据库中查找根据所述原始地址信息对应转换的目标地址信息;Obtain the original address information of the back-end server from the first configuration instruction information, and search for the target address information correspondingly converted according to the original address information in a preset database;

根据所述目标地址信息生成第二配置指令信息,以供所述前端服务器对所述目标地址信息指示的后端服务器的配置信息进行处理。The second configuration instruction information is generated according to the target address information, so that the front-end server can process the configuration information of the back-end server indicated by the target address information.

可选地,所述预置数据库为哈希表,所述在预置数据库中查找根据所述原始地址信息对应转换的目标地址信息包括:Optionally, the preset database is a hash table, and the searching in the preset database for the corresponding converted target address information according to the original address information includes:

计算所述原始地址信息的目标关键值;calculating the target key value of the original address information;

在所述哈希表中查找关键值匹配于所述目标关键值的目标地址信息。Look up the target address information whose key value matches the target key value in the hash table.

可选地,所述根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息包括:Optionally, the instructing the front-end server to process the configuration information for at least one back-end server according to the first configuration instruction information includes:

根据所述第一配置指令信息指示前端服务器针对保存在所述前端服务器中的后端服务器的配置信息进行增加、删除和/或修改处理。According to the first configuration instruction information, the front-end server is instructed to add, delete and/or modify the configuration information of the back-end server stored in the front-end server.

可选地,所述方法还包括:Optionally, the method further includes:

当在所述哈希表中查找不到关键值匹配于所述目标关键值的目标地址信息,针对所述原始地址信息添加异常标识并生成记录日志。When the target address information whose key value matches the target key value cannot be found in the hash table, an exception identifier is added to the original address information and a record log is generated.

为了解决上述问题,本申请还公开了一种信息处理装置,包括:In order to solve the above problems, the present application also discloses an information processing device, comprising:

第一配置指令信息接收模块,用于提供允许指令信息控制设备访问的接口,并通过所述接口接收所述指令信息控制设备发送的第一配置指令信息;a first configuration instruction information receiving module, configured to provide an interface that allows the instruction information control device to access, and receive the first configuration instruction information sent by the instruction information control device through the interface;

指示模块,用于根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息。The instructing module is configured to instruct the front-end server to process configuration information for at least one back-end server according to the first configuration instruction information.

可选地,所述前端服务器对至少一个后端服务器进行负载均衡处理。Optionally, the front-end server performs load balancing processing on at least one back-end server.

可选地,所述指示模块包括:Optionally, the indicating module includes:

目标地址信息查找子模块,用于从所述第一配置指令信息中获取后端服务器的原始地址信息,在预置数据库中查找根据所述原始地址信息对应转换的目标地址信息;a target address information search submodule, configured to obtain the original address information of the back-end server from the first configuration instruction information, and search for the target address information correspondingly converted according to the original address information in a preset database;

第二配置指令信息生成子模块,用于根据所述目标地址信息生成第二配置指令信息,以供所述前端服务器对所述目标地址信息指示的后端服务器的配置信息进行处理。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 can process the configuration information of the back-end server indicated by the target address information.

可选地,所述预置数据库为哈希表,所述目标地址信息查找子模块包括:Optionally, the preset database is a hash table, and the target address information search submodule includes:

目标关键值计算子单元,用于计算所述原始地址信息的目标关键值;a target key value calculation subunit, used for calculating the target key value of the original address information;

目标地址信息查找子单元,用于在所述哈希表中查找关键值匹配于所述目标关键值的目标地址信息。A target address information search subunit, configured to search the hash table for target address information whose key value matches the target key value.

可选地,所述指示模块包括:Optionally, the indicating module includes:

配置信息处理子模块,用于根据所述第一配置指令信息指示前端服务器针对保存在所述前端服务器中的后端服务器的配置信息进行增加、删除和/或修改处理。A configuration information processing submodule, configured to instruct the front-end server to add, delete and/or modify the configuration information of the back-end server stored in the front-end server according to the first configuration instruction information.

可选地,所述装置还包括:Optionally, the device further includes:

异常标识添加模块,用于当在所述哈希表中查找不到关键值匹配于所述目标关键值的目标地址信息,针对所述原始地址信息添加异常标识并生成记录日志。An exception identification adding module, configured to add an exception identification to the original address information and generate a record log when the target address information whose key value matches the target key value cannot be found in the hash table.

为了解决上述问题,本申请还公开了一种信息处理系统,包括:In order to solve the above problems, the present application also discloses an information processing system, including:

前端服务器、后端服务器和指令信息控制设备;Front-end server, back-end server and command information control equipment;

所述前端服务器包括:The front-end server includes:

第一配置指令信息接收模块,用于提供允许指令信息控制设备访问的接口,并通过所述接口接收所述指令信息控制设备发送的第一配置指令信息;a first configuration instruction information receiving module, configured to provide an interface that allows the instruction information control device to access, and receive the first configuration instruction information sent by the instruction information control device through the interface;

指示模块,用于根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息;an instruction module, configured to instruct the front-end server to process configuration information for 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 scheduled by the front-end server according to the configuration information of the back-end server;

所述指令信息控制设备,用于访问所述前端服务器,并通过所述前端服务器提供的接口将所述第一配置指令信息下发至所述前端服务器。The instruction information control device is configured to access the front-end server, and deliver the first configuration instruction information to the front-end server through an interface provided by the front-end server.

本申请实施例包括以下优点:The embodiments of the present application include the following advantages:

相比起目前的通过配置文件进行信息处理的方式,本申请实施例无须每次配置信息更新都进行读取配置文件、比对新旧配置文件和查找配置信息的处理,节省了处理资源。同时,也节省了配置信息更新耗费的时间,提升了配置信息更新的效率。Compared with the current information processing method through the configuration file, 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, which saves processing resources. At the same time, the time spent on updating the configuration information is also saved, and the efficiency of updating the configuration information is improved.

而且,在响应用户的访问请求等的实时性要求较高的场景中,更新的配置信息在较短的时间内可以生效并恢复对用户的服务,改善了用户体验。Moreover, in a scenario with high real-time requirements for responding to a user's access request, etc., the updated configuration information can take effect in a relatively short period of time and the service to the user can be resumed, thereby improving the user experience.

附图说明Description of drawings

图1是本申请的一种信息处理方法实施例一的步骤流程图;FIG. 1 is a flow chart of steps of Embodiment 1 of an information processing method of the present application;

图2是本申请的一种信息处理方法实施例二的步骤流程图;FIG. 2 is a flow chart of the steps of Embodiment 2 of an information processing method of the present application;

图3是本申请的一种信息处理装置实施例一的结构框图;3 is a structural block diagram of Embodiment 1 of an information processing apparatus according to the present application;

图4是本申请的一种信息处理装置实施例二的结构框图;4 is a structural block diagram of Embodiment 2 of an information processing apparatus according to the present application;

图5是本申请的一种基于Keepalived的Hotconf接口的信息处理流程图;Fig. 5 is a kind of information processing flow chart of the Hotconf interface based on Keepalived of the present application;

图6是本申请的一种基于拓扑结构的信息更新系统示意图;6 is a schematic diagram of a topology-based information updating system of the present application;

图7是本申请的一种信息处理系统实施例的结构框图。FIG. 7 is a structural block diagram of an embodiment of an information processing system of the present application.

具体实施方式Detailed ways

为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。In order to make the above objects, features and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and specific embodiments.

负载均衡云服务的应用场景中,通常是将多个后端服务器(Real Server,RS)组织成一个虚拟服务器,以便于用户访问。针对用户的访问请求,可以由前端服务器将流量转发调度至其中一个或多个的后端服务器,以实现后端服务器的负载均衡。实际应用中,可能部分后端服务器因为存储空间不足或处理负载过大等的问题,而无法正常服务,针对这些异常的后端服务器,需要更新前端服务器中的后端服务器的配置信息,以重新配置后端服务器,避免将流量转发至异常的后端服务器。In the application scenario of the load balancing cloud service, multiple backend servers (Real Server, RS) are usually organized into a virtual server for easy access by users. For a user's access request, the front-end server can forward and schedule the traffic to one or more of the back-end servers to achieve load balancing of the back-end servers. In practical applications, some back-end servers may not be able to serve normally due to insufficient storage space or excessive processing load. For these abnormal back-end servers, the configuration information of the back-end servers in the front-end server needs to be updated to re-configure the back-end servers. Configure backend servers to avoid forwarding traffic to abnormal backend servers.

采用Keepalived对后端服务器的配置信息的更新方式中,通常是通过比对新旧配置信息,根据发生更改的配置信息相应生成修改指示信息以更新其配置信息。In the way of updating the configuration information of the back-end server by using Keepalived, it is usually by comparing the old and new configuration information, and correspondingly generating modification instruction information according to the changed configuration information to update its configuration information.

具体地,可以首先生成包含有后端服务器的配置信息的配置文件,并触发Keepalived加载该配置文件,根据配置文件中关于后端服务器的相关配置信息,生成内存结构,即每一个后端服务器的配置信息都会生成一个相应的内存结构,内存结构之间通过链表连结。Specifically, a configuration file containing the configuration information of the back-end server can be generated first, and Keepalived is triggered to load the configuration file, and according to the relevant configuration information about the back-end server in the configuration file, a memory structure is generated, that is, the memory structure of each back-end server is generated. The configuration information will generate a corresponding memory structure, and the memory structures are linked through a linked list.

当需要进行配置信息更新时,可以触发Keepalived重新加载更新的配置文件。针对更新的配置文件和历史配置文件,Keepalived首先从历史配置文件中选取一个后端服务器的配置信息,然后在更新的配置文件中按序查找是否有对应的后端服务器的配置信息,根据查找结果相应对配置信息进行更新。When the configuration information needs to be updated, Keepalived can be triggered to reload the updated configuration file. For the updated configuration files and historical configuration files, Keepalived first selects the configuration information of a back-end server from the historical configuration files, and then searches the updated configuration files in order to see if there is a corresponding back-end server configuration information, according to the search results. Update the configuration information accordingly.

根据目前的更新方式,假如有n个后端服务器,则每次更新需要进行查找的次数为n(n+1)/2次,然而,负载均衡云服务系统中往往具有上万台的后端服务器,根据目前的更新方式进行查找处理会非常耗时,而且还会导致更新的配置信息要较长时间才能生效,造成较长时间的服务不可用的情况,影响了用户体验。According to the current update method, if there are n back-end servers, the number of searches for each update is n(n+1)/2 times. However, the load balancing cloud service system often has tens of thousands of back-end servers. It is very time-consuming for the server to perform search processing according to the current update method, and it will also take a long time for the updated configuration information to take effect, resulting in a situation where the service is unavailable for a long time, which affects the user experience.

参照图1,示出了本申请的一种信息处理方法实施例一的步骤流程图,具体可以包括如下步骤:Referring to FIG. 1, a flow chart of steps of Embodiment 1 of an information processing method of the present application is shown, which may specifically include the following steps:

步骤101,提供允许指令信息控制设备访问的接口,并通过所述接口接收所述指令信息控制设备发送的第一配置指令信息。Step 101: Provide an interface that allows the instruction information control device to access, and receive first configuration instruction information sent by the instruction information control device through the interface.

本申请实施例中,具体地,可以通过TCP监听的方式向指令信息控制设备提供一个允许其访问的接口,以供指令信息控制设备修改根据配置信息生成的内存结构。实际应用中,指令信息控制设备可以是负责全局配置信息更新的上层控制系统。In the embodiment of the present application, specifically, an interface that allows the command information control device to access may be provided to the command information control device by means of TCP monitoring, so that the command information control device can modify the memory structure generated according to the configuration information. In practical applications, the instruction information control device may be an upper-layer control system responsible for updating the global configuration information.

当通过服务器状态检测应用程序进行配置信息的处理时,可以向指令信息控制设备开放一个特定接口,以供指令信息控制设备调用应用程序的内存中保存有的配置信息的内存结构。例如,通过Keepalived处理配置信息时,可以设置Keepalived向指令信息控制设备开放Hotconf接口,以供指令信息控制设备调用Keepalived内存中配置信息的内存结构。此外需要说明的是,Keepalived的Hotconf原本用于应用程序的热配置功能,热配置功能可以使得应用程序在运行时进行升级,而不需要重新启动和加载配置文件。在本申请实施例的方案中,可以利用Keepalived的对外开放的Hotconf接口供指令信息控制设备访问,以接收第一配置指令信息。When the configuration information is processed by the server state detection application, a specific interface can be opened to the instruction information control device, so that the instruction information control device can call the memory structure of the configuration information stored in the memory of the application program. For example, when processing configuration information through Keepalived, you can set Keepalived to open the Hotconf interface to the command information control device, so that the command information control device can call the memory structure of the configuration information in the Keepalived memory. In addition, it should be noted that Keepalived's Hotconf was originally used for the hot configuration function of the application. The hot configuration function can make the application upgrade at runtime without restarting and loading the configuration file. In the solution of the embodiment of the present application, the externally open Hotconf interface of Keepalived may be used for the command information to control the device to access, so as to receive the first configuration command information.

当然,本领域技术人员可以根据实际使用的应用程序开放供指令信息控制设备访问的接口。Of course, those skilled in the art can open an interface for the instruction information control device to access according to the actually used application program.

通过开放给指令信息控制设备访问的接口,可以接收到指令信息控制设备发送的第一配置指令信息。The first configuration instruction information sent by the instruction information control device can be received through the interface open to the instruction information control device.

步骤102,根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息。Step 102: Instruct the front-end server to process configuration information for at least one back-end server according to the first configuration instruction information.

作为本发明实施例的优选示例,所述根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息包括:As a preferred example of the embodiment of the present invention, the instructing the front-end server to process the configuration information for at least one back-end server according to the first configuration instruction information includes:

根据所述第一配置指令信息指示前端服务器针对保存在所述前端服务器中的后端服务器的配置信息进行增加、删除和/或修改处理。According to the first configuration instruction information, the front-end server is instructed to add, delete and/or modify the configuration information of the back-end server stored in the front-end server.

该第一配置指令信息可以包括有后端服务器的地址信息和相应的操作处理信息。后端服务器的地址信息可以作为后端服务器的标识,用于确定所针对的后端服务器的配置信息;操作处理信息用于确定对所针对的后端服务器的配置信息进行增加、删除或修改等的操作处理。The first configuration instruction information may include address information of the backend server and corresponding operation processing information. The address information of the back-end server can be used as the identifier of the back-end server to determine the configuration information of the target back-end server; the operation processing information is used to determine the addition, deletion or modification of the configuration information of the target back-end server, etc. operation processing.

可以根据该第一配置指令信息指示前端服务器对一个或多个后端服务器的配置信息进行增加、删除或修改等的操作处理。或者,针对于负载均衡云服务系统,第一配置指令信息中所包含的后端服务器的地址信息并非后端服务器在其虚拟网络中的唯一确定的地址信息。因此可以先从第一配置指令信息中获取后端服务器的原始地址信息,并利用该原始地址信息在预置数据库中查找后端服务器在其所属的网络中唯一确定的目标地址信息,利用该目标地址信息生成一个第二配置指令信息,用于指示前端服务器对一个或多个后端服务器的配置信息进行增加、删除或修改等的操作处理。The front-end server may be instructed to perform operations such as adding, deleting or modifying the configuration information of one or more back-end servers according to the first configuration instruction information. Or, for the load balancing cloud service system, 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, it is possible to obtain the original address information of the back-end server from the first configuration instruction information, and use the original address information to search for the target address information uniquely determined by the back-end server in the network to which it belongs in the preset database, and use the target address information The address information generates a second configuration instruction message, which is used to instruct the front-end server to perform operations such as adding, deleting, or modifying the configuration information of one or more back-end servers.

其中,负载均衡云服务系统中的前端服务器可以为LVS(Linux Virtual Server,Linux虚拟服务器),在LVS上可以运行IPVS(IP Virtual Server,IP虚拟服务交换机),通过IPVS中位于内核层面的数据包转发模块,实现对多个后端服务器的流量转发和负载均衡。实际应用中,可以将Keepalived等的服务器状态检测应用程序安装在LVS上。Among them, the front-end server in the load balancing cloud service system can be LVS (Linux Virtual Server, Linux virtual server), and IPVS (IP Virtual Server, IP virtual service switch) can run on LVS, through the data packets located at the kernel level in IPVS The forwarding module implements traffic forwarding and load balancing to multiple backend servers. In practical applications, server status detection applications such as Keepalived can be installed on LVS.

前端服务器可以根据生成的修改指令相应更新本地的后端服务器的配置信息,从而可以根据更新的配置信息,将用户访问请求数据包转发调度到适合的后端服务器。The front-end server can correspondingly 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 scheduled to a suitable back-end server according to the updated configuration information.

需要说明的是,本申请实施例所提供的信息更新方式不仅适用于负载均衡云服务系统,还可以适用于云计算场景下的其他云服务。本领域技术人员可以根据实际需要,利用本申请实施例所提供的核心构思更新其他类型的信息,例如通过对外开放的接口接收路由表更新指令信息,根据接收的路由表更新指令信息,指示前端服务器更新其路由表。It should be noted that the information update method provided by the embodiments of the present application is not only applicable to the load balancing cloud service system, but also applicable to other cloud services in a cloud computing scenario. Those skilled in the art can update other types of information by using the core concepts provided by the embodiments of the present application according to actual needs, for example, receiving routing table update instruction information through an open interface, and instructing the front-end server to update the instruction information according to the received routing table update instruction information. Update its routing table.

需要进一步说明的是,实际应用中可以由前端服务器执行上述的实施方式。具体地,可以将服务器状态检测应用程序部署在前端服务器上,通过服务器状态检测应用程序向指令信息控制设备开放访问接口,以接收指令信息控制设备发送的第一配置指令信息,根据接收到的第一配置指令信息,对所保存的后端服务器的配置信息进行处理。It should be further noted that, in practical applications, the above-mentioned implementation manner may be implemented by the front-end server. Specifically, the server state detection application program can be deployed on the front-end server, and the access interface is opened to the instruction information control device through the server state detection application program to receive the first configuration instruction information sent by the instruction information control device. 1. Configuration instruction information, which is used to process the stored configuration information of the back-end server.

此外,也可以单独部署一个向指令信息控制设备开放访问接口的配置信息更新服务器,由配置信息更新服务器接收指令信息控制设备发送的第一配置指令信息。配置信息更新服务器根据接收到的第一配置指令信息指示前端服务器对其所保存的后端服务器的配置信息进行处理。In addition, a configuration information update server that opens an access interface to the instruction information control device may also be deployed separately, 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 saved configuration information of the back-end server according to the received first configuration instruction information.

根据本申请实施例,通过提供允许指令信息控制设备访问的接口,并通过该接口接收用于指示前端服务器处理后端服务器的配置信息的第一配置指令信息。相比起目前的通过配置文件进行信息处理的方式,本申请实施例无须每次配置信息更新都进行读取配置文件、比对新旧配置文件和查找配置信息的处理,节省了处理资源。同时,也节省了配置信息更新耗费的时间,提升了配置信息更新的效率。According to the embodiment of the present application, an interface that allows command information to control device access is provided, and first configuration command information for instructing the front-end server to process the configuration information of the back-end server is received through the interface. Compared with the current information processing method through the configuration file, 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, which saves processing resources. At the same time, the time spent on updating the configuration information is also saved, and the efficiency of updating the configuration information is improved.

而且,在响应用户的访问请求等的实时性要求较高的场景中,更新的配置信息在较短的时间内可以生效并恢复对用户的服务,改善了用户体验。Moreover, in a scenario with high real-time requirements for responding to a user's access request, etc., the updated configuration information can take effect in a relatively short period of time and the service to the user can be resumed, thereby improving the user experience.

参照图2,示出了本申请的一种信息处理方法实施例二的步骤流程图,具体可以包括如下步骤:Referring to FIG. 2 , a flowchart of steps of Embodiment 2 of an information processing method of the present application is shown, which may specifically include the following steps:

步骤201,提供允许指令信息控制设备访问的接口,并通过所述接口接收所述指令信息控制设备发送的第一配置指令信息。Step 201: Provide an interface that allows access to the instruction information control device, and receive first configuration instruction information sent by the instruction information control device through the interface.

通过开放给指令信息控制设备访问的接口,可以接收到指令信息控制设备发送给的第一配置指令信息。The first configuration instruction information sent by the instruction information control device can be received through the interface open to the instruction information control device.

步骤202,从所述第一配置指令信息中获取后端服务器的原始地址信息,在预置数据库中查找根据所述原始地址信息对应转换的目标地址信息。Step 202: Obtain the original address information of the back-end server from the first configuration instruction information, and search a preset database for correspondingly converted target address information according to the original address information.

负载均衡云服务的应用场景中,可以从指令信息控制设备发送的第一配置指令信息中获取到后端服务器的原始地址信息,例如后端服务器的VIP地址192.168.1.1:80。In the application scenario of the load balancing cloud service, the original address information of the backend server, such as the VIP address of the backend server 192.168.1.1:80, can be obtained from the first configuration instruction information sent by the instruction information control device.

因为原始地址信息的信息结构比较复杂,将其存储在数据库后需要逐一比对,导致查找效率较低。因此,可以在预置数据库中存储根据原始地址信息转换的目标地址信息。转换的方式可以有多种,例如利用哈希表的映射方式,将VIP地址转换成一个较简单的数值,以便于信息的查找。Because the information structure of the original address information is relatively complex, it needs to be compared one by one after it is stored in the database, resulting in low search efficiency. Therefore, the target address information converted from the original address information can be stored in the preset database. There are various conversion methods, such as using the mapping method of the hash table to convert the VIP address into a simpler value to facilitate information search.

负载均衡云服务的应用场景中,前端服务器可以对处于第一网络中的至少一个后端服务器进行负载均衡处理。然而,指令信息控制设备所发送的第一配置指令信息中,所包含的后端服务器的地址信息是在整个网络范围内的原始地址信息,与后端服务器在其所属的虚拟网络中的地址信息并不相同,根据原始地址无法确定指令信息所针对的后端服务器。因此,可以在第一配置指令信息中获取后端服务器在第二网络中的原始地址信息,根据获取的原始地址信息,在预置数据库中查找后端服务器在其所属的第一网络中的目标地址信息。作为本发明实施例的优选示例,所述预置数据库可以为哈希表,所述在预置数据库中查找根据所述原始地址信息对应转换的目标地址信息可以包括以下子步骤:In the application scenario of the load balancing cloud service, the front-end server may perform load balancing processing on at least one back-end server in the first network. However, in the first configuration instruction information sent by the instruction information control device, the address information of the back-end server included is the original address information in the entire network range, which is different from the address information of the back-end server in the virtual network to which it belongs. Not the same, the backend server targeted by the instruction information cannot be determined based on the original address. Therefore, the original address information of the back-end server in the second network can be obtained from the first configuration instruction information, and according to the obtained original address information, the target of the back-end server in the first network to which it belongs is searched in the preset database. Address information. As a preferred example of the embodiment of the present invention, the preset database may be a hash table, and the searching in the preset database for the corresponding converted target address information according to the original address information may include the following sub-steps:

子步骤S11,计算所述原始地址信息的目标关键值。Sub-step S11: Calculate the target key value of the original address information.

子步骤S12,在所述哈希表中查找关键值匹配于所述目标关键值的目标地址信息。Sub-step S12, search the hash table for target address information whose key value matches the target key value.

可以基于原始地址信息计算其目标关键值,例如可以通过哈希算法(Hash)进行计算。利用计算得到的目标关键值,在哈希表中查找到匹配于该目标关键值的地址信息,作为对应的后端服务器的目标地址信息。Its target key value can be calculated based on the original address information, for example, it 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 back-end server.

相比起在基于链表连结的内存结构中逐条对比的查找方式,利用哈希表存储后端服务器的配置信息,优化了根据配置信息生成的内存结构的组织形式,并结合哈希算法的查找方式,提升了对后端服务器的目标地址信息的查找效率。Compared with the search method that is compared one by one in the memory structure based on linked list connection, the hash table is used to store the configuration information of the back-end server, the organization of the memory structure generated according to the configuration information is optimized, and the search method combined with the hash algorithm is used. , which improves the search efficiency of the target address information of the back-end server.

子步骤S13,当在所述哈希表中查找不到关键值匹配于所述目标关键值的目标地址信息,针对所述原始地址信息添加异常标识并生成记录日志。Sub-step S13, when the target address information whose key value matches the target key value cannot be found in the hash table, add an exception identifier to the original address information and generate a record log.

当查找不到匹配的目标地址信息时,表明第一配置指令信息中包含的后端服务器的原始地址信息有误,可以相应添加异常标识并生成记录日志。此外还可以打印包含有原始地址错误的记录日志,并结束更新流程。When no matching target address information is found, it indicates that the original address information of the back-end server included in the first configuration instruction information is incorrect, and an exception identifier can be added accordingly and a recording log can be generated. It is also possible to print a log containing the original address error and end the update process.

步骤203,根据所述目标地址信息生成第二配置指令信息,以供所述前端服务器对所述目标地址信息指示的后端服务器的配置信息进行处理。Step 203: Generate second configuration instruction information according to the target address information, so that the front-end server can process the configuration information of the back-end server indicated by the target address information.

在查找到后端服务器的目标地址信息后,可以生成一个包含有该目标地址信息的第二配置指令信息。前端服务器根据第二配置指令信息中的目标地址信息,可以确定需要进行处理的后端服务器。After the target address information of the backend server is found, a second configuration instruction message containing the target address information may be generated. The front-end server may determine the back-end server to be processed according to the target address information in the second configuration instruction information.

根据本申请实施例,在负载均衡云服务的配置信息更新的应用场景中,无须每次配置信息更新都进行读取配置文件、比对新旧配置文件和查找配置信息的处理,节省了处理资源。同时,也节省了配置信息更新耗费的时间,提升了配置信息更新的效率。According to the embodiment of the present application, in the application scenario of the configuration information update of the load balancing cloud service, the processing of reading the configuration file, comparing the old and new configuration files, and searching for the configuration information does not need to be performed every time the configuration information is updated, which saves processing resources. At the same time, the time spent on updating the configuration information is also saved, and the efficiency of updating the configuration information is improved.

为了便于本领域技术人员理解本申请实施例,以下结合图5和图6对本申请实施例进行说明。In order to facilitate those skilled in the art to understand the embodiments of the present application, the embodiments of the present application are described below with reference to FIG. 5 and FIG. 6 .

图5示出了基于Keepalived的Hotconf接口的信息处理流程图。从图中可见,上层控制系统通过Keepalived对外提供的Hotconf接口,下发删除VIP为192.168.1.1:80的后端服务器的指令。Keepalived应用程序通过哈希算法将192.168.1.1:80转换为一个目标关键值Key,通过这个Key在哈希表中查找对应的后端服务器。如果查找到对应的后端服务器,则生成相应的删除指令消息,并下发给前端服务器的IPVS内核模块,并结束流程。如果没有查找到对应的后端服务器,则打印错误日志,并结束流程。Fig. 5 shows the information processing flow chart of the Hotconf interface based on Keepalived. As can be seen from the figure, the upper-layer control system issues an instruction to delete the back-end 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 a hash algorithm, and uses this Key to find the corresponding backend server in the hash table. If the corresponding back-end server is found, a corresponding deletion 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, an error log is printed and the process ends.

图6示出了一种基于拓扑结构的信息更新系统示意图。从图中可见,本申请的信息更新系统可以基于拓扑架构而建立,其中部署有上层控制系统,前端服务器以及多个后端服务器,其中,前端服务器可以设置为安装有Keepalived的LVS服务器。上层控制系统可以通过前端服务器中对外开放的Keepalived的Hotconf接口,将第一配置指令信息发送给前端服务器。前端服务器可以根据接收到的第一配置指令信息,相应对保存在Keepalived中的后端服务器的配置信息进行增加、删除或修改等的操作处理,以便于前端服务器可以根据更新后的配置信息对多个后端服务器进行负载均衡的调度处理。FIG. 6 shows a schematic diagram of a topology-based information updating system. As can be seen from the figure, the information updating 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-layer control system may send the first configuration instruction information to the front-end server through the Keepalived Hotconf interface open to the outside world in the front-end server. The front-end server can perform operations such as adding, deleting, or modifying the configuration information of the back-end server stored in Keepalived according to the received first configuration instruction information, so that the front-end server can perform multiple operations according to the updated configuration information. A backend server performs load balancing scheduling processing.

需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请实施例并不受所描述的动作顺序的限制,因为依据本申请实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请实施例所必须的。It should be noted that, for the sake of simple description, the method embodiments are expressed as a series of action combinations, but those skilled in the art should know that the embodiments of the present application are not limited by the described action sequence, because According to the embodiments of the present application, certain steps may be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.

参照图3,示出了本申请的一种信息处理装置实施例一的结构框图,具体可以包括如下模块:Referring to FIG. 3 , a structural block diagram of Embodiment 1 of an information processing apparatus according to the present application is shown, which may specifically include the following modules:

第一配置指令信息接收模块301,用于提供允许指令信息控制设备访问的接口,并通过所述接口接收所述指令信息控制设备发送的第一配置指令信息。The first configuration instruction information receiving module 301 is configured to provide an interface allowing the instruction information control device to access, and receive the first configuration instruction information sent by the instruction information control device through the interface.

指示模块302,用于根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息。The instructing module 302 is configured to instruct the front-end server to process configuration information for at least one back-end server according to the first configuration instruction information.

相比起目前的通过配置文件进行信息处理的方式,本申请实施例无须每次配置信息更新都进行读取配置文件、比对新旧配置文件和查找配置信息的处理,节省了处理资源。同时,也节省了配置信息更新耗费的时间,提升了配置信息更新的效率。Compared with the current information processing method through the configuration file, 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, which saves processing resources. At the same time, the time spent on updating the configuration information is also saved, and the efficiency of updating the configuration information is improved.

而且,在响应用户的访问请求等的实时性要求较高的场景中,更新的配置信息在较短的时间内可以生效并恢复对用户的服务,改善了用户体验。Moreover, in a scenario with high real-time requirements for responding to a user's access request, etc., the updated configuration information can take effect in a relatively short period of time and the service to the user can be resumed, thereby improving the user experience.

参照图4,示出了本申请的一种信息处理装置实施例二的结构框图,具体可以包括如下模块:Referring to FIG. 4 , a structural block diagram of Embodiment 2 of an information processing apparatus according to the present application is shown, which may specifically include the following modules:

第一配置指令信息接收模块401,用于提供允许指令信息控制设备访问的接口,并通过所述接口接收所述指令信息控制设备发送的第一配置指令信息。The first configuration instruction information receiving module 401 is configured to provide an interface allowing the instruction information control device to access, and receive the first configuration instruction information sent by the instruction information control device through the interface.

指示模块402,用于根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息。The instructing module 402 is configured to instruct the front-end server to process configuration information for at least one back-end server according to the first configuration instruction information.

异常标识添加模块403,用于当在所述哈希表中查找不到关键值匹配于所述目标关键值的目标地址信息,针对所述原始地址信息添加异常标识并生成记录日志。An exception identification adding module 403 is configured to add an exception identification to the original address information and generate a record log when the target address information whose key value matches the target key value cannot be found in the hash table.

作为本申请实施例的优选示例,所述前端服务器对至少一个后端服务器进行负载均衡处理。As a preferred example of the embodiment of the present application, the front-end server performs load balancing processing on at least one back-end server.

作为本申请实施例的优选示例一,所述指示模块402可以包括:As a preferred example 1 of the embodiment of the present application, the indicating module 402 may include:

目标地址信息查找子模块,用于从所述第一配置指令信息中获取后端服务器的原始地址信息,在预置数据库中查找根据所述原始地址信息对应转换的目标地址信息;a target address information search submodule, configured to obtain the original address information of the back-end server from the first configuration instruction information, and search for the target address information correspondingly converted according to the original address information in a preset database;

第二配置指令信息生成子模块,用于根据所述目标地址信息生成第二配置指令信息,以供所述前端服务器对所述目标地址信息指示的后端服务器的配置信息进行处理。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 can process the configuration information of the back-end server indicated by the target address information.

作为本申请实施例的优选示例二,所述指示模块402可以包括:As a preferred second example of the embodiment of the present application, the indicating module 402 may include:

配置信息处理子模块,用于根据所述第一配置指令信息指示前端服务器针对保存在所述前端服务器中的后端服务器的配置信息进行增加、删除和/或修改处理。A configuration information processing submodule, configured to instruct the front-end server to add, delete and/or modify the configuration information of the back-end server stored in the front-end server according to the first configuration instruction information.

作为本申请实施例的优选示例,所述预置数据库为哈希表,所述目标地址信息查找子模块可以包括:As a preferred example of the embodiment of the present application, the preset database is a hash table, and the target address information search submodule may include:

目标关键值计算子单元,用于计算所述原始地址信息的目标关键值;a target key value calculation subunit, used for calculating the target key value of the original address information;

目标地址信息查找子单元,用于在所述哈希表中查找关键值匹配于所述目标关键值的目标地址信息。A target address information search subunit, configured to search the hash table for target address information whose key value matches the target key value.

根据本申请实施例,在负载均衡云服务的配置信息更新的应用场景中,无须每次配置信息更新都进行读取配置文件、比对新旧配置文件和查找配置信息的处理,节省了处理资源。同时,也节省了配置信息更新耗费的时间,提升了配置信息更新的效率。According to the embodiment of the present application, in the application scenario of the configuration information update of the load balancing cloud service, the processing of reading the configuration file, comparing the old and new configuration files, and searching for the configuration information does not need to be performed every time the configuration information is updated, which saves processing resources. At the same time, the time spent on updating the configuration information is also saved, and the efficiency of updating the configuration information is improved.

对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the apparatus embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for related parts.

参照图7,示出了本申请的一种信息处理系统实施例的结构框图,具体可以包括:Referring to FIG. 7, a structural block diagram of an embodiment of an information processing system of the present application is shown, which may specifically include:

前端服务器701、后端服务器702和指令信息控制设备703;Front-end server 701, back-end server 702 and instruction information control device 703;

所述前端服务器701可以包括:The front-end server 701 may include:

第一配置指令信息接收模块,用于提供允许指令信息控制设备访问的接口,并通过所述接口接收所述指令信息控制设备发送的第一配置指令信息;a first configuration instruction information receiving module, configured to provide an interface that allows the instruction information control device to access, and receive the first configuration instruction information sent by the instruction information control device through the interface;

指示模块,用于根据所述第一配置指令信息指示前端服务器处理对至少一个后端服务器的配置信息;an instruction module, configured to instruct the front-end server to process configuration information for at least one back-end server according to the first configuration instruction information;

所述后端服务器702可以包括:The backend server 702 may include:

访问请求调度接收模块,用于接收所述前端服务器根据所述后端服务器的配置信息调度的访问请求;an access request scheduling receiving module, configured to receive an access request scheduled by the front-end server according to the configuration information of the back-end server;

所述指令信息控制设备703,可以用于访问所述前端服务器,并通过所述前端服务器提供的接口将所述第一配置指令信息下发至所述前端服务器。The instruction information control device 703 can be configured to access the front-end server, and deliver the first configuration instruction information to the front-end server through an interface provided by the front-end server.

相比起目前的通过配置文件进行信息处理的方式,本申请实施例无须每次配置信息更新都进行读取配置文件、比对新旧配置文件和查找配置信息的处理,节省了处理资源。同时,也节省了配置信息更新耗费的时间,提升了配置信息更新的效率。Compared with the current information processing method through the configuration file, 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, which saves processing resources. At the same time, the time spent on updating the configuration information is also saved, and the efficiency of updating the configuration information is improved.

而且,在响应用户的访问请求等的实时性要求较高的场景中,更新的配置信息在较短的时间内可以生效并恢复对用户的服务,改善了用户体验。Moreover, in a scenario with high real-time requirements for responding to a user's access request, etc., the updated configuration information can take effect in a relatively short period of time and the service to the user can be resumed, thereby improving the user experience.

对于系统实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the partial description of the method embodiment.

本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments may be referred to each other.

本领域内的技术人员应明白,本申请实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本申请实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the embodiments of the present application may be provided as methods, apparatuses, or computer program products. Accordingly, 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 aspects. Furthermore, embodiments of the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

在一个典型的配置中,所述计算机设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非持续性的电脑可读媒体(transitory media),如调制的数据信号和载波。In a typical configuration, the computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. Memory may include non-persistent memory in computer readable media, random access memory (RAM) and/or non-volatile memory in the form of, for example, read only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium. Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology. Information may 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 Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include non-persistent computer-readable media (transitory media), such as modulated data signals and carrier waves.

本申请实施例是参照根据本申请实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The embodiments of the present application are described with reference to the flowcharts and/or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal equipment to produce a machine that causes the instructions to be executed by the processor of the computer or other programmable data processing terminal equipment Means are created for implementing the functions specified in the flow or flows of the flowcharts and/or the blocks or blocks of the block diagrams.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal equipment to operate in a particular manner, such that the instructions stored in the computer readable memory result in an article of manufacture comprising instruction means, the The instruction means implement the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing terminal equipment, so that a series of operational steps are performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby executing on the computer or other programmable terminal equipment The instructions executed on the above provide steps for implementing the functions specified in the flowchart or blocks and/or the block or blocks of the block diagrams.

尽管已描述了本申请实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请实施例范围的所有变更和修改。Although the preferred embodiments of the embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the preferred embodiments as well as all changes and modifications that fall within the scope of the embodiments of the present application.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should also be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another, and do not necessarily require or imply these entities or that there is any such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or terminal device comprising a list of elements includes not only those elements, but also a non-exclusive list of elements. other elements, or also include elements inherent to such a process, method, article or terminal equipment. Without further limitation, an element defined by the phrase "comprises a..." does not preclude the presence of additional identical elements in the process, method, article or terminal device comprising said element.

以上对本申请所提供的一种信息处理方法、一种信息处理装置和一种信息处理系统,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。An information processing method, an information processing device, and an information processing system provided by the present application have been introduced in detail above. The principles and implementations of the present application are described with specific examples in this paper. The above embodiments The description is only used to help understand the method of the present application and its core idea; meanwhile, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific embodiments and application scope. The contents of this specification should not be construed as limiting the application.

Claims (13)

1. An information processing method characterized by comprising:
providing an interface allowing an instruction information control device to access, and receiving first configuration instruction information sent by the instruction information control device through the interface; the first configuration instruction information is generated by the instruction information control equipment according to the memory structure of the server state detection application program and comprises address information of a back-end server and corresponding operation processing information;
and instructing the front-end server to process the configuration information of at least one back-end server according to the first configuration instruction information.
2. The method of claim 1, wherein the front-end server load balances at least one back-end server.
3. The method of claim 2, wherein the instructing, according to the first configuration instruction information, a front-end server to process configuration information of at least one back-end server comprises:
acquiring original address information of a back-end server from the first configuration instruction information, and searching target address information correspondingly converted according to the original address information in a preset database;
and generating second configuration instruction information according to the target address information so that the front-end server can process the configuration information of the rear-end server indicated by the target address information.
4. The method of claim 3, wherein the preset database is a hash table, and the searching the target address information correspondingly converted according to the original address information in the preset database comprises:
calculating a target key value of the original address information;
and searching target address information of which the key value is matched with the target key value in the hash table.
5. The method of claim 1, wherein the instructing, according to the first configuration instruction information, a front-end server to process configuration information of at least one back-end server comprises:
and indicating the front-end server to perform addition, deletion and/or modification processing on the configuration information of the back-end server stored in the front-end server according to the first configuration instruction information.
6. The method of claim 4, further comprising:
and when the target address information of which the key value is not matched with the target key value is not searched in the hash table, adding an abnormal identifier to the original address information and generating a record log.
7. An information processing apparatus characterized by comprising:
the first configuration instruction information receiving module is used for providing an interface allowing the instruction information control equipment to access and receiving first configuration instruction information sent by the instruction information control equipment through the interface; the first configuration instruction information is generated by the instruction information control equipment according to the memory structure of the server state detection application program and comprises address information of a back-end server and corresponding operation processing information;
and the indicating module is used for indicating the front-end server to process the configuration information of at least one back-end server according to the first configuration instruction information.
8. The apparatus of claim 7, wherein the front-end server performs load balancing on at least one back-end server.
9. The apparatus of claim 8, wherein the indication module comprises:
the target address information searching submodule is used for acquiring original address information of a back-end server from the first configuration instruction information and searching target address information which is correspondingly converted according to the original address information in a preset database;
and the second configuration instruction information generation submodule is used for generating second configuration instruction information according to the target address information so as to enable the front-end server to process the configuration information of the rear-end server indicated by the target address information.
10. The apparatus of claim 9, wherein the preset database is a hash table, and the target address information lookup sub-module comprises:
the target key value operator unit is used for calculating a target key value of the original address information;
and the target address information searching subunit is used for searching the target address information of which the key value is matched with the target key value in the hash table.
11. The apparatus of claim 7, wherein the indication module comprises:
and the configuration information processing submodule is used for indicating the front-end server to carry out addition, deletion and/or modification processing on the configuration information of the back-end server stored in the front-end server according to the first configuration instruction information.
12. The apparatus of claim 10, further comprising:
and the abnormal identifier adding module is used for adding an abnormal identifier to the original address information and generating a record log when the target address information of which the key value is matched with the target key value is not searched in the hash table.
13. An information processing system, comprising:
the system comprises a front-end server, a rear-end server and an instruction information control device;
the front-end server includes:
the first configuration instruction information receiving module is used for providing an interface allowing the instruction information control equipment to access and receiving first configuration instruction information sent by the instruction information control equipment through the interface; the first configuration instruction information is generated by the instruction information control equipment according to the memory structure of the server state detection application program and comprises address information of a back-end server and corresponding operation processing information;
the indication module is used for indicating the front-end server to process the configuration information of at least one back-end server according to the first configuration instruction information;
the back-end server includes:
the access request scheduling receiving module is used for receiving the access request scheduled by the front-end server according to the configuration information of the back-end server;
the instruction information control device is used for accessing the front-end server and sending the first configuration instruction information to the front-end server through an interface provided by the front-end server.
CN201610031093.3A 2016-01-18 2016-01-18 An information processing method, device and system Active CN106982236B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201610031093.3A CN106982236B (en) 2016-01-18 2016-01-18 An information processing method, device and system
PCT/CN2017/070631 WO2017124933A1 (en) 2016-01-18 2017-01-09 Information processing method, device and system
TW106101583A TWI728036B (en) 2016-01-18 2017-01-17 Information processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610031093.3A CN106982236B (en) 2016-01-18 2016-01-18 An information processing method, device and system

Publications (2)

Publication Number Publication Date
CN106982236A CN106982236A (en) 2017-07-25
CN106982236B true CN106982236B (en) 2020-07-28

Family

ID=59339914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610031093.3A Active CN106982236B (en) 2016-01-18 2016-01-18 An information processing method, device and system

Country Status (3)

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

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109343891B (en) * 2017-08-01 2022-02-18 阿里巴巴集团控股有限公司 Data processing system, method and device
CN109144979B (en) * 2018-08-15 2022-07-12 中国建设银行股份有限公司 Data processing method and device based on distributed application system
CN109005071B (en) * 2018-09-05 2021-05-25 网宿科技股份有限公司 A decision-making deployment method and scheduling device
CN109597678B (en) * 2018-10-09 2023-07-21 创新先进技术有限公司 Task processing method and device
CN109582485B (en) * 2018-10-26 2022-05-03 创新先进技术有限公司 Configuration change abnormity detection method and device
CN110162512B (en) * 2019-05-05 2021-11-09 中国银行股份有限公司 Log retrieval method, device and storage medium
CN110334103B (en) * 2019-05-09 2021-11-02 北京顺丰同城科技有限公司 Recommendation service updating method, providing device, access device and recommendation system
CN110990052B (en) * 2019-11-29 2023-09-26 杭州迪普科技股份有限公司 Configuration preservation method and device
CN111212399B (en) * 2019-12-23 2023-08-18 新奇点企业管理集团有限公司 Data transmission method and device, computer storage medium and electronic equipment
CN111309371A (en) * 2020-01-14 2020-06-19 网易(杭州)网络有限公司 Query method and device
WO2021179254A1 (en) * 2020-03-12 2021-09-16 华为技术有限公司 Data update method, apparatus and device
CN111726249B (en) * 2020-06-02 2022-10-04 中盈优创资讯科技有限公司 Configuration file processing method and device for network equipment
CN111753205B (en) * 2020-06-28 2024-03-19 北京百度网讯科技有限公司 Information processing method, information processing device, electronic equipment and storage medium
CN111966486B (en) * 2020-07-01 2024-10-08 深圳华云信息系统科技股份有限公司 Method for acquiring data, FPGA system and readable storage medium
CN114531493B (en) * 2020-11-23 2024-03-26 北京达佳互联信息技术有限公司 Request processing method and device, electronic equipment and storage medium
CN112579933B (en) * 2020-12-24 2023-12-08 中国农业银行股份有限公司 Information processing method and device
CN113904724B (en) * 2021-10-12 2022-11-22 中国人民解放军战略支援部队信息工程大学 Communication device and communication system
CN115150164B (en) * 2022-06-30 2023-09-26 北京天融信网络安全技术有限公司 Request verification method, apparatus, electronic device and computer readable storage medium
CN115567392B (en) * 2022-10-10 2023-08-15 浙江保融科技股份有限公司 Automatic deployment upgrading method for customer internal service system
CN116708063B (en) * 2022-12-23 2024-06-11 荣耀终端有限公司 Log reporting method, electronic device, cloud server and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002023364A1 (en) * 2000-09-15 2002-03-21 Wonderware Corporation An industrial process control data access server supporting multiple client data exchange protocols
US7996482B1 (en) * 2007-07-31 2011-08-09 Qurio Holdings, Inc. RDMA based real-time video client playback architecture
CN103490963A (en) * 2013-09-13 2014-01-01 天脉聚源(北京)传媒科技有限公司 Method and device for controlling controlled equipment in local area network
CN104090891A (en) * 2013-12-12 2014-10-08 深圳市腾讯计算机系统有限公司 Method and device for data processing and server and system for data processing
CN104965726A (en) * 2015-03-10 2015-10-07 腾讯科技(深圳)有限公司 Configuration updating method, apparatus and system
CN105099761A (en) * 2015-06-26 2015-11-25 广东欧珀移动通信有限公司 Method and system for concentratedly managing configuration information of client
CN105187230A (en) * 2015-06-25 2015-12-23 走遍世界(北京)信息技术有限公司 Server switching method and server switching device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI245521B (en) * 2004-06-01 2005-12-11 Realtek Semiconductor Corp Network address-port translation device and method
CN104038376A (en) * 2014-06-30 2014-09-10 浪潮(北京)电子信息产业有限公司 Method and device for managing real servers and LVS clustering system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002023364A1 (en) * 2000-09-15 2002-03-21 Wonderware Corporation An industrial process control data access server supporting multiple client data exchange protocols
US7996482B1 (en) * 2007-07-31 2011-08-09 Qurio Holdings, Inc. RDMA based real-time video client playback architecture
CN103490963A (en) * 2013-09-13 2014-01-01 天脉聚源(北京)传媒科技有限公司 Method and device for controlling controlled equipment in local area network
CN104090891A (en) * 2013-12-12 2014-10-08 深圳市腾讯计算机系统有限公司 Method and device for data processing and server and system for data processing
CN104965726A (en) * 2015-03-10 2015-10-07 腾讯科技(深圳)有限公司 Configuration updating method, apparatus and system
CN105187230A (en) * 2015-06-25 2015-12-23 走遍世界(北京)信息技术有限公司 Server switching method and server switching device
CN105099761A (en) * 2015-06-26 2015-11-25 广东欧珀移动通信有限公司 Method and system for concentratedly managing configuration information of client

Also Published As

Publication number Publication date
TW201730789A (en) 2017-09-01
WO2017124933A1 (en) 2017-07-27
CN106982236A (en) 2017-07-25
TWI728036B (en) 2021-05-21

Similar Documents

Publication Publication Date Title
CN106982236B (en) An information processing method, device and system
TWI686709B (en) Method and device for business acceptance and consensus
US9641598B1 (en) Contextually unique identifier generation service
US11347808B1 (en) Dynamically-adaptive bloom-filter
JP2017538200A (en) Service addressing in a distributed environment
CN114153566A (en) Cross-processor architecture multi-container inter-cluster service discovery method, apparatus and device
US20150195138A1 (en) Cloud-Based Service Resource Provisioning Based on Network Characteristics
WO2018233630A1 (en) Fault discovery
US20150220438A1 (en) Dynamic hot volume caching
CN110249588A (en) System and method for detecting network topology
US11159607B2 (en) Management for a load balancer cluster
CN108063714A (en) A kind of processing method and processing device of network request
CN109951323A (en) A log analysis method and system
CN111752681A (en) Request processing method, apparatus, server, and computer-readable storage medium
US12174722B2 (en) Characterizing operation of software applications having large number of components
RU2643642C2 (en) Use of cache memory and another type of memory in distributed memory system
US20170153870A1 (en) Server and method for ranking data sources
CN113722157B (en) A virtual machine data management method, apparatus, device and medium
US10044602B2 (en) Network failover and loop detection in hierarchical networks
US12061708B1 (en) Remote tracking and identification of key access patterns for databases
US11151199B2 (en) Query result overlap detection using unique identifiers
CN111736944A (en) Docker container positioning method and device based on Kubernetes
CN115914404A (en) Cluster traffic management method, device, computer equipment and storage medium
CN115277351B (en) Distributed management system
US11874940B2 (en) Method and system for limiting access of multiple data nodes to shared storage during the performance of data protection services through load balancing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant