CN112181277B - A data storage space management method, device, storage medium and electronic device - Google Patents

A data storage space management method, device, storage medium and electronic device Download PDF

Info

Publication number
CN112181277B
CN112181277B CN201910596063.0A CN201910596063A CN112181277B CN 112181277 B CN112181277 B CN 112181277B CN 201910596063 A CN201910596063 A CN 201910596063A CN 112181277 B CN112181277 B CN 112181277B
Authority
CN
China
Prior art keywords
trigger condition
data
data storage
capacity
deleted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910596063.0A
Other languages
Chinese (zh)
Other versions
CN112181277A (en
Inventor
寇毅
李愿波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies Co Ltd
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 Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201910596063.0A priority Critical patent/CN112181277B/en
Publication of CN112181277A publication Critical patent/CN112181277A/en
Application granted granted Critical
Publication of CN112181277B publication Critical patent/CN112181277B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application discloses a data storage space management method and device, a storage medium and electronic equipment. The method comprises the following steps: if the trigger condition of the update capacity of the target data storage interval is detected, determining whether the trigger condition simultaneously comprises a first trigger condition and a second trigger condition; the first trigger condition comprises a trigger condition generated based on a capacity space, and the second trigger condition comprises a trigger condition generated based on a preset time rule; and if the data to be deleted simultaneously comprises the first trigger condition and the second trigger condition, determining data to be deleted from all data in the target data storage interval based on a preset rule, and deleting the data to be deleted. By executing the technical scheme, the storage data can be effectively managed according to the requirement, and the storage capacity of the storage equipment for the newly-coming data is not influenced while the storage time of the data is prolonged.

Description

一种数据存储空间管理方法、装置、存储介质及电子设备A data storage space management method, device, storage medium and electronic device

技术领域technical field

本申请实施例涉及数据处理技术领域,尤其涉及一种数据存储空间管理方法、装置、存储介质及电子设备。The embodiments of the present application relate to the technical field of data processing, and in particular, to a data storage space management method, apparatus, storage medium, and electronic device.

背景技术Background technique

随着科技的迅速发展,对于数据的存储能力日益增强,存储设备得以用来对大量数据进行长期存储,以实现在使用过程中调取数据的目的。With the rapid development of science and technology, the ability to store data is increasing day by day, and storage devices can be used to store a large amount of data for a long time to achieve the purpose of retrieving data during use.

对于视频监控数据的留存来说,数据扮演着至关重要的角色。从目前的趋势来看,视频监控数据的保留时间与接入相机的数量将会持续增长,存储也会面临着更多种类元数据的接入和更大容量存储的需求。然而存储容量不能无限制的扩大,因此在一定量的存储空间中大量数据的有序更新和删除就显得格外重要,这就要求存储对于元数据的管理必须更为严谨和科学。因此如何利用视频监控数据自身的特点,结合存储的管理技术,让视频监控数据稳定有序的更新清理,提高数据存储空间管理对已知以及未知风险抵抗力,是当前需要解决的问题。Data plays a crucial role in the retention of video surveillance data. Judging from the current trend, the retention time of video surveillance data and the number of connected cameras will continue to grow, and storage will also face the need for access to more types of metadata and larger storage capacity. However, the storage capacity cannot be expanded indefinitely, so the orderly update and deletion of a large amount of data in a certain amount of storage space is particularly important, which requires that the storage management of metadata must be more rigorous and scientific. Therefore, how to use the characteristics of video surveillance data itself, combined with the storage management technology, make the video surveillance data updated and cleaned up in a stable and orderly manner, and improve the resistance of data storage space management to known and unknown risks, is a problem that needs to be solved at present.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种数据存储空间管理方法、装置、存储介质及电子设备,实现可以根据需求对存储数据进行有效管理,增长数据的保存时间的同时不影响存储设备对新来数据的存储能力的效果。The embodiments of the present application provide a data storage space management method, device, storage medium and electronic device, which can effectively manage stored data according to requirements, increase the storage time of data without affecting the storage capability of the storage device for newly incoming data Effect.

第一方面,本申请实施例提供了一种数据存储空间管理方法,该方法包括:In a first aspect, an embodiment of the present application provides a data storage space management method, which includes:

若检测到目标数据存储区间的更新容量的触发条件,则确定所述触发条件是否同时包括第一触发条件和第二触发条件;其中,所述第一触发条件包括基于容量空间生成的触发条件,第二触发条件包括基于预设时间规则生成的触发条件;If a trigger condition for updating the capacity of the target data storage interval is detected, it is determined whether the trigger condition includes both a first trigger condition and a second trigger condition; wherein, the first trigger condition includes a trigger condition generated based on the capacity space, The second trigger condition includes a trigger condition generated based on a preset time rule;

若同时包括第一触发条件和第二触发条件,则基于预设规则从目标数据存储区间中的各数据中确定待删除数据,并对所述待删除数据进行删除操作。If both the first trigger condition and the second trigger condition are included, the data to be deleted is determined from each data in the target data storage interval based on the preset rule, and the deletion operation is performed on the data to be deleted.

进一步的,所述第一触发条件的得到方式包括:Further, the method for obtaining the first trigger condition includes:

根据目标数据存储区间的剩余容量空间与待存储数据容量需求的大小关系,确定是否符合第一预设条件;Determine whether the first preset condition is met according to the size relationship between the remaining capacity space of the target data storage interval and the capacity requirement of the data to be stored;

若是,则生成第一触发条件。If so, a first trigger condition is generated.

进一步的,所述第二触发条件的得到方式包括:Further, the method for obtaining the second trigger condition includes:

根据目标数据存储区间的剩余容量空间,以及根据所述目标数据存储区间的数据存储速率,确定所述目标数据存储区间的容量计时器;Determine the capacity timer of the target data storage section according to the remaining capacity space of the target data storage section and according to the data storage rate of the target data storage section;

当所述容量计时器的计时符合第二预设条件时,生成第二触发条件。When the timing of the capacity timer meets the second preset condition, a second trigger condition is generated.

进一步的,在检测到目标数据存储区间的更新容量的触发条件之后,所述方法还包括:Further, after detecting the triggering condition of the update capacity of the target data storage interval, the method further includes:

若确定所述触发条件包括第一触发条件,且所述目标数据存储区间首次达到第一触发条件,则基于目标数据存储区间中的各数据的存储时间对数据存储空间容量进行更新操作,并激活时间触发机制工作,以在激活后基于预设时间规则生成第二触发条件。If it is determined that the trigger condition includes the first trigger condition, and the target data storage interval reaches the first trigger condition for the first time, the data storage space capacity is updated based on the storage time of each data in the target data storage interval, and activated The time trigger mechanism works to generate a second trigger condition based on a preset time rule after activation.

进一步的,在检测到目标数据存储区间的更新容量的触发条件之前,所述方法还包括:Further, before detecting the triggering condition of the update capacity of the target data storage interval, the method further includes:

将待存储的数据存储在目标数据存储区间;其中,所述待存储的数据包括标记字段,所述标记字段用于存储标记数值;storing the data to be stored in the target data storage interval; wherein, the data to be stored includes a marker field, and the marker field is used to store a marker value;

相应的,基于预设规则从目标数据存储区间中的各数据中确定待删除数据,包括:Correspondingly, the data to be deleted is determined from each data in the target data storage interval based on the preset rules, including:

基于各数据的标记字段的标记数值确定待删除数据。The data to be deleted is determined based on the tag value of the tag field of each data.

进一步的,在基于各数据的标记字段的标记数值确定待删除数据之前,所述方法还包括:Further, before determining the data to be deleted based on the marked value of the marked field of each data, the method further includes:

生成标记数值记录表;Generate mark value record table;

相应的,基于各数据的标记字段的标记数值确定待删除数据,包括:Correspondingly, the data to be deleted is determined based on the marked value of the marked field of each data, including:

基于记录表中的标记数值确定待删除数据,并在删除数据之后更新所述记录表。The data to be deleted is determined based on the marked value in the record table, and the record table is updated after the data is deleted.

进一步的,在生成标记数值记录表之后,所述方法还包括:根据所述记录表中标记数值的数量确定所述第一触发条件是否有效;其中,若所述数量超过配额数量阈值,则确定所述第一触发条件有效,若所述数量未超过配额数量阈值,则确定所述第一触发条件无效。Further, after generating the marked value record table, the method further includes: determining whether the first trigger condition is valid according to the number of marked values in the record table; wherein, if the number exceeds the quota number threshold, determining The first trigger condition is valid, and if the quantity does not exceed the quota quantity threshold, it is determined that the first trigger condition is invalid.

第二方面,本申请实施例提供了一种数据存储空间管理装置,该装置包括:In a second aspect, an embodiment of the present application provides a data storage space management device, the device comprising:

触发条件判断模块,用于若检测到目标数据存储区间的更新容量的触发条件,则确定所述触发条件是否同时包括第一触发条件和第二触发条件;其中,所述第一触发条件包括基于容量空间生成的触发条件,第二触发条件包括基于预设时间规则生成的触发条件;The trigger condition judgment module is configured to determine whether the trigger condition includes a first trigger condition and a second trigger condition at the same time if the trigger condition of the update capacity of the target data storage interval is detected; wherein, the first trigger condition includes based on a trigger condition generated by the capacity space, and the second trigger condition includes a trigger condition generated based on a preset time rule;

数据删除模块,用于若所述触发条件判断模块判断为同时包括第一触发条件和第二触发条件,则基于预设规则从目标数据存储区间中的各数据中确定待删除数据,并对所述待删除数据进行删除操作。A data deletion module, configured to determine the data to be deleted from each data in the target data storage interval based on a preset rule if the trigger condition judgment module determines that both the first trigger condition and the second trigger condition are included, and perform a Delete the data to be deleted.

进一步的,所述第一触发条件的得到方式包括:Further, the method for obtaining the first trigger condition includes:

根据目标数据存储区间的剩余容量空间与待存储数据容量需求的大小关系,确定是否符合第一预设条件;Determine whether the first preset condition is met according to the size relationship between the remaining capacity space of the target data storage interval and the capacity requirement of the data to be stored;

若是,则生成第一触发条件。If so, a first trigger condition is generated.

进一步的,所述第二触发条件的得到方式包括:Further, the method for obtaining the second trigger condition includes:

根据目标数据存储区间的剩余容量空间,以及根据所述目标数据存储区间的数据存储速率,确定所述目标数据存储区间的容量计时器;Determine the capacity timer of the target data storage section according to the remaining capacity space of the target data storage section and according to the data storage rate of the target data storage section;

当所述容量计时器的计时符合第二预设条件时,生成第二触发条件。When the timing of the capacity timer meets the second preset condition, a second trigger condition is generated.

进一步的,所述装置还包括:Further, the device also includes:

第二触发条件激活模块,用于若确定所述触发条件包括第一触发条件,且所述目标数据存储区间首次达到第一触发条件,则基于目标数据存储区间中的各数据的存储时间对数据存储空间容量进行更新操作,并激活时间触发机制工作,以在激活后基于预设时间规则生成第二触发条件。The second trigger condition activation module is configured to: if it is determined that the trigger condition includes the first trigger condition, and the target data storage interval reaches the first trigger condition for the first time, then based on the storage time of each data in the target data storage interval The storage space capacity is updated, and the activation time trigger mechanism works, so as to generate a second trigger condition based on a preset time rule after activation.

进一步的,所述装置还包括:Further, the device also includes:

数据标记模块,用于将待存储的数据存储在目标数据存储区间;其中,所述待存储的数据包括标记字段,所述标记字段用于存储标记数值;a data labeling module, used for storing the data to be stored in the target data storage interval; wherein, the data to be stored includes a label field, and the label field is used to store the label value;

相应的,所述数据删除模块具体用于:Correspondingly, the data deletion module is specifically used for:

基于各数据的标记字段的标记数值确定待删除数据。The data to be deleted is determined based on the tag value of the tag field of each data.

进一步的,所述装置还包括:Further, the device also includes:

记录表生成模块,用于生成标记数值记录表;The record table generation module is used to generate the mark value record table;

相应的,所述数据删除模块具体用于:Correspondingly, the data deletion module is specifically used for:

基于记录表中的标记数值确定待删除数据,并在删除数据之后更新所述记录表。The data to be deleted is determined based on the marked value in the record table, and the record table is updated after the data is deleted.

进一步的,在生成标记数值记录表之后,所述方法还包括:Further, after generating the marked value record table, the method further includes:

根据所述记录表中标记数值的数量确定所述第一触发条件是否有效;其中,若所述数量超过配额数量阈值,则确定所述第一触发条件有效,若所述数量未超过配额数量阈值,则确定所述第一触发条件无效。Whether the first trigger condition is valid is determined according to the number of marked values in the record table; wherein, if the quantity exceeds the quota quantity threshold, it is determined that the first trigger condition is valid, and if the quantity does not exceed the quota quantity threshold , it is determined that the first trigger condition is invalid.

第三方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请实施例所述的数据存储空间管理方法。In a third aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the data storage space management method described in the embodiment of the present application.

第四方面,本申请实施例提供了一种电子设备,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现如本申请实施例所述的数据存储空间管理方法。In a fourth aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executed by the processor, and the processor executes the computer program to achieve the implementation of the present application The data storage space management method described in the example.

本申请实施例所提供的技术方案,若检测到目标数据存储区间的更新容量的触发条件,则确定所述触发条件是否同时包括第一触发条件和第二触发条件;其中,所述第一触发条件包括基于容量空间生成的触发条件,第二触发条件包括基于预设时间规则生成的触发条件;若同时包括第一触发条件和第二触发条件,则基于预设规则从目标数据存储区间中的各数据中确定待删除数据,并对所述待删除数据进行删除操作。通过采用本申请所提供的技术方案,实现可以根据需求对存储数据进行有效管理,增长数据的保存时间的同时不影响存储设备对新来数据的存储能力的效果。In the technical solutions provided by the embodiments of the present application, if a trigger condition for the update capacity of the target data storage interval is detected, it is determined whether the trigger condition includes both a first trigger condition and a second trigger condition; wherein, the first trigger condition The condition includes a trigger condition generated based on the capacity space, and the second trigger condition includes a trigger condition generated based on a preset time rule; if the first trigger condition and the second trigger condition are included at the same time, based on the preset rule, from the target data storage interval. The data to be deleted is determined in each data, and the deletion operation is performed on the to-be-deleted data. By adopting the technical solution provided by the present application, the effect of effectively managing the stored data according to the requirements, increasing the storage time of the data and not affecting the storage capability of the storage device for the newly incoming data is achieved.

附图说明Description of drawings

图1是本申请实施例提供的数据存储空间管理的示意图。;FIG. 1 is a schematic diagram of data storage space management provided by an embodiment of the present application. ;

图2是本申请实施例一提供的数据存储空间管理方法的流程图;2 is a flowchart of a data storage space management method provided in Embodiment 1 of the present application;

图3是本申请实施例二提供的数据管理示意图;3 is a schematic diagram of data management provided in Embodiment 2 of the present application;

图4是本申请实施例二提供的生成记录表的示意图;4 is a schematic diagram of a generation record table provided by Embodiment 2 of the present application;

图5是本申请实施例二提供的数据存储空间管理方法的示意图;5 is a schematic diagram of a data storage space management method provided in Embodiment 2 of the present application;

图6是本申请实施例三提供的数据存储空间管理装置的结构示意图;6 is a schematic structural diagram of a data storage space management device provided in Embodiment 3 of the present application;

图7是本申请实施例五提供的一种电子设备的结构示意图。FIG. 7 is a schematic structural diagram of an electronic device according to Embodiment 5 of the present application.

具体实施方式Detailed ways

下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all the structures related to the present application.

在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in greater detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowchart depicts the steps as a sequential process, many of the steps may be performed in parallel, concurrently, or concurrently. Furthermore, the order of the steps can be rearranged. The process may be terminated when its operation is complete, but may also have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, subroutines, and the like.

图1是本申请实施例提供的数据存储空间管理的示意图。如图1所示,IPC的录像数据在CLU1中均分存储在各个CDV上,每个CDV只负责管理本台服务器上的录像数据,以CDV1为例:CDV的元数据管理以POL池为单位,每20min检查一次,当检测到POL池的总剩余容量不能满足任何一个USR的存储时,则向DN上报容量不足请求,触发删除机制,开始逐个检查POL池下的每个USR的剩余容量。当检测到USR容量不足时,DN按照当前USR中存储录像数据创建时间的先后顺序删除最老文件(如图中删除Time1的元数据,但是前提是获取该USR下所有数据进行排序,再删除最老时间的数据),并更新容量。FIG. 1 is a schematic diagram of data storage space management provided by an embodiment of the present application. As shown in Figure 1, the recording data of IPC is evenly stored on each CDV in CLU1, and each CDV is only responsible for managing the recording data on its own server. Take CDV1 as an example: the metadata management of CDV takes the POL pool as the unit , check every 20 minutes, when it is detected that the total remaining capacity of the POL pool cannot meet the storage of any USR, it will report the insufficient capacity request to the DN, trigger the deletion mechanism, and start to check the remaining capacity of each USR under the POL pool one by one. When it is detected that the capacity of the USR is insufficient, DN deletes the oldest file in the order of the creation time of the stored video data in the current USR (delete the metadata of Time1 as shown in the figure, but the premise is to obtain all the data under the USR and sort, and then delete the oldest file. old time data), and update the capacity.

其中,名词示意如下:Among them, the nouns are indicated as follows:

CDM:元数据管理服务器,提供元数据集群管理服务。CDM: Metadata management server, which provides metadata cluster management services.

CDV:存储节点管理服务器。CDV: Storage Node Management Server.

CLU:存储集群管理单位,包含多个CDV,负责数据的均衡存储。CLU: Storage cluster management unit, including multiple CDVs, responsible for the balanced storage of data.

VM:监控业务管理服务器,负责各种监控业务的管理服务。VM: Monitoring business management server, responsible for various monitoring business management services.

DN:数据节点。管理资源以及负责数据的读写控制。DN: Data Node. Manages resources and is responsible for read and write control of data.

POL:策略池,提供数据存储的虚拟化资源池,主要作用是将底层磁盘阵列提供的资源虚拟化,可由上层业务进行调度和管理。POL: Policy pool, which provides a virtualized resource pool for data storage. Its main function is to virtualize the resources provided by the underlying disk array, which can be scheduled and managed by upper-layer services.

IPC:IP Camera网络摄像机。是IP视频监控及高清视频监控发展的趋势。IPC的功能是将摄像机和编码器进行整合,把模拟的视频、音频信号进行数字化和压缩编码,形成IP数据包,利用网络传送到指定的目的地址。IPC: IP Camera network camera. It is the development trend of IP video surveillance and high-definition video surveillance. The function of IPC is to integrate the camera and the encoder, digitize and compress the analog video and audio signals, form IP data packets, and transmit them to the specified destination address using the network.

USR:IPC的虚拟写入地址,绑定在POL池上,并在POL上虚拟一块内存和路径,负责IPC写入数据的存储。USR: The virtual write address of the IPC, bound to the POL pool, and a virtual block of memory and path on the POL, responsible for the storage of the data written by the IPC.

由此可见,目前的方案的做法存在如下几个问题:From this, it can be seen that the current approach has the following problems:

1.随着多元化数据存储的接入,USR的存储容量依赖于容量的获取和上层软件的计算,当计算错误或者获取的容量不可靠时,则DN可能在USR实际容量充足情况下删除录像数据,造成对应相机实际留存期缩短的问题;1. With the access of diversified data storage, the storage capacity of USR depends on the acquisition of capacity and the calculation of upper-layer software. When the calculation is wrong or the acquired capacity is unreliable, the DN may delete the video when the actual capacity of the USR is sufficient. data, resulting in the shortening of the actual retention period of the corresponding camera;

2.当DN清理USR时,DN会提前将该USR下所有数据获取并进行排序,如果存在大量数据时,DN会占用较多的内存,且排序处理耗时较长,对于服务器性能影响较大;2. When the DN cleans up the USR, the DN will obtain and sort all the data under the USR in advance. If there is a large amount of data, the DN will occupy a lot of memory, and the sorting process will take a long time, which will have a great impact on the server performance. ;

3.DN以录像数据的创建时间为基础排序(存储时以服务器时间为时间戳记录了数据创建时间),当服务器发生时间跳变时,DN会优先删除发生时间跳变的录像,排序方式不合理,影响录像数据的连续性。3. The DN is sorted based on the creation time of the video data (the data creation time is recorded with the server time as the timestamp during storage). When the server time jumps, the DN will first delete the video with the time jump, and the sorting method is different. Reasonable, affecting the continuity of video data.

针对上述方案及其存在的技术问题,本申请提供了如下技术方案。In view of the above solutions and the existing technical problems, the present application provides the following technical solutions.

实施例一Example 1

图2是本申请实施例一提供的数据存储空间管理方法的流程图,本实施例可适用于数据存储空间的监控和管理的情况,该方法可以由本申请实施例所提供的数据存储空间管理装置执行,该装置可以由软件和/或硬件的方式来实现,并可集成于智能终端等电子设备中。FIG. 2 is a flowchart of a data storage space management method provided in Embodiment 1 of the present application. This embodiment is applicable to the monitoring and management of data storage space. The method can be implemented by the data storage space management device provided by the embodiment of the present application For execution, the apparatus can be implemented by software and/or hardware, and can be integrated into electronic devices such as smart terminals.

如图2所示,所述数据存储空间管理方法包括:As shown in Figure 2, the data storage space management method includes:

S210、若检测到目标数据存储区间的更新容量的触发条件,则确定所述触发条件是否同时包括第一触发条件和第二触发条件;其中,所述第一触发条件包括基于容量空间生成的触发条件,第二触发条件包括基于预设时间规则生成的触发条件。S210. If a trigger condition for updating the capacity of the target data storage interval is detected, determine whether the trigger condition includes both a first trigger condition and a second trigger condition; wherein the first trigger condition includes a trigger generated based on the capacity space condition, and the second trigger condition includes a trigger condition generated based on a preset time rule.

其中,目标数据存储区间可以是用来进行数据存储的硬件设备或者该硬件设备的特定某一部分存储区间,如硬盘、移动磁盘、网盘或者服务器的存储区间等。由于目标数据存储区间是有限的,而在类似于视频监控等数据的存储过程中,数据会不断的被传输过来进行保存,这就会给固定的存储区间带来存储压力。为了能够对数据进行正常的保存,在所存储的数据占据存储区间一定比例后,会需要对以往存储的数据做删除处理。由于删除后会导致存储区间剩余容量的更新,所以更新容量的触发条件可以是存储区间符合需要删除以往存储数据的条件。The target data storage area may be a hardware device used for data storage or a specific part of the storage area of the hardware device, such as a hard disk, a mobile disk, a network disk, or a storage area of a server. Since the target data storage area is limited, in the storage process of data similar to video surveillance, the data will be continuously transmitted and saved, which will bring storage pressure to the fixed storage area. In order to save the data normally, after the stored data occupies a certain proportion of the storage area, it is necessary to delete the previously stored data. Since the remaining capacity of the storage section will be updated after deletion, the triggering condition for updating the capacity may be that the storage section meets the condition that the previously stored data needs to be deleted.

以存储监控摄像数据为例,如果该数据是以每十分钟所录制的视频作为一个数据进行存储,则每小时会生成六个数据。在持续录制的过程中,存储区间每十分钟接收到一个数据进行存储,则可以根据每十分钟录制的视频的数据大小,来确定什么时候需要更新容量。示例性的,可以在存储量达到90%时对数据进行更新,也可以在接收到视频数据之后,经过判断确定存储区间当前所剩余的容量已经不足以存储该视频数据,则需要进行更新。Taking the storage of surveillance camera data as an example, if the data is stored as one piece of video recorded every ten minutes, six pieces of data will be generated every hour. In the process of continuous recording, the storage area receives a piece of data every ten minutes for storage, and you can determine when the capacity needs to be updated according to the data size of the video recorded every ten minutes. Exemplarily, the data can be updated when the storage capacity reaches 90%, or after video data is received, it is determined that the current remaining capacity in the storage section is not enough to store the video data, and then the update needs to be performed.

在本实施例中,第一触发条件是基于容量空间生成的触发条件,如上述两种示例,都是基于容量空间生成的触发条件。除此之外,所述触发条件还可以包括第二触发条件。其中,第二触发条件是基于预设时间规则生成的触发条件,示例性的,可以是每隔预设时间对存储区间容量进行一次更新。In this embodiment, the first trigger condition is a trigger condition generated based on the capacity space. For example, in the above two examples, both are trigger conditions generated based on the capacity space. Besides, the trigger condition may further include a second trigger condition. The second trigger condition is a trigger condition generated based on a preset time rule, and exemplarily, the storage interval capacity may be updated every preset time.

S220、若同时包括第一触发条件和第二触发条件,则基于预设规则从目标数据存储区间中的各数据中确定待删除数据,并对所述待删除数据进行删除操作。S220. If both the first trigger condition and the second trigger condition are included, determine the data to be deleted from each data in the target data storage interval based on a preset rule, and perform a deletion operation on the to-be-deleted data.

其中,当触发条件同时包括第一触发条件和第二触发条件,则可以执行对数据存储区间的容量更新操作,具体的,可以包括从目标数据存储区间中的各数据中确定待删除数据,并对所述待删除数据进行删除操作。Wherein, when the trigger condition includes both the first trigger condition and the second trigger condition, the capacity update operation on the data storage interval can be performed. Specifically, it can include determining the data to be deleted from the data in the target data storage interval, and A deletion operation is performed on the to-be-deleted data.

其中,基于预设规则,可以是基于数据在存储区间的时长,或者基于数据存储时的时间戳的先后顺序。示例性的,当同时满足第一触发条件和第二触发条件,则可以将最早存储的数据删除,从而扩大剩余容量,以对接收到的数据进行存储。本实施例这样设置的好处是可以避免基于空间来确定是否需要进行更新容量时,会存在读取当前容量错误或者无法读取数据导致的无法保证新传输来的数据正常存储,或者没有到必须删除时就将以往存储的数据删除掉,缩短对数据的存储时长,影响数据内容的回放。Wherein, based on the preset rule, it may be based on the duration of the data in the storage interval, or based on the sequence of time stamps when the data is stored. Exemplarily, when both the first trigger condition and the second trigger condition are satisfied, the earliest stored data may be deleted, thereby expanding the remaining capacity to store the received data. The advantage of this setting in this embodiment is that when determining whether to update the capacity based on space, there will be errors in reading the current capacity or the inability to read the data, which cannot guarantee the normal storage of the newly transmitted data, or if it is not necessary to delete it When the data is stored in the past, the data stored in the past will be deleted, the storage time of the data will be shortened, and the playback of the data content will be affected.

本申请实施例所提供的技术方案,若检测到目标数据存储区间的更新容量的触发条件,则确定所述触发条件是否同时包括第一触发条件和第二触发条件;其中,所述第一触发条件包括基于容量空间生成的触发条件,第二触发条件包括基于预设时间规则生成的触发条件;若同时包括第一触发条件和第二触发条件,则基于预设规则从目标数据存储区间中的各数据中确定待删除数据,并对所述待删除数据进行删除操作。通过采用本申请所提供的技术方案,实现可以根据需求对存储数据进行有效管理,增长数据的保存时间的同时不影响存储设备对新来数据的存储能力的效果。In the technical solutions provided by the embodiments of the present application, if a trigger condition for the update capacity of the target data storage interval is detected, it is determined whether the trigger condition includes both a first trigger condition and a second trigger condition; wherein, the first trigger condition The condition includes a trigger condition generated based on the capacity space, and the second trigger condition includes a trigger condition generated based on a preset time rule; if the first trigger condition and the second trigger condition are included at the same time, based on the preset rule, from the target data storage interval. The data to be deleted is determined in each data, and the deletion operation is performed on the to-be-deleted data. By adopting the technical solution provided by the present application, the effect of effectively managing the stored data according to the requirements, increasing the storage time of the data and not affecting the storage capability of the storage device for the newly incoming data is achieved.

在上述技术方案的基础上,可选的,所述第一触发条件的得到方式包括:根据目标数据存储区间的剩余容量空间与待存储数据容量需求的大小关系,确定是否符合第一预设条件;若是,则生成第一触发条件。确定目标数据存储区间的剩余容量空间与待存储数据容量需求的大小关系,若剩余容量空间已经小于待存储数据容量需求,则生成第一触发条件,若大于,则不生成。本技术方案这样设置的好处是可以保证对目标数据存储区间的充分利用,以提高对于数据存储的时间长度。On the basis of the above technical solution, optionally, the method for obtaining the first trigger condition includes: determining whether the first preset condition is met according to the size relationship between the remaining capacity space of the target data storage interval and the capacity requirement of the data to be stored ; if so, generate the first trigger condition. Determine the size relationship between the remaining capacity space of the target data storage interval and the capacity requirement of the data to be stored. If the remaining capacity space is already smaller than the capacity requirement of the data to be stored, the first trigger condition is generated, and if it is greater, the first trigger condition is not generated. The advantage of this technical solution is that the target data storage interval can be fully utilized, so as to increase the time length of data storage.

在上述各技术方案的基础上,可选的,所述第二触发条件的得到方式包括:根据目标数据存储区间的剩余容量空间,以及根据所述目标数据存储区间的数据存储速率,确定所述目标数据存储区间的容量计时器;当所述容量计时器的计时符合第二预设条件时,生成第二触发条件。其中,目标数据存储区间的数据存储速率,可以是根据历史存储数据统计得到的,例如针对目标数据存储区间来说,可能其存储有五个摄像头录制的视频信息,每个摄像头每三十分钟存储一次视频数据,这样,可以根据每存储一次视频数据的大小,确定该目标存储区间的数据存储速率。进而,再根据剩余容量空间的大小,确定需要多长时间会导致该剩余容量空间不足以存储新的数据,这种情况下,就可以生成第二触发条件。在本实施例中,可以以容量计时器的方式,确定当达到计时器的某一个特定数值时,就生成第二触发条件。本技术方案这样设置的好处是可以避免由于只根据空间来决定是否触发更新容量的操作,存在容量计算数据不准确的问题,从而提高了对于数据存储空间的管理效果。On the basis of the above technical solutions, optionally, the method for obtaining the second trigger condition includes: determining the A capacity timer of the target data storage interval; when the timing of the capacity timer meets the second preset condition, a second trigger condition is generated. Among them, the data storage rate of the target data storage interval can be obtained according to the statistics of historical storage data. For example, for the target data storage interval, it may store video information recorded by five cameras, and each camera stores it every 30 minutes. In this way, the data storage rate of the target storage section can be determined according to the size of the video data stored each time. Furthermore, according to the size of the remaining capacity space, it is determined how long it will take to cause the remaining capacity space to be insufficient to store new data. In this case, a second trigger condition can be generated. In this embodiment, it can be determined in the form of a capacity timer that when a certain specific value of the timer is reached, the second trigger condition is generated. The advantage of this technical solution is that it can avoid the problem of inaccurate capacity calculation data due to only determining whether to trigger the operation of updating the capacity based on the space, thereby improving the management effect of the data storage space.

在上述各技术方案的基础上,可选的,在检测到目标数据存储区间的更新容量的触发条件之后,所述方法还包括:若确定所述触发条件包括第一触发条件,且所述目标数据存储区间首次达到第一触发条件,则基于目标数据存储区间中的各数据的存储时间对数据存储空间容量进行更新操作,并激活时间触发机制工作,以在激活后基于预设时间规则生成第二触发条件。在本方案中,可能存在着一种状况,就是当目标存储区间的数据内容还没有存满时,是无需对存储效率进行控制的。因此,可以通过确定第一触发条件是否为首次,若是,则可以直接执行对容量的更新操作,并激活时间触发机制工作,以在激活后当满足预设时间规则时生成第二触发条件。其中预设时间规则可以是在激活后,计时达到1小时则确定满足预设时间规则。若第一触发条件并不是首次,则说明已经生成过第一触发条件,则只有同时接收到第一触发条件和第二触发条件,才能够更新目标存储区间的数据容量。本技术方案这样设置的好处是即保证了对于数据存储的空间管理的有效进行,还能够保证所执行的容量更新操作是准确的。On the basis of the above technical solutions, optionally, after detecting a triggering condition for the update capacity of the target data storage interval, the method further includes: if it is determined that the triggering condition includes a first triggering condition, and the target When the data storage interval reaches the first trigger condition for the first time, the data storage space capacity is updated based on the storage time of each data in the target data storage interval, and the time trigger mechanism is activated to generate the first trigger based on the preset time rule after activation. Two trigger conditions. In this solution, there may be a situation that when the data content of the target storage interval is not full, there is no need to control the storage efficiency. Therefore, it can be determined whether the first trigger condition is the first time, and if so, the capacity update operation can be directly performed, and the time trigger mechanism can be activated to generate the second trigger condition when the preset time rule is satisfied after activation. The preset time rule may be that after activation, it is determined that the preset time rule is satisfied when the timer reaches 1 hour. If the first trigger condition is not the first time, it means that the first trigger condition has been generated, and the data capacity of the target storage interval can be updated only when the first trigger condition and the second trigger condition are simultaneously received. The advantage of this technical solution is that the space management for data storage is ensured effectively, and the capacity update operation performed is accurate.

在上述各技术方案的基础上,可选的,在检测到目标数据存储区间的更新容量的触发条件之前,所述方法还包括:将待存储的数据存储在目标数据存储区间;其中,所述待存储的数据包括标记字段,所述标记字段用于存储标记数值;相应的,基于预设规则从目标数据存储区间中的各数据中确定待删除数据,包括:基于各数据的标记字段的标记数值确定待删除数据。其中,可以是在数据生成时带有标记字段,还可以是数据存储时为数据设置标记字段,用于标记数值,示例性的,如果是首个存储的数据,可以标记为0000,下一个为0001,以此类推。则在对数据进行删除操作时,可以根据标记数值确定那个数据是最早存储的,继而确定为待删除数据。在本技术方案中,可选的,可以把系统的日期也记录进来,则可以在需要删除数据时,首先根据日期来确定最早存储的一批数据,进而根据标记数值来确定待删除数据。这样可以更加快速的确定待删除数据。同时可以避免由于系统时间或者设备原因导致的存储时间跳跃或者回调系统时间的情况下,使得后存储的数据被优先删除,影响数据内容的回放。On the basis of the above technical solutions, optionally, before detecting the triggering condition for the update capacity of the target data storage interval, the method further includes: storing the data to be stored in the target data storage interval; wherein, the The data to be stored includes a mark field, and the mark field is used to store the mark value; correspondingly, the data to be deleted is determined from each data in the target data storage interval based on a preset rule, including: a mark based on the mark field of each data The value determines the data to be deleted. Among them, it can be a marked field when the data is generated, or a marked field is set for the data when the data is stored, which is used to mark the value. For example, if it is the first stored data, it can be marked as 0000, and the next one is 0001, and so on. Then, when the data is deleted, it can be determined according to the marked value which data is the earliest stored data, and then determined as the data to be deleted. In this technical solution, optionally, the date of the system can also be recorded, and when data needs to be deleted, the earliest stored batch of data can be first determined according to the date, and then the data to be deleted can be determined according to the marked value. In this way, the data to be deleted can be determined more quickly. At the same time, it can avoid the storage time jumping or recalling the system time due to system time or device reasons, so that the later stored data is preferentially deleted, which affects the playback of data content.

在上述技术方案的基础上,可选的,在基于各数据的标记字段的标记数值确定待删除数据之前,所述方法还包括:生成标记数值记录表;相应的,基于各数据的标记字段的标记数值确定待删除数据,包括:基于记录表中的标记数值确定待删除数据,并在删除数据之后更新所述记录表。其中,在记录表可以是单独存储的,可以在需要确定待删除数据时,读取记录表并确定待删除数据的标记数值,进而确定待删除数据。其中记录表中所记录的内容可以包括标记数值。在删除数据之后,可以对数据表中的编号进行更新,例如,可以在删除编号为0000的数据之后,将0000编号从记录表中删除,则删除后最早存储的数据的编号数值为0001。在本实施例中,记录表可以是一张总表,也可以是按照日期进行划分的,即每一天都生成一张记录表,还可以采用其他方式灵活设置。这样设置的好处是只根据记录表中的标记数值就能够确定待删除数据,简便快捷。On the basis of the above technical solution, optionally, before determining the data to be deleted based on the marked value of the marked field of each data, the method further includes: generating a marked value record table; correspondingly, based on the marked value of each data's marked field Determining the data to be deleted by the marked value includes: determining the data to be deleted based on the marked value in the record table, and updating the record table after the data is deleted. Wherein, the record table may be stored separately, and when the data to be deleted needs to be determined, the record table may be read to determine the mark value of the data to be deleted, and then the data to be deleted may be determined. The content recorded in the record table may include the marked value. After deleting the data, the number in the data table can be updated. For example, after deleting the data with the number 0000, the number 0000 can be deleted from the record table, and the number value of the earliest stored data after deletion is 0001. In this embodiment, the record table may be a general table, or may be divided according to date, that is, a record table is generated every day, and other methods may also be used to flexibly set. The advantage of this setting is that the data to be deleted can be determined only according to the marked value in the record table, which is simple and quick.

在上述各技术方案的基础上,可选的,在生成标记数值记录表之后,所述方法还包括:根据所述记录表中标记数值的数量确定所述第一触发条件是否有效;其中,若所述数量超过配额数量阈值,则确定所述第一触发条件有效,若所述数量未超过配额数量阈值,则确定所述第一触发条件无效。其中,例如配额数量阈值为100,则在接收到第一触发条件之后,可以根据记录表中所记录的标记数值的数量,来确定该第一触发条件是否有效,示例性的若超过100,则为为有效,若未超过100,则为无效。这样设置的好处是可以基于记录表中的标记数值的数量,来从侧面反映出目标存储区间中存储的数据量的多少,避免了因为存储容量读取失误导致的还没有达到需要删除数据的情况下,却接收到第一触发条件,执行了对数据的删除操作,从而影响数据的保存时长。On the basis of the above technical solutions, optionally, after generating the marked value record table, the method further includes: determining whether the first trigger condition is valid according to the number of marked values in the record table; wherein, if If the quantity exceeds the quota quantity threshold, it is determined that the first trigger condition is valid, and if the quantity does not exceed the quota quantity threshold, it is determined that the first trigger condition is invalid. Wherein, for example, the quota quantity threshold is 100, after receiving the first trigger condition, whether the first trigger condition is valid can be determined according to the number of marked values recorded in the record table. Exemplarily, if it exceeds 100, then is valid, if it does not exceed 100, it is invalid. The advantage of this setting is that the amount of data stored in the target storage interval can be reflected from the side based on the number of marked values in the record table, avoiding the situation where the data has not yet reached the need to delete data due to errors in reading the storage capacity. However, the first trigger condition is received, and the data deletion operation is performed, thereby affecting the storage time of the data.

实施例二Embodiment 2

为了能够让本领域技术人员更加准确的了解本申请所提供的技术方案,本申请还提供了一种优选的实施方式。In order to enable those skilled in the art to more accurately understand the technical solutions provided by the present application, the present application also provides a preferred embodiment.

图3是本申请实施例二提供的数据管理示意图。如图3所示,其中,名词示意如下:FIG. 3 is a schematic diagram of data management provided by Embodiment 2 of the present application. As shown in Figure 3, the nouns are indicated as follows:

CDM:元数据管理服务器,提供元数据集群管理服务。CDM: Metadata management server, which provides metadata cluster management services.

CDV:存储节点管理服务器。CDV: Storage Node Management Server.

CLU:存储集群管理单位,包含多个CDV,负责数据的均衡存储。CLU: Storage cluster management unit, including multiple CDVs, responsible for the balanced storage of data.

VM:监控业务管理服务器,负责各种监控业务的管理服务。VM: Monitoring business management server, responsible for various monitoring business management services.

DN:数据节点。管理资源以及负责数据的读写控制。DN: Data Node. Manages resources and is responsible for read and write control of data.

POL:策略池。提供不同策略的虚拟化池。主要作用是将底层的LV资源虚拟化POL: Policy Pool. Provides virtualized pools of different policies. The main function is to virtualize the underlying LV resources

IPC:IP Camera网络摄像机。是IP视频监控及高清视频监控发展的趋势。IPC的功能是将摄像机和编码器进行整合,把模拟的视频、音频信号进行数字化和压缩编码,形成IP数据包,利用网络传送到指定的目的地址。IPC: IP Camera network camera. It is the development trend of IP video surveillance and high-definition video surveillance. The function of IPC is to integrate the camera and the encoder, digitize and compress the analog video and audio signals, form IP data packets, and transmit them to the specified destination address using the network.

USR:IPC的虚拟写入地址,绑定在POL池上,并在POL上虚拟一块内存和路径,负责IPC写入数据的存储。USR: The virtual write address of the IPC, bound to the POL pool, and a virtual block of memory and path on the POL, responsible for the storage of the data written by the IPC.

本发明基于原有元数据基础管理模式进行改进与优化增加和修改以下三个部分内容:The present invention improves and optimizes based on the original metadata basic management mode, adds and modifies the following three parts:

(1)修改元数据存储的文件格式,在原有的文件格式上再增加编号字段,按照文件创建的先后顺序进行编号。同时增加记录表,以天为单元记录每天文件的起止编号;(1) Modify the file format of metadata storage, add a number field to the original file format, and number the files in the order in which they were created. At the same time, a record table is added to record the start and end numbers of each day's files in units of days;

(2)修改删除机制,删除最老文件不再进行排序,而是直接访问存储时生成的记录表,根据起始编码查找最老文件,节省排序时间,并且消除排序对录像数据创建时间的依赖性;(2) Modify the deletion mechanism, delete the oldest file without sorting, but directly access the record table generated during storage, find the oldest file according to the starting code, save sorting time, and eliminate the dependence of sorting on the creation time of video data sex;

(3)修改元数据正常存储过程中的删除触发机制,在原有的只以容量不足为判断依据的基础上,增加容量需求定时器,在删除频次上再次确保删除需求的合理性,防止容量计算错误触发的不合理删除请求。(3) Modify the deletion trigger mechanism in the normal storage process of metadata. On the basis of the original judgment based on insufficient capacity, increase the capacity demand timer to ensure the rationality of deletion requirements in terms of deletion frequency and prevent capacity calculation. Unreasonable delete requests triggered by errors.

图4是本申请实施例二提供的生成记录表的示意图。如图4所示,当DN删除USR的最老文件时,直接查取记录表中USR的第一条记录(最先插入的记录),根据USR、日期(Day)以及StartNum信息,直接找到并删除对应的录像数据,然后更新StartNum。如果该天的录像数据已经被删除完,则在数据表中删除该天的记录。FIG. 4 is a schematic diagram of a generation record table provided by Embodiment 2 of the present application. As shown in Figure 4, when the DN deletes the oldest file of the USR, it directly searches the first record (the first inserted record) of the USR in the record table, and directly finds and uses the USR, date (Day) and StartNum information. Delete the corresponding recording data, and then update StartNum. If the recording data of the day has been deleted, delete the record of the day in the data table.

图5是本申请实施例二提供的数据存储空间管理方法的示意图。如图5所示,当USR容量不足发出告警,首先需要判定容量不足告警是否真实有效,如果判定有效,才会发给DN,否则不发送容量不足告警。判定依据是根据存储生成的记录表计算出当前USR已有多少个文件写入,根据文件数量判定是否已经达到配额容量阈值,如果超过配额容量阈值,则判定容量不足告警为有效,否则判定为无效,不发送给DN。FIG. 5 is a schematic diagram of a data storage space management method provided by Embodiment 2 of the present application. As shown in Figure 5, when an alarm is issued when the USR capacity is insufficient, it is first necessary to determine whether the insufficient capacity alarm is valid. If it is determined to be valid, it will be sent to the DN. The basis for determination is to calculate how many files have been written to the current USR according to the record table generated by the storage, and determine whether the quota capacity threshold has been reached according to the number of files. If the quota capacity threshold is exceeded, the insufficient capacity alarm is determined to be valid, otherwise it is determined to be invalid , do not send to DN.

起始时,容量需求定时器为关闭状态,当DN收到USR第一次有效的容量不足告警后,判断如果当前定时器为关闭状态,则直接进行容量处理操作,删除最老文件,更新USR容量,同时激活定时器,并给定时器设置初始时间。At the beginning, the capacity requirement timer is in the off state. When the DN receives the first valid capacity shortage alarm from the USR, it judges that if the current timer is in the off state, it directly performs the capacity processing operation, deletes the oldest file, and updates the USR. capacity, activate the timer at the same time, and set the initial time for the timer.

定时器激活后,当USR再次上报DN容量不足时,DN会判断定时器是否同样发出告警,如果此时定时器已经告警,则进行容量处理操作,删除最老文件,更新USR容量,初始化定时器的设定值;如果此时定时器未告警,则忽略不处理。After the timer is activated, when the USR reports that the DN capacity is insufficient again, the DN will determine whether the timer also issues an alarm. If the timer has already alarmed, the capacity processing operation will be performed, the oldest file will be deleted, the USR capacity will be updated, and the timer will be initialized. The set value of ; if the timer does not alarm at this time, it will be ignored and not processed.

根据当前最新一个文件存储的时间跨度,结合实验室测试数据的优化公式,计算出一个合理的数值作为定时器的设定值。According to the time span of the current latest file storage, combined with the optimization formula of laboratory test data, a reasonable value is calculated as the set value of the timer.

本申请所提供的技术方案,从“容量不足请求的有效性”和“容量需求频次”两方面着手,以同时满足时间和空间两个条件为基础,管理录像元数据的生命周期。当USR发出容量不足请求时,根据该容量请求的有效性,结合容量的需求速率的正确性,确保数据稳定有序的删除,双重保障元数据的存储周期。降低元数据管理对时间线的依赖,始终以先入先出的原则进行管理,从客观上确保元数据的合理更迭。The technical solution provided by this application starts from the two aspects of "validity of insufficient capacity request" and "frequency of capacity demand", and manages the life cycle of video metadata based on satisfying the two conditions of time and space at the same time. When the USR sends a capacity shortage request, according to the validity of the capacity request, combined with the correctness of the demand rate of the capacity, the data is deleted in a stable and orderly manner, and the storage period of the metadata is double guaranteed. Reduce the dependence of metadata management on the timeline, always manage according to the principle of first-in, first-out, and objectively ensure the reasonable change of metadata.

通过采用上述技术方案,元数据管理从时间和空间两方面着手,一方面会判定容量不足告警是否有效,防止容量获取“不可靠”时,发出错误告警;另一方面从容量需求频次上控制删除数据频率,让容量更新保持在一定的“速率”,从而有效的保护数据不会被其他异常情况触发删除。按照文件写入的先后顺序进行删除,不依赖服务器的时间线,当服务器发生时间跳变时,对于元数据的管理不受影响。By adopting the above technical solutions, metadata management starts from both time and space. On the one hand, it will determine whether the alarm for insufficient capacity is valid, preventing false alarms from being issued when the capacity acquisition is "unreliable"; on the other hand, it controls the deletion from the frequency of capacity demand. The data frequency keeps the capacity update at a certain "rate", so as to effectively protect the data from being deleted by other abnormal situations. Delete files in the order in which they are written, and does not depend on the server's timeline. When a time jump occurs on the server, the management of metadata is not affected.

实施例三Embodiment 3

图6是本申请实施例三提供的数据存储空间管理装置的结构示意图。如图6所示,所述数据存储空间管理装置,包括:FIG. 6 is a schematic structural diagram of a data storage space management apparatus provided in Embodiment 3 of the present application. As shown in Figure 6, the data storage space management device includes:

触发条件判断模块610,用于若检测到目标数据存储区间的更新容量的触发条件,则确定所述触发条件是否同时包括第一触发条件和第二触发条件;其中,所述第一触发条件包括基于容量空间生成的触发条件,第二触发条件包括基于预设时间规则生成的触发条件;The trigger condition judgment module 610 is configured to determine whether the trigger condition includes both the first trigger condition and the second trigger condition if the trigger condition of the update capacity of the target data storage interval is detected; wherein, the first trigger condition includes A trigger condition generated based on the capacity space, the second trigger condition includes a trigger condition generated based on a preset time rule;

数据删除模块620,用于若所述触发条件判断模块判断为同时包括第一触发条件和第二触发条件,则基于预设规则从目标数据存储区间中的各数据中确定待删除数据,并对所述待删除数据进行删除操作。The data deletion module 620 is configured to determine the data to be deleted from each data in the target data storage interval based on a preset rule if the trigger condition judgment module judges that both the first trigger condition and the second trigger condition are included, and to The data to be deleted is deleted.

本申请实施例所提供的技术方案,若检测到目标数据存储区间的更新容量的触发条件,则确定所述触发条件是否同时包括第一触发条件和第二触发条件;其中,所述第一触发条件包括基于容量空间生成的触发条件,第二触发条件包括基于预设时间规则生成的触发条件;若同时包括第一触发条件和第二触发条件,则基于预设规则从目标数据存储区间中的各数据中确定待删除数据,并对所述待删除数据进行删除操作。通过采用本申请所提供的技术方案,实现可以根据需求对存储数据进行有效管理,增长数据的保存时间的同时不影响存储设备对新来数据的存储能力的效果。In the technical solutions provided by the embodiments of the present application, if a trigger condition for the update capacity of the target data storage interval is detected, it is determined whether the trigger condition includes both a first trigger condition and a second trigger condition; wherein, the first trigger condition The condition includes a trigger condition generated based on the capacity space, and the second trigger condition includes a trigger condition generated based on a preset time rule; if the first trigger condition and the second trigger condition are included at the same time, based on the preset rule, from the target data storage interval. The data to be deleted is determined in each data, and the deletion operation is performed on the to-be-deleted data. By adopting the technical solution provided by the present application, the effect of effectively managing the stored data according to the requirements, increasing the storage time of the data and not affecting the storage capability of the storage device for the newly incoming data is achieved.

在上述各技术方案的基础上,可选的,所述第一触发条件的得到方式包括:On the basis of the above technical solutions, optionally, the method for obtaining the first trigger condition includes:

根据目标数据存储区间的剩余容量空间与待存储数据容量需求的大小关系,确定是否符合第一预设条件;Determine whether the first preset condition is met according to the size relationship between the remaining capacity space of the target data storage interval and the capacity requirement of the data to be stored;

若是,则生成第一触发条件。If so, a first trigger condition is generated.

在上述各技术方案的基础上,可选的,所述第二触发条件的得到方式包括:On the basis of the above technical solutions, optionally, the method for obtaining the second trigger condition includes:

根据目标数据存储区间的剩余容量空间,以及根据所述目标数据存储区间的数据存储速率,确定所述目标数据存储区间的容量计时器;Determine the capacity timer of the target data storage section according to the remaining capacity space of the target data storage section and according to the data storage rate of the target data storage section;

当所述容量计时器的计时符合第二预设条件时,生成第二触发条件。When the timing of the capacity timer meets the second preset condition, a second trigger condition is generated.

在上述各技术方案的基础上,可选的,所述装置还包括:On the basis of the above technical solutions, optionally, the device further includes:

第二触发条件激活模块,用于若确定所述触发条件包括第一触发条件,且所述目标数据存储区间首次达到第一触发条件,则基于目标数据存储区间中的各数据的存储时间对数据存储空间容量进行更新操作,并激活时间触发机制工作,以在激活后基于预设时间规则生成第二触发条件。The second trigger condition activation module is configured to: if it is determined that the trigger condition includes the first trigger condition, and the target data storage interval reaches the first trigger condition for the first time, then based on the storage time of each data in the target data storage interval The storage space capacity is updated, and the activation time trigger mechanism works, so as to generate a second trigger condition based on a preset time rule after activation.

在上述各技术方案的基础上,可选的,所述装置还包括:On the basis of the above technical solutions, optionally, the device further includes:

数据标记模块,用于将待存储的数据存储在目标数据存储区间;其中,所述待存储的数据包括标记字段,所述标记字段用于存储标记数值;a data labeling module, used for storing the data to be stored in the target data storage interval; wherein, the data to be stored includes a label field, and the label field is used to store the label value;

相应的,所述数据删除模块具体用于:Correspondingly, the data deletion module is specifically used for:

基于各数据的标记字段的标记数值确定待删除数据。The data to be deleted is determined based on the tag value of the tag field of each data.

在上述各技术方案的基础上,可选的,所述装置还包括:On the basis of the above technical solutions, optionally, the device further includes:

记录表生成模块,用于生成标记数值记录表;The record table generation module is used to generate the mark value record table;

相应的,所述数据删除模块具体用于:Correspondingly, the data deletion module is specifically used for:

基于记录表中的标记数值确定待删除数据,并在删除数据之后更新所述记录表。The data to be deleted is determined based on the marked value in the record table, and the record table is updated after the data is deleted.

上述产品可执行本申请任意实施例所提供的方法,具备执行方法相应的功能模块和有益效果。The above product can execute the method provided by any embodiment of the present application, and has functional modules and beneficial effects corresponding to the execution method.

实施例四Embodiment 4

本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种数据存储空间管理方法,该方法包括:Embodiments of the present application further provide a storage medium containing computer-executable instructions, where the computer-executable instructions are used to execute a data storage space management method when executed by a computer processor, and the method includes:

若检测到目标数据存储区间的更新容量的触发条件,则确定所述触发条件是否同时包括第一触发条件和第二触发条件;其中,所述第一触发条件包括基于容量空间生成的触发条件,第二触发条件包括基于预设时间规则生成的触发条件;If a trigger condition for updating the capacity of the target data storage interval is detected, it is determined whether the trigger condition includes both a first trigger condition and a second trigger condition; wherein, the first trigger condition includes a trigger condition generated based on the capacity space, The second trigger condition includes a trigger condition generated based on a preset time rule;

若同时包括第一触发条件和第二触发条件,则基于预设规则从目标数据存储区间中的各数据中确定待删除数据,并对所述待删除数据进行删除操作。If both the first trigger condition and the second trigger condition are included, the data to be deleted is determined from each data in the target data storage interval based on the preset rule, and the deletion operation is performed on the data to be deleted.

存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDR RAM、SRAM、EDO RAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到计算机系统。第二计算机系统可以提供程序指令给计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROMs, floppy disks, or tape devices; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc. ; non-volatile memory, such as flash memory, magnetic media (eg hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the computer system in which the program is executed, or may be located in a different second computer system connected to the computer system through a network such as the Internet. The second computer system may provide program instructions to the computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (eg, in different computer systems connected by a network). The storage medium may store program instructions (eg, embodied as a computer program) executable by one or more processors.

当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的数据存储空间管理操作,还可以执行本申请任意实施例所提供的数据存储空间管理方法中的相关操作。Of course, a storage medium containing computer-executable instructions provided by the embodiments of the present application, the computer-executable instructions of which are not limited to the above-mentioned data storage space management operations, and can also perform data storage provided by any embodiment of the present application. Related operations in space management methods.

实施例五Embodiment 5

本申请实施例提供了一种电子设备,该电子设备中可集成本申请实施例提供的数据存储空间管理装置。图7是本申请实施例五提供的一种电子设备的结构示意图。如图7所示,本实施例提供了一种电子设备700,其包括:一个或多个处理器720;存储装置710,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器720执行,使得所述一个或多个处理器720实现本申请实施例所提供的数据存储空间管理方法,该方法包括:The embodiments of the present application provide an electronic device, in which the data storage space management apparatus provided by the embodiments of the present application can be integrated. FIG. 7 is a schematic structural diagram of an electronic device according to Embodiment 5 of the present application. As shown in FIG. 7 , this embodiment provides an electronic device 700, which includes: one or more processors 720; and a storage device 710 for storing one or more programs, when the one or more programs are The one or more processors 720 execute, so that the one or more processors 720 implement the data storage space management method provided by the embodiment of the present application, and the method includes:

若检测到目标数据存储区间的更新容量的触发条件,则确定所述触发条件是否同时包括第一触发条件和第二触发条件;其中,所述第一触发条件包括基于容量空间生成的触发条件,第二触发条件包括基于预设时间规则生成的触发条件;If a trigger condition for updating the capacity of the target data storage interval is detected, it is determined whether the trigger condition includes both a first trigger condition and a second trigger condition; wherein, the first trigger condition includes a trigger condition generated based on the capacity space, The second trigger condition includes a trigger condition generated based on a preset time rule;

若同时包括第一触发条件和第二触发条件,则基于预设规则从目标数据存储区间中的各数据中确定待删除数据,并对所述待删除数据进行删除操作。If both the first trigger condition and the second trigger condition are included, the data to be deleted is determined from each data in the target data storage interval based on the preset rule, and the deletion operation is performed on the data to be deleted.

当然,本领域技术人员可以理解,处理器720还实现本申请任意实施例所提供的数据存储空间管理方法的技术方案。Of course, those skilled in the art can understand that the processor 720 also implements the technical solution of the data storage space management method provided by any embodiment of the present application.

图7显示的电子设备700仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。The electronic device 700 shown in FIG. 7 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present application.

如图7所示,该电子设备700包括处理器720、存储装置710、输入装置730和输出装置740;电子设备中处理器720的数量可以是一个或多个,图7中以一个处理器720为例;电子设备中的处理器720、存储装置710、输入装置730和输出装置740可以通过总线或其他方式连接,图7中以通过总线750连接为例。As shown in FIG. 7 , the electronic device 700 includes a processor 720 , a storage device 710 , an input device 730 and an output device 740 ; the number of processors 720 in the electronic device may be one or more, and one processor 720 is used in FIG. 7 . For example; the processor 720 , the storage device 710 , the input device 730 and the output device 740 in the electronic device may be connected by a bus or in other ways, and the connection by the bus 750 is taken as an example in FIG. 7 .

存储装置710作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块单元,如本申请实施例中的数据存储空间管理方法对应的程序指令。As a computer-readable storage medium, the storage device 710 may be used to store software programs, computer-executable programs, and module units, such as program instructions corresponding to the data storage space management method in the embodiments of the present application.

存储装置710可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端的使用所创建的数据等。此外,存储装置710可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储装置710可进一步包括相对于处理器720远程设置的存储器,这些远程存储器可以通过网络连接。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The storage device 710 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Additionally, storage device 710 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, storage device 710 may further include memory located remotely from processor 720, the remote memory may be connected through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

输入装置730可用于接收输入的数字、字符信息或语音信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。输出装置740可包括显示屏、扬声器等设备。The input device 730 may be used to receive inputted numbers, character information or voice information, and generate key signal input related to user settings and function control of the electronic device. The output device 740 may include a display screen, a speaker, and the like.

本申请实施例提供的电子设备,实现可以根据需求对存储数据进行有效管理,增长数据的保存时间的同时不影响存储设备对新来数据的存储能力的效果。The electronic device provided by the embodiment of the present application can effectively manage the stored data according to the requirements, and the storage time of the data is increased without affecting the storage capability of the storage device for the new data.

上述实施例中提供的数据存储空间管理装置、存储介质及电子设备可执行本申请任意实施例所提供的数据存储空间管理方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的数据存储空间管理方法。The data storage space management apparatus, storage medium and electronic device provided in the above embodiments can execute the data storage space management method provided by any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in the foregoing embodiments, reference may be made to the data storage space management method provided by any embodiment of the present application.

注意,上述仅为本申请的较佳实施例及所运用技术原理。本领域技术人员会理解,本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present application and applied technical principles. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present application. The scope is determined by the scope of the appended claims.

Claims (9)

1.一种数据存储空间管理方法,其特征在于,包括:1. a data storage space management method, is characterized in that, comprises: 若检测到目标数据存储区间的更新容量的触发条件,则确定所述触发条件是否同时包括第一触发条件和第二触发条件;其中,所述第一触发条件包括基于容量空间生成的触发条件,第二触发条件包括基于预设时间规则生成的触发条件;If a trigger condition for updating the capacity of the target data storage interval is detected, it is determined whether the trigger condition includes both a first trigger condition and a second trigger condition; wherein, the first trigger condition includes a trigger condition generated based on the capacity space, The second trigger condition includes a trigger condition generated based on a preset time rule; 若同时包括第一触发条件和第二触发条件,则基于预设规则从目标数据存储区间中的各数据中确定待删除数据,并对所述待删除数据进行删除操作;If both the first trigger condition and the second trigger condition are included, determining data to be deleted from each data in the target data storage interval based on a preset rule, and performing a deletion operation on the data to be deleted; 其中,所述第二触发条件的得到方式包括:Wherein, the manner of obtaining the second trigger condition includes: 根据目标数据存储区间的剩余容量空间,以及根据所述目标数据存储区间的数据存储速率,确定所述目标数据存储区间的容量计时器;Determine the capacity timer of the target data storage section according to the remaining capacity space of the target data storage section and according to the data storage rate of the target data storage section; 当所述容量计时器的计时符合第二预设条件时,生成第二触发条件。When the timing of the capacity timer meets the second preset condition, a second trigger condition is generated. 2.根据权利要求1所述的方法,其特征在于,所述第一触发条件的得到方式包括:2. The method according to claim 1, wherein the obtaining method of the first trigger condition comprises: 根据目标数据存储区间的剩余容量空间与待存储数据容量需求的大小关系,确定是否符合第一预设条件;Determine whether the first preset condition is met according to the size relationship between the remaining capacity space of the target data storage interval and the capacity requirement of the data to be stored; 若是,则生成第一触发条件。If so, a first trigger condition is generated. 3.根据权利要求1-2任一项所述的方法,其特征在于,在检测到目标数据存储区间的更新容量的触发条件之后,所述方法还包括:3. The method according to any one of claims 1-2, wherein after detecting the triggering condition of the update capacity of the target data storage interval, the method further comprises: 若确定所述触发条件包括第一触发条件,且所述目标数据存储区间首次达到第一触发条件,则基于目标数据存储区间中的各数据的存储时间对数据存储空间容量进行更新操作,并激活时间触发机制工作,以在激活后基于预设时间规则生成第二触发条件。If it is determined that the trigger condition includes the first trigger condition, and the target data storage interval reaches the first trigger condition for the first time, the data storage space capacity is updated based on the storage time of each data in the target data storage interval, and activated The time trigger mechanism works to generate a second trigger condition based on a preset time rule after activation. 4.根据权利要求1-2任一项所述的方法,其特征在于,在检测到目标数据存储区间的更新容量的触发条件之前,所述方法还包括:4. The method according to any one of claims 1-2, characterized in that, before detecting the triggering condition of the update capacity of the target data storage interval, the method further comprises: 将待存储的数据存储在目标数据存储区间;其中,所述待存储的数据包括标记字段,所述标记字段用于存储标记数值;storing the data to be stored in the target data storage interval; wherein, the data to be stored includes a marker field, and the marker field is used to store a marker value; 相应的,基于预设规则从目标数据存储区间中的各数据中确定待删除数据,包括:Correspondingly, the data to be deleted is determined from each data in the target data storage interval based on the preset rules, including: 基于各数据的标记字段的标记数值确定待删除数据。The data to be deleted is determined based on the tag value of the tag field of each data. 5.根据权利要求4所述的方法,其特征在于,在基于各数据的标记字段的标记数值确定待删除数据之前,所述方法还包括:5. The method according to claim 4, wherein before determining the data to be deleted based on the marked value of the marked field of each data, the method further comprises: 生成标记数值记录表;Generate mark value record table; 相应的,基于各数据的标记字段的标记数值确定待删除数据,包括:Correspondingly, the data to be deleted is determined based on the marked value of the marked field of each data, including: 基于记录表中的标记数值确定待删除数据,并在删除数据之后更新所述记录表。The data to be deleted is determined based on the marked value in the record table, and the record table is updated after the data is deleted. 6.根据权利要求5所述的方法,其特征在于,在生成标记数值记录表之后,所述方法还包括:6. The method according to claim 5, wherein after generating the marked value record table, the method further comprises: 根据所述记录表中标记数值的数量确定所述第一触发条件是否有效;其中,若所述数量超过配额数量阈值,则确定所述第一触发条件有效,若所述数量未超过配额数量阈值,则确定所述第一触发条件无效。Whether the first trigger condition is valid is determined according to the number of marked values in the record table; wherein, if the quantity exceeds the quota quantity threshold, it is determined that the first trigger condition is valid, and if the quantity does not exceed the quota quantity threshold , it is determined that the first trigger condition is invalid. 7.一种数据存储空间管理装置,其特征在于,包括:7. A data storage space management device, comprising: 触发条件判断模块,用于若检测到目标数据存储区间的更新容量的触发条件,则确定所述触发条件是否同时包括第一触发条件和第二触发条件;其中,所述第一触发条件包括基于容量空间生成的触发条件,第二触发条件包括基于预设时间规则生成的触发条件;The trigger condition judgment module is configured to determine whether the trigger condition includes a first trigger condition and a second trigger condition at the same time if the trigger condition of the update capacity of the target data storage interval is detected; wherein, the first trigger condition includes based on a trigger condition generated by the capacity space, and the second trigger condition includes a trigger condition generated based on a preset time rule; 数据删除模块,用于若所述触发条件判断模块判断为同时包括第一触发条件和第二触发条件,则基于预设规则从目标数据存储区间中的各数据中确定待删除数据,并对所述待删除数据进行删除操作;A data deletion module, configured to determine the data to be deleted from each data in the target data storage interval based on a preset rule if the trigger condition judgment module determines that both the first trigger condition and the second trigger condition are included, and perform a Deleting the data to be deleted and performing the deletion operation; 其中,所述第二触发条件的得到方式包括:Wherein, the manner of obtaining the second trigger condition includes: 根据目标数据存储区间的剩余容量空间,以及根据所述目标数据存储区间的数据存储速率,确定所述目标数据存储区间的容量计时器;Determine the capacity timer of the target data storage section according to the remaining capacity space of the target data storage section and according to the data storage rate of the target data storage section; 当所述容量计时器的计时符合第二预设条件时,生成第二触发条件。When the timing of the capacity timer meets the second preset condition, a second trigger condition is generated. 8.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-6中任一项所述的数据存储空间管理方法。8. A computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the data storage space management method according to any one of claims 1-6 is implemented. 9.一种电子设备,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1-6中任一项所述的数据存储空间管理方法。9. An electronic device comprising a memory, a processor and a computer program stored on the memory and running on the processor, characterized in that, when the processor executes the computer program, any one of claims 1-6 is realized. The one described data storage space management method.
CN201910596063.0A 2019-07-03 2019-07-03 A data storage space management method, device, storage medium and electronic device Active CN112181277B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910596063.0A CN112181277B (en) 2019-07-03 2019-07-03 A data storage space management method, device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910596063.0A CN112181277B (en) 2019-07-03 2019-07-03 A data storage space management method, device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN112181277A CN112181277A (en) 2021-01-05
CN112181277B true CN112181277B (en) 2022-10-04

Family

ID=73915638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910596063.0A Active CN112181277B (en) 2019-07-03 2019-07-03 A data storage space management method, device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112181277B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835525A (en) * 2021-02-07 2021-05-25 东方网力科技股份有限公司 Method, device and terminal for improving utilization rate of storage space
CN114356856A (en) * 2021-12-21 2022-04-15 苏州凌云视界智能设备有限责任公司 Data deleting method, device, equipment and storage medium
CN114416677A (en) * 2021-12-30 2022-04-29 中国电信股份有限公司 A method, device, device and storage medium for updating cold storage data
CN114528052A (en) * 2022-02-24 2022-05-24 浙江大华技术股份有限公司 Data loading method and device, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799395A (en) * 2012-06-29 2012-11-28 华为技术有限公司 Dynamic balancing processing method and device for disk spaces and disk system
CN106445414A (en) * 2016-09-20 2017-02-22 广州视源电子科技股份有限公司 Method and system for expanding available storage space of terminal equipment
CN107301020A (en) * 2017-06-22 2017-10-27 苏州交运电子科技有限公司 Data managing method and managing device
CN109284066A (en) * 2017-07-19 2019-01-29 阿里巴巴集团控股有限公司 A kind of data processing method, device, equipment and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10915498B2 (en) * 2017-03-30 2021-02-09 International Business Machines Corporation Dynamically managing a high speed storage tier of a data storage system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799395A (en) * 2012-06-29 2012-11-28 华为技术有限公司 Dynamic balancing processing method and device for disk spaces and disk system
CN106445414A (en) * 2016-09-20 2017-02-22 广州视源电子科技股份有限公司 Method and system for expanding available storage space of terminal equipment
CN107301020A (en) * 2017-06-22 2017-10-27 苏州交运电子科技有限公司 Data managing method and managing device
CN109284066A (en) * 2017-07-19 2019-01-29 阿里巴巴集团控股有限公司 A kind of data processing method, device, equipment and system

Also Published As

Publication number Publication date
CN112181277A (en) 2021-01-05

Similar Documents

Publication Publication Date Title
CN112181277B (en) A data storage space management method, device, storage medium and electronic device
US11853549B2 (en) Index storage in shingled magnetic recording (SMR) storage system with non-shingled region
CN109960686B (en) Log processing method and device for database
EP3816783B1 (en) Method and device for data migration
CN103197988A (en) Data backup and recovery method, device and database system
CN110232097A (en) A kind of method of data synchronization and device
WO2021190082A1 (en) Data recovery method and apparatus
WO2019024910A1 (en) Storage resource recovery method, apparatus and system
CN112925783B (en) Business data processing method and device, electronic device and storage medium
CN110879773B (en) CGroup-based memory monitoring method and device
CN111143158A (en) Monitoring data real-time storage method and system, electronic equipment and storage medium
WO2018014711A1 (en) Method and device for playing video
CN112069195A (en) Database-based message transmission method and device, electronic equipment and storage medium
WO2023165188A1 (en) Sequential read prefetching method and apparatus, device, and medium
CN104899161A (en) Cache method based on continuous data protection of cloud storage environment
CN117648379A (en) Method and device for collecting and synchronizing time sequence data of different protocols
WO2021249027A1 (en) Data storage method and apparatus, terminal device, and storage medium
CN112579820B (en) Time hopping video data processing method, device, medium and electronic equipment
CN102938829A (en) Method for realizing prerecording of real-time audio/video stream
WO2012109915A1 (en) Telephone traffic data storage method and system
CN109521969B (en) Solid state disk data recovery method and device and computer readable storage medium
CN112783711A (en) Method and storage medium for analyzing program memory on NodeJS
CN111078418B (en) Operation synchronization method, device, electronic equipment and computer readable storage medium
CN118964489A (en) Offline synchronization method of incremental data in data development
US7657664B2 (en) Method and system for tracking device driver requests

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant