WO2017167020A1 - 配置信息推送方法及装置 - Google Patents
配置信息推送方法及装置 Download PDFInfo
- Publication number
- WO2017167020A1 WO2017167020A1 PCT/CN2017/076890 CN2017076890W WO2017167020A1 WO 2017167020 A1 WO2017167020 A1 WO 2017167020A1 CN 2017076890 W CN2017076890 W CN 2017076890W WO 2017167020 A1 WO2017167020 A1 WO 2017167020A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- configuration
- configuration information
- client
- configuration item
- item
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/084—Configuration by using pre-existing information, e.g. using templates or copying from other elements
- H04L41/0846—Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0866—Checking the configuration
- H04L41/0869—Validating the configuration within one network element
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
Definitions
- the present invention belongs to the field of communications, and in particular, to a configuration information pushing method and apparatus.
- the application system needs to change some frequently-changed configurations into files in order to flexibly respond to changes in requirements.
- different configurations need to be changed before deployment.
- the application system can take effect immediately without a restart program when the configuration changes.
- a database cluster is used in the trading platform to establish a connection with the database using a set of database connection parameters when the program starts.
- the trading platform uses the peak, it is necessary to switch some database connection parameters.
- the application of the trading platform can be implemented immediately without restarting, and the execution of the service is not affected as much as possible.
- Real-time configuration of the push system requires efficient discovery that the server's new configuration values are inconsistent with the client's old configuration values and pushes new configuration values to the client in real time.
- the client interacts with the server through a HyperText Transfer Protocol (HTTP) short connection method, and the client periodically initiates a short connection polling server.
- HTTP HyperText Transfer Protocol
- the current method of polling the server periodically each polling time is short, and the polling waiting time is long, and thus the real-time performance of the configuration push cannot be guaranteed.
- the present invention provides a configuration information pushing method and device, which are used to solve the problem that the existing client periodically polls the server, because the length of the polling time is short, and the real-time performance of the configuration push cannot be guaranteed.
- the present invention provides a configuration information pushing method, including:
- the target is pushed to the client
- the current configuration information of the configuration item is configured to enable the client to update the configuration of the target configuration item to the current configuration information.
- the present invention provides a configuration information pushing method, including:
- the polling request includes configuration information of each configuration item.
- connection hold request for maintaining a short connection with the server within a preset polling duration; wherein the connection hold request is that the server determines each configuration item in the polling request Sent when the configuration information is consistent with the current configuration information of the local corresponding configuration item;
- the sending message is sent by the server in the process of maintaining the short connection, and determining that the current configuration information of the at least one target configuration item is inconsistent with the configuration information of the corresponding configuration item in the polling request.
- the target configuration item is a configuration item in the local configuration item;
- the present invention provides a configuration information pushing device, including:
- An obtaining module configured to obtain a polling request sent by the client, where the polling request includes: configuration information of each configuration item;
- a determining module configured to determine whether the configuration information of each configuration item in the polling request is consistent with the current configuration information of the local corresponding configuration item
- connection maintaining module configured to maintain a short connection with the client within a preset polling duration if the determination is yes;
- the present invention provides a configuration information pushing device, including:
- a sending module configured to send a polling request to the server, so that the server determines whether the configuration information of each configuration item in the polling request is consistent with the current configuration information of the local corresponding configuration item;
- the polling request includes configuration information of each configuration item.
- a first receiving module configured to receive a connection holding request sent by the server to maintain a short connection with the server within a preset polling duration; wherein the connection holding request is that the server determines the Sent when the configuration information of each configuration item in the polling request is consistent with the current configuration information of the local corresponding configuration item;
- a second receiving module configured to receive a push message of current configuration information of the target configuration item pushed by the server, where the push message is determined by the server to maintain the short connection, and at least one And sending, when the current configuration information of the target configuration item is inconsistent with the configuration information of the corresponding configuration item in the polling request, where the target configuration item is a configuration item in the local configuration item;
- an update module configured to update a configuration of the target configuration item to the current configuration information.
- the configuration information pushing method and device obtains the polling request sent by the client, and determines whether the configuration information of each configuration item in the polling request is consistent with the current configuration information of the local corresponding configuration item, and if they are consistent,
- the short connection between the client and the client is maintained in the preset polling duration.
- the current configuration information of the at least one target configuration item in the local configuration item and the configuration information of the corresponding configuration item in the polling request occur.
- the current configuration information of the target configuration item is pushed to the client, so that the client updates the configuration of the target configuration item to the current configuration information.
- the short connection needs to be maintained within the preset polling duration, and the polling duration is increased accordingly, so that the configuration information of the configuration item can be sensed in time to ensure that the configuration information is changed.
- FIG. 1 is a schematic flowchart of a configuration information pushing method according to Embodiment 1 of the present invention
- FIG. 2 is a schematic flowchart of a configuration information pushing method according to Embodiment 2 of the present invention.
- FIG. 3 is a schematic diagram of application of a configuration information pushing method according to Embodiment 2 of the present invention.
- FIG. 4 is a schematic structural diagram of a configuration information pushing apparatus according to Embodiment 3 of the present invention.
- FIG. 6 is a schematic structural diagram of a configuration information pushing system according to Embodiment 5 of the present invention.
- FIG. 1 is a schematic flowchart diagram of a configuration information pushing method according to Embodiment 1 of the present invention.
- the execution entity is a server.
- the configuration information pushing method includes the following steps:
- the polling request includes: configuration information of each configuration item.
- a short connection is established between the client and the server.
- the server establishes a short connection with the client based on HTTP. Since the HTTP communication protocol is a text protocol, push information of cross-language configuration information can be implemented.
- the server can continuously receive the polling request sent by the client through the short connection to poll the configuration change status of each configuration item of the server.
- the polling request includes configuration information of each configuration, and the configuration information is information configured by the last server.
- the configuration information is the configuration value of the configuration item.
- the server After receiving the polling request, the server determines the current configuration information of the locally stored configuration item. Whether the configuration information of the corresponding configuration item sent by the client is consistent.
- the configuration item of the local configuration item is the same as the configuration item of the client. However, the configuration information of the configuration item of the local configuration item may be different from the configuration information of the client configuration item.
- the configuration items include: configuration item 1, configuration item 2, and configuration item 3.
- the configuration information data of the configuration item 1 in the polling request, the configuration information of the configuration item 2, and the configuration information of the configuration item 3 are the data 3.
- step S103 is performed; if the configuration information of the locally stored configuration item 2 is data 4, the current configuration information of the locally stored configuration item is not completely consistent with the configuration information of the corresponding configuration item sent by the client, that is, the determination result If no, step S105 is performed.
- the server may be in the preset polling duration. Keep a short connection between the client and the client. Specifically, the server sends an asynchronous processing request to the client, the asynchronous processing request instructing the client to maintain a short connection with the server within a preset polling duration. For example, an asynchronous servlet can be used to maintain a short connection to the client.
- the current configuration information of the at least one target configuration item in the local configuration item is inconsistent with the configuration information of the corresponding configuration item in the polling request, the current configuration information of the target configuration item is pushed to the client, so that the current configuration information of the target configuration item is pushed to the client.
- the client updates the configuration of the target configuration item to the current configuration information.
- the server may send a polling response of the configuration change to the client, where the polling response includes the current configuration information of the target configuration item.
- the polling response includes the current configuration information of the target configuration item.
- the target configuration item is the configuration item 2
- the polling is corresponding to: the configuration item 2 , data 4.
- the client needs to update the configuration of the target configuration item to the current configuration information.
- the current configuration information of the target configuration item and the target configuration item is directly sent to the client, which can save the processing time of the polling result and improve the real-time performance of the configuration information push.
- the server may first send the target configuration item to the client in a polling response, and after receiving the configuration information request message sent by the client, configure the target configuration item.
- the value is sent to the client, although the processing time of the polling result is extended, but when the client does not need to update the configuration item, the waste of resources can be reduced.
- the current configuration information of the configuration item stored by the server team is consistent with the configuration information of the corresponding configuration item in the polling request.
- a polling response with a configuration unchanged is sent to the client, and the polling response is empty.
- the short connection with the client can be kept until the preset polling time arrives and then closed.
- the server itself detects that the current configuration information of the at least one target configuration item in the local configuration item is inconsistent with the configuration information of the corresponding configuration item previously sent to the client, The server can send the current configuration information of the target configuration item to the client, so that the configuration information of the configuration item of the client is consistent with the configuration information of the corresponding configuration item in the server.
- the user corresponding to the client actively modifies the configuration information of at least one configuration item in the polling request, and then carries the information in the polling request to the server, and the server can also monitor the local configuration item.
- the configuration information of the modified configuration item in the current configuration information polling request of the at least one target configuration item is different, and the server may deliver the current configuration information of the target configuration item to the client, so that the client sets the target configuration information. Reconfigure the configuration information delivered by the server.
- the server pushes the Immediately after the current configuration information of the target configuration item, the short connection maintained with the client is closed. After the current configuration information of the target configuration item is generated, it indicates that the configuration of the client is the latest configuration. In order to continue to update the configuration of the client in real time, it is necessary to immediately close the short connection maintained with the client. Open with customers After the short connection between the terminals, the polling request sent by the client can continue to be received after the next preset time interval is reached, so as to continue to update the configuration items of the client in real time.
- the time interval of polling the server can be shortened, so that when the configuration item of the server is updated with the configuration information, the information of the corresponding configuration item is updated on the client more quickly.
- At least one configuration item in the local configuration item is inconsistent with the configuration information of the corresponding configuration item in the polling request
- the current configuration information of the at least one configuration item whose configuration information is changed needs to be sent to the client to obtain the configuration information.
- at least one configuration item that is inconsistent with the configuration information of the corresponding configuration item in the polling request is referred to as a target configuration item.
- the server pushes the current configuration information of the target configuration item to the client.
- the server may send a polling response of the configuration change to the client, where the polling response includes the current configuration information of the target configuration item.
- the client needs to update the configuration of the target configuration item to the current configuration information.
- close the short connection with the client so as to continue to receive the polling request sent by the client after reaching the next preset time interval, thereby being able to The client's configuration items are updated in real time.
- the configuration information pushing method provided in this embodiment is to obtain the polling request sent by the client, and determine whether the configuration information of each configuration item in the polling request is consistent with the current configuration information of the local corresponding configuration item.
- the short connection between the client and the client is maintained during the polling duration.
- the current configuration information of the at least one target configuration item in the local configuration item is inconsistent with the configuration information of the corresponding configuration item in the polling request.
- the current configuration information of the target configuration item is pushed to the client, so that the client updates the configuration of the target configuration item to the current configuration information.
- the short connection needs to be maintained within the preset polling duration, and the polling duration is increased accordingly, so that the configuration information of the configuration item can be sensed in time to ensure that the configuration information is changed.
- FIG. 2 is a schematic flowchart diagram of a configuration information pushing method according to Embodiment 2 of the present invention.
- the execution entity is a client.
- the configuration information pushing method includes the following steps:
- S201 Send a polling request to the server, so that the server determines whether the configuration information of each configuration item in the polling request is consistent with the current configuration information of the local corresponding configuration item.
- the polling request includes configuration information of each configuration item.
- the client needs to establish a short connection with the server based on HTTP before sending the polling request to the server. Since the HTTP communication protocol is a text protocol, push information of cross-language configuration information can be implemented.
- the client After the connection is established, the client sends a polling request to the server based on the short connection to poll the configuration change status of each configuration item of the server.
- the polling request includes configuration information of each configuration, and the configuration information is information configured by the last server.
- the configuration information is the configuration value of the configuration item.
- connection holding request sent by the receiving server to maintain a short connection with the server within a preset polling duration, where the connection holding request is configured by the server to determine configuration information of each configuration item in the polling request and a local corresponding configuration item.
- the current configuration information is sent when they are consistent.
- the configuration information of the configuration items of the client is not updated.
- the client will receive a connection hold request sent by the server to maintain a short connection with the server within the preset polling duration. After receiving the connection hold request, the client will continue within the preset polling duration. Maintain a short connection.
- connection hold request is an asynchronous processing request for indicating a short connection with the server within a preset polling duration.
- the short connection between the server and the server can be kept uninterrupted for a preset polling duration based on the asynchronous servlet method.
- S203 Receive a push message of the current configuration information of the target configuration item that is pushed by the server, where the push message is determined by the current configuration information of the at least one target configuration item and the corresponding configuration in the polling request. If the configuration information of the item is inconsistent, the target configuration item is the configuration item in the local configuration item.
- the client receives the push message sent by the server, where the push message includes the current configuration information of the target configuration item.
- the client receives a polling response sent by the server to send a configuration change, where the polling response includes a target configuration item, and after receiving the polling response, the client sends a configuration request message to the server to request the server to the client.
- the current configuration information of the target configuration item is delivered.
- the client After the short connection with the client reaches the preset polling duration, if the current configuration information of the configuration item stored by the server is consistent with the configuration information of the corresponding configuration item in the polling request, at this time, the client The endpoint will receive a polling response from the server that has not changed, where the polling response is empty and the client will be aware that the server has closed its short connection. Specifically, the client may obtain an indication message for closing the short connection. After receiving the indication message, the client may continue to send a polling request to the server after reaching the next preset time interval, so as to facilitate the configuration item. Perform real-time updates.
- the client after receiving the current configuration information of the target configuration, the client needs to update the configuration of the target configuration item to the current configuration information.
- the server closes the short connection with the client immediately after sending the push message.
- the client can immediately perceive that in order to maintain the real-time update of the client configuration item, the client needs to immediately perform timing according to the preset time interval, after reaching the next time interval. , send a polling request to the server again.
- the time interval of the polling server can be shortened, so that when the configuration item of the server is updated with the configuration information, the information of the corresponding configuration item is updated on the client, thereby improving the configuration of the client. real-time.
- the configuration information pushing method provided in this embodiment is configured to send a polling request to the server, so that the server determines whether the configuration information of each configuration item in the polling request is consistent with the current configuration information of the local corresponding configuration item, and if they are consistent, The short connection between the preset polling duration and the server is maintained.
- the current configuration information of the at least one target configuration item in the local configuration item is inconsistent with the configuration information of the corresponding configuration item in the polling request.
- the client will receive a push message including the current configuration information of the target configuration item, and the client updates the configuration of the target configuration item to the current configuration information.
- the short connection needs to be maintained within the preset polling duration, and the polling duration is increased accordingly, so that the configuration information of the configuration item can be sensed in time to ensure that the configuration information is changed.
- the client interacts with the server over an HTTP short connection, and the client periodically initiates a polling request based on the short connection to poll the server.
- the client sends a polling request to the server.
- the client polls the change status of the configuration item configuration information by sending a polling request to the server.
- the configuration item configuration information is the configuration value of the configuration item.
- the server After receiving the polling request, the server determines whether the configuration value of the locally stored configuration item is consistent with the configuration value of the corresponding configuration item in the polling request.
- step S303 is performed.
- the server maintains a short connection with the client within a preset polling duration based on the asynchronous servlet technology.
- the polling result is unchanged.
- the server maintains a short connection with the client for a preset polling duration based on the asynchronous servlet technology.
- the default polling duration is 5s.
- the server sends a polling response to the client.
- the polling response includes null.
- the preset polling duration is 5s, and the server waits for 5s when the polling time is reached. That is, at 5.0s, in the example, in the 5s time that the short connection is maintained, the configuration information of the configuration item 1 and the configuration item 2 in the server is not changed, the server sends a polling response with no change to the configuration to the client, where Include null in the polling response and close the short connection.
- the client After the client detects that the short connection with the server is disconnected, when the next preset time interval is reached, the client sends a polling request to the server to poll the configuration change status.
- the preset time interval. It is 1ms, which is the time of 5.001s.
- the polling request is sent to the server again, where the configuration item subscribed to in the request and the configuration information of the configuration item are polled.
- the configuration items subscribed in this instance are: configuration item 1 and configuration item 2.
- the configuration value of configuration item 1 is still datald1group1
- the configuration value of configuration item 2 is still datald2group2, because the polling result of configuration item 1 and configuration item 2 is unchanged after the last polling.
- the server determines whether the configuration value of each configuration item stored in the local device is consistent with the configuration value of the corresponding configuration item in the polling request.
- step S306 is performed.
- the server maintains a short connection with the client within a preset polling duration based on the asynchronous servlet technology.
- the server sends a configuration change polling response to the client when the configuration value of the configuration item 2 is changed, and the configuration item 2 is carried in the polling.
- the polling response with the configuration unchanged is sent to the client for 1 s.
- the configuration item 2: datald2group2 is changed, the configuration of the polling response is changed to the client.
- the polling response includes the configuration item 2, where the configuration item 2 is the target configuration item.
- the polling response with the configuration change is sent to the client at time 6.03s.
- the client senses the configuration change at 6.003s, and the time when the configuration change is 6.0s, which is very short. It can be considered that the client senses the configuration change in real time.
- the client sends a configuration value request to the server.
- the client after receiving the polling response with the configuration changed at the time of 6.003s, the client sends a configuration value request to the server at 4.004s to request to configure the configuration item 2 as the latest configuration value of the server.
- the latest configuration value is the current configuration value of configuration item 2.
- the server sends the latest configuration value of the configuration item 2 to the client.
- the server After receiving the configuration value request, the server sends the latest configuration value of the configuration item 2 to the client at the time of 6.005s. Accordingly, after receiving the latest configuration value, the client updates the configuration value of the configuration item 2 to the latest. The configuration value and close the short connection.
- S311 The client updates the configuration value of the configuration item 2 to the latest configuration value.
- the client after receiving the latest configuration value at the time of 6.005s, the client updates the configuration value of the configuration item 2 to poll the latest current configuration value of the corresponding configuration item 2.
- the polling response of the configuration change sent by the server to the client simultaneously carries the latest configuration values of the configuration item 2 and the configuration item 2.
- the latest configuration value of configuration item 2 is datald2%02%group2.
- the client receives the polling response, it updates the configuration value of configuration item 2 to the latest configuration value.
- the preset polling duration is 5s
- the configuration change occurs when the short connection is not reached until the polling time is long, until the client updates the configuration value of the corresponding configuration item to the latest configuration value.
- the client After the client reaches the preset time interval, the client sends a polling request to the server again.
- the client After the client detects that the short connection with the server is disconnected, the client sends a polling request to the server again at the next 1 ms, which is 6.006 s, to poll the configuration change status.
- the polling request includes configuration item 1 and configuration item 2, and The respective configuration values.
- the configuration value of configuration item 1 is datald1group1; the configuration value of configuration item 2 is datald2%2%group2.
- the short connection is maintained within the preset polling duration, which is equivalent to increasing the polling duration, and the configuration information of the configuration item can be sensed in time to ensure the configuration.
- FIG. 4 is a schematic structural diagram of a configuration information pushing apparatus according to Embodiment 3 of the present invention.
- the configuration information pushing device includes an obtaining module 11, a determining module 12, a connection holding module 13, a pushing module 14, and a closing module 15.
- the obtaining module 11 is configured to obtain a polling request sent by the client, where the polling request includes: configuration information of each configuration item.
- the determining module 12 is configured to determine whether the configuration information of each configuration item in the polling request is consistent with the current configuration information of the local corresponding configuration item.
- the connection holding module 13 is configured to maintain a short connection with the client within a preset polling duration if the determination is yes.
- the pushing module 14 is configured to: if the current configuration information of the at least one target configuration item in the local configuration item is inconsistent with the configuration information of the corresponding configuration item in the polling request, in the process of maintaining the short connection, The client pushes current configuration information of the target configuration item, so that the client updates the configuration of the target configuration item to current configuration information.
- the module 15 is closed for closing the short connection with the client.
- the closing module 15 is configured to: when the current configuration information of the at least one target configuration item in the local configuration item is inconsistent with the configuration information of the corresponding configuration item in the polling request, when the short connection is maintained Pushing the current configuration information of the target configuration item to the client, so that after the client updates the configuration of the target configuration item to the current configuration information, the short between the client and the client is closed. connection.
- the closing module 15 is further configured to close the short connection with the client when the preset polling duration is reached.
- the pushing module 14 is further configured to: when the determining result of the determining module 12 is negative, obtain the target configuration item from the local configuration item, and push the current configuration information of the target configuration item to the Describe the client, so that the client updates the configuration of the target configuration item to current configuration information.
- the pushing module 14 is specifically configured to send a polling response to the client, where the polling response includes a target configuration item, receive a configuration information request sent by the client, and The current configuration information of the target configuration item is sent to the client, so that the client updates the configuration of the target configuration item to current configuration information.
- the obtaining module 11 is further configured to: after the closing module 15 closes the short connection with the client, re-acquire the client to send the polling after reaching a preset time interval request.
- connection holding module 13 is specifically configured to: when the determination result of the determining module is yes, send an asynchronous processing request to the client, so that the client maintains the preset polling duration Short connection.
- the configuration information pushing device obtains the polling request sent by the client, and determines whether the configuration information of each configuration item in the polling request is consistent with the current configuration information of the local corresponding configuration item.
- the short connection between the client and the client is maintained during the polling duration.
- the current configuration information of the at least one target configuration item in the local configuration item is inconsistent with the configuration information of the corresponding configuration item in the polling request.
- the current configuration information of the target configuration item is pushed to the client, so that the client updates the configuration of the target configuration item to the current configuration information.
- the short connection needs to be maintained within the preset polling duration, and the polling duration is increased accordingly, so that the configuration information of the configuration item can be sensed in time to ensure that the configuration information is changed.
- FIG. 5 is a schematic structural diagram of a configuration information pushing apparatus according to Embodiment 4 of the present invention.
- the configuration information pushing device includes: a sending module 21, a first receiving module 22, a second receiving module 23, and an updating module 24.
- the sending module 21 is configured to send a polling request to the server, so that the server determines whether the configuration information of each configuration item in the polling request is consistent with the current configuration information of the local corresponding configuration item.
- the polling request includes configuration information of each configuration item.
- the first receiving module 22 is configured to receive a connection hold request sent by the server to maintain a short connection with the server within a preset polling duration.
- connection hold request is that the server determines each of the polling requests Sent when the configuration information of the item is consistent with the current configuration information of the local corresponding configuration item.
- the second receiving module 23 is configured to receive a push message of current configuration information of the target configuration item pushed by the server.
- the sending message is sent by the server in the process of maintaining the short connection, and determining that the current configuration information of the at least one target configuration item is inconsistent with the configuration information of the corresponding configuration item in the polling request.
- the target configuration item is a configuration item in the local configuration item.
- the update module 24 is configured to update the configuration of the target configuration item to the current configuration information.
- the sending module 21 is further configured to: before the second receiving module receives the push message that is used by the server to push the current configuration information of the target configuration item, send a configuration information request to the server, where The configuration information request is used to request the server to deliver current configuration information of the target configuration item.
- the first receiving module 22 is further configured to receive an indication message that is sent by the server to close the short connection.
- the indication message is sent by the server when the push message is not sent after reaching a preset polling duration.
- connection hold request is an asynchronous processing request for indicating that the short connection with the server is maintained within the preset polling duration.
- the sending module 21 is further configured to: after the updating module 24 updates the configuration of the target configuration item to the current configuration information, resend the round to the server after reaching a preset time interval. Request for a request.
- the configuration information pushing apparatus sends a polling request to the server, so that the server determines whether the configuration information of each configuration item in the polling request is consistent with the current configuration information of the local corresponding configuration item, and if they are consistent, The short connection between the preset polling duration and the server is maintained.
- the current configuration information of the at least one target configuration item in the local configuration item is inconsistent with the configuration information of the corresponding configuration item in the polling request.
- Client The push message including the current configuration information of the target configuration item will be received, and the client updates the configuration of the target configuration item to the current configuration information.
- the short connection needs to be maintained within the preset polling duration, and the polling duration is increased accordingly, so that the configuration information of the configuration item can be sensed in time to ensure that the configuration information is changed.
- the short connection needs to be maintained within the preset polling duration, and the polling duration is increased accordingly, so that the configuration information of the configuration item can be sensed in time to ensure that the configuration information is changed.
- the aforementioned program can be stored in a computer readable storage medium.
- the program when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Computer And Data Communications (AREA)
- Small-Scale Networks (AREA)
- Communication Control (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
Claims (24)
- 一种配置信息推送方法,其特征在于,包括:获取客户端发送的轮询请求,所述轮询请求中包括:各配置项的配置信息;判断所述轮询请求中各配置项的配置信息与本地对应配置项的当前配置信息是否均一致;如果判断为是,在预设的轮询时长内保持与所述客户端之间的短连接;如果在所述短连接保持的过程中所述本地配置项中有至少一个目标配置项的当前配置信息与所述轮询请求中对应配置项的配置信息不一致,向所述客户端推送所述目标配置项的当前配置信息,以使所述客户端将所述目标配置项的配置更新为当前配置信息。
- 根据权利要求1所述的方法,其特征在于,还包括:如果判断结果为否,从所述本地配置项中获取所述目标配置项;将所述目标配置项的当前配置信息推送给所述客户端,以使所述客户端将所述目标配置项的配置更新为当前配置信息;关闭与所述客户端之间的所述短连接。
- 根据权利要求1所述的方法,其特征在于,所述如果在所述短连接保持的过程中所述本地配置项中有至少一个目标配置项的当前配置信息与所述轮询请求中对应配置项的配置信息不一致,向所述客户端推送所述目标配置项的当前配置信息,以使所述客户端将所述目标配置项的配置更新为当前配置信息,包括:向所述客户端发送轮询响应,所述轮询响应包括目标配置项;接收所述客户端发送的配置信息请求;将所述目标配置项的当前配置信息发送给所述客户端,以使所述客户端将所述目标配置项的配置更新为当前配置信息。
- 根据权利要求1所述的方法,其特征在于,如果在所述短连接保持的过程中所述本地配置项中有至少一个目标配置项的当前配置信息与所述轮询请求中对应配置项的配置信息不一致,向所述客户端推送所述目标配置项的当前配置信息,以使所述客户端将所述目标配置项的配置更新 为当前配置信息,包括:当在所述短连接保持的过程中初次出现所述本地配置项中有至少一个目标配置项的当前配置信息与所述轮询请求中对应配置项的配置信息不一致时,向所述客户端推送所述目标配置项的当前配置信息,以使所述客户端将所述目标配置项的配置更新为当前配置信息;关闭与所述客户端之间的所述短连接。
- 根据权利要求3所述的方法,其特征在于,如果在所述短连接保持的过程中所述本地配置项中有至少一个目标配置项的当前配置信息与所述轮询请求中对应配置项的配置信息不一致,向所述客户端推送所述目标配置项的当前配置信息,以使所述客户端将所述目标配置项的配置更新为当前配置信息之后,包括:当到达所述预设的轮询时长时,关闭与所述客户端之间的所述短连接。
- 根据权利要求4或5所述的方法,其特征在于,所述关闭与所述客户端之间的所述短连接之后,包括:在到达预设的时间间隔后重新获取所述客户端发送的所述轮询请求。
- 根据权利要求1所述的方法,其特征在于,所述如果判断结果为是,在预设的轮询时长内保持与所述客户端之间的短连接,包括:向所述客户端发送异步处理请求,以使所述客户端在所述预设的轮询时长内保持所述短连接。
- 一种配置信息推送方法,其特征在于,包括:向服务器发送轮询请求,以使所述服务器判断所述轮询请求中各配置项的配置信息与本地对应配置项的当前配置信息是否均一致;其中,所述轮询请求中包括各配置项的配置信息;接收所述服务器发送的在预设的轮询时长内保持与所述服务器的短连接的连接保持请求;其中,所述连接保持请求是所述服务器在判断出所述轮询请求中各配置项的配置信息与本地对应配置项的当前配置信息均一致时发送的;接收所述服务器用于推送目标配置项的当前配置信息的推送消息;其中,所述推送消息是由所述服务器中保持所述短连接的过程中,判断出至少一个所述目标配置项的当前配置信息与所述轮询请求中对应配 置项的配置信息不一致时发送的,所述目标配置项为所述本地配置项中的配置项;将所述目标配置项的配置更新为所述当前配置信息。
- 根据权利要求8所述的方法,其特征在于,所述接收所述服务器推送的目标配置项的当前配置信息的推送消息之前,包括:向所述服务器发送配置信息请求,所述配置信息请求用于请求所述服务器下发所述目标配置项的当前配置信息。
- 根据权利要求8所述的方法,其特征在于,还包括:接收所述服务器发送的关闭所述短连接的指示消息;其中,所述指示消息是由所述服务器在到达预设的轮询时长后未发送所述推送消息时发送的;在到达预设的时间间隔后重新向所述服务器发送所述轮询请求。
- 根据权利要求8-10任一项所述的方法,其特征在于,所述连接保持请求为用于指示在所述预设的轮询时长内保持与所述服务器之间的所述短连接的异步处理请求。
- 根据权利要求8或9所述的方法,其特征在于,所述将所述目标配置项的配置更新为所述当前配置信息之后,还包括:在到达预设的时间间隔后重新向所述服务器发送所述轮询请求。
- 一种配置信息推送装置,其特征在于,包括:获取模块,用于获取客户端发送的轮询请求,所述轮询请求中包括:各配置项的配置信息;判断模块,用于判断所述轮询请求中各配置项的配置信息与本地对应配置项的当前配置信息是否均一致;连接保持模块,用于如果判断为是,在预设的轮询时长内保持与所述客户端之间的短连接;推送模块,用于如果在所述短连接保持的过程中所述本地配置项中有至少一个目标配置项的当前配置信息与所述轮询请求中对应配置项的配置信息不一致,向所述客户端推送所述目标配置项的当前配置信息,以使所述客户端将所述目标配置项的配置更新为当前配置信息。
- 根据权利要求13所述的装置,其特征在于,所述推送模块,还 用于在所述判断模块判断结果为否时,从所述本地配置项中获取所述目标配置项,以及将所述目标配置项的当前配置信息推送给所述客户端,以使所述客户端将所述目标配置项的配置更新为当前配置信息。
- 根据权利要求13所述的装置,其特征在于,所述推送模块,具体用于向所述客户端发送轮询响应,所述轮询响应包括目标配置项,接收所述客户端发送的配置信息请求,以及将所述目标配置项的当前配置信息发送给所述客户端,以使所述客户端将所述目标配置项的配置更新为当前配置信息。
- 根据权利要求15所述的装置,其特征在于,还包括:关闭模块,用于当在所述短连接保持的过程中初次出现所述本地配置项中有至少一个目标配置项的当前配置信息与所述轮询请求中对应配置项的配置信息不一致时,向所述客户端推送所述目标配置项的当前配置信息,以使所述客户端将所述目标配置项的配置更新为当前配置信息之后,关闭与所述客户端之间的所述短连接。
- 根据权利要求15所述的方法,其特征在于,所述关闭模块,还用于当到达所述预设的轮询时长时,关闭与所述客户端之间的所述短连接。
- 根据权利要求16或17所述的装置,其特征在于,所述获取模块,还用于在所述关闭模块关闭与所述客户端之间的所述短连接之后,在到达预设的时间间隔后重新获取所述客户端发送所述轮询请求。
- 根据权利要求13所述的装置,其特征在于,所述连接保持模块,具体用于在所述判断模块的判断结果为是,向所述客户端发送异步处理请求,以使所述客户端在所述预设的轮询时长内保持所述短连接。
- 一种配置信息推送装置,其特征在于,包括:发送模块,用于向服务器发送轮询请求,以使所述服务器判断所述轮询请求中各配置项的配置信息与本地对应配置项的当前配置信息是否均一致;其中,所述轮询请求中包括各配置项的配置信息;第一接收模块,用于接收所述服务器发送的在预设的轮询时长内保持与所述服务器的短连接的连接保持请求;其中,所述连接保持请求是所述服务器在判断出所述轮询请求中各配置项的配置信息与本地对应配置项 的当前配置信息均一致时发送的;第二接收模块,用于接收所述服务器推送的目标配置项的当前配置信息的推送消息,其中,所述推送消息是由所述服务器中保持所述短连接的过程中,判断出至少一个所述目标配置项的当前配置信息与所述轮询请求中对应配置项的配置信息不一致时发送的,其中所述目标配置项为所述本地配置项中的配置项;更新模块,用于将所述目标配置项的配置更新为所述当前配置信息。
- 根据权利要求20所述的装置,其特征在于,所述发送模块,还用于在所述第二接收模块接收所述服务器用于推送所述目标配置项的当前配置信息的所述推送消息之前,向所述服务器发送配置信息请求,所述配置信息请求用于请求所述服务器下发所述目标配置项的当前配置信息。
- 根据权利要求21所述的装置,其特征在于,所述第一接收模块,还用于接收所述服务器发送的关闭所述短连接的指示消息;其中,所述指示消息是由所述服务器在到达预设的轮询时长后未发送所述推送消息时发送的;所述发送模块,还用于在关闭与所述服务器之间的短连接之后,在到达预设的时间间隔后重新向所述服务器发送所述轮询请求。
- 根据权利要求20-22任一项所述的装置,其特征在于,所述连接保持请求为用于指示在所述预设的轮询时长内保持与所述服务器之间的所述短连接的异步处理请求。
- 根据权利要求20或21所述的装置,其特征在于,所述发送模块,还用于在所述更新模块将所述目标配置项的配置更新为所述当前配置信息之后,在到达预设的时间间隔后重新向所述服务器发送所述轮询请求。
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SG11201808520WA SG11201808520WA (en) | 2016-03-28 | 2017-03-16 | Configuration information push method and device |
EP17773050.4A EP3439236B1 (en) | 2016-03-28 | 2017-03-16 | Configuration information push method and device |
US16/144,621 US20190028332A1 (en) | 2016-03-28 | 2018-09-27 | Configuration information push method and device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610183710.1 | 2016-03-28 | ||
CN201610183710.1A CN107241204A (zh) | 2016-03-28 | 2016-03-28 | 配置信息推送方法及装置 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US16/144,621 Continuation US20190028332A1 (en) | 2016-03-28 | 2018-09-27 | Configuration information push method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017167020A1 true WO2017167020A1 (zh) | 2017-10-05 |
Family
ID=59963459
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/076890 WO2017167020A1 (zh) | 2016-03-28 | 2017-03-16 | 配置信息推送方法及装置 |
Country Status (6)
Country | Link |
---|---|
US (1) | US20190028332A1 (zh) |
EP (1) | EP3439236B1 (zh) |
CN (1) | CN107241204A (zh) |
SG (1) | SG11201808520WA (zh) |
TW (1) | TW201737114A (zh) |
WO (1) | WO2017167020A1 (zh) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108880851B (zh) * | 2017-11-07 | 2022-02-25 | 视联动力信息技术股份有限公司 | 一种配置更新的方法和交互系统 |
CN111104133A (zh) * | 2018-10-25 | 2020-05-05 | 深圳市茁壮网络股份有限公司 | 一种配置参数的更新系统、方法及存储介质 |
CN109885320A (zh) * | 2018-12-29 | 2019-06-14 | 深圳云天励飞技术有限公司 | 一种配置信息的更新方法、装置及电子设备 |
US11477077B1 (en) * | 2019-10-30 | 2022-10-18 | United Services Automobile Association (Usaa) | Change management system with monitoring, alerting, and trending for information technology environment |
CN111193789B (zh) * | 2019-12-25 | 2023-07-11 | 微民保险代理有限公司 | 订阅信息推送方法、装置、计算机设备和可读存储介质 |
CN112463251A (zh) * | 2020-12-03 | 2021-03-09 | 中国建设银行股份有限公司 | 一种uliweb框架配置热发布的方法和装置 |
CN113703866B (zh) * | 2021-08-25 | 2024-04-26 | 上海哔哩哔哩科技有限公司 | 配置中心信息同步方法及系统 |
US11861376B2 (en) * | 2022-01-26 | 2024-01-02 | Red Hat, Inc. | Live edit of configuration management execution |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102006183A (zh) * | 2010-11-12 | 2011-04-06 | 百度在线网络技术(北京)有限公司 | 一种用于基于配置参数配置网络设备的方法与配置设备 |
CN103095819A (zh) * | 2013-01-04 | 2013-05-08 | 微梦创科网络科技(中国)有限公司 | 推送数据信息的方法及数据信息推送系统 |
CN104519095A (zh) * | 2013-09-29 | 2015-04-15 | 重庆新媒农信科技有限公司 | 一种动态消息推送方法及其系统、服务端、客户端 |
CN104660708A (zh) * | 2015-03-13 | 2015-05-27 | 黄庆宇 | 一种基于http的移动应用消息推送方法及系统 |
CN104778063A (zh) * | 2015-04-16 | 2015-07-15 | 小米科技有限责任公司 | 资源更新方法和装置 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6101541A (en) * | 1998-04-21 | 2000-08-08 | International Business Machines Corporation | Active polling by network LDAP directory |
CN103167017B (zh) * | 2013-01-09 | 2016-06-29 | 北京奇虎科技有限公司 | Web轮询方法、装置及系统 |
-
2016
- 2016-03-28 CN CN201610183710.1A patent/CN107241204A/zh active Pending
-
2017
- 2017-02-20 TW TW106105603A patent/TW201737114A/zh unknown
- 2017-03-16 EP EP17773050.4A patent/EP3439236B1/en active Active
- 2017-03-16 SG SG11201808520WA patent/SG11201808520WA/en unknown
- 2017-03-16 WO PCT/CN2017/076890 patent/WO2017167020A1/zh active Application Filing
-
2018
- 2018-09-27 US US16/144,621 patent/US20190028332A1/en not_active Abandoned
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102006183A (zh) * | 2010-11-12 | 2011-04-06 | 百度在线网络技术(北京)有限公司 | 一种用于基于配置参数配置网络设备的方法与配置设备 |
CN103095819A (zh) * | 2013-01-04 | 2013-05-08 | 微梦创科网络科技(中国)有限公司 | 推送数据信息的方法及数据信息推送系统 |
CN104519095A (zh) * | 2013-09-29 | 2015-04-15 | 重庆新媒农信科技有限公司 | 一种动态消息推送方法及其系统、服务端、客户端 |
CN104660708A (zh) * | 2015-03-13 | 2015-05-27 | 黄庆宇 | 一种基于http的移动应用消息推送方法及系统 |
CN104778063A (zh) * | 2015-04-16 | 2015-07-15 | 小米科技有限责任公司 | 资源更新方法和装置 |
Also Published As
Publication number | Publication date |
---|---|
EP3439236A1 (en) | 2019-02-06 |
SG11201808520WA (en) | 2018-10-30 |
TW201737114A (zh) | 2017-10-16 |
EP3439236A4 (en) | 2019-10-23 |
CN107241204A (zh) | 2017-10-10 |
EP3439236B1 (en) | 2022-05-04 |
US20190028332A1 (en) | 2019-01-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017167020A1 (zh) | 配置信息推送方法及装置 | |
EP3223474B1 (en) | Method and device for processing adaptive flow table | |
US10425318B2 (en) | Method for heartbeat packet processing by using proxy, apparatus, and communications system | |
WO2021237433A1 (zh) | 消息推送方法、装置、电子设备及计算机可读介质 | |
US10951572B1 (en) | Watermark-based message queue | |
TWI454917B (zh) | Access control method, access control device and access control program | |
WO2015149471A1 (zh) | 一种信息推送方法、系统、设备及计算机存储介质 | |
CN103516588A (zh) | 一种客户端进行后台处理的方法和系统 | |
WO2017219519A1 (zh) | 设备的控制方法、装置及系统 | |
CN107508916B (zh) | 用于智能机器人的服务器链接管理方法 | |
WO2017219815A1 (zh) | 消息传输系统、消息发送方法和装置、接收方法和装置 | |
CN103516766A (zh) | 一种客户端与应用服务器间进行通信的方法和系统 | |
WO2020094021A1 (zh) | 一种微服务架构下的通信方法及系统 | |
WO2017071567A1 (zh) | 无线保真WiFi热点的连接控制方法及装置 | |
WO2019085651A1 (zh) | 软件定义网络的设置方法、控制器、交换机及存储介质 | |
JP2013236233A (ja) | 無線通信プログラム、携帯装置および無線通信システム | |
TWI693547B (zh) | 一種資料更新方法和設備 | |
US20150055551A1 (en) | Mobile wireless access point notification delivery for periodically disconnected mobile devices | |
US8135025B2 (en) | Asynchronous communication in an unstable network | |
WO2016141653A1 (zh) | 一种sctp连接重建立方法和装置、存储介质 | |
JPWO2006043411A1 (ja) | 通信装置および端末存在確認方法 | |
WO2018010448A1 (zh) | 文件传输方法及装置 | |
WO2017206620A1 (zh) | 应用程序状态设置的方法和装置 | |
US10356666B2 (en) | Communication device and communication control method | |
US20180351900A1 (en) | Archiving messages without message copying |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
WWE | Wipo information: entry into national phase |
Ref document number: 11201808520W Country of ref document: SG |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2017773050 Country of ref document: EP |
|
ENP | Entry into the national phase |
Ref document number: 2017773050 Country of ref document: EP Effective date: 20181029 |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17773050 Country of ref document: EP Kind code of ref document: A1 |