WO2019218469A1 - Configuration update method, method for responding to configuration update, server and system - Google Patents

Configuration update method, method for responding to configuration update, server and system Download PDF

Info

Publication number
WO2019218469A1
WO2019218469A1 PCT/CN2018/097313 CN2018097313W WO2019218469A1 WO 2019218469 A1 WO2019218469 A1 WO 2019218469A1 CN 2018097313 W CN2018097313 W CN 2018097313W WO 2019218469 A1 WO2019218469 A1 WO 2019218469A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration
server
routing protocol
application system
routing
Prior art date
Application number
PCT/CN2018/097313
Other languages
French (fr)
Chinese (zh)
Inventor
张家峰
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019218469A1 publication Critical patent/WO2019218469A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events

Definitions

  • the present application belongs to the field of artificial intelligence technologies, and in particular, to a configuration update method, a response method for configuring an update, and a server and a system.
  • an organization's total system may have multiple application systems, each of which is hosted by at least one server.
  • the banking system as an example, including a variety of application systems such as a login application system, a financial information query application system, and a financial transaction application system.
  • Each application system needs its corresponding configuration server to manage its configuration files.
  • the application server of the application system needs to periodically obtain the updated configuration data from the configuration server by the staff of each application system server, thereby causing the following problems: for example, the application system staff is difficult to Timely access to comprehensive configuration updates, in addition to the different application system configuration files need to be manually managed and configured by different developers, resulting in increased developer burden.
  • a first aspect of the embodiment of the present application provides a configuration update method, including:
  • the set includes more than one routing protocol
  • a second aspect of the embodiment of the present application provides a response to a configuration update, including:
  • the configuration update event occurs, determining a configuration name of the configuration update event, and sending a configuration data instruction to the application system server corresponding to the configuration name according to the correspondence between the configuration name and the identifier of the application system server ;
  • the third aspect of the embodiment of the present application provides an interaction method for configuring an update, which includes:
  • the application server obtains, by the application server, the configuration name input by the user, and the preset first data set and the preset second data set, where the first data set includes a correspondence between the configuration name and one or more configuration servers,
  • the second data set includes more than one routing protocol;
  • the application system server queries one or more configuration servers corresponding to the configuration name as a candidate server according to the first data set;
  • the application system server respectively determines the number of routing nodes of the application system server and each of the candidate servers by using each routing protocol in the second data set, and selects a target among more than one candidate server based on the number of the routing nodes. Configuring the server and determining the delivery path;
  • the application system server adds the configuration name to the registration configuration request, and sends the registration configuration request to the target configuration server according to the delivery path;
  • the target configuration server calls the CreateInstance function to create a RegisteredServer object instance, and registers the configuration corresponding to the configuration name by using the RegisteredServer object instance;
  • the target configuration server monitors whether a configuration update event occurs in the configuration server
  • the target configuration server determines the configuration name of the configuration update event, and according to the correspondence between the configuration name and the identifier of the application system server, the application system server corresponding to the configuration name Sending a configuration data instruction, storing the configuration update event in a configuration database of the configuration server, and recording a storage time to establish a correspondence between the configuration update event and the storage time;
  • the application system server After receiving the configuration data command returned by the target configuration server, the application system server sends a configuration update request to the target configuration server, where the configuration data command is used to prompt the configuration corresponding to the configuration name to be updated;
  • the target configuration server After receiving the configuration update request, the target configuration server sends a configuration data packet to the application system server according to the correspondence between the configuration update event and the storage time, where the configuration data packet includes the configuration update Configuration data for the event;
  • the application system server receives the configuration data packet, and updates the configuration corresponding to the configuration name according to the configuration data.
  • a fourth aspect of an embodiment of the present application provides an application system server including a memory and a processor, wherein the memory stores computer readable instructions executable on the processor, the processor executing the computer
  • the steps of the configuration update method as described in the first aspect are implemented when the instructions are readable.
  • a fifth aspect of the embodiments of the present application provides a configuration server including a memory and a processor, wherein the memory stores computer readable instructions executable on the processor, the processor executing the computer The step of implementing the response method of the configuration update as described in the first aspect when the instruction is read.
  • a sixth aspect of the embodiments of the present application provides an interaction system for configuring an update, where the interaction system of the configuration update includes an application system server for performing the configuration update method described in the first aspect, and further includes The configuration server of the response method of the configuration update described in the second aspect.
  • the preset first data set and the preset second data set are obtained by acquiring the configuration name, and the configuration server corresponding to the configuration name is used as the candidate server according to the first data set;
  • Each routing protocol in the set determines the number of routing nodes of the application server and the candidate server, selects the target configuration server among more than one candidate server, and determines the delivery path; adds the configuration name to the registration configuration request and sends the configuration request to the target according to the delivery path.
  • Configuring the server after receiving the configuration data command returned by the target configuration server, sending a configuration update request to the target configuration server; receiving the configuration data packet sent by the target configuration server, and updating the configuration according to the configuration data packet to improve the update configuration data Efficiency and intelligence.
  • FIG. 2 is a flowchart of a specific implementation of a configuration update method S103 according to Embodiment 1 of the present application;
  • FIG. 3 is a flowchart of an implementation of a response method for configuration update provided by Embodiment 2 of the present application;
  • FIG. 5 is a schematic diagram of an application system server provided in Embodiment 4 of the present application.
  • FIG. 6 is a schematic diagram of a configuration server provided in Embodiment 5 of the present application.
  • FIG. 7 is a system interaction diagram of an interaction system of a configuration update provided by Embodiment 6 of the present application.
  • the embodiment of the present application mainly describes one end of an application system server.
  • FIG. 1 shows an implementation flow of a configuration update method provided in Embodiment 1 of the present application, where the method flow includes steps S101 to S107.
  • the specific implementation principles of each step are as follows:
  • S101 Obtain a configuration name input by the user, and retrieve a preset first data set and a preset second data set, where the first data set includes a correspondence between the configuration name and one or more configuration servers, where The two data sets include more than one routing protocol.
  • the application system server there are mainly two types of servers, one is an application system server, and the other is a configuration server, wherein the application system server is used to provide a specific application service, for example, a banking system is taken as an example.
  • the application server includes a login application system server, a financial information query application system server, a financial transaction application system server, and the like.
  • the configuration server is used to manage configuration files of each application system server in the embodiment of the present application to ensure that the application system server is highly efficient. Stable job.
  • the user of the application system server inputs a configuration name, and when the application system server obtains the configuration name, the configuration update process begins.
  • the internal memory of the application system server stores two data sets, where, in the embodiment of the present application, the first data set is used to describe the correspondence between the configuration name and the configuration server, and notably, a configuration name may be Corresponding to multiple configuration servers, that is, different configuration servers may manage the same configuration, but, notably, multiple configuration servers mentioned in the embodiments of the present application do not have different configurations for the same configuration storage.
  • the configuration server that stores all the configurations synchronously updates the configuration data of the configuration.
  • the second data set includes more than one routing protocol. It can be understood that the routes calculated by different routing protocols may be different in the same network system.
  • S102 Query one or more configuration servers corresponding to the configuration name as a candidate server according to the first data set.
  • a configuration name may correspond to a plurality of configuration servers, so in the step, a configuration server that can provide configuration data corresponding to the configuration name is first determined.
  • S103 Determine, by using each routing protocol in the second data set, a number of routing nodes of the application system server and each of the candidate servers, and select a target configuration server among one or more candidate servers based on the number of the routing nodes. And determine the delivery path.
  • the same application system server and the same candidate server determine the routing node through different routing protocols.
  • the quantity may also be different, so firstly, an accurate logic rule is needed to calculate the number of routing nodes of the application server and each candidate server, and determine the delivery path based on the minimum number of routing nodes, and the specific delivery path is determined. The method is shown in Figure 2.
  • the foregoing S103 includes:
  • S1031 Calculate, by each of the routing protocols, a number of routing nodes of the application system server and each of the candidate servers, to generate a routing protocol selection list, where the routing protocol selection list includes: a routing protocol, a candidate server, and one or more routing nodes. The corresponding relationship of the number.
  • a routing protocol selection list includes a correspondence relationship between a routing protocol, a candidate server, and a number of routing nodes.
  • the minimum number of the routing nodes in the routing protocol selection list is used as the selected number.
  • the selected number corresponds to one or more configuration servers and one or more routing protocols in the routing protocol selection list.
  • the candidate server serves as the target configuration server.
  • routing protocol list corresponds to multiple routing protocols, but each routing protocol has no preset priority, then one routing protocol corresponding to the selected number is arbitrarily selected as the selected routing protocol.
  • a routing protocol corresponding to the selected number with the highest priority is arbitrarily selected as the Select a routing protocol.
  • the routing protocol list includes the correspondence relationship between the routing protocol, the candidate server, and the number of more than one routing node, when the selected number (that is, the number of selected routing nodes) and the routing protocol are determined, A unique candidate server can be identified and configured as a target configuration server.
  • a routing protocol does not necessarily uniquely determine the path of an application system server to the target configuration server.
  • the number of routing nodes included in multiple paths may be the smallest and the selected ones are selected. The number, so the second candidate path set may still include multiple paths.
  • the calculation method of the static route cost of common knowledge can be used to calculate the route cost of each path, and the path with the smallest route overhead is selected as the delivery path in the second candidate path set.
  • the optimal routing path is determined based on the number of routing nodes of the application system server and each of the candidate servers by using a unique routing protocol selection list, which is beneficial to improving the selection of the target configuration server. Efficiency, and the efficiency of data transfer between the application server and the configuration server.
  • the registration configuration request is sent to the target configuration server
  • the registration of the configuration name in the target configuration server may be completed.
  • the target configuration server will return configuration data instructions to the application server. Since the embodiment of the present application introduces the processing flow of the application system server, the related description of the target configuration server will be described in detail in the following embodiments.
  • S106 Receive configuration data packets sent by the target configuration server, where the configuration data packet includes configuration data corresponding to the configuration name.
  • the application system server obtains the configuration data corresponding to the configuration name by the process of two transmissions and two receptions.
  • the first time the data is sent and received and the second time is not continuously transmitted.
  • the first time the data is sent and received is triggered by the application system server, and the data is sent and received by the target configuration server.
  • the target configuration server can be implemented to actively send configuration data to the application system server in a timely manner.
  • the preset first data set and the preset second data set are obtained by acquiring the configuration name, and the configuration server corresponding to the configuration name is used as the candidate server according to the first data set;
  • Each routing protocol in the data set determines the number of routing nodes of the application server and the candidate server, selects the target configuration server among more than one candidate server, and determines the delivery path; adds the configuration name to the registration configuration request and sends the configuration request to the delivery path to
  • the target configuration server sends a configuration update request to the target configuration server after receiving the configuration data command returned by the target configuration server; receives the configuration data packet sent by the target configuration server, and updates the configuration according to the configuration data packet to improve the update configuration.
  • the efficiency and intelligence of the data is obtained by acquiring the configuration name, and the configuration server corresponding to the configuration name is used as the candidate server according to the first data set;
  • Each routing protocol in the data set determines the number of routing nodes of the application server and the candidate server, selects the target configuration server among more than one candidate server, and determine
  • the embodiment of the present application mainly describes one end of the configuration server.
  • FIG. 3 is a flowchart of an implementation of a response to a configuration update according to Embodiment 2 of the present application, where the method includes steps S201 to S206.
  • the specific implementation principle of each step is as follows.
  • S201 Receive a configuration name sent by the application system server, and establish a correspondence between the configuration name and the identifier of the application system server.
  • two types of servers are mainly involved, one is an application system server, and the other is a configuration server.
  • the application system server is used to provide a specific application service
  • the configuration server is used to manage the configuration files of each application system server in the embodiment of the present application to ensure efficient and stable operation of the application system server.
  • the configuration server After the configuration server receives the configuration name, it first determines which application system server the configuration name is sent by, and establishes a correspondence between the configuration name and the identifier of the application system server, so as to be in the subsequent process, The configuration data is sent to the corresponding application system server.
  • multiple instances of object instances can be created by using the CreateInstance function, where the RegisteredServer object instance can register the configuration corresponding to the configuration name. It can be understood that, when a configuration corresponding to a configuration name is registered, if a preset event related to the configuration name appears in the configuration server, the configuration server performs a preset operation.
  • one application system server may be configured to one configuration.
  • the server sent multiple configuration names. Therefore, for a configuration server, through step S202, a correspondence between a plurality of configuration names and identifiers of a plurality of application system servers may be stored therein.
  • the configuration data command may be sent to the application system server corresponding to the one or more configuration names according to the correspondence between the configuration name and the identifier of the application server.
  • S205 Store the configuration update event in a configuration database of the configuration server, and record a storage time to establish a correspondence between the configuration update event and the storage time.
  • the configuration server after the configuration server sends the configuration data command to the application system server in step S204, the configuration update request sent by the application system server is received. At this point, the configuration server will call the CreateInstance function to complete the search and call for the configuration data corresponding to the configuration name.
  • the above S206 includes:
  • multiple types of object instances can be created by using the CreateInstance function, wherein the SQLServer object instance can be used to connect with the configuration database.
  • the configuration database stores configuration data corresponding to each configuration name, and a corresponding relationship between the configuration data and the storage time.
  • S2062 Establish a connection with the configuration database by using the SQLServer object instance, and record a time when the configuration update request is received as the request time.
  • S2063 Retrieving, from the configuration database, a configuration update event corresponding to the configuration name and having a minimum interval between the storage time and the request time, as the selected configuration update event, and selecting the selected The configuration data of the configuration update event is added to the configuration packet.
  • S2064 Send the configured data packet to the application system server.
  • the embodiment of the present application mainly introduces an interaction method for configuring an update. Since the workflow and principles of the application system server and the configuration server are described in detail in the above embodiments during the interaction process, only a general introduction is provided herein. For specific introductions, see the above embodiment.
  • the interaction method for configuring the update includes:
  • the application server obtains, by the application server, the configuration name input by the user, and the preset first data set and the preset second data set, where the first data set includes a correspondence between the configuration name and one or more configuration servers,
  • the second data set includes more than one routing protocol;
  • the application system server queries one or more configuration servers corresponding to the configuration name as a candidate server according to the first data set;
  • the application system server respectively determines the number of routing nodes of the application system server and each of the candidate servers by using each routing protocol in the second data set, and selects a target among more than one candidate server based on the number of the routing nodes. Configuring the server and determining the delivery path;
  • the application system server adds the configuration name to a registration configuration request, and sends the registration configuration request to the target configuration server according to the delivery path; the target configuration server receives the registration configuration request, and establishes Correspondence between the configuration name and the identity of the application server;
  • the target configuration server calls the CreateInstance function to create a RegisteredServer object instance, and registers the configuration corresponding to the configuration name by using the RegisteredServer object instance; the target configuration server monitors whether a configuration update event occurs in the configuration server;
  • the target configuration server determines the configuration name of the configuration update event, and according to the correspondence between the configuration name and the identifier of the application system server, the application system server corresponding to the configuration name Sending a configuration data instruction, storing the configuration update event in a configuration database of the configuration server, and recording a storage time to establish a correspondence between the configuration update event and a storage time; the application system server receiving the After the configuration data command returned by the target configuration server, the configuration update request is sent to the target configuration server, where the configuration data command is used to prompt the configuration corresponding to the configuration name to be updated; the target configuration server receives the configuration. After the update request, sending, according to the correspondence between the configuration update event and the storage time, a configuration data packet to the application system server, where the configuration data packet includes configuration data of the configuration update event;
  • the application system server receives the configuration data packet, and updates the configuration corresponding to the configuration name according to the configuration data.
  • embodiments of the invention help to increase the efficiency and intelligence of updating configuration data.
  • the application system server 5 of this embodiment includes a processor 50, a memory 51, and computer readable instructions 52 stored in the memory 51 and operable on the processor 50, such as configuration updates. program.
  • the processor 50 when executing the computer readable instructions 52, implements the steps in the various embodiments of the various configuration update methods described above, such as steps 101 through 107 shown in FIG.
  • the computer readable instructions 52 may be partitioned into one or more modules/units that are stored in the memory 51 and executed by the processor 50, To complete this application.
  • the one or more modules/units may be a series of computer readable instruction instructions segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer readable instructions 52 in the electronic device 5.
  • FIG. 6 is a schematic diagram of a configuration server provided in Embodiment 5 of the present application.
  • the configuration server 6 of this embodiment includes a processor 60, a memory 61, and computer readable instructions 62 stored in the memory 61 and executable on the processor 60, such as a configuration update program. .
  • the processor 60 executes the computer readable instructions 62 to implement the steps in the various configuration update method embodiments described above, such as steps 201 through 206 shown in FIG.
  • the computer readable instructions 62 may be partitioned into one or more modules/units that are stored in the memory 61 and executed by the processor 60, To complete this application.
  • the one or more modules/units may be a series of computer readable instruction instruction segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer readable instructions 62 in the electronic device 6.
  • FIG. 7 is a system interaction diagram of an interaction update system provided by Embodiment 6 of the present application. For ease of description, only the embodiment of the present application is shown. Related parts.
  • the interaction system of the configuration update includes:
  • the application server 701 is configured to obtain a configuration name input by the user, and retrieve a preset first data set and a preset second data set, where the first data set includes a configuration name corresponding to one or more configuration servers. a relationship, the second data set includes one or more routing protocols; the application system server 701 is configured to query, according to the first data set, one or more configuration servers corresponding to the configuration name as a candidate server; The application system server 701 is configured to determine, by using each routing protocol in the second data set, a number of routing nodes of the application system server and each of the candidate servers, and based on the number of the routing nodes, on one or more candidate servers. Selecting a target configuration server, and determining a delivery path; the application system server 701, configured to add the configuration name to a registration configuration request, and send the registration configuration request to the target configuration server according to the delivery path ;
  • the target configuration server 702 is configured to receive the registration configuration request, and establish a correspondence between the configuration name and the identifier of the application system server.
  • the target configuration server 702 is configured to invoke a CreateInstance function to create a RegisteredServer object instance.
  • the RegisteredServer object instance registers the configuration corresponding to the configuration name; the target configuration server 702 is configured to monitor whether a configuration update event occurs in the configuration server.
  • the target configuration server 702 is configured to determine a configuration name of the configuration update event, and corresponding to the configuration name according to the correspondence between the configuration name and the identifier of the application system server.
  • the application system server sends a configuration data instruction, stores the configuration update event in a configuration database of the configuration server, and records a storage time to establish a correspondence between the configuration update event and the storage time; the application system server 701 And after receiving the configuration data command returned by the target configuration server, sending a configuration update request to the target configuration server, where the configuration data instruction is used to prompt that the configuration corresponding to the configuration name is updated;
  • the configuration server 702 is configured to: after receiving the configuration update request, send a configuration data packet to the application system server according to the correspondence between the configuration update event and the storage time, where the configuration data packet includes the configuration Update configuration data of the event; the application system server 7 01.
  • the method is configured to receive the configuration data packet, and update, according to the configuration data, a configuration corresponding to the configuration name.

Abstract

The present application is applicable to the technical field of artificial intelligence. Provided are a configuration update method, a method for responding to a configuration update, a server and a system. The method comprises: acquiring the configuration name, invoking a pre-set first data set and a pre-set second data set, and querying, according to the first data set, configuration servers corresponding to the configuration name to serve as candidate servers; determining, by means of each routing protocol in the second data set, the number of routing nodes of an application system server and the candidate servers, selecting a target configuration server from among one or more candidate servers, and determining a transfer path; adding the configuration name to a registration configuration request and sending same to the target configuration server according to the transfer path; after a configuration data instruction returned by the target configuration server is received, sending a configuration update request to the target configuration server; and receiving a configuration data packet sent by the target configuration server, and updating the configuration according to the configuration data packet, such that the efficiency and level of intelligence of updating configuration data are improved.

Description

配置更新方法、配置更新的响应方法及服务器、系统Configuration update method, response method for configuration update, server, system
本申请要求于2018年05月14日提交中国专利局、申请号为201810456215.2、发明名称为“配置更新方法、配置更新的响应方法及服务器、系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on May 14, 2018, the Chinese Patent Office, application number 201810456215.2, the invention name is "configuration update method, configuration update response method and server, system", the entire content of which is The citations are incorporated herein by reference.
技术领域Technical field
本申请属于人工智能技术领域,尤其涉及一种配置更新方法、配置更新的响应方法及服务器、系统。The present application belongs to the field of artificial intelligence technologies, and in particular, to a configuration update method, a response method for configuring an update, and a server and a system.
背景技术Background technique
当前,一个机构的总系统内可能拥有多个应用系统,每个应用系统由至少一台服务器承载。以银行系统为例,其中包括了登录应用系统、金融信息查询应用系统、金融交易应用系统等多种应用系统。每个应用系统都需要其对应的配置服务器管理其配置文件。Currently, an organization's total system may have multiple application systems, each of which is hosted by at least one server. Take the banking system as an example, including a variety of application systems such as a login application system, a financial information query application system, and a financial transaction application system. Each application system needs its corresponding configuration server to manage its configuration files.
然而当前,市场上的应用系统服务器在内容发布后,需要由各个应用系统服务器的工作人员定时主动去向配置服务器获取更新后的配置数据,所以就导致了以下问题:例如,应用系统的工作人员难以及时获取全面的配置更新,此外不同应用系统的配置文件需要分别由不同的开发人员进行手工管理和配置,导致开发人员的负担增加。However, at present, after the content server is released, the application server of the application system needs to periodically obtain the updated configuration data from the configuration server by the staff of each application system server, thereby causing the following problems: for example, the application system staff is difficult to Timely access to comprehensive configuration updates, in addition to the different application system configuration files need to be manually managed and configured by different developers, resulting in increased developer burden.
综上,当前的机构在进行应用系统服务器更新时,存在获取配置数据不及时,智能化程度低的问题。In summary, when the current organization performs the application server update, there is a problem that the acquisition configuration data is not timely and the degree of intelligence is low.
技术问题technical problem
现有技术在应用系统服务器更新时,存在的获取配置数据不及时、智能化程度低的问题。In the prior art, when the application system server is updated, there is a problem that the acquisition configuration data is not timely and the degree of intelligence is low.
技术解决方案Technical solution
本申请实施例的第一方面提供了一种配置更新方法,包括:A first aspect of the embodiment of the present application provides a configuration update method, including:
获取用户输入的配置名称,并调取预设的第一数据集合和预设的第二数据集合,所述第一数据集合包括配置名称与一个以上的配置服务器的对应关系,所述第二数据集合包括一个以上的路由协议;Obtaining a configuration name input by the user, and acquiring a preset first data set and a preset second data set, where the first data set includes a correspondence between the configuration name and one or more configuration servers, and the second data The set includes more than one routing protocol;
根据所述第一数据集合,查询所述配置名称对应的一个以上的配置服务器,作为候选服务器;Querying, according to the first data set, one or more configuration servers corresponding to the configuration name, as a candidate server;
通过所述第二数据集合中各个路由协议分别确定应用系统服务器与各个所述候选服务器的路由节点的数量,并基于所述路由节点的数量,在一个以上候选服务器中选取目标配置服务器,并确定传递路径;Determining, by each routing protocol in the second data set, a number of routing nodes of the application system server and each of the candidate servers, and selecting a target configuration server from one or more candidate servers based on the number of the routing nodes, and determining Passing path
将所述配置名称添加进注册配置请求,并将所述注册配置请求按照所述传递路径发送至所述目标配置服务器;Adding the configuration name to the registration configuration request, and sending the registration configuration request to the target configuration server according to the delivery path;
在接收到所述目标配置服务器返回的配置数据指令后,向所述目标配置服务器发送配置更新请求,所述配置数据指令用于提示所述配置名称对应的配置出现更新;After receiving the configuration data command returned by the target configuration server, sending a configuration update request to the target configuration server, where the configuration data command is used to prompt the configuration corresponding to the configuration name to be updated;
接收所述目标配置服务器发送的配置数据包,所述配置数据包包括所述配置名称对应的配置数据;Receiving a configuration data packet sent by the target configuration server, where the configuration data packet includes configuration data corresponding to the configuration name;
根据所述配置数据,对所述配置名称对应的配置进行更新。And updating, according to the configuration data, a configuration corresponding to the configuration name.
本申请实施例的第二方面提供了一种配置更新的响应方法,包括:A second aspect of the embodiment of the present application provides a response to a configuration update, including:
接收应用系统服务器发送的配置名称,并建立配置名称与应用系统服务器的标识的对应关系;Receiving a configuration name sent by the application system server, and establishing a correspondence between the configuration name and the identifier of the application system server;
调用CreateInstance函数创建RegisteredServer对象实例,通过所述RegisteredServer对象实例对所述配置名称对应的配置进行注册;Calling the CreateInstance function to create an instance of the RegisteredServer object, and registering the configuration corresponding to the configuration name by using the RegisteredServer object instance;
监听配置服务器内是否出现配置更新事件;Monitor the configuration server for a configuration update event;
若出现所述配置更新事件,则确定出所述配置更新事件的配置名称,并根据所述配置名称与应用系统服务器的标识的对应关系,向所述配置名称对应的应用系统服务器发送配置数据指令;If the configuration update event occurs, determining a configuration name of the configuration update event, and sending a configuration data instruction to the application system server corresponding to the configuration name according to the correspondence between the configuration name and the identifier of the application system server ;
在所述配置服务器的配置数据库中存储所述配置更新事件,并记录存储时间,以建立所述配置更新事件与存储时间的对应关系;Storing the configuration update event in a configuration database of the configuration server, and recording a storage time to establish a correspondence between the configuration update event and the storage time;
在接收到所述应用系统服务器发送的配置更新请求后,根据所述配置更新事件与存储时间的对应关系,向所述应用系统服务器发送配置数据包,所述配置数据包内含有所述配置更新事件的配置数据。After receiving the configuration update request sent by the application system server, sending a configuration data packet to the application system server according to the correspondence between the configuration update event and the storage time, where the configuration data packet includes the configuration update Configuration data for the event.
本申请实施例的第三方面提供了一种配置更新的交互方法,其特征在于,包括:The third aspect of the embodiment of the present application provides an interaction method for configuring an update, which includes:
应用系统服务器获取用户输入的配置名称,并调取预设的第一数据集合和预设的第二数据集合,所述第一数据集合包括配置名称与一个以上的配置服务器的对应关系,所述第二数据集合包括一个以上的路由协议;Obtaining, by the application server, the configuration name input by the user, and the preset first data set and the preset second data set, where the first data set includes a correspondence between the configuration name and one or more configuration servers, The second data set includes more than one routing protocol;
所述应用系统服务器根据所述第一数据集合,查询所述配置名称对应的一个以上的配置服务器,作为候选服务器;The application system server queries one or more configuration servers corresponding to the configuration name as a candidate server according to the first data set;
所述应用系统服务器通过所述第二数据集合中各个路由协议分别确定应用系统服务器与各个所述候选服务器的路由节点的数量,并基于所述路由节点的数量,在一个以上候选服务器中选取目标配置服务器,并确定传递路径;The application system server respectively determines the number of routing nodes of the application system server and each of the candidate servers by using each routing protocol in the second data set, and selects a target among more than one candidate server based on the number of the routing nodes. Configuring the server and determining the delivery path;
所述应用系统服务器将所述配置名称添加进注册配置请求,并将所述注册配置请求按照所述传递路径发送至所述目标配置服务器;The application system server adds the configuration name to the registration configuration request, and sends the registration configuration request to the target configuration server according to the delivery path;
所述目标配置服务器接收所述注册配置请求,并建立配置名称与应用系统服务器的标识的对应关系;Receiving, by the target configuration server, the registration configuration request, and establishing a correspondence between the configuration name and the identifier of the application system server;
所述目标配置服务器调用CreateInstance函数创建RegisteredServer对象实例,通过所述RegisteredServer对象实例对所述配置名称对应的配置进行注册;The target configuration server calls the CreateInstance function to create a RegisteredServer object instance, and registers the configuration corresponding to the configuration name by using the RegisteredServer object instance;
所述目标配置服务器监听配置服务器内是否出现配置更新事件;The target configuration server monitors whether a configuration update event occurs in the configuration server;
若出现所述配置更新事件,所述目标配置服务器确定出所述配置更新事件的配置名称,并根据所述配置名称与应用系统服务器的标识的对应关系,向所述配置名称对应的应用系统服务器发送配置数据指令,在所述配置服务器的配置数据库中存储所述配置更新事件,并记录存储时间,以建立所述配置更新事件与存储时间的对应关系;If the configuration update event occurs, the target configuration server determines the configuration name of the configuration update event, and according to the correspondence between the configuration name and the identifier of the application system server, the application system server corresponding to the configuration name Sending a configuration data instruction, storing the configuration update event in a configuration database of the configuration server, and recording a storage time to establish a correspondence between the configuration update event and the storage time;
所述应用系统服务器在接收到所述目标配置服务器返回的配置数据指令后,向所述目标配置服务器发送配置更新请求,所述配置数据指令用于提示所述配置名称对应的配置出现更新;After receiving the configuration data command returned by the target configuration server, the application system server sends a configuration update request to the target configuration server, where the configuration data command is used to prompt the configuration corresponding to the configuration name to be updated;
所述目标配置服务器在接收到所述配置更新请求后,根据所述配置更新事件与存储时间的对应关系,向所述应用系统服务器发送配置数据包,所述配置数据包内含有所述配置更新事件的配置数据;After receiving the configuration update request, the target configuration server sends a configuration data packet to the application system server according to the correspondence between the configuration update event and the storage time, where the configuration data packet includes the configuration update Configuration data for the event;
所述应用系统服务器接收所述配置数据包,并根据所述配置数据,对所述配置名称对应的配置进行更新。The application system server receives the configuration data packet, and updates the configuration corresponding to the configuration name according to the configuration data.
本申请实施例的第四方面提供了一种应用系统服务器,包括存储器以及处理器,所述存储器中存储有可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如第一方面所述的配置更新方法的步骤。A fourth aspect of an embodiment of the present application provides an application system server including a memory and a processor, wherein the memory stores computer readable instructions executable on the processor, the processor executing the computer The steps of the configuration update method as described in the first aspect are implemented when the instructions are readable.
本申请实施例的第五方面提供了一种配置服务器,包括存储器以及处理器,所述存储器中存储有可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如第一方面所述的配置更新的响应方法的步骤。A fifth aspect of the embodiments of the present application provides a configuration server including a memory and a processor, wherein the memory stores computer readable instructions executable on the processor, the processor executing the computer The step of implementing the response method of the configuration update as described in the first aspect when the instruction is read.
本申请实施例的第六方面提供了一种配置更新的交互系统,该配置更新的交互系统包括用于执行上述第一方面所述的配置更新方法的应用系统服务器,还包括用于执行上述第二方面所述的配置更新的响应方法的配置服务器。A sixth aspect of the embodiments of the present application provides an interaction system for configuring an update, where the interaction system of the configuration update includes an application system server for performing the configuration update method described in the first aspect, and further includes The configuration server of the response method of the configuration update described in the second aspect.
有益效果Beneficial effect
本申请实施例中,通过获取配置名称,调取预设的第一数据集合和预设的第二数据集合,根据第一数据集合,查询配置名称对应的配置服务器作为候选服务器;通过第二数据集合中各个路由协议确定应用系统服务器与候选服务器的路由节点的数量,并在一个以上候选服务器中选取目标配置服务器,并确定传递路径;将配置名称添加进注册配置请求并按照传递路径发送至目标配置服务器;在接收到目标配置服务器返回的配置数据指令后,向目标配置服务器发送配置更新请求;接收目标配置服务器发送的配置数据包,根据配置数据包,对配置进行更新,以提高更新配置数据的效率和智能化程度。In the embodiment of the present application, the preset first data set and the preset second data set are obtained by acquiring the configuration name, and the configuration server corresponding to the configuration name is used as the candidate server according to the first data set; Each routing protocol in the set determines the number of routing nodes of the application server and the candidate server, selects the target configuration server among more than one candidate server, and determines the delivery path; adds the configuration name to the registration configuration request and sends the configuration request to the target according to the delivery path. Configuring the server; after receiving the configuration data command returned by the target configuration server, sending a configuration update request to the target configuration server; receiving the configuration data packet sent by the target configuration server, and updating the configuration according to the configuration data packet to improve the update configuration data Efficiency and intelligence.
附图说明DRAWINGS
图1是本申请实施例一提供的配置更新方法的实现流程图;1 is a flowchart of an implementation of a configuration update method according to Embodiment 1 of the present application;
图2是本申请实施例一提供的配置更新方法S103的具体实现流程图;2 is a flowchart of a specific implementation of a configuration update method S103 according to Embodiment 1 of the present application;
图3是本申请实施例二提供的配置更新的响应方法的实现流程图;3 is a flowchart of an implementation of a response method for configuration update provided by Embodiment 2 of the present application;
图4是本申请实施例二提供的配置更新的响应方法S206的具体实现流程图;4 is a specific implementation flowchart of a response update method S206 of the configuration update provided by the second embodiment of the present application;
图5是本申请实施例四提供的应用系统服务器的示意图;5 is a schematic diagram of an application system server provided in Embodiment 4 of the present application;
图6是本申请实施例五提供的配置服务器的示意图;6 is a schematic diagram of a configuration server provided in Embodiment 5 of the present application;
图7是本申请实施例六提供的配置更新的交互系统的系统交互图。FIG. 7 is a system interaction diagram of an interaction system of a configuration update provided by Embodiment 6 of the present application.
本发明的实施方式Embodiments of the invention
实施例一Embodiment 1
本申请实施例主要描述应用系统服务器一端。The embodiment of the present application mainly describes one end of an application system server.
图1示出了本申请实施例一提供的配置更新方法的实现流程,该方法流程包括步骤S101至S107。各步骤的具体实现原理如下:FIG. 1 shows an implementation flow of a configuration update method provided in Embodiment 1 of the present application, where the method flow includes steps S101 to S107. The specific implementation principles of each step are as follows:
S101:获取用户输入的配置名称,并调取预设的第一数据集合和预设的第二数据集合,所述第一数据集合包括配置名称与一个以上的配置服务器的对应关系,所述第二数据集合包括一个以上的路由协议。S101: Obtain a configuration name input by the user, and retrieve a preset first data set and a preset second data set, where the first data set includes a correspondence between the configuration name and one or more configuration servers, where The two data sets include more than one routing protocol.
在本申请实施例中,主要涉及两类服务器,一类是应用系统服务器,另一类是配置服务器,其中,应用系统服务器用于提供某种特定的应用服务,例如,以银行系统为例,其中包括了登录应用系统服务器、金融信息查询应用系统服务器、金融交易应用系统服务器等多种应用系统;配置服务器在本申请实施例中用于管理各个应用系统服务器的配置文件,保证应用系统服务器高效稳定的工作。In the embodiment of the present application, there are mainly two types of servers, one is an application system server, and the other is a configuration server, wherein the application system server is used to provide a specific application service, for example, a banking system is taken as an example. The application server includes a login application system server, a financial information query application system server, a financial transaction application system server, and the like. The configuration server is used to manage configuration files of each application system server in the embodiment of the present application to ensure that the application system server is highly efficient. Stable job.
可选地,在本申请实施例中,应用系统服务器的用户输入配置名称,当应用系统服务器获取到该配置名称后,即开始配置更新流程。Optionally, in the embodiment of the present application, the user of the application system server inputs a configuration name, and when the application system server obtains the configuration name, the configuration update process begins.
可选地,应用系统服务器的内部存储器存储有两个数据集合,其中,在本申请实施例中,第一数据集合用于描述配置名称与配置服务器的对应关系,值得注意地,一个配置名称可能与多个配置服务器对应,即不同的配置服务器可能管理同一个配置,但是,值得注意地,在本申请实施例中所提及的多个配置服务器不会出现对于同一个配置存储有不同的配置数据的情况,因为一旦一个配置的配置数据被更改,则全部存储该配置的配置服务器同步更新该配置的配置数据。此外,第二数据集合中包含有一个以上的路由协议,可以理解地,在同一个网络系统中,通过不同的路由协议计算出的路由可能不同。Optionally, the internal memory of the application system server stores two data sets, where, in the embodiment of the present application, the first data set is used to describe the correspondence between the configuration name and the configuration server, and notably, a configuration name may be Corresponding to multiple configuration servers, that is, different configuration servers may manage the same configuration, but, notably, multiple configuration servers mentioned in the embodiments of the present application do not have different configurations for the same configuration storage. In the case of data, once the configuration data of one configuration is changed, the configuration server that stores all the configurations synchronously updates the configuration data of the configuration. In addition, the second data set includes more than one routing protocol. It can be understood that the routes calculated by different routing protocols may be different in the same network system.
S102:根据所述第一数据集合,查询所述配置名称对应的一个以上的配置服务器,作为候选服务器。S102: Query one or more configuration servers corresponding to the configuration name as a candidate server according to the first data set.
如上文所述,一个配置名称可能与多个配置服务器对应,所以在步骤中首先确定可以提供该配置名称对应的配置数据的配置服务器。As described above, a configuration name may correspond to a plurality of configuration servers, so in the step, a configuration server that can provide configuration data corresponding to the configuration name is first determined.
S103,通过所述第二数据集合中各个路由协议分别确定应用系统服务器与各个所述候选服务器的路由节点的数量,并基于所述路由节点的数量,在一个以上候选服务器中选取目标配置服务器,并确定传递路径。S103. Determine, by using each routing protocol in the second data set, a number of routing nodes of the application system server and each of the candidate servers, and select a target configuration server among one or more candidate servers based on the number of the routing nodes. And determine the delivery path.
在本申请实施例中,由于应用系统服务器与各个候选服务器在网络中所必须经过的路由节点的数量是不同,而同一个应用系统服务器与同一个候选服务器通过不同的路由协议确定的路由节点的数量也可能是不同的,所以首先需要一个准确的逻辑规则计算应用系统服务器与各个候选服务器的路由节点的数量,并基于一个路由节点的数量的最小值,确定传递路径,具体的传递路径的确定方法如图2所示。In the embodiment of the present application, since the number of routing nodes that the application system server and each candidate server must pass through in the network is different, the same application system server and the same candidate server determine the routing node through different routing protocols. The quantity may also be different, so firstly, an accurate logic rule is needed to calculate the number of routing nodes of the application server and each candidate server, and determine the delivery path based on the minimum number of routing nodes, and the specific delivery path is determined. The method is shown in Figure 2.
作为本申请的一个实施例,如图2所示,上述S103包括:As an embodiment of the present application, as shown in FIG. 2, the foregoing S103 includes:
S1031,通过各个所述路由协议分别计算应用系统服务器与各个所述候选服务器的路由节点的数量,以生成路由协议选择列表,所述路由协议选择列表包括:路由协议、候选服务器以及一个以上路由节点的数量的对应关系。S1031: Calculate, by each of the routing protocols, a number of routing nodes of the application system server and each of the candidate servers, to generate a routing protocol selection list, where the routing protocol selection list includes: a routing protocol, a candidate server, and one or more routing nodes. The corresponding relationship of the number.
如上文所述,同一个应用系统服务器与同一个候选服务器通过不同的路由协议确定的路由节点的数量也可能是不同的,此外,即使当一个路由协议确定时,候选服务器与应用系统服务器之间可能存在多条传递路径,因此候选服务器依然可能对应多个路由节点的数量。由于上述的原因,在本申请实施例中,一个路由协议选择列表包含的是路由协议、候选服务器以及一个以上路由节点的数量的对应关系。As described above, the number of routing nodes determined by the same application server and the same candidate server through different routing protocols may also be different. In addition, even when a routing protocol is determined, between the candidate server and the application server There may be multiple delivery paths, so the candidate server may still correspond to the number of multiple routing nodes. For the above reasons, in the embodiment of the present application, a routing protocol selection list includes a correspondence relationship between a routing protocol, a candidate server, and a number of routing nodes.
S1032,将所述路由协议选择列表中最小的所述路由节点的数量,作为被选数量。S1032. The minimum number of the routing nodes in the routing protocol selection list is used as the selected number.
可以理解地,在本申请实施例中,被选数量在路由协议选择列表中对应有一个或多个配置服务器,以及一个或多个路由协议。It can be understood that, in the embodiment of the present application, the selected number corresponds to one or more configuration servers and one or more routing protocols in the routing protocol selection list.
S1033,在所述路由协议列表中任意选择所述被选数量对应的一个路由协议作为被选路由协议,并在所述路由协议列表中选择所述被选数量以及所述被选路由协议共同对应的候选服务器作为目标配置服务器。S1033, arbitrarily selecting a routing protocol corresponding to the selected quantity as the selected routing protocol in the routing protocol list, and selecting, in the routing protocol list, the selected quantity and the selected routing protocol to jointly correspond. The candidate server serves as the target configuration server.
可选地,若在路由协议列表中一个被选数量对应多个路由协议,但各个路由协议没有预设的优先级,则任意选择一个被选数量对应的一个路由协议作为被选路由协议。Optionally, if a selected number in the routing protocol list corresponds to multiple routing protocols, but each routing protocol has no preset priority, then one routing protocol corresponding to the selected number is arbitrarily selected as the selected routing protocol.
可选地,若在路由协议列表中一个被选数量对应多个路由协议,且各个路由协议有其预设的优先级,则任意选择一个优先级最高的被选数量对应的一个路由协议作为被选路由协议。Optionally, if a selected number in the routing protocol list corresponds to multiple routing protocols, and each routing protocol has a preset priority, then a routing protocol corresponding to the selected number with the highest priority is arbitrarily selected as the Select a routing protocol.
可以理解地,由于路由协议列表中包含的是路由协议、候选服务器以及一个以上路由节点的数量的对应关系,所以当被选数量(即选定的路由节点的数量)以及路由协议确定后,就可以确定出一个唯一的候选服务器,并将其作为目标配置服务器。Obviously, since the routing protocol list includes the correspondence relationship between the routing protocol, the candidate server, and the number of more than one routing node, when the selected number (that is, the number of selected routing nodes) and the routing protocol are determined, A unique candidate server can be identified and configured as a target configuration server.
S1034,根据所述被选路由协议生成所述应用系统服务器到所述目标配置服务器的一个以上的路径,生成第一候选路径集合,并在所述第一候选路径集合中选取一个以上路径节点的数量为被选数量的路径,生成第二候选路径集合。S1034. Generate one or more paths of the application system server to the target configuration server according to the selected routing protocol, generate a first candidate path set, and select one or more path nodes in the first candidate path set. The number is the selected number of paths, and a second candidate path set is generated.
可以理解地,如上文所述,一个路由协议并不一定能够唯一确定一条应用系统服务器到目标配置服务器的路径,此外,可能多个路径上所包含的路由节点的数量并列最小,都为被选数量,所以第二候选路径集合中可能依然包括多条路径。It can be understood that, as described above, a routing protocol does not necessarily uniquely determine the path of an application system server to the target configuration server. In addition, the number of routing nodes included in multiple paths may be the smallest and the selected ones are selected. The number, so the second candidate path set may still include multiple paths.
S1035,计算所述第二候选路径集合中的各个路径的路由开销,选择一个路由开销最小的路径作为传递路径。S1035. Calculate a routing cost of each path in the second candidate path set, and select a path with the smallest routing overhead as the delivery path.
可以理解地,可以采用公知常识的静态路由开销的计算方法计算各个路径的路由开销,并在第二候选路径集合中选择一个路由开销最小的路径作为传递路径。It can be understood that the calculation method of the static route cost of common knowledge can be used to calculate the route cost of each path, and the path with the smallest route overhead is selected as the delivery path in the second candidate path set.
可以理解地,在本申请实施例中,通过独特的路由协议选择列表,基于应用系统服务器与各个所述候选服务器的路由节点的数量确定出最佳传递路径,有利于提高对目标配置服务器的选择效率,以及有利于提高应用系统服务器到配置服务器之间数据传输的效率。It can be understood that, in the embodiment of the present application, the optimal routing path is determined based on the number of routing nodes of the application system server and each of the candidate servers by using a unique routing protocol selection list, which is beneficial to improving the selection of the target configuration server. Efficiency, and the efficiency of data transfer between the application server and the configuration server.
S104,将所述配置名称添加进注册配置请求,并将所述注册配置请求按照所述传递路径发送至所述目标配置服务器。S104. Add the configuration name to the registration configuration request, and send the registration configuration request to the target configuration server according to the delivery path.
S105,在接收到所述目标配置服务器返回的配置数据指令后,向所述目标配置服务器发送配置更新请求,所述配置数据指令用于提示所述配置名称对应的配置出现更新。S105. After receiving the configuration data command returned by the target configuration server, send a configuration update request to the target configuration server, where the configuration data command is used to prompt that the configuration corresponding to the configuration name is updated.
在本申请实施例中,在将注册配置请求发送至目标配置服务器后,即可完成该配置名称在所述目标配置服务器中的注册。一旦相关事件发生,目标配置服务器会向本应用系统服务器返回配置数据指令。由于本申请实施例是介绍应用系统服务器一端的处理流程,因此对于目标配置服务器的相关介绍,将在下文实施例中详述。In the embodiment of the present application, after the registration configuration request is sent to the target configuration server, the registration of the configuration name in the target configuration server may be completed. Once the relevant event occurs, the target configuration server will return configuration data instructions to the application server. Since the embodiment of the present application introduces the processing flow of the application system server, the related description of the target configuration server will be described in detail in the following embodiments.
S106,接收所述目标配置服务器发送的配置数据包,所述配置数据包包括所述配置名称对应的配置数据。S106. Receive configuration data packets sent by the target configuration server, where the configuration data packet includes configuration data corresponding to the configuration name.
可以理解地,通过上文介绍的步骤S104-S106可知,应用系统服务器通过两次发送以及两次接收的过程,获取到配置名称对应的配置数据。值得注意地,第一次收发数据和第二次收发数据并不是连续进行的,其中,第一次收发数据是由应用系统服务器触发的,而后一次收发数据是由目标配置服务器触发的,由此可以实现目标配置服务器及时主动地将配置数据发送至应用系统服务器。It can be understood that, by using the steps S104-S106 described above, the application system server obtains the configuration data corresponding to the configuration name by the process of two transmissions and two receptions. Notably, the first time the data is sent and received and the second time is not continuously transmitted. The first time the data is sent and received is triggered by the application system server, and the data is sent and received by the target configuration server. The target configuration server can be implemented to actively send configuration data to the application system server in a timely manner.
S107:根据所述配置数据,对所述配置名称对应的配置进行更新。S107: Update, according to the configuration data, a configuration corresponding to the configuration name.
在本申请实施例中,通过获取配置名称,调取预设的第一数据集合和预设的第二数据集合,根据第一数据集合,查询配置名称对应的配置服务器作为候选服务器;通过第二数据集合中各个路由协议确定应用系统服务器与候选服务器的路由节点的数量,并在一个以上候选服务器中选取目标配置服务器,并确定传递路径;将配置名称添加进注册配置请求并按照传递路径发送至目标配置服务器;在接收到目标配置服务器返回的配置数据指令后,向目标配置服务器发送配置更新请求;接收目标配置服务器发送的配置数据包,根据配置数据包,对配置进行更新,以提高更新配置数据的效率和智能化程度。In the embodiment of the present application, the preset first data set and the preset second data set are obtained by acquiring the configuration name, and the configuration server corresponding to the configuration name is used as the candidate server according to the first data set; Each routing protocol in the data set determines the number of routing nodes of the application server and the candidate server, selects the target configuration server among more than one candidate server, and determines the delivery path; adds the configuration name to the registration configuration request and sends the configuration request to the delivery path to The target configuration server sends a configuration update request to the target configuration server after receiving the configuration data command returned by the target configuration server; receives the configuration data packet sent by the target configuration server, and updates the configuration according to the configuration data packet to improve the update configuration. The efficiency and intelligence of the data.
实施例二Embodiment 2
本申请实施例主要描述配置服务器一端。The embodiment of the present application mainly describes one end of the configuration server.
图3是本申请实施例二提供的配置更新的响应方法的实现流程图,该方法流程包括步骤S201至S206。各步骤的具体实现原理如下。FIG. 3 is a flowchart of an implementation of a response to a configuration update according to Embodiment 2 of the present application, where the method includes steps S201 to S206. The specific implementation principle of each step is as follows.
S201,接收应用系统服务器发送的配置名称,并建立配置名称与应用系统服务器的标识的对应关系。S201. Receive a configuration name sent by the application system server, and establish a correspondence between the configuration name and the identifier of the application system server.
在本申请实施例中,主要涉及两类服务器,一类是应用系统服务器,另一类是配置服务器。其中,应用系统服务器用于提供某种特定的应用服务,配置服务器在本申请实施例中用于管理各个应用系统服务器的配置文件,保证应用系统服务器高效稳定的工作。In the embodiment of the present application, two types of servers are mainly involved, one is an application system server, and the other is a configuration server. The application system server is used to provide a specific application service, and the configuration server is used to manage the configuration files of each application system server in the embodiment of the present application to ensure efficient and stable operation of the application system server.
可以理解地,当配置服务器接收到配置名称后,首先会确定该配置名称是由哪个应用系统服务器发送的,并建立配置名称与应用系统服务器的标识的对应关系,以在后续的过程中,将配置数据发送给对应的应用系统服务器。It can be understood that, after the configuration server receives the configuration name, it first determines which application system server the configuration name is sent by, and establishes a correspondence between the configuration name and the identifier of the application system server, so as to be in the subsequent process, The configuration data is sent to the corresponding application system server.
S202,调用CreateInstance函数创建RegisteredServer对象实例,通过所述RegisteredServer对象实例对所述配置名称对应的配置进行注册。S202. Create a RegisteredServer object instance by using the CreateInstance function, and register the configuration corresponding to the configuration name by using the RegisteredServer object instance.
在本申请实施例中,通过CreateInstance函数可以创建多种类型的对象实例,其中,RegisteredServer对象实例可以将配置名称对应的配置进行注册。可以理解地,当一个配置名称对应的配置注册后,如果在配置服务器中出现有关该配置名称的预设事件时,配置服务器会进行预设的操作。In the embodiment of the present application, multiple instances of object instances can be created by using the CreateInstance function, where the RegisteredServer object instance can register the configuration corresponding to the configuration name. It can be understood that, when a configuration corresponding to a configuration name is registered, if a preset event related to the configuration name appears in the configuration server, the configuration server performs a preset operation.
S203,监听配置服务器内是否出现配置更新事件。S203. Monitor whether a configuration update event occurs in the configuration server.
S204,若出现所述配置更新事件,则确定出所述配置更新事件的配置名称,并根据所述配置名称与应用系统服务器的标识的对应关系,向所述配置名称对应的应用系统服务器发送配置数据指令。S204, if the configuration update event occurs, determining a configuration name of the configuration update event, and sending a configuration to the application system server corresponding to the configuration name according to the correspondence between the configuration name and the identifier of the application system server. Data instruction.
根据上文实施例可知,可能有多个不同的应用系统服务器向一个配置服务器发送了相同的配置名称,因为这些应用系统服务器都希望及时更新同一个配置;此外,一个应用系统服务器可能向一个配置服务器发送了多个配置名称。因此,对于一个配置服务器而言,通过步骤S202,其内部可能存储有多个配置名称与多个应用系统服务器的标识的对应关系。According to the above embodiment, there may be multiple different application system servers sending the same configuration name to one configuration server, because these application system servers want to update the same configuration in time; in addition, one application system server may be configured to one configuration. The server sent multiple configuration names. Therefore, for a configuration server, through step S202, a correspondence between a plurality of configuration names and identifiers of a plurality of application system servers may be stored therein.
可以理解地,一旦根据配置更新事件锁定了一个出现更新的配置的配置名称,就可以根据配置名称与应用系统服务器的标识的对应关系,向一个以上的配置名称对应的应用系统服务器发送配置数据指令。It can be understood that, once the configuration name of the updated configuration is locked according to the configuration update event, the configuration data command may be sent to the application system server corresponding to the one or more configuration names according to the correspondence between the configuration name and the identifier of the application server. .
S205,在所述配置服务器的配置数据库中存储所述配置更新事件,并记录存储时间,以建立所述配置更新事件与存储时间的对应关系。S205. Store the configuration update event in a configuration database of the configuration server, and record a storage time to establish a correspondence between the configuration update event and the storage time.
S206,在接收到所述应用系统服务器发送的配置更新请求后,根据所述配置更新事件与存储时间的对应关系,向所述应用系统服务器发送配置数据包,所述配置数据包内含有所述配置更新事件的配置数据。S206. After receiving the configuration update request sent by the application system server, send a configuration data packet to the application system server according to the correspondence between the configuration update event and the storage time, where the configuration data packet includes the Configure configuration data for update events.
根据上文实施例可知,在配置服务器通过步骤S204向应用系统服务器发送配置数据指令后,会接收到应用系统服务器发送的配置更新请求。此时配置服务器会调用CreateInstance函数,以完成对于配置名称对应的配置数据的搜索和调用。According to the above embodiment, after the configuration server sends the configuration data command to the application system server in step S204, the configuration update request sent by the application system server is received. At this point, the configuration server will call the CreateInstance function to complete the search and call for the configuration data corresponding to the configuration name.
作为本申请的一个实施例,如图4所示,上述S206包括:As an embodiment of the present application, as shown in FIG. 4, the above S206 includes:
S2061,调用CreateInstance函数创建SQLServer对象实例。S2061, call the CreateInstance function to create an instance of the SQLServer object.
在本申请实施例中,通过CreateInstance函数可以创建多种类型的对象实例,其中,SQLServer对象实例可用于与配置数据库进行连接。在本申请实施例中,配置数据库存储有各个配置名称对应的配置数据,以及配置数据与存储时间的对应关系。In the embodiment of the present application, multiple types of object instances can be created by using the CreateInstance function, wherein the SQLServer object instance can be used to connect with the configuration database. In the embodiment of the present application, the configuration database stores configuration data corresponding to each configuration name, and a corresponding relationship between the configuration data and the storage time.
S2062,通过所述SQLServer对象实例建立与所述配置数据库的连接,并记录接收到配置更新请求的时间,作为请求时间。S2062: Establish a connection with the configuration database by using the SQLServer object instance, and record a time when the configuration update request is received as the request time.
S2063,从所述配置数据库中调取与所述配置名称对应的且所述存储时间与所述请求时间的间隔最小的配置更新事件,作为被选的配置更新事件,并将所述被选的配置更新事件的配置数据添加进所述配置数据包。S2063: Retrieving, from the configuration database, a configuration update event corresponding to the configuration name and having a minimum interval between the storage time and the request time, as the selected configuration update event, and selecting the selected The configuration data of the configuration update event is added to the configuration packet.
可以理解地,在本申请实施例中,通过记录存储时间以及请求时间,可以准确的在大量数据中筛选出最新的且是相关应用系统服务器需要的配置数据。It can be understood that, in the embodiment of the present application, by recording the storage time and the request time, the latest configuration data required by the related application system server can be accurately filtered out in a large amount of data.
S2064,将所配置数据包发送至应用系统服务器。S2064: Send the configured data packet to the application system server.
实施例三Embodiment 3
本申请实施例主要介绍配置更新的交互方法,由于在交互的过程中,应用系统服务器与配置服务器的工作流程和原理都在上文实施例进行了详细的描述,所以在此只进行概括式介绍,具体的介绍内容参见上文实施例。The embodiment of the present application mainly introduces an interaction method for configuring an update. Since the workflow and principles of the application system server and the configuration server are described in detail in the above embodiments during the interaction process, only a general introduction is provided herein. For specific introductions, see the above embodiment.
在本申请实施例中,配置更新的交互方法,包括:In the embodiment of the present application, the interaction method for configuring the update includes:
应用系统服务器获取用户输入的配置名称,并调取预设的第一数据集合和预设的第二数据集合,所述第一数据集合包括配置名称与一个以上的配置服务器的对应关系,所述第二数据集合包括一个以上的路由协议;Obtaining, by the application server, the configuration name input by the user, and the preset first data set and the preset second data set, where the first data set includes a correspondence between the configuration name and one or more configuration servers, The second data set includes more than one routing protocol;
所述应用系统服务器根据所述第一数据集合,查询所述配置名称对应的一个以上的配置服务器,作为候选服务器;The application system server queries one or more configuration servers corresponding to the configuration name as a candidate server according to the first data set;
所述应用系统服务器通过所述第二数据集合中各个路由协议分别确定应用系统服务器与各个所述候选服务器的路由节点的数量,并基于所述路由节点的数量,在一个以上候选服务器中选取目标配置服务器,并确定传递路径;The application system server respectively determines the number of routing nodes of the application system server and each of the candidate servers by using each routing protocol in the second data set, and selects a target among more than one candidate server based on the number of the routing nodes. Configuring the server and determining the delivery path;
所述应用系统服务器将所述配置名称添加进注册配置请求,并将所述注册配置请求按照所述传递路径发送至所述目标配置服务器;所述目标配置服务器接收所述注册配置请求,并建立配置名称与应用系统服务器的标识的对应关系;The application system server adds the configuration name to a registration configuration request, and sends the registration configuration request to the target configuration server according to the delivery path; the target configuration server receives the registration configuration request, and establishes Correspondence between the configuration name and the identity of the application server;
所述目标配置服务器调用CreateInstance函数创建RegisteredServer对象实例,通过所述RegisteredServer对象实例对所述配置名称对应的配置进行注册;所述目标配置服务器监听配置服务器内是否出现配置更新事件;The target configuration server calls the CreateInstance function to create a RegisteredServer object instance, and registers the configuration corresponding to the configuration name by using the RegisteredServer object instance; the target configuration server monitors whether a configuration update event occurs in the configuration server;
若出现所述配置更新事件,所述目标配置服务器确定出所述配置更新事件的配置名称,并根据所述配置名称与应用系统服务器的标识的对应关系,向所述配置名称对应的应用系统服务器发送配置数据指令,在所述配置服务器的配置数据库中存储所述配置更新事件,并记录存储时间,以建立所述配置更新事件与存储时间的对应关系;所述应用系统服务器在接收到所述目标配置服务器返回的配置数据指令后,向所述目标配置服务器发送配置更新请求,所述配置数据指令用于提示所述配置名称对应的配置出现更新;所述目标配置服务器在接收到所述配置更新请求后,根据所述配置更新事件与存储时间的对应关系,向所述应用系统服务器发送配置数据包,所述配置数据包内含有所述配置更新事件的配置数据;If the configuration update event occurs, the target configuration server determines the configuration name of the configuration update event, and according to the correspondence between the configuration name and the identifier of the application system server, the application system server corresponding to the configuration name Sending a configuration data instruction, storing the configuration update event in a configuration database of the configuration server, and recording a storage time to establish a correspondence between the configuration update event and a storage time; the application system server receiving the After the configuration data command returned by the target configuration server, the configuration update request is sent to the target configuration server, where the configuration data command is used to prompt the configuration corresponding to the configuration name to be updated; the target configuration server receives the configuration. After the update request, sending, according to the correspondence between the configuration update event and the storage time, a configuration data packet to the application system server, where the configuration data packet includes configuration data of the configuration update event;
所述应用系统服务器接收所述配置数据包,并根据所述配置数据,对所述配置名称对应的配置进行更新。The application system server receives the configuration data packet, and updates the configuration corresponding to the configuration name according to the configuration data.
可以理解地,发明实施例有助于提高更新配置数据的效率和智能化程度。As can be appreciated, embodiments of the invention help to increase the efficiency and intelligence of updating configuration data.
实施例四Embodiment 4
如图5所示,该实施例的应用系统服务器5包括:处理器50、存储器51以及存储在所述存储器51中并可在所述处理器50上运行的计算机可读指令52,例如配置更新程序。所述处理器50执行所述计算机可读指令52时实现上述各个配置更新方法实施例中的步骤,例如图1所示的步骤101至107。As shown in FIG. 5, the application system server 5 of this embodiment includes a processor 50, a memory 51, and computer readable instructions 52 stored in the memory 51 and operable on the processor 50, such as configuration updates. program. The processor 50, when executing the computer readable instructions 52, implements the steps in the various embodiments of the various configuration update methods described above, such as steps 101 through 107 shown in FIG.
示例性的,所述计算机可读指令52可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器51中,并由所述处理器50执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机可读指令指令段,该指令段用于描述所述计算机可读指令52在所述电子设备5中的执行过程。Illustratively, the computer readable instructions 52 may be partitioned into one or more modules/units that are stored in the memory 51 and executed by the processor 50, To complete this application. The one or more modules/units may be a series of computer readable instruction instructions segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer readable instructions 52 in the electronic device 5.
实施例五Embodiment 5
图6是本申请实施例五提供的配置服务器的示意图。如图6所示,该实施例的配置服务器6包括:处理器60、存储器61以及存储在所述存储器61中并可在所述处理器60上运行的计算机可读指令62,例如配置更新程序。所述处理器60执行所述计算机可读指令62时实现上述各个配置更新方法实施例中的步骤,例如图2所示的步骤201至206。FIG. 6 is a schematic diagram of a configuration server provided in Embodiment 5 of the present application. As shown in FIG. 6, the configuration server 6 of this embodiment includes a processor 60, a memory 61, and computer readable instructions 62 stored in the memory 61 and executable on the processor 60, such as a configuration update program. . The processor 60 executes the computer readable instructions 62 to implement the steps in the various configuration update method embodiments described above, such as steps 201 through 206 shown in FIG.
示例性的,所述计算机可读指令62可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器61中,并由所述处理器60执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机可读指令指令段,该指令段用于描述所述计算机可读指令62在所述电子设备6中的执行过程。Illustratively, the computer readable instructions 62 may be partitioned into one or more modules/units that are stored in the memory 61 and executed by the processor 60, To complete this application. The one or more modules/units may be a series of computer readable instruction instruction segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer readable instructions 62 in the electronic device 6.
实施例六Embodiment 6
对应于上文实施例所述的设备同步操作的方法,图7示出了本申请实施例六提供的配置更新的交互系统的系统交互图,为了便于说明,仅示出了与本申请实施例相关的部分。FIG. 7 is a system interaction diagram of an interaction update system provided by Embodiment 6 of the present application. For ease of description, only the embodiment of the present application is shown. Related parts.
参照图7,该配置更新的交互系统包括:Referring to FIG. 7, the interaction system of the configuration update includes:
应用系统服务器701,用于获取用户输入的配置名称,并调取预设的第一数据集合和预设的第二数据集合,所述第一数据集合包括配置名称与一个以上的配置服务器的对应关系,所述第二数据集合包括一个以上的路由协议;所述应用系统服务器701,用于根据所述第一数据集合,查询所述配置名称对应的一个以上的配置服务器,作为候选服务器;所述应用系统服务器701,用于通过所述第二数据集合中各个路由协议分别确定应用系统服务器与各个所述候选服务器的路由节点的数量,并基于所述路由节点的数量,在一个以上候选服务器中选取目标配置服务器,并确定传递路径;所述应用系统服务器701,用于将所述配置名称添加进注册配置请求,并将所述注册配置请求按照所述传递路径发送至所述目标配置服务器;The application server 701 is configured to obtain a configuration name input by the user, and retrieve a preset first data set and a preset second data set, where the first data set includes a configuration name corresponding to one or more configuration servers. a relationship, the second data set includes one or more routing protocols; the application system server 701 is configured to query, according to the first data set, one or more configuration servers corresponding to the configuration name as a candidate server; The application system server 701 is configured to determine, by using each routing protocol in the second data set, a number of routing nodes of the application system server and each of the candidate servers, and based on the number of the routing nodes, on one or more candidate servers. Selecting a target configuration server, and determining a delivery path; the application system server 701, configured to add the configuration name to a registration configuration request, and send the registration configuration request to the target configuration server according to the delivery path ;
所述目标配置服务器702,用于接收所述注册配置请求,并建立配置名称与应用系统服务器的标识的对应关系;所述目标配置服务器702,用于调用CreateInstance函数创建RegisteredServer对象实例,通过所述RegisteredServer对象实例对所述配置名称对应的配置进行注册;所述目标配置服务器702,用于监听配置服务器内是否出现配置更新事件;The target configuration server 702 is configured to receive the registration configuration request, and establish a correspondence between the configuration name and the identifier of the application system server. The target configuration server 702 is configured to invoke a CreateInstance function to create a RegisteredServer object instance. The RegisteredServer object instance registers the configuration corresponding to the configuration name; the target configuration server 702 is configured to monitor whether a configuration update event occurs in the configuration server.
若出现所述配置更新事件,所述目标配置服务器702,用于确定出所述配置更新事件的配置名称,并根据所述配置名称与应用系统服务器的标识的对应关系,向所述配置名称对应的应用系统服务器发送配置数据指令,在所述配置服务器的配置数据库中存储所述配置更新事件,并记录存储时间,以建立所述配置更新事件与存储时间的对应关系;所述应用系统服务器701,用于在接收到所述目标配置服务器返回的配置数据指令后,向所述目标配置服务器发送配置更新请求,所述配置数据指令用于提示所述配置名称对应的配置出现更新;所述目标配置服务器702,用于在接收到所述配置更新请求后,根据所述配置更新事件与存储时间的对应关系,向所述应用系统服务器发送配置数据包,所述配置数据包内含有所述配置更新事件的配置数据;所述应用系统服务器701,用于接收所述配置数据包,并根据所述配置数据,对所述配置名称对应的配置进行更新。If the configuration update event occurs, the target configuration server 702 is configured to determine a configuration name of the configuration update event, and corresponding to the configuration name according to the correspondence between the configuration name and the identifier of the application system server. The application system server sends a configuration data instruction, stores the configuration update event in a configuration database of the configuration server, and records a storage time to establish a correspondence between the configuration update event and the storage time; the application system server 701 And after receiving the configuration data command returned by the target configuration server, sending a configuration update request to the target configuration server, where the configuration data instruction is used to prompt that the configuration corresponding to the configuration name is updated; The configuration server 702 is configured to: after receiving the configuration update request, send a configuration data packet to the application system server according to the correspondence between the configuration update event and the storage time, where the configuration data packet includes the configuration Update configuration data of the event; the application system server 7 01. The method is configured to receive the configuration data packet, and update, according to the configuration data, a configuration corresponding to the configuration name.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still implement the foregoing embodiments. The technical solutions described in the examples are modified or equivalently replaced with some of the technical features; and the modifications or substitutions do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in Within the scope of protection of this application.

Claims (20)

  1. 一种配置更新方法,其特征在于,包括:A configuration update method, comprising:
    获取用户输入的配置名称,并调取预设的第一数据集合和预设的第二数据集合,所述第一数据集合包括配置名称与一个以上的配置服务器的对应关系,所述第二数据集合包括一个以上的路由协议;Obtaining a configuration name input by the user, and acquiring a preset first data set and a preset second data set, where the first data set includes a correspondence between the configuration name and one or more configuration servers, and the second data The set includes more than one routing protocol;
    根据所述第一数据集合,查询所述配置名称对应的一个以上的配置服务器,作为候选服务器;Querying, according to the first data set, one or more configuration servers corresponding to the configuration name, as a candidate server;
    通过所述第二数据集合中各个路由协议分别确定应用系统服务器与各个所述候选服务器的路由节点的数量,并基于所述路由节点的数量,在一个以上候选服务器中选取目标配置服务器,并确定传递路径;Determining, by each routing protocol in the second data set, a number of routing nodes of the application system server and each of the candidate servers, and selecting a target configuration server from one or more candidate servers based on the number of the routing nodes, and determining Passing path
    将所述配置名称添加进注册配置请求,并将所述注册配置请求按照所述传递路径发送至所述目标配置服务器;Adding the configuration name to the registration configuration request, and sending the registration configuration request to the target configuration server according to the delivery path;
    在接收到所述目标配置服务器返回的配置数据指令后,向所述目标配置服务器发送配置更新请求,所述配置数据指令用于提示所述配置名称对应的配置出现更新;After receiving the configuration data command returned by the target configuration server, sending a configuration update request to the target configuration server, where the configuration data command is used to prompt the configuration corresponding to the configuration name to be updated;
    接收所述目标配置服务器发送的配置数据包,所述配置数据包包括所述配置名称对应的配置数据;Receiving a configuration data packet sent by the target configuration server, where the configuration data packet includes configuration data corresponding to the configuration name;
    根据所述配置数据,对所述配置名称对应的配置进行更新。And updating, according to the configuration data, a configuration corresponding to the configuration name.
  2. 如权利要求1所述的配置更新方法,其特征在于,所述通过所述第二数据集合中各个路由协议分别确定应用系统服务器与各个所述候选服务器的路由节点的数量,并基于所述路由节点的数量,在一个以上候选服务器中选取目标配置服务器,并确定传递路径,包括:The configuration update method according to claim 1, wherein the determining, by each routing protocol in the second data set, the number of routing nodes of the application system server and each of the candidate servers, respectively, based on the routing The number of nodes, select the target configuration server from more than one candidate server, and determine the delivery path, including:
    通过各个所述路由协议分别计算应用系统服务器与各个所述候选服务器的路由节点的数量,以生成路由协议选择列表,所述路由协议选择列表包括:路由协议、候选服务器以及一个以上路由节点的数量的对应关系;Calculating, by each of the routing protocols, a number of routing nodes of the application system server and each of the candidate servers, to generate a routing protocol selection list, where the routing protocol selection list includes: a routing protocol, a candidate server, and the number of one or more routing nodes. Correspondence relationship;
    将所述路由协议选择列表中最小的所述路由节点的数量,作为被选数量;Selecting the smallest number of the routing nodes in the routing protocol selection list as the selected number;
    在所述路由协议列表中任意选择所述被选数量对应的一个路由协议作为被选路由协议,并在所述路由协议列表中选择所述被选数量以及所述被选路由协议共同对应的候选服务器作为目标配置服务器;Determining, in the routing protocol list, a routing protocol corresponding to the selected quantity as the selected routing protocol, and selecting, in the routing protocol list, the selected number and the candidate corresponding to the selected routing protocol The server is configured as a target server;
    根据所述被选路由协议生成所述应用系统服务器到所述目标配置服务器的一个以上的路径,生成第一候选路径集合,并在所述第一候选路径集合中选取一个以上路径节点的数量为被选数量的路径,生成第二候选路径集合;Generating one or more paths of the application system server to the target configuration server according to the selected routing protocol, generating a first candidate path set, and selecting one or more path nodes in the first candidate path set as a selected number of paths to generate a second candidate path set;
    计算所述第二候选路径集合中的各个路径的路由开销,选择一个路由开销最小的路径作为传递路径。Calculating a routing cost of each path in the second candidate path set, and selecting a path with the smallest routing overhead as the delivery path.
  3. 如权利要求2所述的配置更新方法,其特征在于,所述在所述路由协议列表中任意选择所述被选数量对应的一个路由协议作为被选路由协议,包括:The configuration update method according to claim 2, wherein the arbitrarily selecting one routing protocol corresponding to the selected number in the routing protocol list as the selected routing protocol comprises:
    若在路由协议列表中一个被选数量对应多个路由协议,但各个路由协议没有预设的优先级,则任意选择一个被选数量对应的一个路由协议作为被选路由协议。If a selected number corresponds to multiple routing protocols in the routing protocol list, but each routing protocol has no preset priority, then a routing protocol corresponding to the selected number is arbitrarily selected as the selected routing protocol.
  4. 如权利要求2所述的应用程序的调用方法,其特征在于,所述在所述路由协议列表中任意选择所述被选数量对应的一个路由协议作为被选路由协议,包括:The calling method of the application program according to claim 2, wherein the arbitrarily selecting one routing protocol corresponding to the selected number in the routing protocol list as the selected routing protocol comprises:
    若在路由协议列表中一个被选数量对应多个路由协议,且各个路由协议有其预设的优先级,则任意选择一个优先级最高的被选数量对应的一个路由协议作为被选路由协议。If a selected number corresponds to multiple routing protocols in the routing protocol list, and each routing protocol has a preset priority, then one routing protocol corresponding to the selected number with the highest priority is arbitrarily selected as the selected routing protocol.
  5. 一种配置更新的响应方法,其特征在于,包括:A response method for configuring an update, comprising:
    接收应用系统服务器发送的配置名称,并建立配置名称与应用系统服务器的标识的对应关系;Receiving a configuration name sent by the application system server, and establishing a correspondence between the configuration name and the identifier of the application system server;
    调用CreateInstance函数创建RegisteredServer对象实例,通过所述RegisteredServer对象实例对所述配置名称对应的配置进行注册;Calling the CreateInstance function to create an instance of the RegisteredServer object, and registering the configuration corresponding to the configuration name by using the RegisteredServer object instance;
    监听配置服务器内是否出现配置更新事件;Monitor the configuration server for a configuration update event;
    若出现所述配置更新事件,则确定出所述配置更新事件的配置名称,并根据所述配置名称与应用系统服务器的标识的对应关系,向所述配置名称对应的应用系统服务器发送配置数据指令;If the configuration update event occurs, determining a configuration name of the configuration update event, and sending a configuration data instruction to the application system server corresponding to the configuration name according to the correspondence between the configuration name and the identifier of the application system server ;
    在所述配置服务器的配置数据库中存储所述配置更新事件,并记录存储时间,以建立所述配置更新事件与存储时间的对应关系;Storing the configuration update event in a configuration database of the configuration server, and recording a storage time to establish a correspondence between the configuration update event and the storage time;
    在接收到所述应用系统服务器发送的配置更新请求后,根据所述配置更新事件与存储时间的对应关系,向所述应用系统服务器发送配置数据包,所述配置数据包内含有所述配置更新事件的配置数据。After receiving the configuration update request sent by the application system server, sending a configuration data packet to the application system server according to the correspondence between the configuration update event and the storage time, where the configuration data packet includes the configuration update Configuration data for the event.
  6. 如权利要求5所述的配置更新的响应方法,其特征在于,所述在接收到所述应用系统服务器发送的配置更新请求后,根据所述配置更新事件与存储时间的对应关系,向所述应用系统服务器发送配置数据包,包括:The method of responding to the configuration update according to claim 5, wherein after receiving the configuration update request sent by the application system server, according to the correspondence between the configuration update event and the storage time, The application server sends configuration packets, including:
    调用CreateInstance函数创建SQLServer对象实例;Call the CreateInstance function to create an instance of the SQLServer object;
    通过所述SQLServer对象实例建立与所述配置数据库的连接,并记录接收到配置更新请求的时间,作为请求时间;Establishing a connection with the configuration database by using the SQLServer object instance, and recording a time when the configuration update request is received as a request time;
    从所述配置数据库中调取与所述配置名称对应的且所述存储时间与所述请求时间的间隔最小的配置更新事件,作为被选的配置更新事件,并将所述被选的配置更新事件的配置数据添加进所述配置数据包;Retrieving, from the configuration database, a configuration update event corresponding to the configuration name and having a minimum interval between the storage time and the request time as a selected configuration update event, and updating the selected configuration The configuration data of the event is added to the configuration data packet;
    将所述配置数据包发送至应用系统服务器。The configuration data packet is sent to an application system server.
  7. 如权利要求6所述的配置更新的响应方法,其特征在于,所述配置数据库存储有各个配置名称对应的配置数据,以及配置数据与存储时间的对应关系。The response to the configuration update according to claim 6, wherein the configuration database stores configuration data corresponding to each configuration name, and a correspondence between the configuration data and the storage time.
  8. 一种配置更新的交互方法,其特征在于,包括:An interaction method for configuring an update, comprising:
    应用系统服务器获取用户输入的配置名称,并调取预设的第一数据集合和预设的第二数据集合,所述第一数据集合包括配置名称与一个以上的配置服务器的对应关系,所述第二数据集合包括一个以上的路由协议;Obtaining, by the application server, the configuration name input by the user, and the preset first data set and the preset second data set, where the first data set includes a correspondence between the configuration name and one or more configuration servers, The second data set includes more than one routing protocol;
    所述应用系统服务器根据所述第一数据集合,查询所述配置名称对应的一个以上的配置服务器,作为候选服务器;The application system server queries one or more configuration servers corresponding to the configuration name as a candidate server according to the first data set;
    所述应用系统服务器通过所述第二数据集合中各个路由协议分别确定应用系统服务器与各个所述候选服务器的路由节点的数量,并基于所述路由节点的数量,在一个以上候选服务器中选取目标配置服务器,并确定传递路径;The application system server respectively determines the number of routing nodes of the application system server and each of the candidate servers by using each routing protocol in the second data set, and selects a target among more than one candidate server based on the number of the routing nodes. Configuring the server and determining the delivery path;
    所述应用系统服务器将所述配置名称添加进注册配置请求,并将所述注册配置请求按照所述传递路径发送至所述目标配置服务器;The application system server adds the configuration name to the registration configuration request, and sends the registration configuration request to the target configuration server according to the delivery path;
    所述目标配置服务器接收所述注册配置请求,并建立配置名称与应用系统服务器的标识的对应关系;Receiving, by the target configuration server, the registration configuration request, and establishing a correspondence between the configuration name and the identifier of the application system server;
    所述目标配置服务器调用CreateInstance函数创建RegisteredServer对象实例,通过所述RegisteredServer对象实例对所述配置名称对应的配置进行注册;The target configuration server calls the CreateInstance function to create a RegisteredServer object instance, and registers the configuration corresponding to the configuration name by using the RegisteredServer object instance;
    所述目标配置服务器监听配置服务器内是否出现配置更新事件;The target configuration server monitors whether a configuration update event occurs in the configuration server;
    若出现所述配置更新事件,所述目标配置服务器确定出所述配置更新事件的配置名称,并根据所述配置名称与应用系统服务器的标识的对应关系,向所述配置名称对应的应用系统服务器发送配置数据指令,在所述配置服务器的配置数据库中存储所述配置更新事件,并记录存储时间,以建立所述配置更新事件与存储时间的对应关系;If the configuration update event occurs, the target configuration server determines the configuration name of the configuration update event, and according to the correspondence between the configuration name and the identifier of the application system server, the application system server corresponding to the configuration name Sending a configuration data instruction, storing the configuration update event in a configuration database of the configuration server, and recording a storage time to establish a correspondence between the configuration update event and the storage time;
    所述应用系统服务器在接收到所述目标配置服务器返回的配置数据指令后,向所述目标配置服务器发送配置更新请求,所述配置数据指令用于提示所述配置名称对应的配置出现更新;After receiving the configuration data command returned by the target configuration server, the application system server sends a configuration update request to the target configuration server, where the configuration data command is used to prompt the configuration corresponding to the configuration name to be updated;
    所述目标配置服务器在接收到所述配置更新请求后,根据所述配置更新事件与存储时间的对应关系,向所述应用系统服务器发送配置数据包,所述配置数据包内含有所述配置更新事件的配置数据;After receiving the configuration update request, the target configuration server sends a configuration data packet to the application system server according to the correspondence between the configuration update event and the storage time, where the configuration data packet includes the configuration update Configuration data for the event;
    所述应用系统服务器接收所述配置数据包,并根据所述配置数据,对所述配置名称对应的配置进行更新。The application system server receives the configuration data packet, and updates the configuration corresponding to the configuration name according to the configuration data.
  9. 如权利要求8所述的配置更新的交互方法,其特征在于,所述通过所述第二数据集合中各个路由协议分别确定应用系统服务器与各个所述候选服务器的路由节点的数量,并基于所述路由节点的数量,在一个以上候选服务器中选取目标配置服务器,并确定传递路径,包括:The interaction method of the configuration update according to claim 8, wherein the determining, by each routing protocol in the second data set, the number of routing nodes of the application system server and each of the candidate servers, respectively, based on The number of routing nodes, select the target configuration server from more than one candidate server, and determine the delivery path, including:
    通过各个所述路由协议分别计算应用系统服务器与各个所述候选服务器的路由节点的数量,以生成路由协议选择列表,所述路由协议选择列表包括:路由协议、候选服务器以及一个以上路由节点的数量的对应关系;Calculating, by each of the routing protocols, a number of routing nodes of the application system server and each of the candidate servers, to generate a routing protocol selection list, where the routing protocol selection list includes: a routing protocol, a candidate server, and the number of one or more routing nodes. Correspondence relationship;
    将所述路由协议选择列表中最小的所述路由节点的数量,作为被选数量;Selecting the smallest number of the routing nodes in the routing protocol selection list as the selected number;
    在所述路由协议列表中任意选择所述被选数量对应的一个路由协议作为被选路由协议,并在所述路由协议列表中选择所述被选数量以及所述被选路由协议共同对应的候选服务器作为目标配置服务器;Determining, in the routing protocol list, a routing protocol corresponding to the selected quantity as the selected routing protocol, and selecting, in the routing protocol list, the selected number and the candidate corresponding to the selected routing protocol The server is configured as a target server;
    根据所述被选路由协议生成所述应用系统服务器到所述目标配置服务器的一个以上的路径,生成第一候选路径集合,并在所述第一候选路径集合中选取一个以上路径节点的数量为被选数量的路径,生成第二候选路径集合;Generating one or more paths of the application system server to the target configuration server according to the selected routing protocol, generating a first candidate path set, and selecting one or more path nodes in the first candidate path set as a selected number of paths to generate a second candidate path set;
    计算所述第二候选路径集合中的各个路径的路由开销,选择一个路由开销最小的路径作为传递路径。Calculating a routing cost of each path in the second candidate path set, and selecting a path with the smallest routing overhead as the delivery path.
  10. 如权利要求8所述的配置更新的交互方法,其特征在于,所述在接收到所述应用系统服务器发送的配置更新请求后,根据所述配置更新事件与存储时间的对应关系,向所述应用系统服务器发送配置数据包,包括:The interaction method of the configuration update according to claim 8, wherein after receiving the configuration update request sent by the application system server, according to the correspondence between the configuration update event and the storage time, the The application server sends configuration packets, including:
    调用CreateInstance函数创建SQLServer对象实例;Call the CreateInstance function to create an instance of the SQLServer object;
    通过所述SQLServer对象实例建立与所述配置数据库的连接,并记录接收到配置更新请求的时间,作为请求时间;Establishing a connection with the configuration database by using the SQLServer object instance, and recording a time when the configuration update request is received as a request time;
    从所述配置数据库中调取与所述配置名称对应的且所述存储时间与所述请求时间的间隔最小的配置更新事件,作为被选的配置更新事件,并将所述被选的配置更新事件的配置数据添加进所述配置数据包;Retrieving, from the configuration database, a configuration update event corresponding to the configuration name and having a minimum interval between the storage time and the request time as a selected configuration update event, and updating the selected configuration The configuration data of the event is added to the configuration data packet;
    将所述配置数据包发送至应用系统服务器。The configuration data packet is sent to an application system server.
  11. 一种应用系统服务器,包括存储器以及处理器,所述存储器中存储有可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时,实现如下步骤:An application system server includes a memory and a processor, wherein the memory stores a computer program executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
    获取用户输入的配置名称,并调取预设的第一数据集合和预设的第二数据集合,所述第一数据集合包括配置名称与一个以上的配置服务器的对应关系,所述第二数据集合包括一个以上的路由协议;Obtaining a configuration name input by the user, and acquiring a preset first data set and a preset second data set, where the first data set includes a correspondence between the configuration name and one or more configuration servers, and the second data The set includes more than one routing protocol;
    根据所述第一数据集合,查询所述配置名称对应的一个以上的配置服务器,作为候选服务器;Querying, according to the first data set, one or more configuration servers corresponding to the configuration name, as a candidate server;
    通过所述第二数据集合中各个路由协议分别确定应用系统服务器与各个所述候选服务器的路由节点的数量,并基于所述路由节点的数量,在一个以上候选服务器中选取目标配置服务器,并确定传递路径;Determining, by each routing protocol in the second data set, a number of routing nodes of the application system server and each of the candidate servers, and selecting a target configuration server from one or more candidate servers based on the number of the routing nodes, and determining Passing path
    将所述配置名称添加进注册配置请求,并将所述注册配置请求按照所述传递路径发送至所述目标配置服务器;Adding the configuration name to the registration configuration request, and sending the registration configuration request to the target configuration server according to the delivery path;
    在接收到所述目标配置服务器返回的配置数据指令后,向所述目标配置服务器发送配置更新请求,所述配置数据指令用于提示所述配置名称对应的配置出现更新;After receiving the configuration data command returned by the target configuration server, sending a configuration update request to the target configuration server, where the configuration data command is used to prompt the configuration corresponding to the configuration name to be updated;
    接收所述目标配置服务器发送的配置数据包,所述配置数据包包括所述配置名称对应的配置数据;Receiving a configuration data packet sent by the target configuration server, where the configuration data packet includes configuration data corresponding to the configuration name;
    根据所述配置数据,对所述配置名称对应的配置进行更新。And updating, according to the configuration data, a configuration corresponding to the configuration name.
  12. 如权利要求11所述的应用系统服务器,其特征在于,所述通过所述第二数据集合中各个路由协议分别确定应用系统服务器与各个所述候选服务器的路由节点的数量,并基于所述路由节点的数量,在一个以上候选服务器中选取目标配置服务器,并确定传递路径,包括:The application system server according to claim 11, wherein the determining, by each routing protocol in the second data set, the number of routing nodes of the application system server and each of the candidate servers, respectively, based on the routing The number of nodes, select the target configuration server from more than one candidate server, and determine the delivery path, including:
    通过各个所述路由协议分别计算应用系统服务器与各个所述候选服务器的路由节点的数量,以生成路由协议选择列表,所述路由协议选择列表包括:路由协议、候选服务器以及一个以上路由节点的数量的对应关系;Calculating, by each of the routing protocols, a number of routing nodes of the application system server and each of the candidate servers, to generate a routing protocol selection list, where the routing protocol selection list includes: a routing protocol, a candidate server, and the number of one or more routing nodes. Correspondence relationship;
    将所述路由协议选择列表中最小的所述路由节点的数量,作为被选数量;Selecting the smallest number of the routing nodes in the routing protocol selection list as the selected number;
    在所述路由协议列表中任意选择所述被选数量对应的一个路由协议作为被选路由协议,并在所述路由协议列表中选择所述被选数量以及所述被选路由协议共同对应的候选服务器作为目标配置服务器;Determining, in the routing protocol list, a routing protocol corresponding to the selected quantity as the selected routing protocol, and selecting, in the routing protocol list, the selected number and the candidate corresponding to the selected routing protocol The server is configured as a target server;
    根据所述被选路由协议生成所述应用系统服务器到所述目标配置服务器的一个以上的路径,生成第一候选路径集合,并在所述第一候选路径集合中选取一个以上路径节点的数量为被选数量的路径,生成第二候选路径集合;Generating one or more paths of the application system server to the target configuration server according to the selected routing protocol, generating a first candidate path set, and selecting one or more path nodes in the first candidate path set as a selected number of paths to generate a second candidate path set;
    计算所述第二候选路径集合中的各个路径的路由开销,选择一个路由开销最小的路径作为传递路径。Calculating a routing cost of each path in the second candidate path set, and selecting a path with the smallest routing overhead as the delivery path.
  13. 如权利要求12所述的应用系统服务器,其特征在于,所述在所述路由协议列表中任意选择所述被选数量对应的一个路由协议作为被选路由协议,包括:The application system server according to claim 12, wherein the arbitrarily selecting one routing protocol corresponding to the selected number in the routing protocol list as the selected routing protocol comprises:
    若在路由协议列表中一个被选数量对应多个路由协议,但各个路由协议没有预设的优先级,则任意选择一个被选数量对应的一个路由协议作为被选路由协议。If a selected number corresponds to multiple routing protocols in the routing protocol list, but each routing protocol has no preset priority, then a routing protocol corresponding to the selected number is arbitrarily selected as the selected routing protocol.
  14. 如权利要求12所述的应用系统服务器,其特征在于,所述在所述路由协议列表中任意选择所述被选数量对应的一个路由协议作为被选路由协议,包括:The application system server according to claim 12, wherein the arbitrarily selecting one routing protocol corresponding to the selected number in the routing protocol list as the selected routing protocol comprises:
    若在路由协议列表中一个被选数量对应多个路由协议,且各个路由协议有其预设的优先级,则任意选择一个优先级最高的被选数量对应的一个路由协议作为被选路由协议。If a selected number corresponds to multiple routing protocols in the routing protocol list, and each routing protocol has a preset priority, then one routing protocol corresponding to the selected number with the highest priority is arbitrarily selected as the selected routing protocol.
  15. 一种配置服务器,包括存储器以及处理器,所述存储器中存储有可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时,实现如下步骤:A configuration server includes a memory and a processor, wherein the memory stores a computer program executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
    接收应用系统服务器发送的配置名称,并建立配置名称与应用系统服务器的标识的对应关系;Receiving a configuration name sent by the application system server, and establishing a correspondence between the configuration name and the identifier of the application system server;
    调用CreateInstance函数创建RegisteredServer对象实例,通过所述RegisteredServer对象实例对所述配置名称对应的配置进行注册;Calling the CreateInstance function to create an instance of the RegisteredServer object, and registering the configuration corresponding to the configuration name by using the RegisteredServer object instance;
    监听配置服务器内是否出现配置更新事件;Monitor the configuration server for a configuration update event;
    若出现所述配置更新事件,则确定出所述配置更新事件的配置名称,并根据所述配置名称与应用系统服务器的标识的对应关系,向所述配置名称对应的应用系统服务器发送配置数据指令;If the configuration update event occurs, determining a configuration name of the configuration update event, and sending a configuration data instruction to the application system server corresponding to the configuration name according to the correspondence between the configuration name and the identifier of the application system server ;
    在所述配置服务器的配置数据库中存储所述配置更新事件,并记录存储时间,以建立所述配置更新事件与存储时间的对应关系;Storing the configuration update event in a configuration database of the configuration server, and recording a storage time to establish a correspondence between the configuration update event and the storage time;
    在接收到所述应用系统服务器发送的配置更新请求后,根据所述配置更新事件与存储时间的对应关系,向所述应用系统服务器发送配置数据包,所述配置数据包内含有所述配置更新事件的配置数据。After receiving the configuration update request sent by the application system server, sending a configuration data packet to the application system server according to the correspondence between the configuration update event and the storage time, where the configuration data packet includes the configuration update Configuration data for the event.
  16. 如权利要求15所述的配置服务器,其特征在于,所述在接收到所述应用系统服务器发送的配置更新请求后,根据所述配置更新事件与存储时间的对应关系,向所述应用系统服务器发送配置数据包,包括:The configuration server according to claim 15, wherein after receiving the configuration update request sent by the application system server, according to the correspondence between the configuration update event and the storage time, the application server is Send configuration packets, including:
    调用CreateInstance函数创建SQLServer对象实例;Call the CreateInstance function to create an instance of the SQLServer object;
    通过所述SQLServer对象实例建立与所述配置数据库的连接,并记录接收到配置更新请求的时间,作为请求时间;Establishing a connection with the configuration database by using the SQLServer object instance, and recording a time when the configuration update request is received as a request time;
    从所述配置数据库中调取与所述配置名称对应的且所述存储时间与所述请求时间的间隔最小的配置更新事件,作为被选的配置更新事件,并将所述被选的配置更新事件的配置数据添加进所述配置数据包;Retrieving, from the configuration database, a configuration update event corresponding to the configuration name and having a minimum interval between the storage time and the request time as a selected configuration update event, and updating the selected configuration The configuration data of the event is added to the configuration data packet;
    将所配置数据包发送至应用系统服务器。Send the configured packet to the application server.
  17. 如权利要求15所述的配置服务器,其特征在于,所述配置数据库存储有各个配置名称对应的配置数据,以及配置数据与存储时间的对应关系。The configuration server according to claim 15, wherein the configuration database stores configuration data corresponding to each configuration name, and a correspondence between configuration data and storage time.
  18. 一种配置更新的交互系统,其特征在于,包括:An interactive system for configuring an update, comprising:
    应用系统服务器,用于获取用户输入的配置名称,并调取预设的第一数据集合和预设的第二数据集合,所述第一数据集合包括配置名称与一个以上的配置服务器的对应关系,所述第二数据集合包括一个以上的路由协议;An application server, configured to obtain a configuration name input by the user, and retrieve a preset first data set and a preset second data set, where the first data set includes a correspondence between the configuration name and one or more configuration servers. The second data set includes more than one routing protocol;
    所述应用系统服务器,用于根据所述第一数据集合,查询所述配置名称对应的一个以上的配置服务器,作为候选服务器;The application system server is configured to query, according to the first data set, one or more configuration servers corresponding to the configuration name as a candidate server;
    所述应用系统服务器,用于通过所述第二数据集合中各个路由协议分别确定应用系统服务器与各个所述候选服务器的路由节点的数量,并基于所述路由节点的数量,在一个以上候选服务器中选取目标配置服务器,并确定传递路径;The application system server is configured to determine, by each routing protocol in the second data set, a number of routing nodes of the application system server and each of the candidate servers, and based on the number of the routing nodes, in one or more candidate servers Select the target configuration server and determine the delivery path;
    所述应用系统服务器,用于将所述配置名称添加进注册配置请求,并将所述注册配置请求按照所述传递路径发送至所述目标配置服务器;The application system server is configured to add the configuration name to a registration configuration request, and send the registration configuration request to the target configuration server according to the delivery path;
    所述目标配置服务器,用于接收所述注册配置请求,并建立配置名称与应用系统服务器的标识的对应关系;The target configuration server is configured to receive the registration configuration request, and establish a correspondence between the configuration name and the identifier of the application system server;
    所述目标配置服务器,用于调用CreateInstance函数创建RegisteredServer对象实例,通过所述RegisteredServer对象实例对所述配置名称对应的配置进行注册;The target configuration server is configured to invoke a CreateInstance function to create a RegisteredServer object instance, and register the configuration corresponding to the configuration name by using the RegisteredServer object instance;
    所述目标配置服务器,用于监听配置服务器内是否出现配置更新事件;The target configuration server is configured to monitor whether a configuration update event occurs in the configuration server.
    若出现所述配置更新事件,所述目标配置服务器,用于确定出所述配置更新事件的配置名称,并根据所述配置名称与应用系统服务器的标识的对应关系,向所述配置名称对应的应用系统服务器发送配置数据指令,在所述配置服务器的配置数据库中存储所述配置更新事件,并记录存储时间,以建立所述配置更新事件与存储时间的对应关系;If the configuration update event occurs, the target configuration server is configured to determine a configuration name of the configuration update event, and corresponding to the configuration name according to the correspondence between the configuration name and the identifier of the application system server. The application server sends a configuration data instruction, stores the configuration update event in a configuration database of the configuration server, and records a storage time to establish a correspondence between the configuration update event and the storage time;
    所述应用系统服务器,用于在接收到所述目标配置服务器返回的配置数据指令后,向所述目标配置服务器发送配置更新请求,所述配置数据指令用于提示所述配置名称对应的配置出现更新;The application system server is configured to send a configuration update request to the target configuration server after receiving the configuration data command returned by the target configuration server, where the configuration data instruction is used to prompt that the configuration corresponding to the configuration name appears Update
    所述目标配置服务器,用于在接收到所述配置更新请求后,根据所述配置更新事件与存储时间的对应关系,向所述应用系统服务器发送配置数据包,所述配置数据包内含有所述配置更新事件的配置数据;And the target configuration server is configured to: after receiving the configuration update request, send a configuration data packet to the application system server according to the correspondence between the configuration update event and the storage time, where the configuration data packet includes Configuring configuration data for an update event;
    所述应用系统服务器,用于接收所述配置数据包,并根据所述配置数据,对所述配置名称对应的配置进行更新。The application system server is configured to receive the configuration data packet, and update a configuration corresponding to the configuration name according to the configuration data.
  19. 如权利要求18所述的配置更新的交互系统,其特征在于,所述通过所述第二数据集合中各个路由协议分别确定应用系统服务器与各个所述候选服务器的路由节点的数量,并基于所述路由节点的数量,在一个以上候选服务器中选取目标配置服务器,并确定传递路径,包括:The interaction system of the configuration update according to claim 18, wherein the determining, by each routing protocol in the second data set, the number of routing nodes of the application system server and each of the candidate servers, respectively, based on The number of routing nodes, select the target configuration server from more than one candidate server, and determine the delivery path, including:
    通过各个所述路由协议分别计算应用系统服务器与各个所述候选服务器的路由节点的数量,以生成路由协议选择列表,所述路由协议选择列表包括:路由协议、候选服务器以及一个以上路由节点的数量的对应关系;Calculating, by each of the routing protocols, a number of routing nodes of the application system server and each of the candidate servers, to generate a routing protocol selection list, where the routing protocol selection list includes: a routing protocol, a candidate server, and the number of one or more routing nodes. Correspondence relationship;
    将所述路由协议选择列表中最小的所述路由节点的数量,作为被选数量;Selecting the smallest number of the routing nodes in the routing protocol selection list as the selected number;
    在所述路由协议列表中任意选择所述被选数量对应的一个路由协议作为被选路由协议,并在所述路由协议列表中选择所述被选数量以及所述被选路由协议共同对应的候选服务器作为目标配置服务器;Determining, in the routing protocol list, a routing protocol corresponding to the selected quantity as the selected routing protocol, and selecting, in the routing protocol list, the selected number and the candidate corresponding to the selected routing protocol The server is configured as a target server;
    根据所述被选路由协议生成所述应用系统服务器到所述目标配置服务器的一个以上的路径,生成第一候选路径集合,并在所述第一候选路径集合中选取一个以上路径节点的数量为被选数量的路径,生成第二候选路径集合;Generating one or more paths of the application system server to the target configuration server according to the selected routing protocol, generating a first candidate path set, and selecting one or more path nodes in the first candidate path set as a selected number of paths to generate a second candidate path set;
    计算所述第二候选路径集合中的各个路径的路由开销,选择一个路由开销最小的路径作为传递路径。Calculating a routing cost of each path in the second candidate path set, and selecting a path with the smallest routing overhead as the delivery path.
  20. 如权利要求18所述的配置更新的交互系统,其特征在于,所述在接收到所述应用系统服务器发送的配置更新请求后,根据所述配置更新事件与存储时间的对应关系,向所述应用系统服务器发送配置数据包,包括:The interaction system of the configuration update according to claim 18, wherein after receiving the configuration update request sent by the application system server, according to the correspondence between the configuration update event and the storage time, The application server sends configuration packets, including:
    调用CreateInstance函数创建SQLServer对象实例;Call the CreateInstance function to create an instance of the SQLServer object;
    通过所述SQLServer对象实例建立与所述配置数据库的连接,并记录接收到配置更新请求的时间,作为请求时间;Establishing a connection with the configuration database by using the SQLServer object instance, and recording a time when the configuration update request is received as a request time;
    从所述配置数据库中调取与所述配置名称对应的且所述存储时间与所述请求时间的间隔最小的配置更新事件,作为被选的配置更新事件,并将所述被选的配置更新事件的配置数据添加进所述配置数据包;Retrieving, from the configuration database, a configuration update event corresponding to the configuration name and having a minimum interval between the storage time and the request time as a selected configuration update event, and updating the selected configuration The configuration data of the event is added to the configuration data packet;
    将所述配置数据包发送至应用系统服务器。The configuration data packet is sent to an application system server.
PCT/CN2018/097313 2018-05-14 2018-07-27 Configuration update method, method for responding to configuration update, server and system WO2019218469A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810456215.2 2018-05-14
CN201810456215.2A CN108683533B (en) 2018-05-14 2018-05-14 Configuration updating method, configuration updating response method, server and system

Publications (1)

Publication Number Publication Date
WO2019218469A1 true WO2019218469A1 (en) 2019-11-21

Family

ID=63805986

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/097313 WO2019218469A1 (en) 2018-05-14 2018-07-27 Configuration update method, method for responding to configuration update, server and system

Country Status (2)

Country Link
CN (1) CN108683533B (en)
WO (1) WO2019218469A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114169111B (en) * 2022-02-11 2022-04-26 杭州杰牌传动科技有限公司 Interactive speed reducer personalized configuration system and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102036336A (en) * 2009-09-28 2011-04-27 北京邮电大学 Cognitive routing protocol and implementation method thereof
CN102255752A (en) * 2011-06-30 2011-11-23 北京新媒传信科技有限公司 Configuration management system and method of server cluster
CN104734877A (en) * 2013-12-24 2015-06-24 杭州华为数字技术有限公司 Method, device and system for obtaining configuration server information

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9998423B1 (en) * 2006-12-05 2018-06-12 Oath Inc. IP address management of multiple DHCP services
CN103283209B (en) * 2011-04-18 2015-12-09 北京新媒传信科技有限公司 A kind of application service platform system and its implementation
CN104965726A (en) * 2015-03-10 2015-10-07 腾讯科技(深圳)有限公司 Configuration updating method, apparatus and system
CN107291487A (en) * 2016-04-13 2017-10-24 平安科技(深圳)有限公司 CONFIG.SYS amending method and system
CN107643920A (en) * 2016-07-20 2018-01-30 平安科技(深圳)有限公司 Application software update method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102036336A (en) * 2009-09-28 2011-04-27 北京邮电大学 Cognitive routing protocol and implementation method thereof
CN102255752A (en) * 2011-06-30 2011-11-23 北京新媒传信科技有限公司 Configuration management system and method of server cluster
CN104734877A (en) * 2013-12-24 2015-06-24 杭州华为数字技术有限公司 Method, device and system for obtaining configuration server information

Also Published As

Publication number Publication date
CN108683533B (en) 2021-05-04
CN108683533A (en) 2018-10-19

Similar Documents

Publication Publication Date Title
US10432736B2 (en) Method and apparatus for virtualized network function chaining management
CN105635345B (en) Domain name resources record management method and apparatus
US9239767B2 (en) Selective database replication
US6442565B1 (en) System and method for transmitting data content in a computer network
JP6539677B2 (en) System and method for supporting bypass domain model and proxy model for inter-domain messaging in a transaction middleware machine environment and updating service information
TWI751139B (en) Business processing system, business processing method and business update method
CN109981716A (en) A kind of micro services call method and device
US7453865B2 (en) Communication channels in a storage network
US8478803B2 (en) Management of logical statements in a distributed database environment
CN111970198A (en) Service routing method, device, electronic equipment and medium
JP4040256B2 (en) Server system and recording medium
US11803598B2 (en) Query language for selecting and addressing resources
US20170091252A1 (en) Reconciling sensor data in a database
US8694462B2 (en) Scale-out system to acquire event data
US10817512B2 (en) Standing queries in memory
US10652322B2 (en) Scalable parallel messaging process
WO2019218469A1 (en) Configuration update method, method for responding to configuration update, server and system
US20180255146A1 (en) Managing topic updates for a distributed data system
JPWO2017169471A1 (en) Processing system and processing method
CN111221847B (en) Monitoring data storage method, device and computer readable storage medium
US20200099788A1 (en) Context data management interface for contact center
JP2011134005A (en) Configuration information management device, system, method and program for managing distributed information
US20240028346A1 (en) Linking kubernetes resources with underlying cloud infrastructure
JP2010191799A (en) Information retrieval system, information retrieval device, information retrieval program, and information retrieval method
JP2014032530A (en) Distribution processing system and distribution processing method

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

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

Country of ref document: EP

Kind code of ref document: A1