WO2021189857A1 - 任务状态检测方法、装置、计算机设备及存储介质 - Google Patents

任务状态检测方法、装置、计算机设备及存储介质 Download PDF

Info

Publication number
WO2021189857A1
WO2021189857A1 PCT/CN2020/125471 CN2020125471W WO2021189857A1 WO 2021189857 A1 WO2021189857 A1 WO 2021189857A1 CN 2020125471 W CN2020125471 W CN 2020125471W WO 2021189857 A1 WO2021189857 A1 WO 2021189857A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
data migration
task
migration
tasks
Prior art date
Application number
PCT/CN2020/125471
Other languages
English (en)
French (fr)
Inventor
梁龙成
周平
李钊
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021189857A1 publication Critical patent/WO2021189857A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/119Details of migration of file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1734Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs

Definitions

  • This application relates to data processing technology, and in particular to a task state detection method, device, computer equipment, and storage medium.
  • an independent task is generally started to complete the data migration work, such as a thread or a process. .
  • the task takes a long time, and the data has been migrated and the task is still running, causing threads or processes to hang all the time and wasting scheduling resources.
  • This application provides a task status detection method, which is applied to computer equipment, and the method includes:
  • a first timer which calculates the first amount of data for each selected data migration task to complete migration when the first timer reaches the first preset timing duration
  • the present application also provides a task state detection device, the device includes:
  • Acquisition module used to acquire the start time of multiple data migration tasks
  • Scanning module used to scan each of the data migration tasks to obtain the current time of the computer equipment corresponding to each of the data migration tasks;
  • Calculation module used to calculate the execution time of each data migration task according to the start time of each data migration task and the corresponding current time of the computer equipment; Set a threshold for one or more of the data migration tasks, calculate the first target data volume to be migrated for each of the selected data migration tasks, and start a first timer with a first preset timing duration, and calculate and filter out The first amount of data to be migrated for each of the data migration tasks when the first timer reaches the first preset timing duration;
  • Judging module used to determine whether each of the selected data migration tasks has completed the migration of the first data amount when the first timer reaches the first preset timing period is equal to the corresponding first target data quantity;
  • Stop module used to stop executing the corresponding data migration task when the first data amount after the migration is equal to the corresponding first target data amount.
  • This application also provides a computer device, which includes:
  • At least one processor and,
  • a memory communicatively connected with the at least one processor; wherein,
  • the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the task state detection method as described below:
  • a first timer which calculates the first amount of data for each selected data migration task to complete migration when the first timer reaches the first preset timing duration
  • the computer-readable storage medium includes a storage data area and a storage program area.
  • the storage data area stores data created according to the use of blockchain nodes, and the storage program area stores
  • the task state detection program when the task state detection program is executed by the processor, implements the steps of the task state detection method as described below:
  • a first timer which calculates the first amount of data for each selected data migration task to complete migration when the first timer reaches the first preset timing duration
  • Figure 1 is a schematic diagram of a preferred embodiment of the computer equipment of this application.
  • FIG. 2 is a schematic diagram of modules of a preferred embodiment of the task state detection device in FIG. 1;
  • FIG. 3 is a flowchart of a preferred embodiment of the task status detection method of this application.
  • FIG. 1 it is a schematic diagram of a preferred embodiment of the computer device 1 of this application.
  • the computer device 1 includes, but is not limited to: a memory 11, a processor 12, a display 13, and a network interface 14.
  • the computer device 1 is connected to the network through the network interface 14 to obtain original data.
  • the network may be an intranet, Internet, Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth (Bluetooth) , Wi-Fi, call network and other wireless or wired networks.
  • the memory 11 includes at least one type of readable storage medium, and the readable storage medium may be volatile or nonvolatile.
  • the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read only memory (ROM) ), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disks, optical disks, etc.
  • the memory 11 may be an internal storage unit of the computer device 1, for example, a hard disk or a memory of the computer device 1.
  • the memory 11 may also be an external storage device of the computer device 1, such as a plug-in hard disk, a smart memory card (SmartMediaCard, SMC), and a secure digital (SecureDigital, SD) card, flash card (FlashCard), etc.
  • the memory 11 may also include both the internal storage unit of the computer device 1 and its external storage device.
  • the memory 11 is generally used to store an operating system and various application software installed in the computer device 1, for example, the program code of the task status detection program 10, etc.
  • the memory 11 can also be used to temporarily store various types of data that have been output or will be output.
  • the processor 12 may be a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments.
  • the processor 12 is generally used to control the overall operation of the computer device 1, such as performing data interaction or communication-related control and processing.
  • the processor 12 is used to run the program code or processing data stored in the memory 11, for example, to run the program code of the task status detection program 10 and so on.
  • the display 13 may be referred to as a display screen or a display unit.
  • the display 13 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an organic light-emitting diode (Organic Light-Emitting Diode, OLED) touch device, etc.
  • the display 13 is used for displaying the information processed in the computer device 1 and for displaying a visualized work interface, for example, displaying the results of data statistics.
  • the network interface 14 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
  • the network interface 14 is generally used to establish a communication connection between the computer device 1 and other computer devices.
  • Figure 1 only shows the computer device 1 and the cloud database 2 with components 11-14 and the task status detection program 10, but it should be understood that it is not required to implement all the components shown, and more or more can be implemented instead. Few components.
  • the computer device 1 may further include a user interface.
  • the user interface may include a display (Display) and an input unit such as a keyboard (Keyboard).
  • the optional user interface may also include a standard wired interface and a wireless interface.
  • the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an organic light-emitting diode (Organic Light-Emitting Diode, OLED) touch device, etc.
  • the display can also be called a display screen or a display unit as appropriate, and is used to display the information processed in the computer device 1 and to display a visualized user interface.
  • the computer device 1 may also include a radio frequency (RF) circuit, a sensor, an audio circuit, etc., which are not described here.
  • RF radio frequency
  • the processor 12 may implement the following steps when executing the task state detection program 10 stored in the memory 11:
  • a first timer which calculates the first amount of data for each selected data migration task to complete migration when the first timer reaches the first preset timing duration
  • FIG. 2 it is a functional block diagram of the task status detection device 100 of this application.
  • the task state detection apparatus 100 described in this application can be installed in a computer device.
  • the task state detection device 100 may include an acquisition module 110, a scanning module 120, a calculation module 130, a judgment module 140, and a stop module 150.
  • the module described in the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by the processor of a computer device and can complete fixed functions, and are stored in the memory of the computer device.
  • each module/unit is as follows:
  • the obtaining module 110 is configured to obtain the start time of multiple data migration tasks.
  • the start time of multiple data migration tasks that are being executed is acquired.
  • there are multiple data migration tasks and multiple data migration tasks are executed at the same time. Therefore, for multiple data migration tasks that are performed at the same time Data migration tasks, get the start time of each data migration task. It is understandable that the function of the data migration task is to migrate the data of the source database to the specified file.
  • the scanning module 120 is configured to scan each of the data migration tasks to obtain the current time of the computer equipment corresponding to each of the data migration tasks.
  • the preset period is acquired, and each data migration task is scanned according to the preset period to obtain the current time of the computer device corresponding to each data migration task.
  • each data migration task is scanned once every predetermined period, and the current time of the computer device corresponding to each data migration task is acquired every scan.
  • the preset period can be determined based on experience, such as 10 minutes.
  • the calculation module 130 is configured to calculate the execution time length of each data migration task according to the start time of each data migration task and the corresponding current time of the computer device; and filter out that the execution time length is greater than a preset Threshold value of one or more data migration tasks, calculate the first target data volume to be migrated for each selected data migration task, start a first timer with a first preset timing duration, and calculate each selected data migration task The data migration task completes the first amount of data migrated when the first timer reaches the first preset timing period.
  • the first preset timing duration and the preset threshold are acquired. According to the start time of each data migration task and the corresponding current time of the computer device, the execution time of each data migration task is calculated, and further, the execution time of the data migration task is the start of the data migration task The difference between the time and the current time of the computer device corresponding to the data migration task.
  • the execution time is compared with a preset threshold to obtain a comparison result.
  • the comparison result includes that the execution time is greater than the preset threshold, the execution time is equal to the preset threshold, and the execution time is less than the preset threshold.
  • the preset threshold can be set based on experience. The execution time is greater than the preset threshold, indicating that the data migration task is likely to be in a false running state, that is, the data migration has been completed but the task is still running.
  • One or more of the data migration tasks whose execution duration is greater than a preset threshold is selected from the comparison result.
  • the first target data volume is the data volume of the source library corresponding to the data migration task when the first timer is started.
  • the first preset timing duration of the first timer can be set according to experience, such as 30 minutes.
  • the determining module 140 is configured to determine whether each of the selected data migration tasks has completed the migration of the first data amount when the first timer reaches the first preset timing period is equal to the corresponding first target The amount of data.
  • the first data volume of each selected data migration task that has been migrated when the first timer reaches the first preset timing period is equal to the corresponding first target data volume to be migrated. , Is still less than the corresponding first target data volume to be migrated.
  • the first target data volume to be migrated and the first data volume that has been migrated when the first timer reaches the first preset timing period correspond to the same data migration task. In other words, the two data volumes involved in the judgment correspond to the same filtered data migration task.
  • the stopping module 150 is configured to stop executing the corresponding data migration task when the first data amount after the migration is equal to the corresponding first target data amount.
  • the first data volume of the selected data migration task to be migrated when the first timer reaches the first preset timing period is equal to the corresponding first target data volume to be migrated, indicating that the data migration task is The data migration has been completed when the first timer reaches the first preset timing period. At this time, the data migration task is stopped, that is, the execution of the data migration task whose first data amount is equal to the corresponding first target data amount is stopped.
  • the selected data migration task completes the migration when the first timer reaches the first preset timing duration
  • the first data amount to be migrated is smaller than the corresponding first target data amount to be migrated
  • the second target data volume to be migrated is smaller than the corresponding first target data amount to be migrated
  • the second preset timing duration starts the second A second timer with a preset timing duration
  • calculating the second data volume of the continued data migration task to complete the migration when the second timer reaches the second preset timing duration judging each continued execution Whether the data migration task completes the migration of the second data volume when the second timer reaches the second preset timing period is equal to the corresponding second target data volume to be migrated; when the execution continues
  • the data migration task stops executing the corresponding data to be continued when the second data volume to be migrated is equal to the corresponding second target data volume to be migrated when the second timer reaches the second preset timing duration Migration tasks.
  • the amount of data to be migrated is less than the corresponding first target data amount to be migrated, indicating that the data migration task is in the first
  • the timer reaches the first preset timing period the data migration is not completed, and the data migration task needs to continue to run.
  • the second target data amount to be migrated after the data migration task continues to be executed is calculated, that is, the data amount that needs to be migrated continuously for the data migration task that continues to be executed is calculated, and a second timer with a second preset timing duration is started.
  • the second target data volume is the data volume of the source library corresponding to the data migration task when the second timer is started.
  • the second preset timing duration may be equal to or not equal to the first preset timing duration. In this embodiment, the second preset timing duration is less than the first preset timing duration. After the data migration task has undergone data migration corresponding to the first preset timing duration, the amount of data that needs to be migrated is small. Setting the second preset timing duration to be less than the first preset timing duration can better deal with the continued execution. Data migration tasks are monitored.
  • the second data amount is the data amount of the designated file corresponding to the data migration task when the second timer reaches the second preset timing period and the designated file corresponding to the same data migration task starts the second timer The difference between the amount of data at the time.
  • the second data volume When the second data volume is equal to the corresponding second target data volume to be migrated, it indicates that the data migration of the corresponding data migration task has been completed, and the execution of the second data volume is equal to the corresponding second target data volume to be migrated. The amount of the data migration task.
  • the second timer is started for the data migration task to continue to observe the data migration task. And so on, until all the filtered data migration tasks are detected to complete the data migration.
  • the task status detection device proposed in this application obtains the execution time of the data migration task according to the start time of the data migration task and the current time of the corresponding computer equipment; filters out the data migration tasks whose execution time is greater than a preset threshold, and calculates the data
  • the first target amount of data currently to be migrated by the migration task, and a first timer with a first preset timing duration is started. Calculate the first amount of data migrated by the data migration task when the first timer reaches the first preset timing period.
  • the first data amount is equal to the first target data amount, it means that the data migration task is at the first timing.
  • the processor reaches the first preset timing period, the data migration has been completed, and the data migration task is stopped at this time, so that the corresponding thread or process becomes idle, saving scheduling resources.
  • the task status detection device also includes an adjustment module, which is used to obtain historical data of the data migration task that has been stopped; In the case of execution, the theoretical execution time for completing the migration of the first target data amount; adjust the preset threshold according to the relationship between the preset threshold and the theoretical execution time of the data migration task that is stopped.
  • the historical data of the data migration task that stopped executing due to detection of false operation is obtained.
  • the historical data includes the task name, the corresponding source library, the start time of the task, the time when the target data in the corresponding designated file stops updating, etc. .
  • the time when the target data in the designated file stops updating is the actual completion time of the data migration task, and the actual completion time is earlier than the time when the first timer reaches the first preset timing duration.
  • the theoretical execution time for the data migration task that stopped executing due to detection of false operation to complete the migration of the first target data amount without stopping the execution is calculated.
  • the theoretical execution time of the stopped data migration task can be obtained according to the start time and the time when the stopped data migration task corresponds to the target data stop updating. Specifically, the difference between the start time and the time when the target data corresponding to the stopped data migration task stops updating is calculated as the theoretical execution time.
  • other historical data can also be used to obtain the theoretical execution time of the data migration task stopped due to detection of a false operation.
  • the preset threshold is increased to the first The first value is greater than the preset threshold before the increase. This can reduce the overhead of monitoring tasks.
  • the first preset ratio can be 80%. Of course, the first preset ratio can also be set to other ratios, such as 60% and 75%. The preset ratio is less than 100%.
  • the preset threshold value is reduced to a second value, so The second value is less than the first value. In this way, the entire monitoring is more sensitive, and false running tasks can be identified in a shorter time.
  • the second preset ratio may be the same as or different from the first preset ratio.
  • this application also provides a task state detection method, which is applied to computer equipment.
  • FIG. 3 it is a schematic diagram of the method flow of an embodiment of the task status detection method of this application.
  • the processor 12 of the computer device 1 executes the task state detection program 10 stored in the memory 11, the following steps of the task state detection method are implemented:
  • Step S10 Acquire the start time of multiple data migration tasks.
  • the start time of multiple data migration tasks that are being executed is acquired.
  • there are multiple data migration tasks and multiple data migration tasks are executed at the same time. Therefore, for multiple data migration tasks that are performed at the same time Data migration tasks, get the start time of each data migration task. It is understandable that the function of the data migration task is to migrate the data of the source database to the specified file.
  • Step S20 Scan each of the data migration tasks to obtain the current time of the computer equipment corresponding to each of the data migration tasks.
  • the preset period is acquired, and each data migration task is scanned according to the preset period to obtain the current time of the computer device corresponding to each data migration task.
  • each data migration task is scanned once every predetermined period, and the current time of the computer device corresponding to each data migration task is acquired every scan.
  • the preset period can be determined based on experience, such as 10 minutes.
  • Step S30 According to the start time of each data migration task and the corresponding current time of the computer device, calculate the execution time of each data migration task; filter out the one whose execution time is greater than a preset threshold Or multiple data migration tasks, calculate the first target data volume to be migrated for each selected data migration task, start a first timer with a first preset timing duration, and calculate each selected data
  • the migration task completes the first amount of data migrated when the first timer reaches the first preset timing duration.
  • the first preset timing duration and the preset threshold are acquired. According to the start time of each data migration task and the corresponding current time of the computer device, the execution time of each data migration task is calculated, and further, the execution time of the data migration task is the start of the data migration task The difference between the time and the current time of the computer device corresponding to the data migration task.
  • the execution time is compared with a preset threshold to obtain a comparison result.
  • the comparison result includes that the execution time is greater than the preset threshold, the execution time is equal to the preset threshold, and the execution time is less than the preset threshold.
  • the preset threshold can be set based on experience. The execution time is greater than the preset threshold, indicating that the data migration task is likely to be in a false running state, that is, the data migration has been completed but the task is still running.
  • One or more of the data migration tasks whose execution duration is greater than a preset threshold is selected from the comparison result.
  • the first target data volume is the data volume of the source library corresponding to the data migration task when the first timer is started.
  • the first preset timing duration of the first timer can be set according to experience, such as 30 minutes.
  • Step S40 Determine whether the first data volume of each selected data migration task that has completed migration when the first timer reaches the first preset timing period is equal to the corresponding first target data volume.
  • the first data volume of each selected data migration task that has been migrated when the first timer reaches the first preset timing period is equal to the corresponding first target data volume to be migrated. , Is still less than the corresponding first target data volume to be migrated.
  • the first target data volume to be migrated and the first data volume that has been migrated when the first timer reaches the first preset timing period correspond to the same data migration task. In other words, the two data volumes involved in the judgment correspond to the same filtered data migration task.
  • Step S50 Stop executing the corresponding data migration task when the first data volume after the migration is equal to the corresponding first target data volume.
  • the first data volume of the selected data migration task to be migrated when the first timer reaches the first preset timing period is equal to the corresponding first target data volume to be migrated, indicating that the data migration task is The data migration has been completed when the first timer reaches the first preset timing period. At this time, the data migration task is stopped, that is, the execution of the data migration task whose first data amount is equal to the corresponding first target data amount is stopped.
  • the selected data migration task completes the migration when the first timer reaches the first preset timing duration
  • the first data amount to be migrated is smaller than the corresponding first target data amount to be migrated
  • the second target data volume to be migrated is smaller than the corresponding first target data amount to be migrated
  • the second preset timing duration starts the second A second timer with a preset timing duration
  • calculating the second data volume of the continued data migration task to complete the migration when the second timer reaches the second preset timing duration judging each continued execution Whether the data migration task completes the migration of the second data volume when the second timer reaches the second preset timing period is equal to the corresponding second target data volume to be migrated; when the execution continues
  • the data migration task stops executing the corresponding data to be continued when the second data volume to be migrated is equal to the corresponding second target data volume to be migrated when the second timer reaches the second preset timing duration Migration tasks.
  • the amount of data to be migrated is less than the corresponding first target data amount to be migrated, indicating that the data migration task is in the first
  • the timer reaches the first preset timing period the data migration is not completed, and the data migration task needs to continue to run.
  • the second target data amount to be migrated after the data migration task continues to be executed is calculated, that is, the data amount that needs to be migrated continuously for the data migration task that continues to be executed is calculated, and a second timer with a second preset timing duration is started.
  • the second target data volume is the data volume of the source library corresponding to the data migration task when the second timer is started.
  • the second preset timing duration may be equal to or not equal to the first preset timing duration. In this embodiment, the second preset timing duration is less than the first preset timing duration. After the data migration task has undergone the data migration corresponding to the first preset timing duration, the amount of data that needs to be migrated is small. Setting the second preset timing duration to be less than the first preset timing duration can better deal with the continued execution. Data migration tasks are monitored.
  • the second data amount is the data amount of the designated file corresponding to the data migration task when the second timer reaches the second preset timing period and the designated file corresponding to the same data migration task starts the second timer The difference between the amount of data at the time.
  • the second data volume When the second data volume is equal to the corresponding second target data volume to be migrated, it indicates that the data migration of the corresponding data migration task has been completed, and the execution of the second data volume is equal to the corresponding second target data volume to be migrated. The amount of the data migration task.
  • the second timer is started for the data migration task to continue to observe the data migration task. And so on, until all the filtered data migration tasks are detected to complete the data migration.
  • the task status detection method proposed in this application obtains the execution time of the data migration task according to the start time of the data migration task and the current time of the corresponding computer device; the data migration tasks whose execution time is greater than a preset threshold are filtered out, and the data is calculated
  • the first target amount of data currently to be migrated by the migration task, and a first timer with a first preset timing duration is started.
  • the first data amount is equal to the first target data amount, it means that the data migration task is at the first timing.
  • the processor reaches the first preset timing period, the data migration has been completed, and the data migration task is stopped at this time, so that the corresponding thread or process becomes idle, saving scheduling resources.
  • the task status detection method further includes: acquiring the historical data of the data migration task that has been stopped; and obtaining the data migration that has been stopped according to the historical data.
  • the historical data of the data migration task that stopped executing due to detection of false operation is obtained.
  • the historical data includes the task name, the corresponding source library, the start time of the task, the time when the target data in the corresponding designated file stops updating, etc. .
  • the time when the target data in the designated file stops updating is the actual completion time of the data migration task, and the actual completion time is earlier than the time when the first timer reaches the first preset timing duration.
  • the theoretical execution time for the data migration task that stopped executing due to detection of false operation to complete the migration of the first target data amount without stopping the execution is calculated.
  • the theoretical execution time of the stopped data migration task can be obtained according to the start time and the time when the stopped data migration task corresponds to the target data stop updating. Specifically, the difference between the start time and the time when the target data corresponding to the stopped data migration task stops updating is calculated as the theoretical execution time.
  • other historical data can also be used to obtain the theoretical execution time of the data migration task stopped due to detection of a false operation.
  • the preset threshold is increased to the first The first value is greater than the preset threshold before the increase. This can reduce the overhead of monitoring tasks.
  • the first preset ratio can be 80%. Of course, the first preset ratio can also be set to other ratios, such as 60% and 75%. The preset ratio is less than 100%.
  • the preset threshold value is reduced to a second value, so The second value is less than the first value. In this way, the entire monitoring is more sensitive, and false running tasks can be identified in a shorter time.
  • the second preset ratio may be the same as or different from the first preset ratio.
  • the embodiment of the present application also proposes a computer-readable storage medium.
  • the computer-readable storage medium may be volatile or non-volatile.
  • the computer-readable storage medium may be a hard disk, a multimedia card, an SD card, a flash memory card, an SMC, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disk read-only memory (CD-ROM), USB memory, etc. Any one or any combination of several.
  • the computer-readable storage medium includes a storage data area and a storage program area.
  • the storage data area stores data created according to the use of blockchain nodes
  • the storage program area stores a task state detection program 10, the task state detection program 10 When executed by the processor, the following operations are realized:
  • a first timer which calculates the first amount of data for each selected data migration task to complete migration when the first timer reaches the first preset timing duration
  • all the above-mentioned data can also be stored in a node of a blockchain.
  • a node of a blockchain For example, knowledge graph, text to be recognized, etc., these data can be stored in the blockchain node.
  • Blockchain is a new application mode of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm.
  • Blockchain is essentially a decentralized database. It is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information for verification. The validity of the information (anti-counterfeiting) and the generation of the next block.
  • the blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

一种任务状态检测方法、装置、计算机设备及存储介质,涉及数据处理技术。该方法获取多个数据迁移任务的开始时间(S10);扫描每个数据迁移任务,得到每个数据迁移任务对应的计算机设备的当前时间(S20);根据每个数据迁移任务的开始时间及对应的所述计算机设备的当前时间,得到每个数据迁移任务的执行时长;筛选出执行时长大于预设阈值的数据迁移任务,计算筛选出的每个数据迁移任务所要迁移的第一目标数据量,并启动第一预设计时时长的第一定时器,计算筛选出的每个数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的第一数据量(S30);判断第一数据量等于相应的第一目标数据量时(S40),停止执行相应的数据迁移任务(S50),起到节约调度资源的效果。该方法还涉及数字医疗,应用于医疗平台数据库的数据迁移。

Description

任务状态检测方法、装置、计算机设备及存储介质
本申请要求于2020年09月23日提交中国专利局、申请号为202011008628.8,发明名称为“任务状态检测方法、装置、计算机设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及数据处理技术,尤其涉及一种任务状态检测方法、装置、计算机设备及存储介质。
背景技术
目前,在构建大数据平台时,数据接入是其中很重要的一个模块或者子系统,尤其是在构建数据湖时,需要接入各种各样的原始数据到一个集中的存储系统,此时,需要构建一个相对独立的数据交换平台来适配各个数据接入场景。
发明人意识到,在数据交换平台中,把一个表从源库迁移到目标库,为了支持多并发,一般会启动一个独立的任务来完成这个数据迁移工作,独立的任务比如一个线程或者一个进程。当需要迁移的数据量较大时,任务耗时较长,会出现数据已经迁移完成而任务仍然处于运行状态,造成线程或者进程一直挂着,浪费调度资源。
技术解决方案
本申请提供一种任务状态检测方法,应用于计算机设备,该方法包括:
获取多个数据迁移任务的开始时间;
扫描每个所述数据迁移任务,得到每个所述数据迁移任务对应的计算机设备的当前时间;
根据每个所述数据迁移任务的所述开始时间及对应的所述计算机设备的当前时间,计算得到每个所述数据迁移任务的执行时长;
筛选出所述执行时长大于预设阈值的一个或多个所述数据迁移任务,计算筛选出的每个所述数据迁移任务所要迁移的第一目标数据量,并启动第一预设计时时长的第一定时器,计算筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的第一数据量;
判断筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的所述第一数据量是否等于相应的第一目标数据量;
当完成迁移的所述第一数据量等于相应的第一目标数据量时,停止执行相应的数据迁移任务。
本申请还提供一种任务状态检测装置,所述装置包括:
获取模块:用于获取多个数据迁移任务的开始时间;
扫描模块:用于扫描每个所述数据迁移任务,得到每个所述数据迁移任务对应的计算机设备的当前时间;
计算模块:用于根据每个所述数据迁移任务的所述开始时间及对应的所述计算机设备的当前时间,计算得到每个所述数据迁移任务的执行时长;筛选出所述执行时长大于预设阈值的一个或多个所述数据迁移任务,计算筛选出的每个所述数据迁移任务所要迁移的第一目标数据量,并启动第一预设计时时长的第一定时器,计算筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的第一数据量;
判断模块:用于判断筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的所述第一数据量是否等于相应的第一目标数据量;
停止模块:用于当完成迁移的所述第一数据量等于相应的第一目标数据量时,停止执行相应的数据迁移任务。
本申请还提供一种计算机设备,所述计算机设备包括:
至少一个处理器;以及,
与所述至少一个处理器通信连接的存储器;其中,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如下所述的任务状态检测方法:
获取多个数据迁移任务的开始时间;
扫描每个所述数据迁移任务,得到每个所述数据迁移任务对应的计算机设备的当前时间;
根据每个所述数据迁移任务的所述开始时间及对应的所述计算机设备的当前时间,计算得到每个所述数据迁移任务的执行时长;
筛选出所述执行时长大于预设阈值的一个或多个所述数据迁移任务,计算筛选出的每个所述数据迁移任务所要迁移的第一目标数据量,并启动第一预设计时时长的第一定时器,计算筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的第一数据量;
判断筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的所述第一数据量是否等于相应的第一目标数据量;
当完成迁移的所述第一数据量等于相应的第一目标数据量时,停止执行相应的数据迁移任务。
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中包括存储数据区和存储程序区,存储数据区存储根据区块链节点的使用所创建的数据,存储程序区存储有任务状态检测程序,所述任务状态检测程序被处理器执行时,实现如下所述的任务状态检测方法的步骤:
获取多个数据迁移任务的开始时间;
扫描每个所述数据迁移任务,得到每个所述数据迁移任务对应的计算机设备的当前时间;
根据每个所述数据迁移任务的所述开始时间及对应的所述计算机设备的当前时间,计算得到每个所述数据迁移任务的执行时长;
筛选出所述执行时长大于预设阈值的一个或多个所述数据迁移任务,计算筛选出的每个所述数据迁移任务所要迁移的第一目标数据量,并启动第一预设计时时长的第一定时器,计算筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的第一数据量;
判断筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的所述第一数据量是否等于相应的第一目标数据量;
当完成迁移的所述第一数据量等于相应的第一目标数据量时,停止执行相应的数据迁移任务。
附图说明
图1为本申请计算机设备较佳实施例的示意图;
图2为图1中任务状态检测装置较佳实施例的模块示意图;
图3为本申请任务状态检测方法较佳实施例的流程图;
本申请目的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
本发明的实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
参照图1所示,为本申请计算机设备1较佳实施例的示意图。
该计算机设备1包括但不限于:存储器11、处理器12、显示器13及网络接口14。所述计算机设备1通过网络接口14连接网络,获取原始数据。其中,所述网络可以是企业内部网(Intranet)、互联网(Internet)、全球移动通讯系统(GlobalSystemofMobilecommunication,GSM)、宽带码分多址(WidebandCodeDivisionMultipleAccess,WCDMA)、4G网络、5G网络、蓝牙(Bluetooth)、Wi-Fi、通话网络等无线或有线网络。
其中,存储器11至少包括一种类型的可读存储介质,可读存储介质可以是易失性的,也可以是非易失性的。具体的,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,所述存储器11可以是所述计算机设备1的内部存储单元,例如该计算机设备1的硬盘或内存。在另一些实施例中,所述存储器11也可以是所述计算机设备1的外部存储设备,例如该计算机设备1配备的插接式硬盘,智能存储卡(SmartMediaCard, SMC),安全数字(SecureDigital, SD)卡,闪存卡(FlashCard)等。当然,所述存储器11还可以既包括所述计算机设备1的内部存储单元也包括其外部存储设备。本实施例中,存储器11通常用于存储安装于所述计算机设备1的操作系统和各类应用软件,例如任务状态检测程序10的程序代码等。此外,存储器11还可以用于暂时地存储已经输出或者将要输出的各类数据。
处理器12在一些实施例中可以是中央处理器(CentralProcessingUnit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器12通常用于控制所述计算机设备1的总体操作,例如执行数据交互或者通信相关的控制和处理等。本实施例中,所述处理器12用于运行所述存储器11中存储的程序代码或者处理数据,例如运行任务状态检测程序10的程序代码等。
显示器13可以称为显示屏或显示单元。在一些实施例中显示器13可以是LED显示器、液晶显示器、触控式液晶显示器以及有机发光二极管(OrganicLight-EmittingDiode,OLED)触摸器等。显示器13用于显示在计算机设备1中处理的信息以及用于显示可视化的工作界面,例如显示数据统计的结果。
网络接口14可选地可以包括标准的有线接口、无线接口(如WI-FI接口),该网络接口14通常用于在所述计算机设备1与其它计算机设备之间建立通信连接。
图1仅示出了具有组件11-14以及任务状态检测程序10的计算机设备1和云端数据库2,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。
可选地,所述计算机设备1还可以包括用户接口,用户接口可以包括显示器(Display)、输入单元比如键盘(Keyboard),可选的用户接口还可以包括标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及有机发光二极管(OrganicLight-EmittingDiode,OLED)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在计算机设备1中处理的信息以及用于显示可视化的用户界面。
该计算机设备1还可以包括射频(RadioFrequency,RF)电路、传感器和音频电路等等,在此不再赘述。
在上述实施例中,处理器12执行存储器11中存储的任务状态检测程序10时可以实现如下步骤:
获取多个数据迁移任务的开始时间;
扫描每个所述数据迁移任务,得到每个所述数据迁移任务对应的计算机设备的当前时间;
根据每个所述数据迁移任务的所述开始时间及对应的所述计算机设备的当前时间,计算得到每个所述数据迁移任务的执行时长;
筛选出所述执行时长大于预设阈值的一个或多个所述数据迁移任务,计算筛选出的每个所述数据迁移任务所要迁移的第一目标数据量,并启动第一预设计时时长的第一定时器,计算筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的第一数据量;
判断筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的所述第一数据量是否等于相应的第一目标数据量;
当完成迁移的所述第一数据量等于相应的第一目标数据量时,停止执行相应的数据迁移任务。
关于上述步骤的详细介绍,请参照下述图2关于任务状态检测装置100实施例的功能模块图以及图3关于任务状态检测方法实施例的流程图的说明。
参照图2所示,为本申请任务状态检测装置100的功能模块图。
本申请所述任务状态检测装置100可以安装于计算机设备中。根据实现的功能,所述任务状态检测装置100可以包括获取模块110、扫描模块120、计算模块130、判断模块140及停止模块150。本发所述模块也可以称之为单元,是指一种能够被计算机设备处理器所执行,并且能够完成固定功能的一系列计算机程序段,其存储在计算机设备的存储器中。
在本实施例中,关于各模块/单元的功能如下:
获取模块110,用于获取多个数据迁移任务的开始时间。
在本实施例中,获取多个正在执行的数据迁移任务的开始时间,一般来说,数据迁移任务为多个,且多个数据迁移任务在同一时间执行,因此对于在同一时间进行的多个数据迁移任务,获取每个数据迁移任务的开始时间。可以理解的是,数据迁移任务的作用为将源库的数据迁移到指定文件。
扫描模块120,用于扫描每个所述数据迁移任务,得到每个所述数据迁移任务对应的计算机设备的当前时间。
在本实施例中,获取预设周期,按预设周期扫描每个数据迁移任务,得到每个数据迁移任务对应的计算机设备的当前时间。换言之,每隔一个预设周期扫描每个数据迁移任务一次,每扫描一次就获取一次每个数据迁移任务对应的计算机设备的当前时间。
可以理解的是,预设周期设置得越短,数据迁移任务状态检测就越灵敏,但是资源开销也越多;预设周期设置得越长,数据迁移任务状态检测就越迟缓,但是资源开销就越少。预设周期可以根据经验而定,例如10分钟。
计算模块130,用于根据每个所述数据迁移任务的开始时间及对应的所述计算机设备的当前时间,计算得到每个所述数据迁移任务的执行时长;筛选出所述执行时长大于预设阈值的一个或多个数据迁移任务,计算筛选出的每个所述数据迁移任务所要迁移的第一目标数据量,并启动第一预设计时时长的第一定时器,计算筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的第一数据量。
在本实施例中,获取第一预设计时时长和预设阈值。根据每个所述数据迁移任务的开始时间和对应的所述计算机设备的当前时间,计算得到每个所述数据迁移任务的执行时长,进一步地,数据迁移任务的执行时长为数据迁移任务的开始时间和该数据迁移任务对应的计算机设备的当前时间之间的差值。
将所述执行时长和预设阈值进行比较,得到比较结果。比较结果包括执行时长大于预设阈值、执行时长等于预设阈值,及执行时长小于预设阈值。预设阈值可以根据经验来设置。执行时长大于预设阈值说明该数据迁移任务有较大可能处于假运行状态,即数据迁移已完成但任务仍处于运行状态。
从所述比较结果中筛选出所述执行时长大于预设阈值的一个或多个所述数据迁移任务。计算筛选出的每个数据迁移任务所要迁移的第一目标数据量,并启动第一预设计时时长的第一定时器。换言之,在计算筛选出来的数据迁移任务所要迁移的第一目标数据量的同时,启动第一定时器。其中,第一目标数据量为数据迁移任务对应的源库在启动第一定时器时的数据量。
计算每个筛选出的所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的第一数据量。即计算出刚经过第一预设计时时长的数据迁移任务迁移完成的数据量。可以理解的是,在第一定时器到达所述第一预设计时时长时完成迁移的第一数据量为,在第一定时器到达所述第一预设计时时长时数据迁移任务对应的指定文件的数据量与同一数据迁移任务对应的指定文件在启动第一定时器时的数据量之间的差值。第一定时器的第一预设计时时长可以根据经验设置,比如30分钟。
判断模块140,用于判断筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的所述第一数据量是否等于相应的第一目标数据量。
在本实施例中,判断筛选出来的每个数据迁移任务在第一定时器到达所述第一预设计时时长时已经迁移完成的第一数据量是等于对应的所要迁移的第一目标数据量,还是小于对应的所要迁移的第一目标数据量。其中,所要迁移的第一目标数据量与在第一定时器到达所述第一预设计时时长时已经迁移完成的第一数据量对应于同一数据迁移任务。换言之,参与判断的两个数据量对应同一个筛选出来的数据迁移任务。
停止模块150,用于当完成迁移的所述第一数据量等于相应的第一目标数据量时,停止执行相应的数据迁移任务。
筛选出的所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的第一数据量等于对应的所要迁移的第一目标数据量,说明该数据迁移任务在第一定时器到达所述第一预设计时时长时已经完成了数据迁移,此时,停止该数据迁移任务,即停止执行第一数据量等于对应的第一目标数据量的数据迁移任务。
值得一提的是,当筛选出的所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的第一数据量小于对应的所要迁移的第一目标数据量时,继续执行完成迁移的所述第一数据量小于相应的第一目标数据量的所述数据迁移任务,计算所述数据迁移任务继续执行后所要迁移的第二目标数据量,并启动第二预设计时时长的第二定时器;计算所述继续执行的数据迁移任务在所述第二定时器到达所述第二预设计时时长时完成迁移的第二数据量;判断每个继续执行的所述数据迁移任务在所述第二定时器到达所述第二预设计时时长时完成迁移的所述第二数据量是否等于对应的所要迁移的第二目标数据量;当继续执行的所述数据迁移任务在所述第二定时器到达所述第二预设计时时长时完成迁移的第二数据量等于对应的所要迁移的第二目标数据量时,停止执行相应的所述继续执行的数据迁移任务。
筛选出的所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的数据量小于对应的所要迁移的第一目标数据量,说明该数据迁移任务在第一定时器到达所述第一预设计时时长时未完成数据迁移,需要继续运行该数据迁移任务。此时,计算该数据迁移任务继续执行后所要迁移的第二目标数据量,即计算该继续执行的数据迁移任务需要继续迁移的数据量,并启动第二预设计时时长的第二定时器。其中,第二目标数据量为数据迁移任务对应的源库在启动第二定时器时的数据量。第二预设计时时长可以等于第一预设计时时长,也可以不等于第一预设计时时长。本实施例中,第二预设计时时长小于第一预设计时时长。数据迁移任务经过对应于第一预设计时时长的数据迁移后需要继续迁移的数据量较小,将第二预设计时时长设置为小于第一预设计时时长,可以更好地对继续执行的数据迁移任务进行监控。
计算每个停止执行的所述数据迁移任务在所述第二定时器到达所述第二预设计时时长时完成迁移的第二数据量。即计算出刚经过第二预设计时时长的数据迁移任务迁移完成的数据量。可以理解的是,第二数据量为在第二定时器到达所述第二预设计时时长时数据迁移任务对应的指定文件的数据量与同一数据迁移任务对应的指定文件在启动第二定时器时的数据量之间的差值。
当第二数据量等于对应的所要迁移的第二目标数据量时,说明该相应的所述数据迁移任务的数据迁移已全部完成,停止执行第二数据量等于对应的所要迁移的第二目标数据量的所述数据迁移任务。
换言之,当数据迁移任务的第一数据量小于对应的所要迁移的第一目标数据量时,对该数据迁移任务,启动第二定时器,以继续进行观察该数据迁移任务。以此类推,直至检测出所有筛选出来的数据迁移任务完成数据迁移。
本申请提出的任务状态检测装置,根据数据迁移任务的开始时间和对应的计算机设备的当前时间,得到数据迁移任务的执行时长;将执行时长大于预设阈值的数据迁移任务筛选出来,计算该数据迁移任务当前所要迁移的第一目标数据量,并启动第一预设计时时长的第一定时器。计算数据迁移任务在第一定时器到达所述第一预设计时时长时完成迁移的第一数据量,当第一数据量等于第一目标数据量时,说明数据迁移任务在所述第一定时器到达所述第一预设计时时长时已完成数据迁移,此时停止该数据迁移任务,使得相应的线程或者进程空闲出来,节约调度资源。
值得一提的是,任务状态检测装置还包括调整模块,调整模块用于获取停止执行的所述数据迁移任务的历史数据;根据所述历史数据,得到停止执行的所述数据迁移任务在不停止执行的情况下完成迁移所述第一目标数据量的理论执行时长;根据所述预设阈值和停止执行的所述数据迁移任务的理论执行时长的大小关系,调整所述预设阈值。
在本实施例中,获取因检测出假运行而停止执行的数据迁移任务的历史数据,历史数据包括任务名称、对应的源库、任务的开始时间、对应指定文件中目标数据停止更新的时间等。对应指定文件中目标数据停止更新的时间即为数据迁移任务实际的完成时间,实际完成时间早于第一定时器到达第一预设计时时长的时间。
根据历史数据,计算得到因检测出假运行而停止执行的数据迁移任务在不停止执行的情况下完成迁移所述第一目标数据量的理论执行时长。可以根据开始时间与停止的数据迁移任务对应目标数据停止更新的时间,得到停止的数据迁移任务的理论执行时长。具体地,计算开始时间与停止的数据迁移任务对应目标数据停止更新的时间之间的差值,作为所述理论执行时长。当然,也可利用其它历史数据来得到因检测出假运行而停止的数据迁移任务的理论执行时长。
根据所述预设阈值和停止执行的所述数据迁移任务的理论执行时长的大小关系,调整所述预设阈值。如此动态地调整预设阈值,使得预设阈值为较为合适的数值范围,在保证监控的灵敏度的基础上,有效地减少了系统开销。
进一步地,当多个停止执行的所述数据迁移任务中有第一预设比例的所述数据迁移任务的理论执行时长大于所述预设阈值时,将所述预设阈值调大至第一数值,第一数值大于调大之前的预设阈值。这样可以减轻监控任务的开销。第一预设比例可以为80%,当然,第一预设比例也可以设为其它比例,如60%、75%。预设比例小于100%。
当多个停止执行的所述数据迁移任务中有第二预设比例的所述数据迁移任务的理论执行时长小于所述预设阈值时,将所述预设阈值调小至第二数值,所述第二数值小于第一数值。如此,让整个监控更加灵敏,可以在更短的时间内识别出假运行的任务。第二预设比例可以与第一预设比例相同,也可以不同。
此外,本申请还提供一种任务状态检测方法,该方法应用于计算机设备。参照图3所示,为本申请任务状态检测方法的实施例的方法流程示意图。计算机设备1的处理器12执行存储器11中存储的任务状态检测程序10时实现任务状态检测方法的如下步骤:
步骤S10:获取多个数据迁移任务的开始时间。
在本实施例中,获取多个正在执行的数据迁移任务的开始时间,一般来说,数据迁移任务为多个,且多个数据迁移任务在同一时间执行,因此对于在同一时间进行的多个数据迁移任务,获取每个数据迁移任务的开始时间。可以理解的是,数据迁移任务的作用为将源库的数据迁移到指定文件。
步骤S20:扫描每个所述数据迁移任务,得到每个所述数据迁移任务对应的计算机设备的当前时间。
在本实施例中,获取预设周期,按预设周期扫描每个数据迁移任务,得到每个数据迁移任务对应的计算机设备的当前时间。换言之,每隔一个预设周期扫描每个数据迁移任务一次,每扫描一次就获取一次每个数据迁移任务对应的计算机设备的当前时间。
可以理解的是,预设周期设置得越短,数据迁移任务状态检测就越灵敏,但是资源开销也越多;预设周期设置得越长,数据迁移任务状态检测就越迟缓,但是资源开销就越少。预设周期可以根据经验而定,例如10分钟。
步骤S30:根据每个所述数据迁移任务的开始时间及对应的所述计算机设备的当前时间,计算得到每个所述数据迁移任务的执行时长;筛选出所述执行时长大于预设阈值的一个或多个数据迁移任务,计算筛选出的每个所述数据迁移任务所要迁移的第一目标数据量,并启动第一预设计时时长的第一定时器,计算筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的第一数据量。
在本实施例中,获取第一预设计时时长和预设阈值。根据每个所述数据迁移任务的开始时间和对应的所述计算机设备的当前时间,计算得到每个所述数据迁移任务的执行时长,进一步地,数据迁移任务的执行时长为数据迁移任务的开始时间和该数据迁移任务对应的计算机设备的当前时间之间的差值。
将所述执行时长和预设阈值进行比较,得到比较结果。比较结果包括执行时长大于预设阈值、执行时长等于预设阈值,及执行时长小于预设阈值。预设阈值可以根据经验来设置。执行时长大于预设阈值说明该数据迁移任务有较大可能处于假运行状态,即数据迁移已完成但任务仍处于运行状态。
从所述比较结果中筛选出所述执行时长大于预设阈值的一个或多个所述数据迁移任务。计算筛选出的每个数据迁移任务所要迁移的第一目标数据量,并启动第一预设计时时长的第一定时器。换言之,在计算筛选出来的数据迁移任务所要迁移的第一目标数据量的同时,启动第一定时器。其中,第一目标数据量为数据迁移任务对应的源库在启动第一定时器时的数据量。
计算每个筛选出的所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的第一数据量。即计算出刚经过第一预设计时时长的数据迁移任务迁移完成的数据量。可以理解的是,在第一定时器到达所述第一预设计时时长时完成迁移的第一数据量为,在第一定时器到达所述第一预设计时时长时数据迁移任务对应的指定文件的数据量与同一数据迁移任务对应的指定文件在启动第一定时器时的数据量之间的差值。第一定时器的第一预设计时时长可以根据经验设置,比如30分钟。
步骤S40:判断筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的所述第一数据量是否等于相应的第一目标数据量。
在本实施例中,判断筛选出来的每个数据迁移任务在第一定时器到达所述第一预设计时时长时已经迁移完成的第一数据量是等于对应的所要迁移的第一目标数据量,还是小于对应的所要迁移的第一目标数据量。其中,所要迁移的第一目标数据量与在第一定时器到达所述第一预设计时时长时已经迁移完成的第一数据量对应于同一数据迁移任务。换言之,参与判断的两个数据量对应同一个筛选出来的数据迁移任务。
步骤S50:当完成迁移的所述第一数据量等于相应的第一目标数据量时,停止执行相应的数据迁移任务。
筛选出的所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的第一数据量等于对应的所要迁移的第一目标数据量,说明该数据迁移任务在第一定时器到达所述第一预设计时时长时已经完成了数据迁移,此时,停止该数据迁移任务,即停止执行第一数据量等于对应的第一目标数据量的数据迁移任务。
值得一提的是,当筛选出的所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的第一数据量小于对应的所要迁移的第一目标数据量时,继续执行完成迁移的所述第一数据量小于相应的第一目标数据量的所述数据迁移任务,计算所述数据迁移任务继续执行后所要迁移的第二目标数据量,并启动第二预设计时时长的第二定时器;计算所述继续执行的数据迁移任务在所述第二定时器到达所述第二预设计时时长时完成迁移的第二数据量;判断每个继续执行的所述数据迁移任务在所述第二定时器到达所述第二预设计时时长时完成迁移的所述第二数据量是否等于对应的所要迁移的第二目标数据量;当继续执行的所述数据迁移任务在所述第二定时器到达所述第二预设计时时长时完成迁移的第二数据量等于对应的所要迁移的第二目标数据量时,停止执行相应的所述继续执行的数据迁移任务。
筛选出的所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的数据量小于对应的所要迁移的第一目标数据量,说明该数据迁移任务在第一定时器到达所述第一预设计时时长时未完成数据迁移,需要继续运行该数据迁移任务。此时,计算该数据迁移任务继续执行后所要迁移的第二目标数据量,即计算该继续执行的数据迁移任务需要继续迁移的数据量,并启动第二预设计时时长的第二定时器。其中,第二目标数据量为数据迁移任务对应的源库在启动第二定时器时的数据量。第二预设计时时长可以等于第一预设计时时长,也可以不等于第一预设计时时长。本实施例中,第二预设计时时长小于第一预设计时时长。数据迁移任务经过对应于第一预设计时时长的数据迁移后需要继续迁移的数据量较小,将第二预设计时时长设置为小于第一预设计时时长,可以更好地对继续执行的数据迁移任务进行监控。
计算每个停止执行的所述数据迁移任务在所述第二定时器到达所述第二预设计时时长时完成迁移的第二数据量。即计算出刚经过第二预设计时时长的数据迁移任务迁移完成的数据量。可以理解的是,第二数据量为在第二定时器到达所述第二预设计时时长时数据迁移任务对应的指定文件的数据量与同一数据迁移任务对应的指定文件在启动第二定时器时的数据量之间的差值。
当第二数据量等于对应的所要迁移的第二目标数据量时,说明该相应的所述数据迁移任务的数据迁移已全部完成,停止执行第二数据量等于对应的所要迁移的第二目标数据量的所述数据迁移任务。
换言之,当数据迁移任务的第一数据量小于对应的所要迁移的第一目标数据量时,对该数据迁移任务,启动第二定时器,以继续进行观察该数据迁移任务。以此类推,直至检测出所有筛选出来的数据迁移任务完成数据迁移。
本申请提出的任务状态检测方法,根据数据迁移任务的开始时间和对应的计算机设备的当前时间,得到数据迁移任务的执行时长;将执行时长大于预设阈值的数据迁移任务筛选出来,计算该数据迁移任务当前所要迁移的第一目标数据量,并启动第一预设计时时长的第一定时器。计算数据迁移任务在第一定时器到达所述第一预设计时时长时完成迁移的第一数据量,当第一数据量等于第一目标数据量时,说明数据迁移任务在所述第一定时器到达所述第一预设计时时长时已完成数据迁移,此时停止该数据迁移任务,使得相应的线程或者进程空闲出来,节约调度资源。
本实施例中,所述停止执行相应的数据迁移任务之后,任务状态检测方法还包括:获取停止执行的所述数据迁移任务的历史数据;根据所述历史数据,得到停止执行的所述数据迁移任务在不停止执行的情况下完成迁移所述第一目标数据量的理论执行时长;根据所述预设阈值和停止执行的所述数据迁移任务的理论执行时长的大小关系,调整所述预设阈值。
在本实施例中,获取因检测出假运行而停止执行的数据迁移任务的历史数据,历史数据包括任务名称、对应的源库、任务的开始时间、对应指定文件中目标数据停止更新的时间等。对应指定文件中目标数据停止更新的时间即为数据迁移任务实际的完成时间,实际完成时间早于第一定时器到达第一预设计时时长的时间。
根据历史数据,计算得到因检测出假运行而停止执行的数据迁移任务在不停止执行的情况下完成迁移所述第一目标数据量的理论执行时长。可以根据开始时间与停止的数据迁移任务对应目标数据停止更新的时间,得到停止的数据迁移任务的理论执行时长。具体地,计算开始时间与停止的数据迁移任务对应目标数据停止更新的时间之间的差值,作为所述理论执行时长。当然,也可利用其它历史数据来得到因检测出假运行而停止的数据迁移任务的理论执行时长。
根据所述预设阈值和停止执行的所述数据迁移任务的理论执行时长的大小关系,调整所述预设阈值。如此动态地调整预设阈值,使得预设阈值为较为合适的数值范围,在保证监控的灵敏度的基础上,有效地减少了系统开销。
进一步地,当多个停止执行的所述数据迁移任务中有第一预设比例的所述数据迁移任务的理论执行时长大于所述预设阈值时,将所述预设阈值调大至第一数值,第一数值大于调大之前的预设阈值。这样可以减轻监控任务的开销。第一预设比例可以为80%,当然,第一预设比例也可以设为其它比例,如60%、75%。预设比例小于100%。
当多个停止执行的所述数据迁移任务中有第二预设比例的所述数据迁移任务的理论执行时长小于所述预设阈值时,将所述预设阈值调小至第二数值,所述第二数值小于第一数值。如此,让整个监控更加灵敏,可以在更短的时间内识别出假运行的任务。第二预设比例可以与第一预设比例相同,也可以不同。
此外,本申请实施例还提出一种计算机可读存储介质,所述计算机可读存储介质可以是易失性的,也可以是非易失性的。具体的,该计算机可读存储介质可以是硬盘、多媒体卡、SD卡、闪存卡、SMC、只读存储器(ROM)、可擦除可编程只读存储器(EPROM)、便携式紧致盘只读存储器(CD-ROM)、USB存储器等等中的任意一种或者几种的任意组合。所述计算机可读存储介质中包括存储数据区和存储程序区,存储数据区存储根据区块链节点的使用所创建的数据,存储程序区存储有任务状态检测程序10,所述任务状态检测程序10被处理器执行时实现如下操作:
获取多个数据迁移任务的开始时间;
扫描每个所述数据迁移任务,得到每个所述数据迁移任务对应的计算机设备的当前时间;
根据每个所述数据迁移任务的所述开始时间及对应的所述计算机设备的当前时间,计算得到每个所述数据迁移任务的执行时长;
筛选出所述执行时长大于预设阈值的一个或多个所述数据迁移任务,计算筛选出的每个所述数据迁移任务所要迁移的第一目标数据量,并启动第一预设计时时长的第一定时器,计算筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的第一数据量;
判断筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的所述第一数据量是否等于相应的第一目标数据量;
当完成迁移的所述第一数据量等于相应的第一目标数据量时,停止执行相应的数据迁移任务。
需要强调的是,本申请之计算机可读存储介质的具体实施方式与上述任务状态检测方法的具体实施方式大致相同,在此不再赘述。
在另一个实施例中,本申请所提供的任务状态检测方法,为进一步保证上述所有出现的数据的私密和安全性,上述所有数据还可以存储于一区块链的节点中。例如知识图谱、待识别文本等等,这些数据均可存储在区块链节点中。
需要说明的是,本申请所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。
本申请之计算机可读存储介质的具体实施方式与上述任务状态检测方法的具体实施方式大致相同,在此不再赘述。
需要说明的是,上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。并且本文中的术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,电子装置,或者网络设备等)执行本申请各个实施例所述的方法。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (20)

  1. 一种任务状态检测方法,应用于计算机设备,其中,所述方法包括:
    获取多个数据迁移任务的开始时间;
    扫描每个所述数据迁移任务,得到每个所述数据迁移任务对应的计算机设备的当前时间;
    根据每个所述数据迁移任务的所述开始时间及对应的所述计算机设备的当前时间,计算得到每个所述数据迁移任务的执行时长;
    筛选出所述执行时长大于预设阈值的一个或多个所述数据迁移任务,计算筛选出的每个所述数据迁移任务所要迁移的第一目标数据量,并启动第一预设计时时长的第一定时器,计算筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的第一数据量;
    判断筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的所述第一数据量是否等于相应的第一目标数据量;
    当完成迁移的所述第一数据量等于相应的第一目标数据量时,停止执行相应的数据迁移任务。
  2. 如权利要求1所述的任务状态检测方法,其中,所述停止执行相应的数据迁移任务之后,所述方法还包括:
    获取停止执行的所述数据迁移任务的历史数据;
    根据所述历史数据得到停止执行的所述数据迁移任务在不停止执行的情况下完成迁移所述第一目标数据量的理论执行时长;
    根据所述预设阈值和停止执行的所述数据迁移任务的所述理论执行时长之间的大小关系,调整所述预设阈值。
  3. 如权利要求2所述的任务状态检测方法,其中,所述根据所述预设阈值和停止执行的所述数据迁移任务的所述理论执行时长之间的大小关系,调整所述预设阈值,包括:
    当多个停止执行的所述数据迁移任务中有第一预设比例的所述数据迁移任务的所述理论执行时长大于所述预设阈值时,将所述预设阈值调大至第一数值。
  4. 如权利要求2所述的任务状态检测方法,其中,所述根据所述预设阈值和停止执行的所述数据迁移任务的所述理论执行时长之间的大小关系,调整所述预设阈值,包括:
    当多个停止执行的所述数据迁移任务中有第二预设比例的所述数据迁移任务的所述理论执行时长小于所述预设阈值时,将所述预设阈值调小至第二数值,所述第二数值小于所述第一数值。
  5. 如权利要求2所述的任务状态检测方法,其中,所述历史数据包括停止执行的所述数据迁移任务的开始时间,以及停止执行的所述数据迁移任务对应的目标数据停止更新的时间;
    所述根据所述历史数据得到停止执行的所述数据迁移任务在不停止执行的情况下完成迁移所述第一目标数据量的理论执行时长,包括:
    计算所述开始时间与所述停止更新的时间之间的差值,将所述差值作为所述理论执行时长。
  6. 如权利要求1所述的任务状态检测方法,其中,所述判断筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的所述第一数据量是否等于相应的第一目标数据量之后,所述方法还包括:
    当完成迁移的所述第一数据量小于相应的第一目标数据量时,继续执行完成迁移的所述第一数据量小于相应的第一目标数据量的所述数据迁移任务,计算所述数据迁移任务继续执行后所要迁移的第二目标数据量,并启动第二预设计时时长的第二定时器;
    计算继续执行的所述数据迁移任务在所述第二定时器到达所述第二预设计时时长时完成迁移的第二数据量;
    判断每个继续执行的所述数据迁移任务在所述第二定时器到达所述第二预设计时时长时完成迁移的所述第二数据量是否等于对应的第二目标数据量;
    当完成迁移的所述第二数据量等于对应的第二目标数据量时,停止执行相应的所述数据迁移任务。
  7. 如权利要求6所述的任务状态检测方法,其中,所述第二预设计时时长小于所述第一预设计时时长。
  8. 一种任务状态检测装置,其中,所述装置包括:
    获取模块:用于获取多个数据迁移任务的开始时间;
    扫描模块:用于扫描每个所述数据迁移任务,得到每个所述数据迁移任务对应的计算机设备的当前时间;
    计算模块:用于根据每个所述数据迁移任务的所述开始时间及对应的所述计算机设备的当前时间,计算得到每个所述数据迁移任务的执行时长;筛选出所述执行时长大于预设阈值的一个或多个所述数据迁移任务,计算筛选出的每个所述数据迁移任务所要迁移的第一目标数据量,并启动第一预设计时时长的第一定时器,计算筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的第一数据量;
    判断模块:用于判断筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的所述第一数据量是否等于相应的第一目标数据量;
    停止模块:用于当完成迁移的所述第一数据量等于相应的第一目标数据量时,停止执行相应的数据迁移任务。
  9. 一种计算机设备,其中,所述计算机设备包括:
    至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如下所述的任务状态检测方法:
    获取多个数据迁移任务的开始时间;
    扫描每个所述数据迁移任务,得到每个所述数据迁移任务对应的计算机设备的当前时间;
    根据每个所述数据迁移任务的所述开始时间及对应的所述计算机设备的当前时间,计算得到每个所述数据迁移任务的执行时长;
    筛选出所述执行时长大于预设阈值的一个或多个所述数据迁移任务,计算筛选出的每个所述数据迁移任务所要迁移的第一目标数据量,并启动第一预设计时时长的第一定时器,计算筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的第一数据量;
    判断筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的所述第一数据量是否等于相应的第一目标数据量;
    当完成迁移的所述第一数据量等于相应的第一目标数据量时,停止执行相应的数据迁移任务。
  10. 如权利要求9所述的计算机设备,其中,所述停止执行相应的数据迁移任务之后,所述方法还包括:
    获取停止执行的所述数据迁移任务的历史数据;
    根据所述历史数据得到停止执行的所述数据迁移任务在不停止执行的情况下完成迁移所述第一目标数据量的理论执行时长;
    根据所述预设阈值和停止执行的所述数据迁移任务的所述理论执行时长之间的大小关系,调整所述预设阈值。
  11. 如权利要求10所述的计算机设备,其中,所述根据所述预设阈值和停止执行的所述数据迁移任务的所述理论执行时长之间的大小关系,调整所述预设阈值,包括:
    当多个停止执行的所述数据迁移任务中有第一预设比例的所述数据迁移任务的所述理论执行时长大于所述预设阈值时,将所述预设阈值调大至第一数值。
  12. 如权利要求10所述的计算机设备,其中,所述根据所述预设阈值和停止执行的所述数据迁移任务的所述理论执行时长之间的大小关系,调整所述预设阈值,包括:
    当多个停止执行的所述数据迁移任务中有第二预设比例的所述数据迁移任务的所述理论执行时长小于所述预设阈值时,将所述预设阈值调小至第二数值,所述第二数值小于所述第一数值。
  13. 如权利要求10所述的计算机设备,其中,所述历史数据包括停止执行的所述数据迁移任务的开始时间,以及停止执行的所述数据迁移任务对应的目标数据停止更新的时间;
    所述根据所述历史数据得到停止执行的所述数据迁移任务在不停止执行的情况下完成迁移所述第一目标数据量的理论执行时长,包括:
    计算所述开始时间与所述停止更新的时间之间的差值,将所述差值作为所述理论执行时长。
  14. 如权利要求9所述的计算机设备,其中,所述判断筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的所述第一数据量是否等于相应的第一目标数据量之后,所述方法还包括:
    当完成迁移的所述第一数据量小于相应的第一目标数据量时,继续执行完成迁移的所述第一数据量小于相应的第一目标数据量的所述数据迁移任务,计算所述数据迁移任务继续执行后所要迁移的第二目标数据量,并启动第二预设计时时长的第二定时器;
    计算继续执行的所述数据迁移任务在所述第二定时器到达所述第二预设计时时长时完成迁移的第二数据量;
    判断每个继续执行的所述数据迁移任务在所述第二定时器到达所述第二预设计时时长时完成迁移的所述第二数据量是否等于对应的第二目标数据量;
    当完成迁移的所述第二数据量等于对应的第二目标数据量时,停止执行相应的所述数据迁移任务。
  15. 一种计算机可读存储介质,其中,所述计算机可读存储介质中包括存储数据区和存储程序区,存储数据区存储根据区块链节点的使用所创建的数据,存储程序区存储有任务状态检测程序,所述任务状态检测程序被处理器执行时,实现如下所述的任务状态检测方法的步骤:
    获取多个数据迁移任务的开始时间;
    扫描每个所述数据迁移任务,得到每个所述数据迁移任务对应的计算机设备的当前时间;
    根据每个所述数据迁移任务的所述开始时间及对应的所述计算机设备的当前时间,计算得到每个所述数据迁移任务的执行时长;
    筛选出所述执行时长大于预设阈值的一个或多个所述数据迁移任务,计算筛选出的每个所述数据迁移任务所要迁移的第一目标数据量,并启动第一预设计时时长的第一定时器,计算筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的第一数据量;
    判断筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的所述第一数据量是否等于相应的第一目标数据量;
    当完成迁移的所述第一数据量等于相应的第一目标数据量时,停止执行相应的数据迁移任务。
  16. 如权利要求15所述的计算机可读存储介质,其中,所述停止执行相应的数据迁移任务之后,所述方法还包括:
    获取停止执行的所述数据迁移任务的历史数据;
    根据所述历史数据得到停止执行的所述数据迁移任务在不停止执行的情况下完成迁移所述第一目标数据量的理论执行时长;
    根据所述预设阈值和停止执行的所述数据迁移任务的所述理论执行时长之间的大小关系,调整所述预设阈值。
  17. 如权利要求16所述的计算机可读存储介质,其中,所述根据所述预设阈值和停止执行的所述数据迁移任务的所述理论执行时长之间的大小关系,调整所述预设阈值,包括:
    当多个停止执行的所述数据迁移任务中有第一预设比例的所述数据迁移任务的所述理论执行时长大于所述预设阈值时,将所述预设阈值调大至第一数值。
  18. 如权利要求16所述的计算机可读存储介质,其中,所述根据所述预设阈值和停止执行的所述数据迁移任务的所述理论执行时长之间的大小关系,调整所述预设阈值,包括:
    当多个停止执行的所述数据迁移任务中有第二预设比例的所述数据迁移任务的所述理论执行时长小于所述预设阈值时,将所述预设阈值调小至第二数值,所述第二数值小于所述第一数值。
  19. 如权利要求16所述的计算机可读存储介质,其中,所述历史数据包括停止执行的所述数据迁移任务的开始时间,以及停止执行的所述数据迁移任务对应的目标数据停止更新的时间;
    所述根据所述历史数据得到停止执行的所述数据迁移任务在不停止执行的情况下完成迁移所述第一目标数据量的理论执行时长,包括:
    计算所述开始时间与所述停止更新的时间之间的差值,将所述差值作为所述理论执行时长。
  20. 如权利要求15所述的计算机可读存储介质,其中,所述判断筛选出的每个所述数据迁移任务在所述第一定时器到达所述第一预设计时时长时完成迁移的所述第一数据量是否等于相应的第一目标数据量之后,所述方法还包括:
    当完成迁移的所述第一数据量小于相应的第一目标数据量时,继续执行完成迁移的所述第一数据量小于相应的第一目标数据量的所述数据迁移任务,计算所述数据迁移任务继续执行后所要迁移的第二目标数据量,并启动第二预设计时时长的第二定时器;
    计算继续执行的所述数据迁移任务在所述第二定时器到达所述第二预设计时时长时完成迁移的第二数据量;
    判断每个继续执行的所述数据迁移任务在所述第二定时器到达所述第二预设计时时长时完成迁移的所述第二数据量是否等于对应的第二目标数据量;
    当完成迁移的所述第二数据量等于对应的第二目标数据量时,停止执行相应的所述数据迁移任务。
PCT/CN2020/125471 2020-09-23 2020-10-30 任务状态检测方法、装置、计算机设备及存储介质 WO2021189857A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011008628.8A CN112131179B (zh) 2020-09-23 2020-09-23 任务状态检测方法、装置、计算机设备及存储介质
CN202011008628.8 2020-09-23

Publications (1)

Publication Number Publication Date
WO2021189857A1 true WO2021189857A1 (zh) 2021-09-30

Family

ID=73842804

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/125471 WO2021189857A1 (zh) 2020-09-23 2020-10-30 任务状态检测方法、装置、计算机设备及存储介质

Country Status (2)

Country Link
CN (1) CN112131179B (zh)
WO (1) WO2021189857A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113641484A (zh) * 2021-10-13 2021-11-12 浙江口碑网络技术有限公司 任务定时调度方法、装置、设备及计算机可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391031A (zh) * 2017-06-27 2017-11-24 北京邮电大学 一种基于混合存储的计算系统中的数据迁移方法及装置
US20180343300A1 (en) * 2017-05-26 2018-11-29 Vmware Inc. Methods and apparatus to perform data migration in a distributed environment
CN110096332A (zh) * 2018-01-31 2019-08-06 中国科学院计算技术研究所 一种面向基站任务的迁移方法和系统
CN111338774A (zh) * 2020-02-21 2020-06-26 华云数据有限公司 分布式定时任务调度系统及计算装置
CN111338773A (zh) * 2020-02-21 2020-06-26 华云数据有限公司 一种分布式定时任务调度方法、调度系统及服务器集群

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581822B (zh) * 2013-10-14 2018-11-23 中国移动通信集团公司 用户设备的业务状态迁移的方法、系统及装置
CN107346262B (zh) * 2017-06-06 2020-12-15 华为技术有限公司 一种任务迁移的方法及控制器
CN107679200A (zh) * 2017-10-11 2018-02-09 郑州云海信息技术有限公司 一种在线数据迁移方法及装置
CN107943572B (zh) * 2017-11-16 2019-09-03 平安科技(深圳)有限公司 数据迁移方法、装置、计算机设备和存储介质
US11526470B2 (en) * 2018-01-03 2022-12-13 Salesforce, Inc. Data validation for data record migrations
CN110019372B (zh) * 2018-08-21 2023-04-11 平安科技(深圳)有限公司 数据监控方法、装置、服务器及存储介质
CN110895520B (zh) * 2018-09-12 2022-04-22 华为技术有限公司 一种文件迁移方法、相关装置及设备
CN109460188A (zh) * 2018-11-13 2019-03-12 郑州云海信息技术有限公司 一种数据迁移方法、系统、设备及计算机可读存储介质
CN110555014B (zh) * 2019-09-06 2022-04-15 中国联合网络通信集团有限公司 一种数据迁移方法和系统、电子设备、存储介质
EP3669268A4 (en) * 2019-09-12 2020-12-23 Alibaba Group Holding Limited NEWSPAPER STRUCTURE STORAGE SYSTEMS
CN111008188B (zh) * 2019-10-29 2023-08-15 平安科技(深圳)有限公司 数据迁移方法、装置、计算机设备和存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180343300A1 (en) * 2017-05-26 2018-11-29 Vmware Inc. Methods and apparatus to perform data migration in a distributed environment
CN107391031A (zh) * 2017-06-27 2017-11-24 北京邮电大学 一种基于混合存储的计算系统中的数据迁移方法及装置
CN110096332A (zh) * 2018-01-31 2019-08-06 中国科学院计算技术研究所 一种面向基站任务的迁移方法和系统
CN111338774A (zh) * 2020-02-21 2020-06-26 华云数据有限公司 分布式定时任务调度系统及计算装置
CN111338773A (zh) * 2020-02-21 2020-06-26 华云数据有限公司 一种分布式定时任务调度方法、调度系统及服务器集群

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113641484A (zh) * 2021-10-13 2021-11-12 浙江口碑网络技术有限公司 任务定时调度方法、装置、设备及计算机可读存储介质

Also Published As

Publication number Publication date
CN112131179A (zh) 2020-12-25
CN112131179B (zh) 2023-11-21

Similar Documents

Publication Publication Date Title
CN111447150A (zh) 访问请求限流方法、服务器及存储介质
US9336054B2 (en) Method and apparatus for configuring resource
CN108462760B (zh) 电子装置、集群访问域名自动生成方法及存储介质
JP6818014B2 (ja) ジョブ用の動作リトライ方法及び機器
WO2019179027A1 (zh) 电子装置、防火墙开通验证方法、系统及存储介质
US11714632B2 (en) Action execution based on management controller action request
WO2022267179A1 (zh) 动态限流熔断配置方法、装置、设备及存储介质
WO2021189857A1 (zh) 任务状态检测方法、装置、计算机设备及存储介质
WO2018018702A1 (zh) 一种odex优化控制方法及移动终端
CN107577798B (zh) 一种快照创建方法、装置及计算机可读存储介质
CN110851297A (zh) 一种接口抖动状态的处理方法、装置、系统及介质
CN108900482B (zh) 脚本的执行方法、服务器管理系统及存储介质
US20190332326A1 (en) Method, device, and computer program product for operation control in storage system
CN113688602A (zh) 一种任务处理方法以及装置
WO2022142008A1 (zh) 数据处理方法、装置、电子设备及存储介质
CN113672263A (zh) 固件参数更新控制方法、装置及电子设备
WO2015196805A1 (zh) 批命令的执行方法及装置
CN110134546B (zh) 批量重启windows系统方法、电子装置及存储介质
CN104951247A (zh) 信息处理装置以及存储器管理方法
CN105740073A (zh) 一种动态控制操作系统进程数量的方法及装置
CN107958414B (zh) 一种清除cics系统长交易的方法及系统
CN115421859A (zh) 配置文件的动态加载方法、装置、计算机设备及存储介质
CN114598755B (zh) 网络协议启动顺序控制方法、装置、设备和存储介质
CN109582532B (zh) 电子装置、日志开关控制方法和计算机可读存储介质
US8922567B2 (en) Regulation of screen composing in a device

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

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

Country of ref document: EP

Kind code of ref document: A1