Data deletion method and system, medium and computer system

By automatically generating and allocating data deletion tasks based on user configuration information, it solves the problem of lack of dynamic adjustment capabilities in ElasticSearch and achieves flexible and efficient data cleaning.

CN111198793BActive Publication Date: 2024-10-18BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN201811381811.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-11-19
Publication Date
2024-10-18
Estimated Expiration
2038-11-19

AI Technical Summary

Technical Problem

In ElasticSearch version 2.0 and above, there is a lack of TTL cleaning method. Users need to manually develop scheduled tasks to delete expired data, resulting in each business requiring hard-coded scheduled tasks, which is difficult to adjust dynamically.

Method used

Provide a method and system for automatically generating data deletion tasks based on user configuration information, determining the data information that needs to be deleted by parsing the configuration information, generating and assigning deletion tasks, and adjusting the task execution pace according to the status of the ES cluster.

Benefits of technology

It realizes the automatic generation of data deletion tasks without manual coding, simplifies the dynamic adjustment process, and improves the flexibility and efficiency of data deletion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111198793B_ABST
    Figure CN111198793B_ABST
Patent Text Reader

Abstract

The present disclosure provides a data deletion method, including: obtaining configuration information, wherein the configuration information is at least used to characterize data to be deleted; generating at least one deletion task based on the configuration information; and assigning at least one deletion task to a corresponding client, wherein the client can execute the deletion task and delete the data to be deleted characterized by the configuration information. The present disclosure also provides a data deletion system, a computer system and a computer-readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and more specifically, to a data deletion method, a data deletion system, a computer system and a computer-readable storage medium. Background Art

[0002] In the era of big data, data storage is very important. Data storage based on ElasticSearch (hereinafter referred to as ES) can respond to queries quickly and support high concurrent writing. However, as time goes by, the stored data increases and expired data needs to be cleaned up regularly. ES 1.7 version supports TTL cleaning method, but ES 2.0 and above versions no longer support this cleaning method, and users need to handle it according to actual conditions. In this regard, most users currently develop scheduled tasks to regularly delete expired data.

[0003] In the process of implementing the concept of the present disclosure, the inventors found that the related technology has the following defects: to develop scheduled tasks, users need to manually write worker deletion data based on hard coding for each business, which is not convenient for dynamic adjustment. Summary of the invention

[0004] In view of this, the present disclosure provides a data deletion method and system capable of automatically generating a data deletion task based on user configuration information.

[0005] One aspect of the present disclosure provides a data deletion method, comprising: obtaining configuration information, wherein the configuration information is at least used to represent data that needs to be deleted; generating at least one deletion task based on the configuration information; and assigning the at least one deletion task to a corresponding terminal device, wherein the terminal device is capable of executing the deletion task and deleting the data that needs to be deleted represented by the configuration information.

[0006] According to an embodiment of the present disclosure, the above-mentioned generation of at least one deletion task based on the above-mentioned configuration information includes: parsing the above-mentioned configuration information to determine the following information of the data to be deleted: the name of the ES cluster and the IP address of the node in the above-mentioned ES cluster for storing the data to be deleted; and based on the determined information, generating at least one deletion task capable of deleting the data corresponding to the information and currently expired.

[0007] According to an embodiment of the present disclosure, the above-mentioned generation of at least one deletion task based on the above-mentioned configuration information includes: parsing the above-mentioned configuration information to determine the following information of the data to be deleted: the name of the ES cluster, the IP address of the node in the above-mentioned ES cluster for storing the data to be deleted, and a specified time parameter; and based on the determined information, generating at least one deletion task that can delete the data corresponding to the information and whose survival time value is less than the above-mentioned specified time parameter.

[0008] According to an embodiment of the present disclosure, the method further includes: obtaining status information of the ES cluster; generating a task adjustment instruction based on the obtained status information; and adjusting the execution pace of the at least one deletion task on the corresponding terminal device through the task adjustment instruction.

[0009] According to an embodiment of the present disclosure, the above-mentioned status information includes one or more of the following information of the above-mentioned ES cluster: load status, memory status, CPU status and disk status.

[0010] According to an embodiment of the present disclosure, the above-mentioned allocating the at least one deletion task to the corresponding terminal device includes: determining the number of available terminal devices and the speed of executing tasks, and the number of the at least one deletion task; and allocating the at least one deletion task to the above-mentioned available terminal device according to the determined number and speed.

[0011] Another aspect of the present disclosure provides a data deletion system, including: a first acquisition module, used to acquire configuration information, wherein the above configuration information is at least used to represent data that needs to be deleted; a first generation module, used to generate at least one deletion task based on the above configuration information; and an allocation module, used to allocate the above at least one deletion task to a corresponding terminal device, wherein the above terminal device is capable of executing the above deletion task and deleting the data that needs to be deleted represented by the above configuration information.

[0012] According to an embodiment of the present disclosure, the above-mentioned first generation module includes: a first parsing unit, used to parse the above-mentioned configuration information, and determine the following information of the data to be deleted: the name of the ES cluster and the IP address of the node in the above-mentioned ES cluster for storing the data to be deleted; and a first generation unit, used to generate at least one deletion task capable of deleting the data corresponding to the information and currently expired based on the determined information.

[0013] According to an embodiment of the present disclosure, the above-mentioned first generation module includes: a second parsing unit, used to parse the above-mentioned configuration information, and determine the following information of the data to be deleted: the name of the ES cluster, the IP address of the node in the above-mentioned ES cluster for storing the data to be deleted, and a specified time parameter; and a second generation unit, used to generate at least one deletion task based on the determined information, which can delete the data corresponding to the information and whose survival time value is less than the above-mentioned specified time parameter.

[0014] According to an embodiment of the present disclosure, the above-mentioned system also includes: a second acquisition module, used to obtain the status information of the above-mentioned ES cluster; a second generation module, used to generate a task adjustment instruction based on the acquired status information; and an adjustment module, used to adjust the execution pace of the above-mentioned at least one deletion task on the above-mentioned corresponding terminal device through the above-mentioned task adjustment instruction.

[0015] According to an embodiment of the present disclosure, the above-mentioned status information includes one or more of the following information of the above-mentioned ES cluster: load status, memory status, CPU status and disk status.

[0016] According to an embodiment of the present disclosure, the above-mentioned allocation module includes: a determination unit, used to determine the number of available terminal devices and the speed of executing tasks, as well as the number of the above-mentioned at least one deletion task; and an allocation unit, used to allocate the above-mentioned at least one deletion task to the above-mentioned available terminal devices according to the determined number and speed.

[0017] Another aspect of the present disclosure provides a computer system, including: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement any of the methods described above.

[0018] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the above method when executed.

[0019] Another aspect of the present disclosure provides a computer program, wherein the computer program includes computer executable instructions, and the instructions are used to implement the above method when executed.

[0020] According to the embodiments of the present disclosure, because a technical means is adopted to set up a Web UI interface for users to input configuration information, so that the client can automatically generate data deletion tasks based on the configuration information input by the user, it at least partially overcomes the technical problem in the related technology that when deleting data stored in ES, the user needs to manually write hard-coded scheduled tasks for each business, which makes dynamic adjustment inconvenient, thereby achieving the technical effect of automatically generating corresponding deletion tasks for each business, thereby facilitating dynamic adjustment. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0022] Figure 1 An exemplary system architecture to which the data deletion method and system disclosed herein can be applied is schematically shown;

[0023] Figure 2 A flowchart of a data deletion method according to an embodiment of the present disclosure is schematically shown;

[0024] Figure 3A to Figure 3B The composition of configuration information according to an embodiment of the present disclosure is schematically shown;

[0025] Figure 4 The composition of the status information of the ES cluster according to the embodiment of the present disclosure is schematically shown;

[0026] Figure 5 A schematic diagram schematically shows a schematic diagram of dynamically adjusting the execution pace of each task according to an embodiment of the present disclosure;

[0027] Figure 6 A block diagram schematically shows a data deletion system according to an embodiment of the present disclosure; and

[0028] Figure 7 A block diagram of a computer system suitable for implementing a data deletion method and system according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0029] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0030] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0031] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0032] In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0033] The embodiments of the present disclosure provide a data deletion method and system capable of automatically generating a data deletion task based on user configuration information. The method includes obtaining configuration information, wherein the configuration information is at least used to characterize data to be deleted; generating at least one deletion task based on the configuration information; and assigning at least one deletion task to a corresponding client, wherein the client can execute the deletion task and delete the data to be deleted characterized by the configuration information.

[0034] Figure 1 The following schematically illustrates an exemplary system architecture to which the data deletion method and system disclosed herein can be applied. It should be noted that: Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.

[0035] like Figure 1 As shown, the system architecture according to this embodiment may include an ES cluster, a WEB-UI configuration center, a task generator, terminal 1 and terminal 2, a monitoring center, and a coordinator.

[0036] The ES cluster is used to store data. It can include multiple nodes, each with its own IP address. The WEB-UI configuration center is used to provide a WEB-UI interface, through which users can enter configuration information. The task generator can be a client or a server or a server cluster, which is used to automatically generate deletion tasks based on the configuration information and assign the deletion tasks to corresponding terminal devices such as terminal 1 and terminal 2 for execution. The monitoring center can be a client or a server or a server cluster, which is used to monitor the status of the ES cluster and send the monitored status information to the coordinator. The coordinator can be a client or a server or a server cluster, which is used to coordinate the execution pace of the deletion tasks based on the status information of the ES cluster.

[0037] It should be noted that the WEB-UI configuration center, task generator, monitoring center and coordinator can be one device, specifically, one device having information configuration function, task generation function, monitoring function and coordination function at the same time. Of course, the WEB-UI configuration center, task generator, monitoring center and coordinator can also be four different devices.

[0038] It should be noted that the data deletion method provided in the embodiment of the present disclosure can generally be executed by a server / server cluster. Accordingly, the data deletion system provided in the embodiment of the present disclosure can generally be set in a server / server cluster. Alternatively, the data deletion method provided in the embodiment of the present disclosure can also be executed by a terminal device. Accordingly, the data deletion system provided in the embodiment of the present disclosure can also be set in a terminal device.

[0039] It should be understood that Figure 1 The number of ES clusters, WEB-UI configuration centers, task generators, terminal devices, monitoring centers, and coordinators in the example is only illustrative. Any number of ES clusters, WEB-UI configuration centers, task generators, terminal devices, monitoring centers, and coordinators may be provided as required.

[0040] Figure 2 The flowchart of the data deletion method according to the embodiment of the present disclosure is schematically shown.

[0041] like Figure 2 As shown, the method includes operations S210 to S230, wherein:

[0042] In operation S210, configuration information is acquired, wherein the configuration information is at least used to characterize data that needs to be deleted.

[0043] Specifically, users can Figure 1The WEB-UI configuration center shown enters the name of the ES cluster and the IP address of any node in the configuration table. The task generator periodically scans the configuration table entered by the user through a scheduled task, and reads the metadata of the ES cluster (including the name of the ES cluster and the IP addresses of the relevant nodes) based on the configuration information.

[0044] In operation S220, at least one deletion task is generated based on the configuration information.

[0045] Specifically, Figure 1 As shown, assuming that the user enters the configuration information shown in Table 1 in the configuration table, the task generator can automatically generate two deletion tasks based on the information, namely task1 and task2. Among them, executing task1 can delete the relevant data on node 1 corresponding to the IP1 address in the ES_name1 cluster, and executing task2 can delete the relevant data on node 2 corresponding to the IP2 address in the ES_name1 cluster.

[0046] Table 1

[0047] The name of the ES cluster The IP address of the node Time parameters ES_namel IP1 ES_namel IP2

[0048] It should be noted that, in the embodiments of the present disclosure, the task generator can specifically utilize dynamic bytecode generation technology (mainly Javaassit, CGLIB, etc.) to automatically generate deletion tasks.

[0049] In operation S230, at least one deletion task is assigned to a corresponding terminal device, wherein the terminal device is capable of executing the deletion task and deleting the data to be deleted represented by the configuration information.

[0050] Specifically, Figure 1 As shown, the task generator can randomly assign the deletion task to any one or more terminal devices in the system architecture for processing. For example, task 1 can be assigned to terminal 1, task 2 can be assigned to terminal 2, or both task 1 and task 2 can be assigned to terminal 1, or both task 1 and task 2 can be assigned to terminal 2.

[0051] When the terminal device executes task1, it can operate on node 1 corresponding to IP1 address in ES_name1 cluster, thereby deleting relevant data stored therein; when the terminal device executes task2, it can operate on node 2 corresponding to IP2 address in ES_name2 cluster, thereby deleting relevant data stored therein.

[0052] Compared with the prior art in which users are required to manually write hard-coded scheduled deletion tasks for each business when deleting data stored in an ES cluster, which makes it inconvenient to dynamically adjust tasks, the embodiments of the present disclosure provide a visual WEB-UI, and users can input configuration information to enable the task generator to automatically generate scheduled deletion tasks, thus eliminating the trouble of manual coding for users and facilitating dynamic adjustment of tasks.

[0053] Reference below Figure 3A to Figure 3B ,as well as Figure 4-5 , combined with specific embodiments Figure 2 The method shown is further explained.

[0054] As an optional embodiment, at least one deletion task is generated based on the configuration information, including: parsing the configuration information to determine the following information of the data to be deleted: the name of the ES cluster and the IP address of the node in the ES cluster used to store the data to be deleted; and based on the determined information, generating at least one deletion task that can delete the data corresponding to the information and currently expired.

[0055] like Figure 3A As shown in the figure, the configuration information can only include the name of the ES cluster and the IP addresses of the relevant nodes in the ES cluster. In other words, the user can not configure the time parameter. In this case, when the task generator generates the deletion task, it will set the time parameter to the default parameter, that is, the currently expired data will be deleted by default.

[0056] Through the embodiments of the present disclosure, the user can only specify the deletion location (i.e., the name of the ES cluster and the IP addresses of the relevant nodes therein) when configuring information, without specifying which data to delete (i.e., without specifying a time parameter). At this time, the currently expired data can be deleted by default according to the rules.

[0057] As an optional embodiment, at least one deletion task is generated based on the configuration information, including: parsing the configuration information to determine the following information of the data to be deleted: the name of the ES cluster, the IP address of the node in the ES cluster used to store the data to be deleted, and a specified time parameter; and based on the determined information, generating at least one deletion task that can delete the data corresponding to the information and whose survival time value is less than the specified time parameter.

[0058] With Figure 3A The configuration information shown is slightly different, such as Figure 3BAs shown in the figure, in addition to the name of the ES cluster and the IP addresses of the relevant nodes in the ES cluster, the configuration information can also include the time parameter specified by the user. In other words, the user can configure the time parameter. In this case, when the task generator generates a deletion task, it will set the time parameter to the time parameter specified by the user, that is, by default, it will delete data whose survival time is earlier than the time parameter.

[0059] Through the embodiments of the present disclosure, the user can specify the deletion location (i.e., the name of the ES cluster and the IP addresses of the relevant nodes therein) and specify which data to delete (i.e., specify a time parameter) when configuring information. At this time, data whose survival time is earlier than the time parameter can be deleted by default according to the rules.

[0060] As an optional embodiment, the method further includes: obtaining status information of the ES cluster; generating a task adjustment instruction according to the obtained status information; and adjusting the execution pace of at least one deletion task on the corresponding terminal device through the task adjustment instruction.

[0061] Specifically, Figure 1 As shown in the figure, the monitoring center can capture the status of the ES cluster in real time, including the status of one or more of the load of the entire cluster (such as the upper limit of the load), memory (such as memory usage), CPU (such as CPU usage), and disk (such as disk usage). Figure 4 As shown, the status information may include one or more of the following information of the ES cluster: load status, memory status, CPU status, and disk status). To facilitate user observation, the monitoring center can also visualize the captured status information in real time.

[0062] like Figure 5 As shown, the coordinator can dynamically read the data from the monitoring center, so as to dynamically adjust the execution pace of each deletion task according to the status of the ES cluster.

[0063] For example, if monitoring finds that the load of the ES cluster has reached the upper limit, the deletion task can be terminated immediately and restarted after the ES cluster is stable, thereby reducing the consumption of the cluster load.

[0064] For another example, if monitoring finds that the load of the ES cluster is at an upper-middle level but does not exceed the upper limit, the execution pace of the deletion task can be dynamically adjusted to reduce the cluster load.

[0065] For another example, if monitoring finds that the ES cluster load is low, the execution pace of the delete task can be dynamically increased to improve the efficiency of data deletion.

[0066] Compared with the prior art in which the status of the ES cluster cannot be monitored during the execution of the deletion task, and the execution pace of each deletion task cannot be dynamically adjusted according to the pressure of the ES cluster, the embodiment of the present disclosure can automatically perform real-time visual monitoring of the status of the ES cluster and dynamically adjust the execution pace of each deletion task according to the monitoring results.

[0067] As an optional embodiment, allocating at least one deletion task to a corresponding terminal device includes: determining the number of available terminal devices and the speed of executing tasks, and the number of at least one deletion task; and allocating at least one deletion task to the available terminal device based on the determined number and speed.

[0068] Specifically, combined Figure 1 and Figure 5 , the task generator can dynamically allocate tasks according to the number of terminal devices that execute the deletion tasks and the number of deletion tasks started. For example, suppose there are two clusters with two indexes to be deleted and three terminal devices that execute tasks. At this time, the task generator will start four deletion tasks, and the coordinator is responsible for allocating these four tasks to the three terminal devices for execution. For example, one terminal device can execute two tasks, and the other two terminal devices can each execute one task. If a task is executed quickly, two tasks will be allocated to another idle terminal device for execution in the next round of automatic balancing.

[0069] Through the embodiments of the present disclosure, the allocation and deletion of tasks can be dynamically adjusted according to the state of the task execution end and the number of tasks started.

[0070] Figure 6 A block diagram of a data deletion system according to an embodiment of the present disclosure is schematically shown.

[0071] like Figure 6 As shown, the data deletion system 600 includes a first acquisition module 610 , a first generation module 620 and an allocation module 630 .

[0072] A first acquisition module 610 is used to acquire configuration information, wherein the configuration information is at least used to represent data to be deleted;

[0073] A first generating module 620, configured to generate at least one deletion task based on the configuration information; and

[0074] The allocation module 630 is used to allocate at least one deletion task to a corresponding terminal device, wherein the terminal device is capable of executing the deletion task and deleting the data to be deleted represented by the configuration information.

[0075] Compared with the prior art in which users are required to manually write hard-coded scheduled deletion tasks for each business when deleting data stored in an ES cluster, which makes it inconvenient to dynamically adjust tasks, the embodiments of the present disclosure provide a visual WEB-UI, and users can input configuration information to enable the task generator to automatically generate scheduled deletion tasks, thus eliminating the trouble of manual coding for users and facilitating dynamic adjustment of tasks.

[0076] As an optional embodiment, the above-mentioned first generation module includes: a first parsing unit, used to parse the above-mentioned configuration information to determine the following information of the data to be deleted: the name of the ES cluster and the IP address of the node in the above-mentioned ES cluster for storing the data to be deleted; and a first generation unit, used to generate at least one deletion task capable of deleting the data corresponding to the information and currently expired based on the determined information.

[0077] Through the embodiments of the present disclosure, the user can only specify the deletion location (i.e., the name of the ES cluster and the IP addresses of the relevant nodes therein) when configuring information, without specifying which data to delete (i.e., without specifying a time parameter). At this time, the currently expired data can be deleted by default according to the rules.

[0078] As an optional embodiment, the above-mentioned first generation module includes: a second parsing unit, used to parse the above-mentioned configuration information to determine the following information of the data to be deleted: the name of the ES cluster, the IP address of the node in the above-mentioned ES cluster for storing the data to be deleted, and a specified time parameter; and a second generation unit, used to generate at least one deletion task based on the determined information, which can delete the data corresponding to the information and whose survival time value is less than the above-mentioned specified time parameter.

[0079] Through the embodiments of the present disclosure, the user can specify the deletion location (i.e., the name of the ES cluster and the IP addresses of the relevant nodes therein) and specify which data to delete (i.e., specify a time parameter) when configuring information. At this time, data whose survival time is earlier than the time parameter can be deleted by default according to the rules.

[0080] As an optional embodiment, the above system also includes: a second acquisition module, used to obtain the status information of the above ES cluster; a second generation module, used to generate task adjustment instructions based on the acquired status information; and an adjustment module, used to adjust the execution pace of the above at least one deletion task on the above corresponding terminal device through the above task adjustment instructions.

[0081] As an optional embodiment, the above-mentioned status information includes one or more of the following information of the above-mentioned ES cluster: load status, memory status, CPU status and disk status.

[0082] Compared with the prior art in which the status of the ES cluster cannot be monitored during the execution of the deletion task, and the execution pace of each deletion task cannot be dynamically adjusted according to the pressure of the ES cluster, the embodiment of the present disclosure can automatically perform real-time visual monitoring of the status of the ES cluster and dynamically adjust the execution pace of each deletion task according to the monitoring results.

[0083] As an optional embodiment, the above-mentioned allocation module includes: a determination unit, used to determine the number of available terminal devices and the speed of executing tasks, and the number of the above-mentioned at least one deletion task; and an allocation unit, used to allocate the above-mentioned at least one deletion task to the above-mentioned available terminal device according to the determined number and speed.

[0084] Through the embodiments of the present disclosure, the allocation and deletion of tasks can be dynamically adjusted according to the state of the task execution end and the number of tasks started.

[0085] According to the modules and units of the embodiments of the present disclosure, any multiple or at least part of the functions of any multiple thereof can be implemented in one module. According to the modules and units of the embodiments of the present disclosure, any one or more can be split into multiple modules for implementation. According to the modules and units of the embodiments of the present disclosure, any one or more can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware of any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, according to the modules and units of the embodiments of the present disclosure, one or more can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be executed.

[0086] For example, any multiple of the first acquisition module 610, the first generation module 620, and the allocation module 630 can be combined in one module / unit / subunit for implementation, or any one of the modules / units / subunits can be split into multiple modules / units / subunits. Alternatively, at least part of the functions of one or more of these modules / units / subunits can be combined with at least part of the functions of other modules / units / subunits and implemented in one module / unit / subunit. According to an embodiment of the present disclosure, at least one of the first acquisition module 610, the first generation module 620, and the allocation module 630 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by any other reasonable way of integrating or packaging the circuit, such as hardware or the same, or in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, at least one of the first acquisition module 610 , the first generation module 620 , and the allocation module 630 may be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function may be performed.

[0087] It should be noted that the system part in the embodiments of the present disclosure corresponds to the method part in the embodiments of the present disclosure. The description of the system part specifically refers to the method part and will not be repeated here.

[0088] Figure 7 A block diagram of a computer system suitable for implementing a data deletion method and system according to an embodiment of the present disclosure is schematically shown. Figure 7 The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0089] like Figure 7 As shown, the computer system 700 according to the embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 702 or the program loaded from the storage part 708 to the random access memory (RAM) 703. The processor 701 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 701 may also include an onboard memory for caching purposes. The processor 701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiment of the present disclosure.

[0090] In RAM 703, various programs and data required for the operation of system 700 are stored. Processor 701, ROM 702 and RAM 703 are connected to each other through bus 704. Processor 701 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 702 and / or RAM 703. It should be noted that the program can also be stored in one or more memories other than ROM 702 and RAM 703. Processor 701 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0091] According to an embodiment of the present disclosure, the system 700 may further include an input / output (I / O) interface 705, which is also connected to the bus 704. The system 700 may further include one or more of the following components connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.

[0092] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the processor 701, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.

[0093] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0094] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.

[0095] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 702 and / or the RAM 703 described above and / or one or more memories other than the ROM 702 and the RAM 703 .

[0096] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0097] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0098] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A data deletion method, comprising: Get configuration information, where The configuration information is at least used to represent the data to be deleted; Based on the configuration information, generating at least one deletion task; as well as Allocating the at least one deletion task to a corresponding terminal device, wherein the terminal device is capable of executing the deletion task and deleting the data to be deleted represented by the configuration information; The generating at least one deletion task based on the configuration information includes: Parse the configuration information to determine the following information of the data to be deleted: the name of the ES cluster and the IP address of a node in the ES cluster that is used to store the data to be deleted; Based on the determined information, generating at least one deletion task capable of deleting data corresponding to the information and currently expired; or Parse the configuration information to determine the following information of the data to be deleted: the name of the ES cluster, the IP address of the node in the ES cluster used to store the data to be deleted, and the specified time parameter; and Based on the determined information, at least one deletion task is generated that can delete data corresponding to the information and having a survival time value less than the specified time parameter.

2. The method according to claim 1, wherein: The method further comprises: Obtain the status information of the ES cluster; Generate task adjustment instructions based on the acquired status information; as well as The execution pace of the at least one deletion task on the corresponding terminal device is adjusted through the task adjustment instruction.

3. The method according to claim 2, wherein: The status information includes one or more of the following information of the ES cluster: load status, memory status, CPU status and disk status.

4. The method according to claim 1, wherein: The allocating the at least one deletion task to the corresponding terminal device comprises: determining the number of available terminal devices and the speed of executing tasks, and the number of the at least one deleted task; as well as The at least one deletion task is allocated to the available terminal device according to the determined number and speed.

5. A data deletion system, comprising: The first acquisition module is used to acquire configuration information, wherein: The configuration information is at least used to represent the data to be deleted; A first generating module, used to generate at least one deletion task based on the configuration information; as well as An allocation module, configured to allocate the at least one deletion task to a corresponding terminal device; wherein the terminal device is capable of executing the deletion task and deleting the data to be deleted represented by the configuration information; Wherein, the first generation module comprises: A first parsing unit is configured to parse the configuration information to determine the following information of the data to be deleted: the name of the ES cluster and the IP address of a node in the ES cluster for storing the data to be deleted; and A first generating unit is used to generate, based on the determined information, at least one deletion task capable of deleting data corresponding to the information and currently expired; or A second parsing unit is used to parse the configuration information to determine the following information of the data to be deleted: the name of the ES cluster, the IP address of the node in the ES cluster for storing the data to be deleted, and a specified time parameter; and The second generating unit is used to generate, based on the determined information, at least one deletion task capable of deleting data corresponding to the information and having a survival time value less than the specified time parameter.

6. The system according to claim 5, wherein: The system further comprises: A second acquisition module is used to obtain the status information of the ES cluster; A second generating module is used to generate a task adjustment instruction according to the acquired status information; as well as The adjustment module is used to adjust the execution pace of the at least one deletion task on the corresponding terminal device through the task adjustment instruction.

7. The system according to claim 6, wherein: The status information includes one or more of the following information of the ES cluster: load status, memory status, CPU status and disk status.

8. The system according to claim 5, wherein: The allocation module includes: a determination unit, configured to determine the number of available terminal devices and the speed of executing tasks, and the number of the at least one deletion task; and The allocating unit is used to allocate the at least one deletion task to the available terminal device according to the determined number and speed.

9. A computer system comprising: one or more processors; a memory for storing one or more programs, in, When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method according to any one of claims 1 to 4.

10. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, enables the processor to implement the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Internet of Things preset resource processing method and device

    CN103874051A