WO2018227997A1 - 流量数据自恢复处理方法、可读存储介质、服务器及装置 - Google Patents
流量数据自恢复处理方法、可读存储介质、服务器及装置 Download PDFInfo
- Publication number
- WO2018227997A1 WO2018227997A1 PCT/CN2018/077241 CN2018077241W WO2018227997A1 WO 2018227997 A1 WO2018227997 A1 WO 2018227997A1 CN 2018077241 W CN2018077241 W CN 2018077241W WO 2018227997 A1 WO2018227997 A1 WO 2018227997A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- traffic data
- data synchronization
- target system
- signal strength
- operation result
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3006—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operations
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1443—Transmit or communication errors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/30—Monitoring; Testing of propagation channels
- H04B17/309—Measuring or estimating channel quality parameters
- H04B17/318—Received signal strength
-
- 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/04—Processing captured monitoring data, e.g. for logfile generation
-
- 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/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/805—Real-time
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/81—Threshold
Definitions
- the present application relates to the field of data processing technologies, and in particular, to a traffic data self-recovery processing method, a computer readable storage medium, a server, and a device.
- the online platform While providing online services, the online platform also cares about the loss of traffic during the online service process. Therefore, the platform system needs to perform traffic calibration on the local traffic data based on the traffic data of the telecom operators (for example, China Telecom, China Unicom, China Mobile), thereby performing fine-grained traffic monitoring.
- the telecom operators for example, China Telecom, China Unicom, China Mobile
- the operation of synchronizing the traffic data may be failed due to various unexpected situations, for example, the network environment is unstable, or the platform system is abnormal in operation or error.
- the embodiment of the present application provides a traffic data self-recovery processing method, a computer readable storage medium, a server, and a device, to solve the operation of synchronous traffic data due to various unexpected situations in the process of actually performing a traffic synchronization operation.
- the problem of failure is a traffic data self-recovery processing method, a computer readable storage medium, a server, and a device, to solve the operation of synchronous traffic data due to various unexpected situations in the process of actually performing a traffic synchronization operation. The problem of failure.
- the first aspect provides a method for self-recovery of traffic data, including:
- the traffic data synchronization operation of the target system is repeatedly performed until the traffic data synchronization is successful or the cumulative number of traffic data synchronization failures exceeds the failure number threshold;
- the failure threshold is determined by the current network signal strength of the target system. Determined and positively correlated with the current network signal strength.
- a computer readable storage medium is stored, the computer readable storage medium storing computer readable instructions that, when executed by at least one processor, implement the traffic data described above The steps to restore the processing method.
- a server comprising a memory, a processor, and computer readable instructions stored on the memory and executable on the processor, the processor executing the computer readable
- the steps of the traffic data self-recovery processing method described above are implemented at the time of instruction.
- a traffic data self-recovery processing apparatus including:
- An operation result monitoring module configured to monitor an operation result of the flow data synchronization operation of the target system
- the module is repeatedly executed, if the operation result monitoring module monitors that the operation result is that the traffic data synchronization fails, the traffic data synchronization operation of the target system is repeatedly performed until the traffic data synchronization succeeds or the traffic data synchronization fails. The number of times exceeds the failure threshold;
- a frequency clearing module configured to: if the operation result monitoring module monitors that the operation result is that the traffic data synchronization is successful, clearing the accumulated number of times;
- a synchronous operation stopping module configured to stop the traffic data synchronization operation of the target system, and send a message about the failure of the traffic data synchronization, if the accumulated number of failed traffic data synchronization times exceeds the failure number threshold, the failure number threshold is The current network signal strength of the target system is determined and positively correlated with the current network signal strength.
- the data self-recovery processing is performed by repeatedly performing the traffic data synchronization operation, the data synchronization is completed as much as possible, the real-time performance of the traffic data synchronization is improved, and the accident situation is reduced. causes the impact of synchronization failure on the target system.
- FIG. 1 is a flowchart of an embodiment of a method for automatically recovering traffic data according to an embodiment of the present application
- FIG. 2 is a schematic flowchart of step 101 of a traffic data self-recovery processing method in an application scenario according to an embodiment of the present application;
- FIG. 3 is a schematic flowchart of an application scenario of a traffic data self-recovery processing method after stopping a synchronization operation according to an embodiment of the present disclosure
- FIG. 4 is a schematic flow chart of a preset signal strength threshold of a flow data self-recovery processing method in the corresponding embodiment of FIG. 3;
- FIG. 5 is a schematic diagram of an operating environment of computer readable instructions provided by an embodiment of the present application.
- FIG. 6 is a functional block diagram of computer readable instructions provided by an embodiment of the present application.
- an embodiment of a method for automatically recovering traffic data in an embodiment of the present application includes:
- Monitor operation results of the traffic data synchronization operation of the target system
- the target system may be a platform system of an online platform, and the target system may perform a traffic data synchronization operation when needed, for example, a staff manually triggers a data synchronization function on the target system, so that the target system performs the Synchronous operation, or, the target system may be preset to perform the flow data synchronization operation at a fixed time of the day, for example, the system automatically synchronizes the flow data of the system at 2 am every day, and the like.
- the synchronization operation After the traffic data synchronization operation is performed on the target system, the synchronization operation outputs the corresponding operation result.
- the operation result can be divided into two types: the traffic data synchronization success and the traffic data synchronization failure, wherein the traffic data synchronization failure can be
- the traffic data synchronization operation fails, the synchronization operation succeeds, but the system cannot obtain the traffic data of the service provider (a type of abnormal situation). Therefore, the result of monitoring the operation result may also include two types, one is monitoring that the operation result is successful for the flow data synchronization; the other is monitoring the operation result as the flow data synchronization failure.
- the method may start a thread or a computer program to execute the above-mentioned step 101, and may also perform the above-mentioned step 101 by the target system itself.
- This embodiment does not specifically limit the execution subject of the method.
- the foregoing step 101 may include:
- step 201 to step 204 it can be understood that after each target data data synchronization operation is performed, the output operation result of the target system can be recorded into a specified database, and the designated database is connected with the target system data.
- a monitoring thread or computer program
- the latest operation result refers to the result of the operation recorded to the specified database in the last time. Therefore, the latest operation result is the result of the operation of the last execution of the flow data synchronization operation by the target system.
- the read operation result is that the traffic data synchronization fails, it indicates that the monitored operation result is also the flow data synchronization failure; if the read operation result is that the flow data synchronization is successful, it indicates that the monitoring is successful. The result of the operation is also successful in synchronizing the traffic data.
- step 102 or step 105 may be performed.
- the traffic data synchronization operation of the target system is performed again;
- the traffic data of the target system is updated in time, and step 102 executes the target again after the synchronization fails.
- the system's traffic data is synchronized, that is, the traffic data is synchronized again.
- step 102 the traffic data synchronization operation is performed again and the traffic data synchronization operation performed by the target system itself is performed, and the operation contents thereof are substantially the same, but the triggering conditions and purposes of the two are not the same.
- the traffic data synchronization operation performed by the target system itself it is often a "task" that the target system needs to process periodically or according to the received instructions.
- the triggering conditions are described in the above content, and will not be described here; The purpose is to complete the "task” and meet the requirements of traffic data synchronization.
- the trigger condition is that the synchronization operation of the target system is failed, and the purpose is to improve the real-time and timeliness of the target system traffic data synchronization, and the auxiliary target.
- the system completes the "task" faster. It can be seen that the two have different triggering conditions and different purposes, and it should not be simply considered that step 102 is a simple repetition of the target system performing the synchronous operation.
- step 104 determine whether the cumulative number of failed traffic data synchronization failure exceeds the failure threshold, if not, return to step 102, and if so, proceed to step 106;
- the step 102 also has a certain possibility of failure when performing the synchronization operation again. Therefore, in this embodiment, after each failure of the flow data synchronization operation of the target system is performed, the number of synchronization failures is accumulated, and the synchronization fails once, and the cumulative number is incremented by one. Under the premise that the accumulated number does not exceed the threshold of the above failure times, the target system may perform multiple attempts to synchronize the traffic data until the traffic data is successfully synchronized.
- step 105 When the traffic data synchronization is successful, the following step 105 is performed; otherwise, if the synchronization fails and the cumulative number of failures exceeds the failure threshold, step 106 should be executed to terminate the traffic synchronization operation of the target system to avoid running resources of the target system. Wasted.
- the foregoing failure number threshold may be determined by the current network signal strength of the target system and positively correlated with the current network signal strength. It can be understood that when the current network signal strength of the target system is large, the current network state of the target system can be considered to be better, and the synchronization operation can be attempted several times, so the failure threshold can be set larger; When the current network signal strength is small, the current network state of the target system may be considered to be poor, and the failure threshold is set to be smaller, the number of synchronization operations of the target system is reduced, and the running resource loss of the target system is reduced. Specifically, the correspondence between the network signal strength and the number of failure thresholds may be preset on the target system and recorded in the form of a table.
- the network signal strength is [-90dBm, -80 dBm], and the corresponding failure number threshold is 3; the network signal strength is [-79dBm, -60 dBm], and the corresponding failure number threshold is 5.
- the foregoing “failure threshold” may also be set according to actual conditions, for example, the threshold of the number of failures is set to 5 times, that is, after the target system fails to synchronize 6 times, the embodiment is Step 106 is executed to stop the target system from continuing the "meaningless" traffic data synchronization operation.
- the triggering step 105 may include the following situations: first, the monitoring result of step 101 is that the traffic data synchronization is successful; secondly, after step 102 performs the traffic data synchronization operation of the target system again, the operation result is The traffic data is successfully synchronized. Thirdly, when the cumulative number of times does not exceed the failure threshold, the step 102 is repeatedly triggered repeatedly, and after the data synchronization operation of the target system is performed multiple times, the result of the operation is that the traffic data is successfully synchronized.
- the operation result of the traffic data synchronization operation of the target system can be monitored every time, the traffic data synchronization operation performed by the target system spontaneously or the traffic data synchronization operation performed in step 102 is performed, and the operation result is obtained. It can be considered that it can be monitored by the monitoring program of step 101, and the corresponding monitoring result is obtained.
- the traffic data synchronization operation of the target system may be stopped, and a message that the traffic data synchronization failure is issued may be sent.
- stopping the traffic data synchronization operation of the target system means stopping the current synchronization operation thread or task of the target system. It can be understood that when the target system receives the new traffic data synchronization instruction or task again, the target The system can start its traffic data synchronization function again and synchronize it.
- step 106 when the cumulative number of synchronization failures exceeds the failure threshold, it can be considered that the target system is difficult to complete the synchronization of the current traffic data in a short time, and therefore, the traffic data synchronization operation of the target system is stopped.
- a message about the failure of the flow data synchronization should be issued, so that the relevant staff can consult in time to provide assistance for the staff to perform system maintenance.
- the sending the message about the failure of the traffic data synchronization may include: notifying the designated staff by means of a short message, a mail, or a system message; or displaying the message about the failure of the flow data synchronization directly on the display screen of the target system for providing
- the designated staff member can view the alarms even through voice announcements, blinking lights, etc., so as to notify the designated staff in time, causing the staff to be alert.
- the method in addition to the self-recovery of the target system in the manner of multiple re-synchronization operations of the above steps 102-104, in order to further improve the self-recovery function of the target system data traffic, the method may also be based on the network connected to the target system.
- the state performs intelligent judgment and self-recovery processing, so that the target system performs the traffic data synchronization operation again when the network state is the best, and the success rate of the synchronization operation is improved.
- the traffic data self-recovery processing method in this embodiment may further include:
- step 304 Detect whether the growth amplitude exceeds a preset amplitude threshold, and the current network signal strength exceeds a preset signal strength threshold. If yes, step 304 is performed, and if not, the detection is continued;
- step 301 After the traffic data synchronization operation of the target system is stopped in step 106, it is considered that the failure of the synchronization operation is likely to be caused by the network quality of the target system being too low, so that the network quality can be significantly improved. Synchronize again to achieve self-recovery of traffic data synchronization without manual intervention. Therefore, for step 301, it is necessary to detect the current network signal strength of the target system in real time.
- step 302 after monitoring the current network signal strength of the target system, it is required to calculate the growth rate of the current network signal strength compared to the target system at the time of synchronization failure, that is, the current network signal strength and the location.
- a comparison between the first network signal strengths is described. Specifically, the difference between the two can be calculated as the increase range. For example, if the current network signal strength is A and the first network signal strength is B, the increase range calculated in step 302 is (AB); The growth rate between the current network signal strength and the first network signal strength may also be calculated as the increase range. For example, if the current network signal strength is A and the first network signal strength is B, then step 302 is calculated. The growth rate obtained is (AB)/B.
- the growth range described in this embodiment is used to characterize the degree of improvement of the current network signal strength compared to the first network signal strength, and therefore, any calculation method that can be used to characterize the degree of improvement of the two. Or the calculated value can be considered as another form of expression of this increase.
- step 303 in order to accurately determine whether the current network quality of the target system is significantly improved, two requirements are set in this embodiment.
- the growth rate calculated in step 302 exceeds a preset amplitude threshold.
- the current network signal strength monitored in step 301 is also required to exceed the preset signal strength threshold. Only when both requirements are met, can the current network quality of the target system be significantly improved. Therefore, if the result of the detection in step 303 is YES, step 304 is performed; otherwise, the detection is continued.
- the signal strength threshold in step 303 can be preset according to actual usage, for example, by a staff member. In order to make the setting of the signal strength threshold more reasonable, further, as shown in FIG. 4, the signal strength threshold in the above step 303 can be preset by the following steps:
- the signal strength threshold is used to evaluate whether the current network signal strength can provide a network environment for the target system to perform the traffic data synchronization operation normally. Therefore, the setting of the signal strength threshold can be determined with reference to the network signal strength during the target system history synchronization operation.
- the system whenever the target system is successfully synchronized, the system actively records the second network signal strength at the synchronization success time, so that after a period of use, the system (which may be the target system) can store a large amount of historical synchronization. Corresponding second network signal strength when the operation is successful.
- the second network signal strengths For steps 402 and 403, after recording the second network signal strengths, their mean values can be calculated as the signal strength threshold. It can be understood that, since these second network signal strengths are the corresponding network signal strengths when the target system history synchronization operation succeeds, when the current network signal strength exceeds its mean value, the current network signal strength is synchronized with the target system. The average network environment in which the operation is performed is even better, so that the current network environment of the target system can be considered to meet the requirements for normal traffic data synchronization operations.
- step 304 if the increasing amplitude exceeds a preset amplitude threshold and the current network signal strength exceeds a preset signal strength threshold, the traffic data synchronization operation of the target system may be performed.
- the traffic data self-recovery processing method may further detect the target system. Whether the system time reaches the specified time; if the system time of the target system reaches the specified time, the traffic data synchronization operation of the target system is performed. It can be understood that, in this embodiment, after multiple attempts to synchronize the operation fails, and then stop the target system for the traffic data synchronization operation, in addition to the above content, by detecting whether the current network quality is significantly improved, the traffic data synchronization of the trigger target system is improved.
- the target system can be triggered to perform the flow data synchronization operation periodically, so that the self-recovery attempt is periodically performed, and to some extent, the above-mentioned self-recovery by the network quality detection can be compensated for.
- the data self-recovery processing is performed by repeatedly performing the traffic data synchronization operation, the data synchronization is completed as much as possible, the real-time performance of the traffic data synchronization is improved, and the accidental situation is reduced.
- FIG. 5 is a schematic diagram of an operating environment of computer readable instructions provided by an embodiment of the present application.
- the computer readable instructions are installed and run in the server 5.
- the server 5 can be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
- the server 5 may include, but is not limited to, one or more memories 51 (only one shown), one or more processors 52 (only one shown), the above-described memory 51 and processor 52 passing through the bus 53 connections.
- FIG. 6 is a functional block diagram of computer readable instructions provided by an embodiment of the present application.
- the computer readable instructions may be divided into one or more modules, the one or more modules being stored in a computer readable storage medium, such as the memory 51, and by a Or a plurality of processors (this embodiment is the processor 52) are executed to complete the application.
- the computer readable instructions may be divided into an operation result monitoring module 601, an iteration execution module 602, a number of times clearing module 603, and a synchronous operation stopping module 604. The following description will specifically describe the functions of the modules 601-604.
- the operation result monitoring module 601 is configured to monitor an operation result of the traffic data synchronization operation of the target system
- the module 602 is repeatedly executed, if the operation result monitoring module 601 monitors that the operation result is that the traffic data synchronization fails, the traffic data synchronization operation of the target system is repeatedly performed until the traffic data synchronization succeeds or the traffic data synchronization fails. The cumulative number of times exceeds the failure threshold;
- the number clearing module 603 is configured to: if the operation result monitoring module 601 monitors that the operation result is that the traffic data synchronization is successful, the accumulated number of times is cleared;
- the synchronization operation stopping module 604 is configured to stop the traffic data synchronization operation of the target system if the accumulated number of failed traffic data synchronization failures exceeds the failure number threshold, and issue a message about the failure of the traffic data synchronization, where the failure threshold is determined by the The current network signal strength of the target system is determined and positively correlated with the current network signal strength.
- computer readable instructions may further include:
- a first signal strength recording module configured to record a first network signal strength of the target system at a synchronization failure time whenever the operation result is that the traffic data synchronization fails
- the computer readable instructions may further include:
- a signal strength detecting module configured to monitor a current network signal strength of the target system in real time
- a growth amplitude calculation module configured to calculate a growth rate of the current network signal strength compared to the first network signal strength
- a synchronization operation execution module configured to perform a traffic data synchronization operation of the target system, if the increasing amplitude exceeds a preset amplitude threshold and the current network signal strength exceeds a preset signal strength threshold.
- the signal strength threshold may be preset by the following module:
- a second signal strength recording module configured to record a second network signal strength of the target system at a synchronization success time whenever the operation result is that the traffic data synchronization is successful
- a strength mean calculation module configured to calculate an average value of the second network signal strength corresponding to each flow data synchronization operation performed by the target system history
- An intensity threshold determination module is configured to determine the mean as the signal strength threshold.
- the computer readable instructions may further include:
- a time detecting module configured to detect whether a system time of the target system reaches a specified time
- an operation execution module configured to perform a flow data synchronization operation of the target system if the detection result of the time detection module is YES.
- the operation result monitoring module 601 can include:
- An output result recording unit configured to record an operation result output by each flow data synchronization operation of the target system to a specified database
- An operation result reading unit configured to start a monitoring thread, and read, by the monitoring thread, the latest operation result in the specified database
- a first determining unit configured to: if the operation result read by the operation result reading unit is that the traffic data synchronization fails, determining that the monitored operation result is that the traffic data synchronization fails;
- the second determining unit is configured to determine that the monitored operation result is that the traffic data synchronization is successful if the operation result read by the operation result reading unit is that the traffic data synchronization is successful.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Electromagnetism (AREA)
- Mathematical Physics (AREA)
- Data Mining & Analysis (AREA)
- Environmental & Geological Engineering (AREA)
- Telephonic Communication Services (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
本申请实施例公开了一种流量数据自恢复处理方法,包括:监控目标系统的流量数据同步操作的操作结果;若监控到所述操作结果为流量数据同步失败,则反复执行所述目标系统的流量数据同步操作,直至流量数据同步成功或者流量数据同步失败的累计次数超过失败次数阈值;若监控到所述操作结果为流量数据同步成功,则将所述累计次数清零;若流量数据同步失败的累计次数超过失败次数阈值,则停止所述目标系统的流量数据同步操作,并发出关于流量数据同步失败的消息,所述失败次数阈值由所述目标系统当前的网络信号强度决定且与所述当前的网络信号强度正相关。本申请实施例还提供一种流量数据自恢复处理服务器。
Description
本申请要求于2017年6月16日提交中国专利局、申请号为201710457222.X、发明名称为“一种流量数据自恢复处理方法和服务器”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及数据处理技术领域,尤其涉及一种流量数据自恢复处理方法、计算机可读存储介质、服务器及装置。
在线平台在提供在线服务的同时,也关心在线服务过程中的流量损耗。因而,平台系统需要基于电信运营商(例如,中国电信、中国联通、中国移动)的流量数据对本地的流量数据进行流量校准,以此来做细粒度的流量监控。
然而,在实际进行流量同步操作的过程中,可能会由于各种意外情况导致同步流量数据的操作失败,例如,网路环境不稳定,或者平台系统操作异常、出错等情况。
本申请实施例提供了一种流量数据自恢复处理方法、计算机可读存储介质、服务器及装置,以解决在实际进行流量同步操作的过程中,可能会由于各种意外情况导致同步流量数据的操作失败的问题。
第一方面,提供了一种流量数据自恢复处理方法,包括:
监控目标系统的流量数据同步操作的操作结果;
若监控到所述操作结果为流量数据同步失败,则反复执行所述目标系统的流量数据同步操作,直至流量数据同步成功或者流量数据同步失败的累计次数超过失败次数阈值;
若监控到所述操作结果为流量数据同步成功,则将所述累计次数清零;
若流量数据同步失败的累计次数超过失败次数阈值,则停止所述目标系统的流量数据同步操作,并发出关于流量数据同步失败的消息,所述失败次数阈值由所述目标系统当前的网络信号强度决定且与所述当前的网络信号强度正相关。
第二方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令被至少一个处理器执行时,实现以上所述的流量数据自恢复处理方法的步骤。
第三方面,提供了一种服务器,所述服务器包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现以上所述的流量数据自恢复处理方法的步骤。
第四方面,提供了一种流量数据自恢复处理装置,包括:
操作结果监控模块,用于监控目标系统的流量数据同步操作的操作结果;
反复执行模块,用于若所述操作结果监控模块监控到所述操作结果为流量数据同步失败,则反复执行所述目标系统的流量数据同步操作,直至流量数据同步成功或者流量数据同步失败的累计次数超过失败次数阈值;
次数清零模块,用于若所述操作结果监控模块监控到所述操作结果为流量数据同步成功,则将所述累计次数清零;
同步操作停止模块,用于若流量数据同步失败的累计次数超过失败次数阈值,则停止所述目标系统的流量数据同步操作,并发出关于流量数据同步失败的消息,所述失败次数阈值由所述目标系统当前的网络信号强度决定且与所述当前的网络信号强度正相关。
本申请实施例中可以在同步流量数据失败之后,通过反复多次执行流量数据同步操作的方式进行数据的自恢复处理,尽可能地完成数据同步,提高流量数据同步的实时性,减少因意外情况导致同步失败给目标系统带来的影响。
图1为本申请实施例中一种流量数据自恢复处理方法一个实施例流程图;
图2为本申请实施例中一种流量数据自恢复处理方法步骤101在一个应用场景下的流程示意图;
图3为本申请实施例中一种流量数据自恢复处理方法在停止同步操作之后的一个应用场景下的流程示意图;
图4为图3对应实施例中一种流量数据自恢复处理方法预先设定信号强度阈值的流程示意图;
图5是本申请实施例提供的计算机可读指令的运行环境示意图;
图6是本申请实施例提供的计算机可读指令的功能模块图。
请参阅图1,本申请实施例中一种流量数据自恢复处理方法一个实施例包括:
101、监控目标系统的流量数据同步操作的操作结果;
本实施例中,该目标系统可以为在线平台的平台系统,该目标系统在有需要时可以执行流量数据同步操作,例如,工作人员手动触发目标系统上的数据同步功能,从而使得目标系统执行该同步操作,或者,可以预先设定目标系统在一天的某个固定时间执行该流量数据同步操作,比如每天凌晨2点自动进行系统的流量数据同步更新,等等。
在目标系统进行流量数据同步操作之后,该同步操作输出相应的操作结果,从严格意义上来说,操作结果可以区分为两种,流量数据同步成功和流量数据同步失败,其中,流量数据同步失败可以包括流量数据同步操作失败、同步操作成功但系统无法获取到电信运营商的流量数据(异常情况的一种)等情况。因而,监控该操作结果得到的结果也可以包括两种,一种是监控到所述操作结果为流量数据同步成功;另一种是监控到所述操作结果为流量数据同步失败。
本方法可以启动一线程或计算机程序执行上述步骤101,也可以由目标系统自身执行上述步骤101,本实施例对本方法的执行主体不作具体限定。
进一步地,如图2所示,上述步骤101可以包括:
201、记录所述目标系统的每一个流量数据同步操作输出的操作结果至指定数据库;
202、启动一监控线程,通过所述监控线程读取所述指定数据库中最新的操作结果;
203、若读取到的所述操作结果为流量数据同步失败,则确定监控到的所述操作结果为流量数据同步失败;
204、若读取到的所述操作结果为流量数据同步成功,则确定监控到的所述操作结果为流量数据同步成功。
对于步骤201~步骤204,可以理解的是,在目标系统进行每一个流量数据同步操作之后,均可以将其输出的操作结果记录至指定数据库中,该指定数据库与目标系统数据连接。在需要时,可以启动一监控线程(或计算机程序)从该指定数据库中读取到目标系统最新的操作结果。这里说“最新的操作结果”是指最近一次记录至指定数据库中的操作结果,因此,该最新的操作结果也即目标系统最近一次执行流量数据同步操作输出的操作结果。
可知,如果读取到的操作结果为流量数据同步失败,则表示监控到的所述操作结果也为流量数据同步失败;如果读取到的所述操作结果为流量数据同步成功,则表示监控到的所述操作结果也为流量数据同步成功。
本实施例中,基于上述步骤101的监控结果,可以执行下述步骤102或步骤105。
102、若监控到所述操作结果为流量数据同步失败,则再次执行所述目标系统的流量数据同步操作;
本实施例中,当监控发现目标系统的操作结果为流量数据同步失败时,为了提高目标系统流量数据同步的实时性,使得目标系统的流量数据得到及时更新,步骤102在同步失败后再次执行目标系统的流量数据同步操作,即再一次尝试进行流量数据的同步。
可以理解的是,步骤102中再次执行流量数据同步操作与上述目标系统自行执行的流量数据同步操作,其操作内容大致相同,但两者的触发条件和目的并不相同。对于目标系统自行执行的流量数据同步操作来说,其往往是目标系统定期或者根据接收到的指令而需要处理的“任务”,其触发条件在上述内容中已说明,此处不再赘述;而其目的则是为了完成该“任务”,达到流量数据同步的要求。另一方面,对于步骤102再次执行流量数据同步操作来说,其触发条件则是监控到目标系统的同步操作失败,其目的则是为了提高目标系统流量数据同步的实时性和及时性,辅助目标系统更快地完成该“任务”。可见,两者具有不同的触发条件和不同的目的,不应简单地认为步骤102就是目标系统执行同步操作的简单重复。
103、判断再次执行所述目标系统的流量数据同步操作是否成功,若是,则执行步骤105,若否,则执行步骤104;
104、判断流量数据同步失败的累计次数是否超过失败次数阈值,若否,则返回执行步骤102,若是,则执行步骤106;
对于上述步骤103和步骤104,可以理解的是,鉴于上一次同步操作失败的结果,步骤102在再次执行同步操作时也存在一定的失败可能性。因此,在本实施例中,在每次执行目标系统的流量数据同步操作失败之后,均会累计同步失败的次数,同步失败一次,则累计次数加1。在累计次数不超过上述失败次数阈值的前提下,目标系统可以进行多次流量数据同步操作的尝试,直至流量数据同步成功。
当流量数据同步成功时,则执行下述步骤105;反之,若同步失败且失败的累计次数超过了失败次数阈值,则应当执行步骤106,终止目标系统的流量同步操作,避免目标系统运行资源的白白浪费。
本实施例中,上述的失败次数阈值可以由所述目标系统当前的网络信号强度决定,且与所述当前的网络信号强度正相关。可以理解的是,当目标系统当前的网络信号强度较大时,可以认为目标系统当前的网络状态较佳,可以多尝试几次同步操作,因此失败次数阈值可以设定得大一些;反之,当当前的网络信号强度较小时,可以认为目标系统当前的网络状态较差,则将失败次数阈值设定得小一些,减少目标系统进行同步操作的次数,减少目标系统的运行资源的损耗。具体地,可以在目标系统上预先设定有网路信号强度与失败次数阈值的对应关系,以表格的形式记录下来。比如,网络信号强度为[-90dBm,-80 dBm],其对应的失败次数阈值为3;网络信号强度为[-79dBm,-60 dBm],其对应的失败次数阈值为5。另外,可选地,上述的“失败次数阈值”也可以根据实际情况进行设定,例如设定该失败次数阈值为5次,也即当目标系统连续同步失败达到6次之后,本实施例则执行步骤106,停止目标系统继续进行“无意义”的流量数据同步操作。
105、将所述累计次数清零;
本实施例中,可以理解的是,若监控到所述操作结果为流量数据同步成功,则将所述累计次数清零。具体地,这里触发步骤105可以包括以下几种情况:第一种,步骤101的监控结果为流量数据同步成功;第二种,步骤102再次执行目标系统的流量数据同步操作之后,其操作结果为流量数据同步成功;第三种,在累计次数未超过失败次数阈值时,反复多次触发步骤102,多次执行目标系统的数据同步操作之后,某次的操作结果为流量数据同步成功。
由上述内容可知,由于目标系统每次进行流量数据同步操作的操作结果均可以为监控到,因此不论是目标系统自发进行的流量数据同步操作还是触发步骤102进行的流量数据同步操作,其操作结果均可以认为能被步骤101的监控程序监控到,并得到相应的监控结果。
106、停止所述目标系统的流量数据同步操作,并发出关于流量数据同步失败的消息。
本实施例中,若流量数据同步失败的累计次数超过失败次数阈值,则可以停止所述目标系统的流量数据同步操作,并发出关于流量数据同步失败的消息。这里说的“停止所述目标系统的流量数据同步操作”是指停止目标系统当前的同步操作线程或任务,可以理解的是,当目标系统再次接受到新的流量数据同步指令或者任务时,目标系统可以再次启动其流量数据同步功能并进行同步操作。
对于上述步骤106,当同步失败的累计次数超过失败次数阈值时,可以认为该目标系统在短时间内难以完成本次流量数据的同步,因此,停止目标系统的流量数据同步操作。另外,为了尽快排查目标系统无法完成同步操作的原因,应当发出关于流量数据同步失败的消息,以便于相关工作人员及时查阅,为工作人员进行系统维护提供帮助。其中,发出关于流量数据同步失败的消息可以包括:通过短信、邮件、系统消息的方式通知指定的工作人员;还可以将该关于流量数据同步失败的消息直接显示在目标系统的显示屏上以供指定的工作人员查看;甚至可以通过语音播报、指示灯闪烁等方式进行告警,以便及时通知到指定的工作人员,引起工作人员的警觉。
本实施例中,除了上述步骤102~104的多次重试同步操作的方式实现目标系统的自恢复以外,为了进一步提高目标系统数据流量的自恢复功能,本方法还可以根据目标系统连接的网络状态进行智能化的判断和自恢复处理,以便目标系统在网络状态最好的时候再次进行流量数据同步操作,提高同步操作的成功率。
需要说明的是,本实施例中优选地,每当监控到所述操作结果为流量数据同步失败时,记录所述目标系统在同步失败时刻的第一网络信号强度。在此基础上,如图3所示,在步骤106停止所述目标系统的流量数据同步操作之后,本实施例中流量数据自恢复处理方法还可以包括:
301、实时监测所述目标系统当前的网络信号强度;
302、计算所述当前的网络信号强度相比所述第一网络信号强度的增长幅度;
303、检测是否所述增长幅度超过预设的幅度阈值且所述当前的网络信号强度超过预设的信号强度阈值,若是,则执行步骤304,若否,继续检测;
304、执行所述目标系统的流量数据同步操作。
本实施例中,在步骤106停止目标系统的流量数据同步操作之后,考虑到本次同步操作失败很可能是由于目标系统的网络质量过低造成的,因此可以在网络质量得到明显提升的情况下再次进行同步操作,从而达到无需人工干预即可完成流量数据同步的自恢复。因此,对于步骤301,需要实时检测目标系统当前的网络信号强度。
对于步骤302,在监测得到目标系统当前的网络信号强度之后,需要计算当前的网络信号强度相比目标系统在同步失败时刻的网络信号强度的增长幅度,也即所述当前的网络信号强度与所述第一网络信号强度之间的比较。具体地,可以计算两者之间的差值作为该增长幅度,例如,假设当前网络信号强度为A,该第一网络信号强度为B,则步骤302计算得到的增长幅度为(A-B);另外,还可以计算述当前的网络信号强度与所述第一网络信号强度之间增长率作为该增长幅度,例如,假设当前网络信号强度为A,该第一网络信号强度为B,则步骤302计算得到的增长幅度为(A-B)/B。可以理解的是,本实施例中所述的增长幅度是用于表征当前的网络信号强度相比第一网络信号强度的提升程度的,因此,任意可用于表征这两者的提升程度的计算方法或计算数值均可以被认为是该增长幅度的另一种表现形式。
对于步骤303,为了准确判定目标系统的当前网络质量是否得到显著提升,本实施例中设置了两方面的要求,第一方面,步骤302中计算得到的增长幅度要超过预设的幅度阈值,第二方面,步骤301监测得到的当前的网络信号强度也要求超过预设的信号强度阈值,只有同时满足这两方面的要求时,才能认为目标系统当前网络质量得到显著提升。因此,若步骤303的检测结果为是,则执行步骤304,反之,则继续检测。
另外,步骤303中的信号强度阈值可以根据实际使用情况预先设定,例如由工作人员主动预先设置。为了使得信号强度阈值的设置更加合理,更进一步地,如图4所示,上述步骤303中的信号强度阈值可以通过以下步骤预先设定:
401、每当监控到所述操作结果为流量数据同步成功时,记录所述目标系统在同步成功时刻的第二网络信号强度;
402、计算所述目标系统历史执行的各个流量数据同步操作对应的第二网络信号强度的均值;
403、将所述均值确定为所述信号强度阈值。
对于上述步骤401~403,可以理解的是,该信号强度阈值是用来评价当前的网络信号强度是否能为目标系统正常进行流量数据同步操作提供网络环境的。因此,该信号强度阈值的设置可以参考目标系统历史同步操作过程中的网络信号强度来确定。本实施例中,每当目标系统同步成功时,系统主动记录下同步成功时刻的第二网络信号强度,从而经过一段时间的使用之后,系统(可以为目标系统)上可以存储有大量的历史同步操作成功时对应的第二网络信号强度。
对于步骤402和403,在记录有这些第二网络信号强度之后,可以计算其均值作为该信号强度阈值。可以理解的是,由于这些第二网络信号强度都是目标系统历史同步操作成功时对应的网络信号强度,当当前的网络信号强度超过其均值时,说明当前的网络信号强度相比目标系统以往同步操作所处的平均网络环境还要好,从而可以认为目标系统的当前网络环境能满足正常进行流量数据同步操作的要求。
对于步骤304,若所述增长幅度超过预设的幅度阈值且所述当前的网络信号强度超过预设的信号强度阈值,则可以执行所述目标系统的流量数据同步操作。
本实施例中,进一步地,为了使得目标系统更加的智能化和自动化,在步骤106停止所述目标系统的流量数据同步操作之后,所述流量数据自恢复处理方法还可以检测所述目标系统的系统时间是否达到指定时刻;若所述目标系统的系统时间达到指定时刻,则执行所述目标系统的流量数据同步操作。可以理解的是,本实施例中在多次尝试同步操作失败,然后停止目标系统进行流量数据同步操作之后,除了上述内容中通过检测当前网络质量是否得到明显提升了触发目标系统的流量数据同步的自恢复功能以外,本实施例中还可以定时触发目标系统进行流量数据同步操作,从而定时进行自恢复尝试,在一定程度上,可以弥补上述通过网络质量检测进行自恢复的不足。
本实施例中,在同步流量数据失败之后,通过反复多次执行流量数据同步操作的方式进行数据的自恢复处理,尽可能地完成数据同步,提高流量数据同步的实时性,减少因意外情况导致同步失败给目标系统带来的影响。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
图5示出了本申请实施例提供的计算机可读指令的运行环境示意图,在本实施例中,所述的计算机可读指令安装并运行于服务器5中。所述服务器5可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。该服务器5可包括,但不仅限于,一个或多个存储器51(图中仅示出一个)、一个或多个处理器52(图中仅示出一个),上述存储器51和处理器52通过总线53连接。
请参阅图6,是本申请实施例提供的计算机可读指令的功能模块图。在本实施例中,所述的计算机可读指令可以被分割成一个或多个模块,所述一个或者多个模块被存储于计算机可读存储介质中,例如所述存储器51中,并由一个或多个处理器(本实施例为所述处理器52)所执行,以完成本申请。例如,在图6中,所述的计算机可读指令可以被分割成操作结果监控模块601、反复执行模块602、次数清零模块603和同步操作停止模块604。以下描述将具体介绍所述模块601-604的功能。
操作结果监控模块601,用于监控目标系统的流量数据同步操作的操作结果;
反复执行模块602,用于若所述操作结果监控模块601监控到所述操作结果为流量数据同步失败,则反复执行所述目标系统的流量数据同步操作,直至流量数据同步成功或者流量数据同步失败的累计次数超过失败次数阈值;
次数清零模块603,用于若所述操作结果监控模块601监控到所述操作结果为流量数据同步成功,则将所述累计次数清零;
同步操作停止模块604,用于若流量数据同步失败的累计次数超过失败次数阈值,则停止所述目标系统的流量数据同步操作,并发出关于流量数据同步失败的消息,所述失败次数阈值由所述目标系统当前的网络信号强度决定且与所述当前的网络信号强度正相关。
进一步地,所述的计算机可读指令还可以包括:
第一信号强度记录模块,用于每当监控到所述操作结果为流量数据同步失败时,记录所述目标系统在同步失败时刻的第一网络信号强度;
在停止所述目标系统的流量数据同步操作之后,所述的计算机可读指令还可以包括:
信号强度检测模块,用于实时监测所述目标系统当前的网络信号强度;
增长幅度计算模块,用于计算所述当前的网络信号强度相比所述第一网络信号强度的增长幅度;
同步操作执行模块,用于若所述增长幅度超过预设的幅度阈值且所述当前的网络信号强度超过预设的信号强度阈值,则执行所述目标系统的流量数据同步操作。
进一步地,所述信号强度阈值可以通过以下模块预先设定:
第二信号强度记录模块,用于每当监控到所述操作结果为流量数据同步成功时,记录所述目标系统在同步成功时刻的第二网络信号强度;
强度均值计算模块,用于计算所述目标系统历史执行的各个流量数据同步操作对应的第二网络信号强度的均值;
强度阈值确定模块,用于将所述均值确定为所述信号强度阈值。
进一步地,在停止所述目标系统的流量数据同步操作之后,所述的计算机可读指令还可以包括:
时间检测模块,用于检测所述目标系统的系统时间是否达到指定时刻;
操作执行模块,用于若所述时间检测模块的检测结果为是,则执行所述目标系统的流量数据同步操作。
进一步地,所述操作结果监控模块601可以包括:
输出结果记录单元,用于记录所述目标系统的每一个流量数据同步操作输出的操作结果至指定数据库;
操作结果读取单元,用于启动一监控线程,通过所述监控线程读取所述指定数据库中最新的操作结果;
第一确定单元,用于若所述操作结果读取单元读取到的所述操作结果为流量数据同步失败,则确定监控到的所述操作结果为流量数据同步失败;
第二确定单元,用于若所述操作结果读取单元读取到的所述操作结果为流量数据同步成功,则确定监控到的所述操作结果为流量数据同步成功。
Claims (20)
- 一种流量数据自恢复处理方法,其特征在于,包括:监控目标系统的流量数据同步操作的操作结果;若监控到所述操作结果为流量数据同步失败,则反复执行所述目标系统的流量数据同步操作,直至流量数据同步成功或者流量数据同步失败的累计次数超过失败次数阈值;若监控到所述操作结果为流量数据同步成功,则将所述累计次数清零;若流量数据同步失败的累计次数超过失败次数阈值,则停止所述目标系统的流量数据同步操作,并发出关于流量数据同步失败的消息,所述失败次数阈值由所述目标系统当前的网络信号强度决定且与所述当前的网络信号强度正相关。
- 根据权利要求1所述的流量数据自恢复处理方法,其特征在于,所述流量数据自恢复处理方法还包括:每当监控到所述操作结果为流量数据同步失败时,记录所述目标系统在同步失败时刻的第一网络信号强度;在停止所述目标系统的流量数据同步操作之后,还包括:实时监测所述目标系统当前的网络信号强度;计算所述当前的网络信号强度相比所述第一网络信号强度的增长幅度;若所述增长幅度超过预设的幅度阈值且所述当前的网络信号强度超过预设的信号强度阈值,则执行所述目标系统的流量数据同步操作。
- 根据权利要求2所述的流量数据自恢复处理方法,其特征在于,所述信号强度阈值通过以下步骤预先设定:每当监控到所述操作结果为流量数据同步成功时,记录所述目标系统在同步成功时刻的第二网络信号强度;计算所述目标系统历史执行的各个流量数据同步操作对应的第二网络信号强度的均值;将所述均值确定为所述信号强度阈值。
- 根据权利要求1所述的流量数据自恢复处理方法,其特征在于,在停止所述目标系统的流量数据同步操作之后,所述流量数据自恢复处理方法还包括:检测所述目标系统的系统时间是否达到指定时刻;若所述目标系统的系统时间达到指定时刻,则执行所述目标系统的流量数据同步操作。
- 根据权利要求1至4中任一项所述的流量数据自恢复处理方法,其特征在于,所述监控目标系统的流量数据同步操作的操作结果包括:记录所述目标系统的每一个流量数据同步操作输出的操作结果至指定数据库;启动一监控线程,通过所述监控线程读取所述指定数据库中最新的操作结果;若读取到的所述操作结果为流量数据同步失败,则确定监控到的所述操作结果为流量数据同步失败;若读取到的所述操作结果为流量数据同步成功,则确定监控到的所述操作结果为流量数据同步成功。
- 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被至少一个处理器执行时,实现如下步骤:监控目标系统的流量数据同步操作的操作结果;若监控到所述操作结果为流量数据同步失败,则反复执行所述目标系统的流量数据同步操作,直至流量数据同步成功或者流量数据同步失败的累计次数超过失败次数阈值;若监控到所述操作结果为流量数据同步成功,则将所述累计次数清零;若流量数据同步失败的累计次数超过失败次数阈值,则停止所述目标系统的流量数据同步操作,并发出关于流量数据同步失败的消息,所述失败次数阈值由所述目标系统当前的网络信号强度决定且与所述当前的网络信号强度正相关。
- 根据权利要求6所述的计算机可读存储介质,其特征在于,还包括:每当监控到所述操作结果为流量数据同步失败时,记录所述目标系统在同步失败时刻的第一网络信号强度;在停止所述目标系统的流量数据同步操作之后,还包括:实时监测所述目标系统当前的网络信号强度;计算所述当前的网络信号强度相比所述第一网络信号强度的增长幅度;若所述增长幅度超过预设的幅度阈值且所述当前的网络信号强度超过预设的信号强度阈值,则执行所述目标系统的流量数据同步操作。
- 根据权利要求7所述的计算机可读存储介质,其特征在于,所述信号强度阈值通过以下步骤预先设定:每当监控到所述操作结果为流量数据同步成功时,记录所述目标系统在同步成功时刻的第二网络信号强度;计算所述目标系统历史执行的各个流量数据同步操作对应的第二网络信号强度的均值;将所述均值确定为所述信号强度阈值。
- 根据权利要求6所述的计算机可读存储介质,其特征在于,在停止所述目标系统的流量数据同步操作之后,还包括:检测所述目标系统的系统时间是否达到指定时刻;若所述目标系统的系统时间达到指定时刻,则执行所述目标系统的流量数据同步操作。
- 根据权利要求6至9中任一项所述的计算机可读存储介质,其特征在于,所述监控目标系统的流量数据同步操作的操作结果包括:记录所述目标系统的每一个流量数据同步操作输出的操作结果至指定数据库;启动一监控线程,通过所述监控线程读取所述指定数据库中最新的操作结果;若读取到的所述操作结果为流量数据同步失败,则确定监控到的所述操作结果为流量数据同步失败;若读取到的所述操作结果为流量数据同步成功,则确定监控到的所述操作结果为流量数据同步成功。
- 一种服务器,其特征在于,所述服务器包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:监控目标系统的流量数据同步操作的操作结果;若监控到所述操作结果为流量数据同步失败,则反复执行所述目标系统的流量数据同步操作,直至流量数据同步成功或者流量数据同步失败的累计次数超过失败次数阈值;若监控到所述操作结果为流量数据同步成功,则将所述累计次数清零;若流量数据同步失败的累计次数超过失败次数阈值,则停止所述目标系统的流量数据同步操作,并发出关于流量数据同步失败的消息,所述失败次数阈值由所述目标系统当前的网络信号强度决定且与所述当前的网络信号强度正相关。
- 根据权利要求11所述的服务器,其特征在于,所述处理器执行所述计算机可读指令时还包括:每当监控到所述操作结果为流量数据同步失败时,记录所述目标系统在同步失败时刻的第一网络信号强度;在停止所述目标系统的流量数据同步操作之后,还包括:实时监测所述目标系统当前的网络信号强度;计算所述当前的网络信号强度相比所述第一网络信号强度的增长幅度;若所述增长幅度超过预设的幅度阈值且所述当前的网络信号强度超过预设的信号强度阈值,则执行所述目标系统的流量数据同步操作。
- 根据权利要求12所述的服务器,其特征在于,所述信号强度阈值通过以下步骤预先设定:每当监控到所述操作结果为流量数据同步成功时,记录所述目标系统在同步成功时刻的第二网络信号强度;计算所述目标系统历史执行的各个流量数据同步操作对应的第二网络信号强度的均值;将所述均值确定为所述信号强度阈值。
- 根据权利要求11所述的服务器,其特征在于,在停止所述目标系统的流量数据同步操作之后,还包括:检测所述目标系统的系统时间是否达到指定时刻;若所述目标系统的系统时间达到指定时刻,则执行所述目标系统的流量数据同步操作。
- 根据权利要求11至14中任一项所述的服务器,其特征在于,所述监控目标系统的流量数据同步操作的操作结果包括:记录所述目标系统的每一个流量数据同步操作输出的操作结果至指定数据库;启动一监控线程,通过所述监控线程读取所述指定数据库中最新的操作结果;若读取到的所述操作结果为流量数据同步失败,则确定监控到的所述操作结果为流量数据同步失败;若读取到的所述操作结果为流量数据同步成功,则确定监控到的所述操作结果为流量数据同步成功。
- 一种流量数据自恢复处理装置,其特征在于,包括:操作结果监控模块,用于监控目标系统的流量数据同步操作的操作结果;反复执行模块,用于若所述操作结果监控模块监控到所述操作结果为流量数据同步失败,则反复执行所述目标系统的流量数据同步操作,直至流量数据同步成功或者流量数据同步失败的累计次数超过失败次数阈值;次数清零模块,用于若所述操作结果监控模块监控到所述操作结果为流量数据同步成功,则将所述累计次数清零;同步操作停止模块,用于若流量数据同步失败的累计次数超过失败次数阈值,则停止所述目标系统的流量数据同步操作,并发出关于流量数据同步失败的消息,所述失败次数阈值由所述目标系统当前的网络信号强度决定且与所述当前的网络信号强度正相关。
- 根据权利要求16所述的流量数据自恢复处理装置,其特征在于,还包括:第一信号强度记录模块,用于每当监控到所述操作结果为流量数据同步失败时,记录所述目标系统在同步失败时刻的第一网络信号强度;在停止所述目标系统的流量数据同步操作之后,所述的计算机可读指令还可以包括:信号强度检测模块,用于实时监测所述目标系统当前的网络信号强度;增长幅度计算模块,用于计算所述当前的网络信号强度相比所述第一网络信号强度的增长幅度;同步操作执行模块,用于若所述增长幅度超过预设的幅度阈值且所述当前的网络信号强度超过预设的信号强度阈值,则执行所述目标系统的流量数据同步操作。
- 根据权利要求17所述的流量数据自恢复处理装置,其特征在于,还包括:第二信号强度记录模块,用于每当监控到所述操作结果为流量数据同步成功时,记录所述目标系统在同步成功时刻的第二网络信号强度;强度均值计算模块,用于计算所述目标系统历史执行的各个流量数据同步操作对应的第二网络信号强度的均值;强度阈值确定模块,用于将所述均值确定为所述信号强度阈值。
- 根据权利要求16所述的流量数据自恢复处理装置,其特征在于,还包括:时间检测模块,用于检测所述目标系统的系统时间是否达到指定时刻;操作执行模块,用于若所述时间检测模块的检测结果为是,则执行所述目标系统的流量数据同步操作。
- 根据权利要求16至19中任一项所述的流量数据自恢复处理装置,其特征在于,所述操作结果监控模块包括:输出结果记录单元,用于记录所述目标系统的每一个流量数据同步操作输出的操作结果至指定数据库;操作结果读取单元,用于启动一监控线程,通过所述监控线程读取所述指定数据库中最新的操作结果;第一确定单元,用于若所述操作结果读取单元读取到的所述操作结果为流量数据同步失败,则确定监控到的所述操作结果为流量数据同步失败;第二确定单元,用于若所述操作结果读取单元读取到的所述操作结果为流量数据同步成功,则确定监控到的所述操作结果为流量数据同步成功。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US16/095,344 US11770199B2 (en) | 2017-06-16 | 2018-02-26 | Traffic data self-recovery processing method, readable storage medium, server and apparatus |
| SG11201809966WA SG11201809966WA (en) | 2017-06-16 | 2018-02-26 | Traffic data self-recovery processing method, readable storage medium, server and apparatus |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710457222.XA CN107797896B (zh) | 2017-06-16 | 2017-06-16 | 一种流量数据自恢复处理方法和服务器 |
| CN201710457222.X | 2017-06-16 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018227997A1 true WO2018227997A1 (zh) | 2018-12-20 |
Family
ID=61531171
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/077241 Ceased WO2018227997A1 (zh) | 2017-06-16 | 2018-02-26 | 流量数据自恢复处理方法、可读存储介质、服务器及装置 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US11770199B2 (zh) |
| CN (1) | CN107797896B (zh) |
| SG (1) | SG11201809966WA (zh) |
| WO (1) | WO2018227997A1 (zh) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111475515A (zh) * | 2020-03-05 | 2020-07-31 | 深圳壹账通智能科技有限公司 | 失败任务的补偿管理方法、装置、计算机设备及存储介质 |
| US11489971B2 (en) * | 2016-05-19 | 2022-11-01 | Nec Corporation | Information presenting device, information presenting method and recording medium |
| CN115545629A (zh) * | 2021-06-30 | 2022-12-30 | 网联清算有限公司 | 一种业务数据核对方法及设备 |
Families Citing this family (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109542591A (zh) * | 2018-10-17 | 2019-03-29 | 深圳壹账通智能科技有限公司 | 工作任务补偿处理方法、装置、计算机设备及存储介质 |
| CN112597250A (zh) * | 2020-12-29 | 2021-04-02 | 广西交控智维科技发展有限公司 | 基于DataX数据同步的轨道交通数据中台实现方法 |
| CN113946627B (zh) * | 2021-10-27 | 2022-04-29 | 北京科杰科技有限公司 | 数据实时同步场景下的数据准确性检测预警系统及方法 |
| CN116263738A (zh) * | 2021-12-14 | 2023-06-16 | 奥动新能源汽车科技有限公司 | 程序测试的自动化异常处理方法、系统、设备和介质 |
| CN114900444B (zh) * | 2022-04-25 | 2024-11-22 | 北京奇艺世纪科技有限公司 | 数据监控方法、装置、电子设备及存储介质 |
| CN117459543A (zh) * | 2022-07-19 | 2024-01-26 | 北京小米移动软件有限公司 | 数据云同步方法、装置、可读存储介质及芯片 |
| CN115278933A (zh) * | 2022-07-26 | 2022-11-01 | 招商局金融科技有限公司 | 网络重连方法、装置、计算机设备及存储介质 |
| CN115333989B (zh) * | 2022-08-10 | 2024-10-29 | 深圳小湃科技有限公司 | 会员权益同步方法、装置、设备及存储介质 |
| CN115643256A (zh) * | 2022-10-25 | 2023-01-24 | 中国农业银行股份有限公司 | 一种弱网环境下的文件处理方法及装置 |
| CN118803626B (zh) * | 2023-10-12 | 2025-09-19 | 中国移动通信集团安徽有限公司 | 数据流量限速稽核方法、装置、设备及介质 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101242574A (zh) * | 2007-11-30 | 2008-08-13 | 上海展桥信息技术有限公司 | 一种gprs无线终端系统 |
| CN101931633A (zh) * | 2010-09-29 | 2010-12-29 | 山东大学 | 一种应用于智能手机终端的可增量同步方法 |
| CN103024672A (zh) * | 2013-01-04 | 2013-04-03 | 广东欧珀移动通信有限公司 | 根据手机信号强弱提示用户的方法 |
| CN105706492A (zh) * | 2013-10-30 | 2016-06-22 | 高通股份有限公司 | 第一非盲(经同步)切换失败之后的蜂窝切换执行 |
Family Cites Families (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH01228339A (ja) * | 1988-02-29 | 1989-09-12 | Bradley Telecom Corp | デジタル伝送試験方法および装置 |
| US7187930B2 (en) * | 2000-11-28 | 2007-03-06 | Denso Corporation | Retry limits for connection rescue procedures in telecommunication systems |
| CN1691667A (zh) * | 2004-04-21 | 2005-11-02 | 华为技术有限公司 | 实现系统间数据同步的方法 |
| US20090209237A1 (en) * | 2007-12-11 | 2009-08-20 | Scirocco Michelle Six | Apparatus And Method For Slideshows, Thumbpapers, And Cliptones On A Mobile Phone |
| CN101227265B (zh) * | 2008-01-31 | 2012-06-13 | 深圳国人通信有限公司 | 一种设备监控系统中客户端之间数据同步的方法 |
| CN101895568B (zh) * | 2010-06-25 | 2014-03-12 | 中兴通讯股份有限公司 | 一种同步数据清理的方法和系统 |
| CN103188647A (zh) * | 2011-12-29 | 2013-07-03 | 北京网秦天下科技有限公司 | 一种移动终端上网流量统计分析和提醒的方法和系统 |
| US9037887B2 (en) * | 2012-09-26 | 2015-05-19 | Intel Corporation | Energy-efficient application content update and sleep mode determination |
| WO2014094981A2 (en) * | 2012-12-20 | 2014-06-26 | Abb Ag | Process automation system and commissioning method for a field device in a process automation system |
| CN103970840B (zh) * | 2014-04-24 | 2017-10-03 | 北京佳讯飞鸿电气股份有限公司 | 一种在人工话务系统中实现数据同步的方法 |
| US10299235B2 (en) * | 2014-09-05 | 2019-05-21 | Lg Electronics Inc. | Method for performing communication between devices in wireless communication system and device for performing same |
| US9532268B2 (en) * | 2014-11-19 | 2016-12-27 | Qualcomm Incorporated | Methods and apparatus for synchronizing a user equipment with an HFN offset |
| US20160224648A1 (en) * | 2015-01-30 | 2016-08-04 | Apollo Education Group, Inc. | Method and system for performing a synchronization operation |
| CN105611578B (zh) * | 2015-10-29 | 2019-04-12 | 东莞酷派软件技术有限公司 | 处理通话业务时的网络切换方法及网络切换系统 |
-
2017
- 2017-06-16 CN CN201710457222.XA patent/CN107797896B/zh active Active
-
2018
- 2018-02-26 WO PCT/CN2018/077241 patent/WO2018227997A1/zh not_active Ceased
- 2018-02-26 SG SG11201809966WA patent/SG11201809966WA/en unknown
- 2018-02-26 US US16/095,344 patent/US11770199B2/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101242574A (zh) * | 2007-11-30 | 2008-08-13 | 上海展桥信息技术有限公司 | 一种gprs无线终端系统 |
| CN101931633A (zh) * | 2010-09-29 | 2010-12-29 | 山东大学 | 一种应用于智能手机终端的可增量同步方法 |
| CN103024672A (zh) * | 2013-01-04 | 2013-04-03 | 广东欧珀移动通信有限公司 | 根据手机信号强弱提示用户的方法 |
| CN105706492A (zh) * | 2013-10-30 | 2016-06-22 | 高通股份有限公司 | 第一非盲(经同步)切换失败之后的蜂窝切换执行 |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11489971B2 (en) * | 2016-05-19 | 2022-11-01 | Nec Corporation | Information presenting device, information presenting method and recording medium |
| CN111475515A (zh) * | 2020-03-05 | 2020-07-31 | 深圳壹账通智能科技有限公司 | 失败任务的补偿管理方法、装置、计算机设备及存储介质 |
| CN115545629A (zh) * | 2021-06-30 | 2022-12-30 | 网联清算有限公司 | 一种业务数据核对方法及设备 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107797896A (zh) | 2018-03-13 |
| CN107797896B (zh) | 2019-05-07 |
| SG11201809966WA (en) | 2019-01-30 |
| US11770199B2 (en) | 2023-09-26 |
| US20210271555A1 (en) | 2021-09-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2018227997A1 (zh) | 流量数据自恢复处理方法、可读存储介质、服务器及装置 | |
| CN103246589B (zh) | 一种多线程的监控方法及装置 | |
| US9720761B2 (en) | System fault detection and processing method, device, and computer readable storage medium | |
| CN108710544A (zh) | 一种数据库系统的进程监控方法及轨道交通综合监控系统 | |
| CN104750596B (zh) | 一种告警信息处理方法及服务子系统 | |
| CN100512490C (zh) | 一种告警上报方法和告警装置 | |
| CN109164780A (zh) | 一种基于边缘计算的工业现场设备控制方法、装置及系统 | |
| CN111224818B (zh) | 一种路侧单元告警方法、装置、电子设备和存储介质 | |
| CN113055203B (zh) | Sdn控制平面的异常恢复方法及装置 | |
| CN102404141A (zh) | 一种告警抑制的方法及装置 | |
| CN104125085A (zh) | 一种基于esb的数据管控方法及装置 | |
| CN100464600C (zh) | 告警处理方法和后台管理装置 | |
| CN103378981A (zh) | 网管系统中振荡告警的处理方法及装置 | |
| CN103440190A (zh) | 设备故障报警方法,装置与cim系统 | |
| CN109240863A (zh) | 一种cpu故障定位方法、装置、设备及存储介质 | |
| CN115174350A (zh) | 一种运维告警方法、装置、设备及介质 | |
| CN110275815A (zh) | 一种系统异常告警处理方法及装置 | |
| CN108959038A (zh) | 一种分布式应用服务监控的方法及装置 | |
| CN112910733A (zh) | 一种基于大数据的全链路监控系统及方法 | |
| CN109150626A (zh) | Ftp服务监测方法、装置、终端及计算机可读存储介质 | |
| CN115129508A (zh) | 一种内存可纠正错误的带外处理方法、装置、设备及介质 | |
| CN107612755A (zh) | 一种云资源的管理方法及其装置 | |
| WO2014040470A1 (zh) | 告警消息的处理方法及装置 | |
| CN101267473B (zh) | 一种振荡告警的处理方法 | |
| CN116436829B (zh) | 一种设备状态的同步方法、装置以及电子设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18817424 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: 18817424 Country of ref document: EP Kind code of ref document: A1 |