CN111858497A - A storage type conversion method, device and device - Google Patents
A storage type conversion method, device and device Download PDFInfo
- Publication number
- CN111858497A CN111858497A CN202010761389.7A CN202010761389A CN111858497A CN 111858497 A CN111858497 A CN 111858497A CN 202010761389 A CN202010761389 A CN 202010761389A CN 111858497 A CN111858497 A CN 111858497A
- Authority
- CN
- China
- Prior art keywords
- conversion
- target
- condition
- type
- storage type
- 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.)
- Granted
Links
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 506
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000004891 communication Methods 0.000 claims description 19
- 238000012216 screening Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 13
- 230000004048 modification Effects 0.000 claims description 13
- 238000012986 modification Methods 0.000 claims description 13
- 238000007726 management method Methods 0.000 description 11
- 230000007704 transition Effects 0.000 description 9
- 238000012545 processing Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 230000003993 interaction Effects 0.000 description 4
- 238000011045 prefiltration Methods 0.000 description 4
- 238000013500 data storage Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000001816 cooling Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000010438 heat treatment Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/172—Caching, prefetching or hoarding of files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/178—Techniques for file synchronisation in file systems
- G06F16/1794—Details of file format conversion
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/1805—Append-only file systems, e.g. using logs or journals to store data
- G06F16/1815—Journaling file systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明实施例提供了一种存储类型转换方法、装置及设备。该方法包括:确定目标服务器中待处理的各个备选对象;从各个备选对象中,确定满足预定的转换条件的目标对象;转换条件为判定任一对象是否可转换存储类型所依据的条件,且转换条件至少包括在指定周期内的访问次数符合预定次数条件;通过调用转换接口,按照与转换条件对应的转换类型,对目标服务器中的目标对象的存储类型进行转换;转换类型为满足转换条件的对象所需转换至的存储类型,转换接口为用于对目标服务器所存储对象进行存储类型转换的接口。通过本方案,可以实现根据企业用户所设定的数据冷热标准,快速有效地转换企业用户所使用对象存储中的对象存储类型的目的。
Embodiments of the present invention provide a storage type conversion method, apparatus, and device. The method includes: determining each candidate object to be processed in the target server; from each candidate object, determining a target object that satisfies a predetermined conversion condition; the conversion condition is a condition on which to determine whether any object can be converted into a storage type, And the conversion condition includes at least that the number of visits in the specified period meets the predetermined number of times; by calling the conversion interface, according to the conversion type corresponding to the conversion condition, the storage type of the target object in the target server is converted; the conversion type satisfies the conversion condition The storage type to which the object needs to be converted, and the conversion interface is the interface used to convert the storage type of the object stored in the target server. Through this solution, the object storage type in the object storage used by the enterprise user can be quickly and effectively converted according to the data hot and cold standard set by the enterprise user.
Description
技术领域technical field
本发明涉及对象存储技术领域,特别是涉及一种存储类型转换方法、装置及设备。The present invention relates to the technical field of object storage, and in particular, to a storage type conversion method, device and device.
背景技术Background technique
IaaS基础设施及服务是云计算服务商所提供的一种服务模式,其主要包括CPU、内存、存储、网络、虚拟化软件、分布式系统等,使得企业用户无需担心基础资源供给而只专注部署自己的业务应用软件即可。其中,对象存储是IaaS服务模式下的常见的存储方式。具体而言,不同冷热程度的数据可以采用不同的存储方式,例如:热数据对应标准存储,温数据对应低频存储,而冷数据对应归档存储。IaaS infrastructure and services are a service model provided by cloud computing service providers, which mainly include CPU, memory, storage, network, virtualization software, distributed systems, etc., so that enterprise users do not need to worry about the supply of basic resources and only focus on deployment You can use your own business application software. Among them, object storage is a common storage method under the IaaS service model. Specifically, different storage methods can be used for data with different degrees of cold and heat. For example, hot data corresponds to standard storage, warm data corresponds to low-frequency storage, and cold data corresponds to archive storage.
在具体应用中,企业用户存在根据自身设定的数据冷热标准转换对象存储类型的需求。In specific applications, enterprise users have the need to convert the object storage type according to the data hot and cold standards set by themselves.
可见,提供一种存储类型转换方案,以根据企业用户所设定的数据冷热标准,快速有效地转换企业用户所使用对象存储中的对象存储类型,是一个亟待解决的问题。It can be seen that it is an urgent problem to provide a storage type conversion solution to quickly and effectively convert the object storage type in the object storage used by the enterprise user according to the data hot and cold standard set by the enterprise user.
发明内容SUMMARY OF THE INVENTION
本发明实施例的目的在于提供一种存储类型转换方法、装置及设备,以实现根据企业用户所设定的数据冷热标准,快速有效地转换企业用户所使用对象存储中的对象存储类型的目的。具体技术方案如下:The purpose of the embodiments of the present invention is to provide a storage type conversion method, device and equipment, so as to realize the purpose of quickly and effectively converting the object storage type in the object storage used by the enterprise user according to the data hot and cold standard set by the enterprise user . The specific technical solutions are as follows:
第一方面,本发明实施例提供了一种存储类型转换方法,包括:In a first aspect, an embodiment of the present invention provides a storage type conversion method, including:
确定目标服务器中待处理的各个备选对象;所述目标服务器为用于存储对象的云服务器;Determine each candidate object to be processed in the target server; the target server is a cloud server for storing objects;
从各个备选对象中,确定满足预定的转换条件的目标对象;其中,所述转换条件为判定任一对象是否可转换存储类型所依据的条件,且所述转换条件至少包括在指定周期内的访问次数符合预定次数条件;From each candidate object, determine a target object that satisfies a predetermined conversion condition; wherein, the conversion condition is a condition on which to determine whether any object can be converted into a storage type, and the conversion condition at least includes The number of visits meets the predetermined number of conditions;
通过调用转换接口,按照与所述转换条件对应的转换类型,对所述目标服务器中的所述目标对象的存储类型进行转换;Convert the storage type of the target object in the target server according to the conversion type corresponding to the conversion condition by invoking the conversion interface;
其中,所述转换类型为满足所述转换条件的对象所需转换至的存储类型,所述转换接口为用于对所述目标服务器所存储对象进行存储类型转换的接口。The conversion type is the storage type to which the object satisfying the conversion condition needs to be converted, and the conversion interface is an interface for performing storage type conversion on the object stored in the target server.
可选地,所述确定目标服务器中待处理的各个备选对象,包括:Optionally, the determining each candidate object to be processed in the target server includes:
从目标服务器所存储的对象中,确定满足预定的预筛选条件的对象,得到待处理的各个备选对象;From the objects stored in the target server, determine the objects that meet the predetermined pre-screening conditions, and obtain each candidate object to be processed;
所述预筛选条件包括:对象的目标参数的参数值符合指定参数条件;The pre-screening condition includes: the parameter value of the target parameter of the object conforms to the specified parameter condition;
其中,所述目标参数包括对象名称、最后修改时间、数据量大小、所发生访问操作的操作类型以及存储类型中的至少一个参数。Wherein, the target parameter includes at least one parameter among the object name, the last modification time, the size of the data amount, the operation type of the access operation that occurs, and the storage type.
可选地,所述从各个备选对象中,确定满足预定的转换条件的目标对象之后,所述通过调用转换接口,按照与所述转换条件对应的转换类型,对所述目标服务器中的所述目标对象的存储类型进行转换之前,还包括:Optionally, after determining a target object that satisfies a predetermined conversion condition from each candidate object, the conversion interface is called, according to the conversion type corresponding to the conversion condition, to all the target servers in the target server. Before converting the storage type of the target object, it also includes:
判断所述目标对象是否满足预定的类型锁定条件;judging whether the target object satisfies a predetermined type locking condition;
当判断结果为否时,执行所述通过调用转换接口,按照与所述转换条件对应的转换类型,对所述目标服务器中的所述目标对象的存储类型进行转换的步骤。When the judgment result is no, the step of converting the storage type of the target object in the target server according to the conversion type corresponding to the conversion condition by invoking the conversion interface is performed.
可选地,所述转换条件的数量至少一个;每一转换条件均设置有优先级;Optionally, the number of the conversion conditions is at least one; each conversion condition is set with a priority;
所述通过调用转换接口,按照与所述转换条件对应的转换类型,对所述目标服务器中的所述目标对象的存储类型进行转换,包括:The converting the storage type of the target object in the target server according to the conversion type corresponding to the conversion condition by calling the conversion interface, including:
如果所述目标对象满足至少两个转换条件,通过调用转换接口,按照目标转换条件对应的转换类型,转换所述目标服务器中的所述目标对象的存储类型;所述目标转换条件为所述目标对象所满足的对应的转换条件;If the target object satisfies at least two conversion conditions, convert the storage type of the target object in the target server according to the conversion type corresponding to the target conversion condition by calling the conversion interface; the target conversion condition is the target The corresponding conversion condition satisfied by the object;
如果所述目标对象仅满足一个转换条件,通过调用所述转换接口,按照所述目标对象所满足转换条件对应的转换类型,转换所述目标服务器中的所述目标对象的存储类型。If the target object only satisfies one conversion condition, by calling the conversion interface, the storage type of the target object in the target server is converted according to the conversion type corresponding to the conversion condition satisfied by the target object.
可选地,所述目标转换条件为所述目标对象所满足的优先级最高的转换条件;Optionally, the target conversion condition is the highest priority conversion condition satisfied by the target object;
所述通过调用转换接口,按照目标转换条件对应的转换类型,转换所述目标服务器中的所述目标对象的存储类型,包括:The converting the storage type of the target object in the target server according to the conversion type corresponding to the target conversion condition by calling the conversion interface, including:
若目标转换条件的数量为多个,利用预设的关于各存储类型的优先级关系,从各个目标转换条件对应的转换类型中,确定所对应优先级最高的目标转换类型,将所述目标服务器中的所述目标对象的存储类型转换为所述目标转换类型;If the number of target conversion conditions is multiple, the preset priority relationship about each storage type is used to determine the target conversion type with the highest corresponding priority from the conversion types corresponding to each target conversion condition, and the target server The storage type of the target object in is converted to the target conversion type;
若目标转换条件的数量为一个,通过调用所述转换接口,利用所述目标转换条件对应的转换类型,转换所述目标服务器中的所述目标对象的存储类型。If the number of target conversion conditions is one, by invoking the conversion interface, the storage type of the target object in the target server is converted by using the conversion type corresponding to the target conversion condition.
可选地,所述各存储类型的优先级关系包括:低频存储的优先级小于标准存储的优先级,且低频存储的优先级大于归档存储的优先级。Optionally, the priority relationship of each storage type includes: the priority of low-frequency storage is lower than that of standard storage, and the priority of low-frequency storage is greater than the priority of archive storage.
第二方面,本发明实施例提供了一种存储类型转换装置,包括:In a second aspect, an embodiment of the present invention provides a storage type conversion device, including:
对象确定模块,用于确定目标服务器中待处理的各个备选对象;所述目标服务器为用于存储对象的云服务器;an object determination module for determining each candidate object to be processed in the target server; the target server is a cloud server for storing objects;
筛选模块,用于从各个备选对象中,确定满足预定的转换条件的目标对象;其中,所述转换条件为判定任一对象是否可转换存储类型所依据的条件,且所述转换条件至少包括在指定周期内的访问次数符合预定次数条件;A screening module, configured to determine a target object that satisfies a predetermined conversion condition from each candidate object; wherein, the conversion condition is a condition on which to determine whether any object can be converted into a storage type, and the conversion condition at least includes The number of visits within the specified period meets the predetermined number of conditions;
转换模块,用于通过调用转换接口,按照与所述转换条件对应的转换类型,对所述目标服务器中的所述目标对象的存储类型进行转换;a conversion module, configured to convert the storage type of the target object in the target server according to the conversion type corresponding to the conversion condition by invoking the conversion interface;
其中,所述转换类型为满足所述转换条件的对象所需转换至的存储类型,所述转换接口为用于对所述目标服务器所存储对象进行存储类型转换的接口。The conversion type is the storage type to which the object satisfying the conversion condition needs to be converted, and the conversion interface is an interface for performing storage type conversion on the object stored in the target server.
第三方面,本发明实施例提供了一种存储类型转换系统,包括:In a third aspect, an embodiment of the present invention provides a storage type conversion system, including:
规则管理装置,用于管理用于对象存储类型转换的预定的转换条件和所述转换条件对应的转换类型;其中,所述转换条件为判定任一对象是否可转换存储类型所依据的条件,且所述转换条件至少包括在指定周期内的访问次数符合预定次数条件;所述转换类型为满足所述转换条件的对象所需转换至的存储类型;A rule management device for managing a predetermined conversion condition for object storage type conversion and a conversion type corresponding to the conversion condition; wherein, the conversion condition is a condition on which to determine whether any object can be converted into a storage type, and The conversion condition at least includes that the number of visits within the specified period meets the predetermined number of times condition; the conversion type is the storage type to which the object satisfying the conversion condition needs to be converted;
智能计算装置,用于确定目标服务器中待处理的各个备选对象;从各个备选对象中,确定满足所述规则管理装置中所管理的所述转换条件的目标对象;所述目标服务器为用于存储对象的云服务器;An intelligent computing device is used to determine each candidate object to be processed in the target server; from each candidate object, determine the target object that satisfies the conversion condition managed by the rule management device; the target server is a user Cloud servers for storing objects;
操作执行装置,用于通过调用转换接口,按照所述规则管理装置所管理的与所述转换条件对应的转换类型,对所述目标服务器中的所述目标对象的存储类型进行转换;其中,所述转换接口为用于对所述目标服务器所存储对象进行存储类型转换的接口。an operation execution device, configured to convert the storage type of the target object in the target server according to the conversion type managed by the rule management device and corresponding to the conversion condition by invoking a conversion interface; The conversion interface is an interface for performing storage type conversion on objects stored in the target server.
第四方面,本发明实施例提供了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;In a fourth aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
存储器,用于存放计算机程序;memory for storing computer programs;
处理器,用于执行存储器上所存放的程序时,实现本发明实施例所提供的存储类型转换方法的步骤。The processor is configured to implement the steps of the storage type conversion method provided by the embodiment of the present invention when executing the program stored in the memory.
第五方面,本发明实施例提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现本发明实施例所提供的存储类型转换方法的步骤。In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the storage type provided by the embodiment of the present invention is implemented The steps to convert the method.
本发明实施例有益效果:Beneficial effects of the embodiment of the present invention:
本发明实施例所提供的方案中,利用与企业用户所设定的数据冷热标准相关的转换条件,从备选对象中确定待转换类型的目标对象,并通过调用与企业用户所使用的对象存储相关的转换接口,即目标服务器对应的转换接口,按照与转换条件对应的转换类型,对目标对象进行存储类型转换。可见,通过本方案,可以实现根据企业用户所设定的数据冷热标准,快速有效地转换企业用户所使用对象存储中的对象存储类型的目的。In the solution provided by the embodiment of the present invention, the conversion condition related to the data hot and cold standard set by the enterprise user is used to determine the target object of the type to be converted from the candidate objects, and by calling the object used by the enterprise user The storage-related conversion interface, that is, the conversion interface corresponding to the target server, performs storage type conversion on the target object according to the conversion type corresponding to the conversion condition. It can be seen that through this solution, the object storage type in the object storage used by the enterprise user can be quickly and effectively converted according to the data hot and cold standard set by the enterprise user.
当然,实施本发明的任一产品或方法并不一定需要同时达到以上所述的所有优点。Of course, it is not necessary for any product or method of the present invention to achieve all of the advantages described above at the same time.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.
图1为本发明实施例所提供的一种存储类型转换方法的流程图;1 is a flowchart of a storage type conversion method provided by an embodiment of the present invention;
图2为本发明实施例所提供的一种存储类型转换方法的另一流程图;2 is another flowchart of a storage type conversion method provided by an embodiment of the present invention;
图3为本发明实施例所提供的一种存储类型转换方法的另一流程图;3 is another flowchart of a storage type conversion method provided by an embodiment of the present invention;
图4为存储类型转换装置与日志存储系统和目标服务器交互示意图;4 is a schematic diagram of the interaction between a storage type conversion device and a log storage system and a target server;
图5为本发明实施例所提供的一种存储类型转换装置的结构示意图;5 is a schematic structural diagram of a storage type conversion device provided by an embodiment of the present invention;
图6为本发明实施例所提供的存储类型转换系统的结构示意图;6 is a schematic structural diagram of a storage type conversion system provided by an embodiment of the present invention;
图7为本发明实施例所提供的存储类型转换系统的工作原理图;7 is a working principle diagram of a storage type conversion system provided by an embodiment of the present invention;
图8为本发明实施例所提供的一种电子设备的结构示意图。FIG. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
为了实现根据企业用户所设定的数据冷热标准,快速有效地转换企业用户所使用对象存储中的对象存储类型的目的,本发明实施例提供了一种存储类型转换方法、装置及设备。In order to realize the purpose of quickly and effectively converting the object storage type in the object storage used by the enterprise user according to the data hot and cold standard set by the enterprise user, the embodiments of the present invention provide a storage type conversion method, device and device.
下面首先本发明实施例提供了一种存储类型转换方法进行介绍。First, an embodiment of the present invention provides a storage type conversion method for introduction below.
其中,本发明实施例所提供的一种存储类型转换方法应用于电子设备中。具体而言,该存储类型转换方法的执行主体可以为运行于电子设备中的存储类型转换装置。在具体应用中,该存储类型转换装置可以运行于目标服务器以外的、与该目标服务器建立通信连接的任一设备中,其中,该目标服务器为待转换存储类型的、存储有对象的存储服务器;当然,该存储类型转换装置也可以运行于目标服务器内。示例性的,在用户客户端通过应用服务器访问目标服务器的场景下,该存储类型转换装置可以运行于该应用服务器中;或者,在用户客户端直接访问目标服务器的场景下,该存储类型转换装置可以运行于客户端设备中,该客户端设备为运行有用户客户端的终端设备,等等。Wherein, a storage type conversion method provided by an embodiment of the present invention is applied to an electronic device. Specifically, the execution body of the storage type conversion method may be a storage type conversion apparatus running in an electronic device. In a specific application, the storage type conversion device can run in any device other than the target server that establishes a communication connection with the target server, wherein the target server is a storage server of the storage type to be converted and storing objects; Of course, the storage type conversion device can also run in the target server. Exemplarily, in the scenario where the user client accesses the target server through the application server, the storage type conversion device may run in the application server; or, in the scenario where the user client directly accesses the target server, the storage type conversion device It can run in a client device, which is a terminal device running a user client, and so on.
需要说明的是,该目标服务器为用于存储对象的云服务器。并且,该目标服务器可以为任一第三方云厂商所提供的对象存储服务器。也就是说,在企业用户利用任一第三方云厂商所提供的对象存储服务器进行对象存储后,均可以应用本发明实施例所提供的存储类型转换装置来实现存储类型的转换。It should be noted that the target server is a cloud server for storing objects. Moreover, the target server can be an object storage server provided by any third-party cloud vendor. That is to say, after the enterprise user uses the object storage server provided by any third-party cloud vendor for object storage, the storage type conversion device provided by the embodiment of the present invention can be applied to realize the storage type conversion.
并且,为了通过存储类型转换装置对目标服务器中的对象进行存储类型转换,存储类型转换装置中可以预先配置有转换接口,该转换接口为用于对目标服务器所存储对象进行存储类型转换的接口,即该转换接口为与企业用户所使用对象存储相关的转换接口。可以理解的是,针对不同的目标服务器,该转换接口可以不同。在具体应用中,由于目标服务器所属云厂商所提供的SDK(simple develop key,简单的开发钥匙)中,可以存在包含该转换接口在内的各种接口,因此,可以在存储类型转换装置中设置该SDK,从而达到预先配置转换接口的目的,当然并不局限于此。可以理解的是,通过设置该SDK,该存储类型转换装置可以实现对于目标服务器中的对象进行修改和下载。And, in order to perform storage type conversion on the object in the target server by the storage type conversion device, the storage type conversion device can be pre-configured with a conversion interface, and the conversion interface is used for the storage type conversion of the object stored in the target server. That is, the conversion interface is a conversion interface related to the object storage used by the enterprise user. It can be understood that, for different target servers, the conversion interface may be different. In a specific application, various interfaces including the conversion interface may exist in the SDK (simple develop key) provided by the cloud vendor to which the target server belongs. Therefore, it can be set in the storage type conversion device. The SDK, so as to achieve the purpose of pre-configuring the conversion interface, is of course not limited to this. It can be understood that, by setting the SDK, the storage type conversion apparatus can implement modification and download of objects in the target server.
另外,本发明实施例所涉及的对象通常是无结构的数据,比如:图片、视频或文档等。对象具有元数据和对象id,具体而言,对象的元数据也可称作对象的参数,指的是对象的相关描述,比如:图片的大小、文档的拥有者等;对象id则是一个全局的唯一标识符,用来区分对象的。而本领域人员可以理解的是,对象存储可以包括多种存储类型,例如:标准存储,即三副本存储,以及低频存储和归档存储,相应的,本发明实施例所提及的转换类型可以为该多种存储类型中的任一种。其中,三副本存储具体是指在针对一个数据,在存储设备中存储三份;针对低频存储而言,所采用的存储方式可以为纠删码存储方式;而针对归档存储而言,所采用的存储方式为在离线存储服务器中进行数据存储的方式。In addition, the objects involved in the embodiments of the present invention are usually unstructured data, such as pictures, videos, or documents. An object has metadata and an object id. Specifically, the metadata of the object can also be called the parameters of the object, which refers to the relevant description of the object, such as: the size of the picture, the owner of the document, etc.; the object id is a global The unique identifier used to distinguish objects. It can be understood by those in the art that object storage may include multiple storage types, for example: standard storage, that is, three-copy storage, as well as low-frequency storage and archive storage. Correspondingly, the conversion type mentioned in this embodiment of the present invention may be any of the various storage types. Among them, three-copy storage specifically refers to storing three copies of one data in a storage device; for low-frequency storage, the storage method used may be erasure code storage; and for archive storage, the adopted storage method The storage method is the method of data storage in the offline storage server.
如图1所示,本发明实施例所提供的一种存储类型转换方法,可以包括如下步骤:As shown in FIG. 1, a storage type conversion method provided by an embodiment of the present invention may include the following steps:
S101,确定目标服务器中待处理的各个备选对象;S101, determine each candidate object to be processed in the target server;
在针对目标服务器中的对象进行存储类型转换时,可以首先确定目标服务器中待处理的各个备选对象,进而对各个备选对象进行是否可转换存储类型的分析。并且,存储类型转换装置可以将目标服务器中所存储的全部或部分的对象,作为待处理的各个备选对象,从而实现对于目标服务器中所有对象或部分进行类型转换分析。When the storage type conversion is performed for the objects in the target server, each candidate object to be processed in the target server may be determined first, and then each candidate object can be analyzed whether the storage type can be converted. In addition, the storage type conversion device may use all or part of the objects stored in the target server as each candidate object to be processed, thereby implementing type conversion analysis for all objects or parts in the target server.
本领域技术人员可以理解的是,存储类型转换装置可以通过从目标服务器中下载对象列表信息,来获知目标服务器中所存储的各个对象。其中,该对象列表信息可以记录有对象的id、对象的名称、格式、数据量大小、拥有者等描述信息。It can be understood by those skilled in the art that the storage type conversion apparatus can learn each object stored in the target server by downloading the object list information from the target server. The object list information may record description information such as the id of the object, the name of the object, the format, the size of the data, and the owner.
而为了实现对于目标服务器的访问,可以通过人机交互界面来配置目标服务器的相关信息,该相关信息可以包括:目标服务器的访问域名、用于生成身份认证所需的签名的秘钥信息、对象所位于的存储空间信息,以及是否使用加密访问ssl(security socketlayer,安全套接字)等。进而,该存储类型转换装置可以基于预先配置的目标服务器的相关信息,来实现对于目标服务器的访问,并根据预先配置的转换接口来进行存储类型转换,或者,根据信息访问接口来下载对象列表信息。In order to achieve access to the target server, the relevant information of the target server can be configured through the human-computer interaction interface. The relevant information can include: the access domain name of the target server, the secret key information used to generate the signature required for identity authentication, the object Information about the storage space where it is located, and whether to use encrypted access to ssl (security socketlayer, secure socket), etc. Further, the storage type conversion device can realize the access to the target server based on the relevant information of the preconfigured target server, and perform the storage type conversion according to the preconfigured conversion interface, or download the object list information according to the information access interface. .
S102,从各个备选对象中,确定满足预定的转换条件的目标对象;其中,转换条件为判定任一对象是否可转换存储类型所依据的条件,且转换条件至少包括在指定周期内的访问次数符合预定次数条件;S102, from each candidate object, determine a target object that satisfies a predetermined conversion condition; wherein, the conversion condition is a condition on which to determine whether any object can be converted into a storage type, and the conversion condition at least includes the number of visits in a specified period meet the predetermined number of conditions;
其中,转换条件以及后续提及的转换条件对应的转换类型,可以是企业用户的配置人员通过人机交互界面所配置的。并且,由于数据冷热标准与访问次数相关,因此,转换条件至少包括在指定周期内的访问次数符合预定次数条件。其中,该转换类型为满足该转换条件的对象所需转换至的存储类型。The conversion condition and the conversion type corresponding to the conversion condition mentioned later may be configured by the configuration personnel of the enterprise user through the human-computer interaction interface. Moreover, since the data hot and cold standard is related to the number of visits, the conversion condition includes at least that the number of visits within a specified period meets the condition of the predetermined number of times. The conversion type is the storage type to which the object satisfying the conversion condition needs to be converted.
在具体应用中,属于热数据的对象,可以采用标准存储,属于温数据的对象,可以采用低频存储,而属于冷数据的对象,可以采用归档存储。那么,配置人员可以根据企业用户自身所设定的数据冷热标准,来设定转换条件和转换条件所对应的转换类型,以此实现对象的冷热程度与对象的存储类型相匹配。也就是说,该转换条件为判定对象属于目标热度数据时所需满足的条件,该目标热度数据为:热数据、温数据或冷数据;该转换条件对应的转换类型为与该目标热度数据相匹配的存储类型。其中,若该转换条件为判定对象属于热数据时所需满足的条件,则该转换条件对应的转换类型为标准存储;若该转换条件为判定对象属于温数据时所需满足条件,则该转换条件对应的转换类型为低频存储;若该转换条件为判定对象属于冷数据时所需满足条件,则该转换条件对应的转换类型为归档存储。In specific applications, objects belonging to hot data can be stored in standard storage, objects belonging to warm data can be stored at low frequency, and objects belonging to cold data can be stored using archives. Then, the configurator can set the conversion condition and the conversion type corresponding to the conversion condition according to the data hot and cold standard set by the enterprise user, so as to match the hot and cold degree of the object with the storage type of the object. That is to say, the conversion condition is a condition that needs to be satisfied when it is determined that the object belongs to the target heat data, and the target heat data is: hot data, warm data or cold data; the conversion type corresponding to the conversion condition is the same as the target heat data. matching storage type. Among them, if the conversion condition is the condition that needs to be satisfied when the object belongs to hot data, the conversion type corresponding to the conversion condition is standard storage; if the conversion condition is the condition that needs to be satisfied when the object belongs to warm data, the conversion type The conversion type corresponding to the condition is low-frequency storage; if the conversion condition is a condition that needs to be satisfied when it is determined that the object belongs to cold data, the conversion type corresponding to the conversion condition is archive storage.
其中,热数据即为当下的热点数据,无论是用户还是系统运转所需要访问次数很高的数据,如在应用商店新上架的应用;温数据即随着数据的热点消退,虽有访问的次数不多的数据,如某款已经热度消退的游戏安装包文件;冷数据即极少访问但需要存储保留的数据,比如几年前的银行交易记录。举例而言:假设企业用户所设定的数据冷热标准中,任一对象在一周内的访问次数达到10次以上,则认为该对象为热数据,那么,可以设定转换条件为:在一周内的访问次数达到10次以上,该转换条件对应的转换类型为标准存储;而任一对象在一周内的访问次数超过1次且小于10次,则认为该对象为温数据,那么,可以设定转换条件为:在一周内的访问次数超过1次且未达到10次,该转换条件对应的转换类型为低频存储;而任一对象在一周内的访问次数未超过1次,则认为该对象为冷数据,那么,可以设定转换条件为:在一周内的访问次数未超过1次,该转换条件对应的转换类型为归档存储。Among them, the hot data is the current hot data, whether it is the data that the user or the system needs to visit with a high number of times, such as the newly launched applications in the application store; Little data, such as a game installation package file that has died down; cold data is data that is rarely accessed but needs to be stored and retained, such as bank transaction records from a few years ago. For example: Assuming that in the data hot and cold standard set by enterprise users, any object is accessed more than 10 times in a week, the object is considered to be hot data, then the conversion condition can be set as: within a week If the number of visits in the data exceeds 10 times, the conversion type corresponding to the conversion condition is standard storage; if the number of visits of any object in a week exceeds 1 and less than 10 times, the object is considered to be warm data, then, you can set The given conversion condition is: if the number of visits within a week exceeds 1 and does not reach 10, the conversion type corresponding to this conversion condition is low-frequency storage; and any object is visited less than once within a week, it is considered that the object If the data is cold data, then the conversion condition can be set as follows: the number of visits within a week does not exceed 1, and the conversion type corresponding to this conversion condition is archive storage.
需要强调的是,由于在考量冷热标准的前提下,还可以考虑其他参数的参数值,在均符合的情况下才进行存储类型的转换,因此,转换条件可以包括:在指定周期内的访问次数符合预定次数条件,以及指定参数符合预设条件。其中,指定参数可以包括:数据量大小、最后修改时间等等。It should be emphasized that since the parameter values of other parameters can also be considered under the premise of considering the hot and cold standards, the storage type conversion can only be carried out when all are met. Therefore, the conversion conditions can include: access within a specified period The number of times meets the predetermined number of times conditions, and the specified parameter meets the preset conditions. The specified parameters may include: data size, last modification time, and so on.
举例而言:在转换条件仅仅包括在指定周期内的访问次数符合预定次数条件的情况下,转换条件可以包括:在最近三十天的访问次数超过100次,相应的,转换条件对应的转换类型可以为:标准存储;或者,转换条件可以包括:在最近180天的访问次数不大于10次,相应的,转换条件对应的转换类型可以为低频存储;或者,转换条件可以包括:在最近360天的访问次数不大于1次,相应的,转换条件对应的转换类型可以为归档存储。For example: if the conversion condition only includes that the number of visits within a specified period meets the predetermined number of times, the conversion condition may include: the number of visits in the last thirty days exceeds 100, and correspondingly, the conversion type corresponding to the conversion condition It can be: standard storage; or, the conversion condition can include: the number of visits in the last 180 days is not more than 10 times, correspondingly, the conversion type corresponding to the conversion condition can be low-frequency storage; or, the conversion condition can include: in the last 360 days The number of accesses is not more than 1, and correspondingly, the conversion type corresponding to the conversion condition can be archive storage.
举例而言:在转换条件包括指定周期内的访问次数符合预定次数条件以及数据量符合预设条件的情况下,转换条件可以包括:在最近三十天的访问次数超过100次且数据量不小于10M,相应的,转换条件对应的转换类型可以为:标准存储;或者,转换条件可以包括:在最近180天的访问次数不大于10次,且数据量大于20M,相应的,转换条件对应的转换类型可以为低频存储;或者,转换条件可以包括:在最近360天的访问次数不大于1次,且数据量大于30M,相应的,转换条件对应的转换类型可以为归档存储。For example, if the conversion condition includes that the number of visits in a specified period meets the predetermined number of times and the amount of data meets the preset condition, the conversion condition may include: the number of visits in the last thirty days exceeds 100 and the amount of data is not less than 100 10M, correspondingly, the conversion type corresponding to the conversion condition may be: standard storage; or, the conversion condition may include: the number of visits in the last 180 days is not more than 10 times, and the data volume is greater than 20M, correspondingly, the conversion corresponding to the conversion condition The type may be low-frequency storage; or, the conversion condition may include: the number of accesses in the last 360 days is not greater than 1, and the data volume is greater than 30M. Correspondingly, the conversion type corresponding to the conversion condition may be archive storage.
另外,对于任一对象的在指定周期内的访问次数,存储类型转换装置可以通过关于该目标服务器的日志信息来获得。而为了获得访问日志,可以预先配置存储日志信息的日志存储系统的访问信息,进而可以基于日志存储系统的访问信息,来访问日志存储系统。为了方便理解方案,图4给出了存储类型转换装置与日志存储系统和目标服务器的的交互示意图。In addition, the storage type conversion device can obtain the access times of any object within a specified period through log information about the target server. In order to obtain the access log, the access information of the log storage system that stores the log information may be pre-configured, and then the log storage system may be accessed based on the access information of the log storage system. In order to facilitate understanding of the solution, FIG. 4 shows a schematic diagram of the interaction between the storage type conversion device, the log storage system and the target server.
S103,通过调用转换接口,按照与转换条件对应的转换类型,对目标服务器中的目标对象的存储类型进行转换;S103, by calling the conversion interface, according to the conversion type corresponding to the conversion condition, convert the storage type of the target object in the target server;
其中,转换类型为满足该转换条件的对象所需转换至的存储类型,转换接口为预先配置的、用于对目标服务器所存储对象进行存储类型转换的接口。The conversion type is the storage type to which the object satisfying the conversion condition needs to be converted, and the conversion interface is a pre-configured interface for performing storage type conversion on the object stored in the target server.
在确定出目标对象后,可以调用预先配置的转换接口,按照与转换条件对应的转换类型,转换目标对象在该目标服务器中的存储类型,即将目标对象转换为按照该转换类型进行存储。其中,目标对象的数量可以为一个或多个,针对每个目标对象,均可以通过调用转换接口,将目标服务器中的该目标对象的存储类型转换为转换类型。After the target object is determined, the preconfigured conversion interface can be called to convert the storage type of the target object in the target server according to the conversion type corresponding to the conversion condition, that is, the target object is converted to be stored according to the conversion type. The number of target objects may be one or more, and for each target object, the storage type of the target object in the target server may be converted to the conversion type by calling the conversion interface.
并且,通过调用转换接口,按照与转换条件对应的转换类型,对目标服务器中的目标对象的存储类型进行转换具体可以为:通过该转换接口,将目标对象的对象id以及转换类型作为参数进行传递给目标服务器,以使得目标服务器可以根据该目标对象的对象id和转换类型,完成对于目标对象的存储类型的转换。In addition, by calling the conversion interface, according to the conversion type corresponding to the conversion condition, the conversion of the storage type of the target object in the target server can be specifically: through the conversion interface, the object id of the target object and the conversion type are passed as parameters. To the target server, so that the target server can complete the conversion of the storage type of the target object according to the object id and conversion type of the target object.
本发明实施例所提供的方案中,利用与企业用户所设定的数据冷热标准相关的转换条件,从备选对象中确定待转换类型的目标对象,并通过调用与企业用户所使用的对象存储相关的转换接口,即目标服务器对应的转换接口,按照与转换条件对应的转换类型,对目标对象进行存储类型转换。可见,通过本方案,可以实现根据企业用户所设定的数据冷热标准,快速有效地转换企业用户所使用对象存储中的对象存储类型的目的。In the solution provided by the embodiment of the present invention, the conversion condition related to the data hot and cold standard set by the enterprise user is used to determine the target object of the type to be converted from the candidate objects, and by calling the object used by the enterprise user The storage-related conversion interface, that is, the conversion interface corresponding to the target server, performs storage type conversion on the target object according to the conversion type corresponding to the conversion condition. It can be seen that through this solution, the object storage type in the object storage used by the enterprise user can be quickly and effectively converted according to the data hot and cold standard set by the enterprise user.
可选地,配置人员可以配置至少一个转换条件,此时,在存储类型转换过程中所获取的转换条件的数量可以为至少一个。该至少一个转换条件可以对应相同或不同的转换类型。并且,考虑到一个对象可能同时满足至少两个转换条件,而转换类型应该唯一,因此,可以为该至少一个转换条件,设置优先级,每一转换条件均设置有优先级,这样,后续通过优先级可以选定唯一的转换类型。其中,每一转换条件的优先级可以由配置人员进行指定,当然并不局限于此。Optionally, the configuration personnel may configure at least one conversion condition, and in this case, the number of conversion conditions acquired during the storage type conversion process may be at least one. The at least one transition condition may correspond to the same or different transition types. And, considering that an object may satisfy at least two conversion conditions at the same time, and the conversion type should be unique, therefore, a priority can be set for the at least one conversion condition, and each conversion condition is set with a priority, so that the subsequent pass through the priority level can select a unique conversion type. Wherein, the priority of each transition condition can be specified by the configuration personnel, but of course it is not limited to this.
为了方案清楚,下面针对转换条件存在多个的情况,对本发明实施例所提供的针对对象存储的存储类型转换方法进行介绍。For the clarity of the scheme, the following describes the storage type conversion method for object storage provided by the embodiment of the present invention for a situation where there are multiple conversion conditions.
如图2所示,本发明实施例所提供的存储类型转换方法,可以包括如下步骤:As shown in FIG. 2, the storage type conversion method provided by the embodiment of the present invention may include the following steps:
S201,确定目标服务器中待处理的各个备选对象;S201, determine each candidate object to be processed in the target server;
本实施例中,S201与上述的S101相同,在此不做赘述。In this embodiment, S201 is the same as the above-mentioned S101, and details are not described here.
S202,从各个备选对象中,确定满足至少一个转换条件的目标对象;S202, from each candidate object, determine a target object that satisfies at least one conversion condition;
示例性的,在一种实现方式中,在确定出各个备选对象后,可以针对每个备选对象,判断该备选对象是否满足至少一个转换条件,如果是,判定该备选对象为满足至少一个转换条件的目标对象。Exemplarily, in an implementation manner, after each candidate object is determined, it can be determined whether the candidate object satisfies at least one conversion condition for each candidate object, and if so, it is determined that the candidate object satisfies at least one conversion condition. The target object of at least one transition condition.
示例性的,在另一种实现方式中,在确定出各个备选对象后,可以针对每个转换条件,从各个备选对象中,确定满足该转换条件的目标对象。任一目标对象可以仅仅符合一个转换条件,也可以符合至少两个转换条件。Exemplarily, in another implementation manner, after each candidate object is determined, for each conversion condition, a target object that satisfies the conversion condition may be determined from each candidate object. Any target object can meet only one transition condition or at least two transition conditions.
其中,关于转换条件的相关内容,可以参见上述实施例中的相应内容,在此不做赘述。For the relevant content of the conversion condition, reference may be made to the corresponding content in the foregoing embodiment, which will not be repeated here.
S203,如果目标对象满足至少两个转换条件,通过调用转换接口,按照目标转换条件对应的存储类型,转换该目标服务器中的目标对象的存储类型;S203, if the target object satisfies at least two conversion conditions, by calling the conversion interface, according to the storage type corresponding to the target conversion condition, convert the storage type of the target object in the target server;
其中,目标转换条件为目标对象所满足的对应的转换条件,即目标对象所满足的转换条件。为了更进一步满足企业用户的转换需求,目标转换条件可以为该目标对象所满足的优先级最高的转换条件。The target conversion condition is the corresponding conversion condition satisfied by the target object, that is, the conversion condition satisfied by the target object. In order to further meet the conversion requirements of enterprise users, the target conversion condition may be the conversion condition with the highest priority that is satisfied by the target object.
并且,按照目标转换条件对应的转换类型,转换目标对象的存储类型,即为按照目标转换条件对应的转换类型,转换目标服务器中的目标对象的存储类型。In addition, converting the storage type of the target object according to the conversion type corresponding to the target conversion condition is to convert the storage type of the target object in the target server according to the conversion type corresponding to the target conversion condition.
S204,如果目标对象仅满足一个转换条件,通过调用该转换接口,按照目标对象所满足转换条件对应的转换类型,转换该目标服务器中的目标对象的存储类型。S204, if the target object only satisfies one conversion condition, by invoking the conversion interface, convert the storage type of the target object in the target server according to the conversion type corresponding to the conversion condition satisfied by the target object.
通过S202所确定出的目标对象的数量可以一个或多个。在目标对象的数量为多个时,针对每一目标对象而言,均可以按照S203-S204来执行具体的存储类型转换。The number of target objects determined through S202 may be one or more. When the number of target objects is multiple, for each target object, specific storage type conversion may be performed according to S203-S204.
针对任一目标对象而言,如果该目标对象符合至少两个转换条件,由于需要确定唯一的转换类型,而优先级最高的转换条件对应的转换类型可以认为是最符合企业用户需求的类型,因此,在类型转换时,可以按照优先级最高的转换条件对应的转换类型,转换目标服务器中的目标对象的存储类型。For any target object, if the target object meets at least two conversion conditions, since a unique conversion type needs to be determined, and the conversion type corresponding to the conversion condition with the highest priority can be considered as the type that best meets the needs of enterprise users, so , during type conversion, the storage type of the target object in the target server can be converted according to the conversion type corresponding to the conversion condition with the highest priority.
而针对任一目标对象而言,如果目标对象仅符合一个转换条件,可以按照目标对象所满足转换条件对应的转换类型,转换目标服务器中的目标对象的存储类型。For any target object, if the target object meets only one conversion condition, the storage type of the target object in the target server can be converted according to the conversion type corresponding to the conversion condition satisfied by the target object.
并且,通过调用转换接口,将目标服务器中的目标对象的存储类型转换为任一转换类型具体可以为:通过该转换接口将目标对象的对象id以及该任一转换类型作为参数进行传递给目标服务器,以使得目标服务器可以根据该目标对象的对象id和该任一转换类型,完成对于目标对象的存储类型的转换。And, by invoking the conversion interface, converting the storage type of the target object in the target server to any conversion type may specifically be: passing the object id of the target object and any conversion type as parameters to the target server through the conversion interface , so that the target server can complete the conversion of the storage type of the target object according to the object id of the target object and any conversion type.
针对满足至少两个转换条件的目标对象而言,可能存在目标转换条件的数量为多个的情况,即对应最高优先级的转换条件的数量为多个的情况。为了保证转换类型的唯一性,可以预先设定关于各存储类型的优先级关系,这样,在目标转换条件的数量为多个时,可以从多个目标转换条件对应的转换类型中选取优先级最高的转换类型,作为待转换的类型。基于该种处理思想,该目标转换条件为目标对象所满足的优先级最高的转换条件;通过调用转换接口,按照目标转换条件对应的转换类型,转换目标服务器中的目标对象的存储类型,可以包括:For a target object that satisfies at least two transition conditions, there may be multiple target transition conditions, that is, there may be multiple transition conditions corresponding to the highest priority. In order to ensure the uniqueness of the conversion types, the priority relationship of each storage type can be preset. In this way, when the number of target conversion conditions is multiple, the highest priority can be selected from the conversion types corresponding to the multiple target conversion conditions. The conversion type of , as the type to be converted. Based on this processing idea, the target conversion condition is the conversion condition with the highest priority satisfied by the target object; by calling the conversion interface, according to the conversion type corresponding to the target conversion condition, the storage type of the target object in the target server is converted, which can include :
若目标转换条件的数量为多个,利用预设的关于各存储类型的优先级关系,从各个目标转换条件对应的转换类型中,确定所对应优先级最高的目标转换类型,将目标服务器中的目标对象的存储类型转换为目标转换类型;If the number of target conversion conditions is multiple, use the preset priority relationship about each storage type to determine the target conversion type with the highest priority from the conversion types corresponding to each target conversion condition, and put the target conversion type in the target server. The storage type of the target object is converted to the target conversion type;
若目标转换条件的数量为一个,通过调用转换接口,利用目标转换条件对应的转换类型,转换目标服务器中的目标对象的存储类型。If the number of target conversion conditions is one, the storage type of the target object in the target server is converted by calling the conversion interface and using the conversion type corresponding to the target conversion condition.
示例性的,可以按照保证对象数据的可用性的原则,来设定各个存储类型优先级关系。示例性的,各存储类型的优先级关系包括:低频存储的优先级小于标准存储的优先级,且低频存储的优先级大于归档存储的优先级。Exemplarily, the priority relationship of each storage type may be set according to the principle of ensuring the availability of object data. Exemplarily, the priority relationship of each storage type includes: the priority of low-frequency storage is lower than that of standard storage, and the priority of low-frequency storage is greater than that of archive storage.
本发明实施例所提供的方案中,利用与企业用户所设定的数据冷热标准相关的转换条件,从备选对象中确定待转换类型的目标对象,并通过调用与企业用户所使用的对象存储相关的转换接口,即目标服务器对应的转换接口,按照与转换条件对应的转换类型,对目标对象进行存储类型转换。可见,通过本方案,可以实现根据企业用户所设定的数据冷热标准,快速有效地转换企业用户所使用对象存储中的对象存储类型的目的。并且,转换条件的数量可以为至少一个,每一转换条件均具有优先级,使得存储类型的转换更加灵活以及快速。In the solution provided by the embodiment of the present invention, the conversion condition related to the data hot and cold standard set by the enterprise user is used to determine the target object of the type to be converted from the candidate objects, and by calling the object used by the enterprise user The storage-related conversion interface, that is, the conversion interface corresponding to the target server, performs storage type conversion on the target object according to the conversion type corresponding to the conversion condition. It can be seen that through this solution, the object storage type in the object storage used by the enterprise user can be quickly and effectively converted according to the data hot and cold standard set by the enterprise user. Moreover, the number of conversion conditions can be at least one, and each conversion condition has a priority, so that the conversion of storage types is more flexible and fast.
考虑到在某些场景下,并不需要对目标服务器中的所有对象进行存储类型是否转换的分析,而是对处于特定处理范围的对象进行存储类型转换的分析。基于该种需求,可以设置用于筛选位于特定处理范围的对象的预筛选条件。相应的,上述的图1和图2所示的实施例中,确定目标服务器中待处理的各个备选对象,可以包括:Considering that in some scenarios, it is not necessary to analyze whether the storage type is converted for all objects in the target server, but to analyze the storage type conversion for objects in a specific processing range. Based on this requirement, pre-filter conditions for filtering objects located in a specific processing scope can be set. Correspondingly, in the above-mentioned embodiments shown in FIG. 1 and FIG. 2 , determining each candidate object to be processed in the target server may include:
从目标服务器所存储的对象中,确定满足预定的预筛选条件的对象,得到待处理的各个备选对象。From the objects stored in the target server, determine the objects that satisfy the predetermined pre-screening conditions, and obtain each candidate object to be processed.
示例性的,预筛选条件可以包括:对象的目标参数的参数值符合指定参数条件。在具体应用中,目标参数包括对象名称、最后修改时间、数据量大小、所发生访问操作的操作类型以及存储类型中的至少一个参数,其中,所发生访问操作的操作类型可以包括读操作、写操作和删除操作。Exemplarily, the pre-screening condition may include: the parameter value of the target parameter of the object conforms to the specified parameter condition. In a specific application, the target parameter includes at least one parameter among the object name, the last modification time, the size of the data amount, the operation type of the access operation that occurs, and the storage type, wherein the operation type of the access operation that occurs may include read operation, write operation operations and delete operations.
并且,当目标参数为一个参数时,该指定参数条件即为该一个参数所对应的参数条件;而当目标参数为多个参数时,该指定参数条件由该多个参数对应的参数条件共同构成。其中,不同的指定参数所对应的参数条件可以不同,例如:对象名称所对应的参数条件可以为对象名称中包括指定字符,或者,对象名称的前缀匹配指定字符;最后修改时间所对应的参数条件可以为最后修改时间不早于或不晚于指定时间点,或者,最后修改时间等于指定时间点;数据量大小所对应的参数条件可以为数据量大小大于、小于或等于指定数据量;所发生的访问操作的操作类型对应的参数条件可以为发生过读操作、写操作和/或删除操作;存储类型对应的参数条件可以为存储类型为指定类型。Moreover, when the target parameter is one parameter, the specified parameter condition is the parameter condition corresponding to the one parameter; and when the target parameter is multiple parameters, the specified parameter condition is composed of the parameter conditions corresponding to the multiple parameters. . The parameter conditions corresponding to different specified parameters may be different. For example, the parameter conditions corresponding to the object name may include specified characters in the object name, or the prefix of the object name matches the specified characters; the parameter conditions corresponding to the last modification time It can be that the last modification time is not earlier than or not later than the specified time point, or, the last modification time is equal to the specified time point; the parameter conditions corresponding to the data size can be that the data size is greater than, less than or equal to the specified data size; the occurrence of The parameter condition corresponding to the operation type of the access operation can be that a read operation, write operation and/or delete operation has occurred; the parameter condition corresponding to the storage type can be that the storage type is a specified type.
举例而言:当目标参数为一个时,预筛选条件可以包括:存储类型为指定类型;或者,数据量小于指定数据量;For example: when the target parameter is one, the pre-screening conditions can include: the storage type is the specified type; or, the data volume is less than the specified data volume;
而当目标参数为多个时,预筛选条件可以包括:对象名称的前缀匹配test*、最后修改时间早于2020年1月10日且发生过读操作;或者,预筛选条件可以包括:对象名称包括“重要”且数据量大小不大于100M。When there are multiple target parameters, the pre-filter conditions may include: the prefix of the object name matches test*, the last modification time is earlier than January 10, 2020, and an over-read operation has occurred; or, the pre-filter conditions may include: the object name Including "important" and the data size is not more than 100M.
另外,需要说明的是,目标服务器中的对象的目标参数的参数值可以通过该目标服务器的目标信息记录来确定。其中,目标信息记录可以包括:目标服务器所存储对象的对象列表信息和/或关于目标服务器所存储对象的访问日志。对象列表信息可以为通过调用信息访问接口所获取到的信息,信息访问接口为预先配置的、用于访问关于目标服务器的对象列表信息的接口。其中,不同的目标服务器所对应的信息访问接口可以不同,本发明实施例对此不做限定。另外,在具体应用中,该信息访问接口可以由上述的SDK提供。In addition, it should be noted that the parameter value of the target parameter of the object in the target server can be determined through the target information record of the target server. The target information record may include: object list information of objects stored by the target server and/or access logs about the objects stored by the target server. The object list information may be information obtained by calling an information access interface, and the information access interface is a preconfigured interface for accessing the object list information about the target server. The information access interfaces corresponding to different target servers may be different, which is not limited in this embodiment of the present invention. In addition, in a specific application, the information access interface may be provided by the aforementioned SDK.
另外,在具体应用中,存在对于特定对象的存储类型的锁定的需求,也就是说,无论该特定对象是否满足转换条件,均需要保持原有的存储类型的需求。基于该种需求,配置人员可以配置类型锁定条件,以通过该类型锁定条件来进一步判断是否进行存储类型的转换。那么,在上述的图1和图2所示的任一实施例中,所述从各个备选对象中,确定满足预定的转换条件的目标对象之后,所述通过调用转换接口,按照与转换条件对应的转换类型,对目标服务器中的目标对象的存储类型进行转换之前,还可以包括:In addition, in a specific application, there is a need to lock the storage type of a specific object, that is, no matter whether the specific object satisfies the conversion condition, the original storage type needs to be maintained. Based on this requirement, the configurator can configure the type locking condition, so as to further judge whether to perform the storage type conversion according to the type locking condition. Then, in any of the above-mentioned embodiments shown in FIG. 1 and FIG. 2 , after the target object that satisfies the predetermined conversion condition is determined from each candidate object, the conversion interface is called by calling the conversion interface according to the conversion condition. The corresponding conversion type, before converting the storage type of the target object in the target server, may also include:
判断目标对象是否满足预定的类型锁定条件;Determine whether the target object satisfies the predetermined type locking condition;
当判断结果为否时,执行通过调用转换接口,按照与转换条件对应的转换类型,对目标服务器中的所述目标对象的存储类型进行转换的步骤。When the judgment result is no, execute the step of converting the storage type of the target object in the target server according to the conversion type corresponding to the conversion condition by invoking the conversion interface.
其中,该类型锁定条件的设定可以参照上述预筛选条件的设定。也就是说,该类型锁定条件可以包括:对象的指定参数的参数值满足预设参数条件。指定参数可以包括:对象名称、最后修改时间、数据量大小、所发生访问操作的操作类型以及存储类型中的至少一个参数。并且,当指定参数为一个参数时,该预设参数条件即为该一个参数所对应的参数条件;而当指定参数为多个参数时,该预设参数条件由该多个参数对应的参数条件共同构成。The setting of this type of locking condition may refer to the setting of the above-mentioned pre-screening condition. That is, the type locking condition may include: the parameter value of the specified parameter of the object satisfies the preset parameter condition. The specified parameters may include at least one parameter among the object name, the last modification time, the size of the data amount, the operation type of the access operation that occurs, and the storage type. Moreover, when the specified parameter is one parameter, the preset parameter condition is the parameter condition corresponding to the one parameter; and when the specified parameter is multiple parameters, the preset parameter condition is the parameter condition corresponding to the multiple parameters constitute together.
举例而言:当指定参数为一个时,类型锁定条件可以包括:存储类型为指定类型;或者,数据量小于指定数据量;For example: when the specified parameter is one, the type locking condition can include: the storage type is the specified type; or, the data volume is less than the specified data volume;
而当指定参数为多个时,类型锁定条件可以包括:对象名称的前缀匹配test*、最后修改时间早于2020年1月10日且发生过读操作;或者,预筛选条件可以包括:对象名称包括“重要”且数据量大小不大于100M。When there are multiple specified parameters, the type lock condition can include: the prefix of the object name matches test*, the last modification time is earlier than January 10, 2020, and a read operation has occurred; or, the pre-filter condition can include: the object name Including "important" and the data size is not more than 100M.
下面结合一具体实施例,对本发明实施例所提供的针对对象存储的存储类型转换方法进行介绍。The following describes the storage type conversion method for object storage provided by the embodiment of the present invention with reference to a specific embodiment.
如图3所示,本发明实施例所提供的存储类型转换方法,可以包括如下步骤:As shown in FIG. 3, the storage type conversion method provided by the embodiment of the present invention may include the following steps:
S301,从目标服务器所存储的对象中,确定满足预定的预筛选条件的对象,得到待处理的各个备选对象;S301, from the objects stored in the target server, determine the objects that meet the predetermined pre-screening conditions, and obtain each candidate object to be processed;
S302,针对每个备选对象,判断该备选对象是否满足各个转换条件,若该备选对象满足至少一个转换条件,确定该备选对象为目标对象。S302, for each candidate object, determine whether the candidate object satisfies each conversion condition, and if the candidate object satisfies at least one conversion condition, determine that the candidate object is the target object.
S303,针对每个目标对象,判断该目标对象是否满足预定的类型锁定条件,如果是,结束对于该目标对象的处理;如果否,执行S304或S305;S303, for each target object, determine whether the target object satisfies the predetermined type locking condition, if so, end the processing of the target object; if not, execute S304 or S305;
S304,如果该目标对象满足至少两个转换条件,若目标转换条件的数量为多个,利用预设的关于各存储类型的优先级关系,从各个目标转换条件对应的转换类型中,确定所对应优先级最高的目标转换类型,将目标服务器中的该目标对象的存储类型转换为该目标转换类型;若目标转换条件的数量为一个,通过调用该转换接口,利用该目标转换条件对应的转换类型,转换该目标服务器中的该目标对象的存储类型;S304, if the target object satisfies at least two conversion conditions, and if the number of target conversion conditions is multiple, use the preset priority relationship about each storage type to determine the corresponding conversion type from the conversion types corresponding to each target conversion condition The target conversion type with the highest priority, convert the storage type of the target object in the target server to the target conversion type; if the number of target conversion conditions is one, by calling the conversion interface, use the conversion type corresponding to the target conversion condition , convert the storage type of the target object in the target server;
S305,如果该目标对象仅满足一个转换条件,通过调用该转换接口,按照该目标对象所满足转换条件对应的转换类型,转换该目标服务器中的该目标对象的存储类型。S305, if the target object only satisfies one conversion condition, by invoking the conversion interface, convert the storage type of the target object in the target server according to the conversion type corresponding to the conversion condition satisfied by the target object.
可见,通过本方案,可以实现根据企业用户所设定的数据冷热标准,快速有效地转换企业用户所使用对象存储中的对象存储类型的目的。并且,转换条件的数量可以为多个,不同的转换条件对应的不同优先级,使得存储类型的转换更加灵活以及快速。同时,设定类型锁定条件,可以实现对于特定对象的存储类型的锁定的需求。It can be seen that through this solution, the object storage type in the object storage used by the enterprise user can be quickly and effectively converted according to the data hot and cold standard set by the enterprise user. In addition, the number of conversion conditions can be multiple, and different conversion conditions correspond to different priorities, which makes the conversion of storage types more flexible and fast. At the same time, by setting the type locking condition, the requirement for locking the storage type of a specific object can be realized.
相应于上述方法实施例,本发明实施例提供了一种存储类型转换装置。如图5所示,该装置应用于电子设备,可以包括:Corresponding to the above method embodiments, the embodiments of the present invention provide a storage type conversion device. As shown in Figure 5, the device is applied to electronic equipment and may include:
对象确定模块510,用于确定目标服务器中待处理的各个备选对象;所述目标服务器为用于存储对象的云服务器;The object determination module 510 is used to determine each candidate object to be processed in the target server; the target server is a cloud server for storing objects;
筛选模块520,用于从各个备选对象中,确定满足预定的转换条件的目标对象;其中,所述转换条件为判定任一对象是否可转换存储类型所依据的条件,且所述转换条件至少包括在指定周期内的访问次数符合预定次数条件;The
转换模块530,用于通过调用转换接口,按照与所述转换条件对应的转换类型,对所述目标服务器中的所述目标对象的存储类型进行转换;A
其中,所述转换类型为满足所述转换条件的对象所需转换至的存储类型,所述转换接口为用于对所述目标服务器所存储对象进行存储类型转换的接口。The conversion type is the storage type to which the object satisfying the conversion condition needs to be converted, and the conversion interface is an interface for performing storage type conversion on the object stored in the target server.
本发明实施例所提供的方案中,利用与企业用户所设定的数据冷热标准相关的转换条件,从备选对象中确定待转换类型的目标对象,并通过调用与企业用户所使用的对象存储相关的转换接口,即目标服务器对应的转换接口,按照与转换条件对应的转换类型,对目标对象进行存储类型转换。可见,通过本方案,可以实现根据企业用户所设定的数据冷热标准,快速有效地转换企业用户所使用对象存储中的对象存储类型的目的。In the solution provided by the embodiment of the present invention, the conversion condition related to the data hot and cold standard set by the enterprise user is used to determine the target object of the type to be converted from the candidate objects, and by calling the object used by the enterprise user The storage-related conversion interface, that is, the conversion interface corresponding to the target server, performs storage type conversion on the target object according to the conversion type corresponding to the conversion condition. It can be seen that through this solution, the object storage type in the object storage used by the enterprise user can be quickly and effectively converted according to the data hot and cold standard set by the enterprise user.
可选地,所述对象确定模块510具体用于:Optionally, the object determination module 510 is specifically configured to:
从目标服务器所存储的对象中,确定满足预定的预筛选条件的对象,得到待处理的各个备选对象;From the objects stored in the target server, determine the objects that meet the predetermined pre-screening conditions, and obtain each candidate object to be processed;
所述预筛选条件包括:对象的目标参数的参数值符合指定参数条件;The pre-screening condition includes: the parameter value of the target parameter of the object conforms to the specified parameter condition;
其中,所述目标参数包括对象名称、最后修改时间、数据量大小、所发生访问操作的操作类型以及存储类型中的至少一个参数。Wherein, the target parameter includes at least one parameter among the object name, the last modification time, the size of the data amount, the operation type of the access operation that occurs, and the storage type.
可选地,所述装置还可以包括:Optionally, the device may also include:
锁定分析模块,用于在所述筛选模块520从各个备选对象中,确定满足预定的转换条件的目标对象之后,所述转换模块通过调用转换接口,按照与所述转换条件对应的转换类型,对所述目标服务器中的所述目标对象的存储类型进行转换之前,判断所述目标对象是否满足预定的类型锁定条件;The locking analysis module is used for, after the
当判断结果为否时,执行所述通过调用转换接口,按照与所述转换条件对应的转换类型,对所述目标服务器中的所述目标对象的存储类型进行转换的步骤。When the judgment result is no, the step of converting the storage type of the target object in the target server according to the conversion type corresponding to the conversion condition by invoking the conversion interface is performed.
可选地,所述转换条件的数量为至少一个;每一转换条件均设置有优先级;Optionally, the number of the conversion conditions is at least one; each conversion condition is set with a priority;
所述转换模块530具体用于:The
如果所述目标对象满足至少两个转换条件,通过调用转换接口,按照目标转换条件对应的转换类型,转换所述目标服务器中的所述目标对象的存储类型;所述目标转换条件为所述目标对象所满足的对应的转换条件;If the target object satisfies at least two conversion conditions, convert the storage type of the target object in the target server according to the conversion type corresponding to the target conversion condition by calling the conversion interface; the target conversion condition is the target The corresponding conversion condition satisfied by the object;
如果所述目标对象仅满足一个转换条件,通过调用所述转换接口,按照所述目标对象所满足转换条件对应的转换类型,转换所述目标服务器中的所述目标对象的存储类型。If the target object only satisfies one conversion condition, by calling the conversion interface, the storage type of the target object in the target server is converted according to the conversion type corresponding to the conversion condition satisfied by the target object.
可选地,所述目标转换条件为所述目标对象所满足的优先级最高的转换条件;Optionally, the target conversion condition is the highest priority conversion condition satisfied by the target object;
所述转换模块通过调用转换接口,按照目标转换条件对应的转换类型,转换所述目标服务器中的所述目标对象的存储类型,包括:The conversion module converts the storage type of the target object in the target server according to the conversion type corresponding to the target conversion condition by calling the conversion interface, including:
若目标转换条件的数量为多个,利用预设的关于各存储类型的优先级关系,从各个目标转换条件对应的转换类型中,确定所对应优先级最高的目标转换类型,将所述目标服务器中的所述目标对象的存储类型转换为所述目标转换类型;If the number of target conversion conditions is multiple, the preset priority relationship about each storage type is used to determine the target conversion type with the highest corresponding priority from the conversion types corresponding to each target conversion condition, and the target server The storage type of the target object in is converted to the target conversion type;
若目标转换条件的数量为一个,通过调用所述转换接口,利用所述目标转换条件对应的转换类型,转换所述目标服务器中的所述目标对象的存储类型。If the number of target conversion conditions is one, by invoking the conversion interface, the storage type of the target object in the target server is converted by using the conversion type corresponding to the target conversion condition.
可选地,所述各存储类型的优先级关系包括:低频存储的优先级小于标准存储的优先级,且低频存储的优先级大于归档存储的优先级。Optionally, the priority relationship of each storage type includes: the priority of low-frequency storage is lower than that of standard storage, and the priority of low-frequency storage is greater than the priority of archive storage.
另外,基于上述的方法实施例,本发明实施例还提供了存储类型转换系统。如图6所示,本发明实施例所提供的存储类型转换系统,可以包括:In addition, based on the foregoing method embodiments, the embodiments of the present invention further provide a storage type conversion system. As shown in FIG. 6 , the storage type conversion system provided by the embodiment of the present invention may include:
规则管理装置610,用于规则管理装置,用于管理用于对象存储类型转换的预定的转换条件和所述转换条件对应的转换类型;其中,所述转换条件为判定任一对象是否可转换存储类型所依据的条件,且所述转换条件至少包括在指定周期内的访问次数符合预定次数条件;所述转换类型为满足所述转换条件的对象所需转换至的存储类型;The
智能计算装置620,用于确定目标服务器中待处理的各个备选对象;从各个备选对象中,确定满足所述规则管理装置中所管理的所述转换条件的目标对象;所述目标服务器为用于存储对象的云服务器;The
操作执行装置630,用于通过调用转换接口,按照所述规则管理装置所管理的与所述转换条件对应的转换类型,对所述目标服务器中的所述目标对象的存储类型进行转换;其中,所述转换接口为用于对所述目标服务器所存储对象进行存储类型转换的接口。The
其中,规则管理装置610可以指示配置人员,来配置用于对象存储类型转换的转换条件和所述转换条件对应的转换类型,例如:输出用于对象存储类型转换的界面,以供配置人员配置转换条件和转换类型;在配置完成后,对转换条件和转换条件对应的转换类型进行保存,从而实现对用于存储类型转换的规则的管理。The
在类型转换过程中,参见图7所示,智能计算装置可以从规则管理装置中读取转换条件和转换条件对应的转换类型,基于所获取的转换条件,来确定待类型转换的目标对象,并输出待类型转换的目标对象的信息至预定的存储区域,其中,待类型转换的目标对象的信息可以包括目标对象的id和目标对象待转换至的转换类型;进而,操作执行装置可以从该存储区域中读取待类型转换的目标对象的信息,利用转换接口,以及所获取的目标对象的信息,对目标服务器中的目标对象进行存储类型转换。In the type conversion process, as shown in FIG. 7 , the intelligent computing device may read the conversion condition and the conversion type corresponding to the conversion condition from the rule management device, and determine the target object to be type-converted based on the acquired conversion condition, and Output the information of the target object to be converted to a predetermined storage area, wherein the information of the target object to be converted may include the id of the target object and the conversion type to which the target object is to be converted; The information of the target object to be type-converted is read in the area, and the storage type conversion is performed on the target object in the target server by using the conversion interface and the acquired information of the target object.
本发明实施例所提供的方案中,通过规则管理装置、智能计算装置和操作执行装置的配合,可以利用与企业用户所设定的数据冷热标准相关的转换条件,从备选对象中确定待转换类型的目标对象,并通过调用与企业用户所使用的对象存储相关的转换接口,即目标服务器对应的转换接口,按照与转换条件对应的转换类型,对目标对象进行存储类型转换。可见,通过本方案,可以实现根据企业用户所设定的数据冷热标准,快速有效地转换企业用户所使用对象存储中的对象存储类型的目的。In the solution provided by the embodiment of the present invention, through the cooperation of the rule management device, the intelligent computing device and the operation execution device, the conversion conditions related to the data cooling and heating standards set by the enterprise user can be used to determine the pending object from the candidate objects. Convert the target object of the conversion type, and perform storage type conversion on the target object according to the conversion type corresponding to the conversion condition by calling the conversion interface related to the object storage used by the enterprise user, that is, the conversion interface corresponding to the target server. It can be seen that through this solution, the object storage type in the object storage used by the enterprise user can be quickly and effectively converted according to the data hot and cold standard set by the enterprise user.
本发明实施例还提供了一种电子设备,如图8所示,包括处理器801、通信接口802、存储器803和通信总线804,其中,处理器801,通信接口802,存储器803通过通信总线804完成相互间的通信,An embodiment of the present invention further provides an electronic device, as shown in FIG. 8 , including a
存储器803,用于存放计算机程序;a
处理器801,用于执行存储器803上所存放的程序时,实现本发明实施例所提供的存储类型转换方法的步骤。The
上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral ComponentInterconnect,PCI)总线或扩展工业标准结构(Extended Industry StandardArchitecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned in the above electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus or the like. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
通信接口用于上述电子设备与其他设备之间的通信。The communication interface is used for communication between the above electronic device and other devices.
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital SignalProcessing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; may also be a digital signal processor (Digital Signal Processing, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
在本发明提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现本发明实施例所提供的存储类型转换方法的步骤。In another embodiment provided by the present invention, a computer-readable storage medium is also provided, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the implementation provided by the embodiment of the present invention is provided. The steps of the storage type conversion method.
在本发明提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行本发明实施例所提供的存储类型转换方法的步骤。In another embodiment provided by the present invention, a computer program product including instructions is also provided, when it runs on a computer, the computer executes the steps of the storage type conversion method provided by the embodiment of the present invention.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media. The usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), among others.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、电子设备等实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for embodiments such as apparatuses, electronic devices, etc., since they are basically similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for related parts.
以上所述仅为本发明的较佳实施例,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010761389.7A CN111858497B (en) | 2020-07-31 | 2020-07-31 | A storage type conversion method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010761389.7A CN111858497B (en) | 2020-07-31 | 2020-07-31 | A storage type conversion method, device and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111858497A true CN111858497A (en) | 2020-10-30 |
CN111858497B CN111858497B (en) | 2024-12-03 |
Family
ID=72953809
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010761389.7A Active CN111858497B (en) | 2020-07-31 | 2020-07-31 | A storage type conversion method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111858497B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113900597A (en) * | 2021-11-30 | 2022-01-07 | 深圳市安信达存储技术有限公司 | Data storage method, system, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20140108851A (en) * | 2013-03-04 | 2014-09-15 | 주식회사 이파피루스 | Document type conversion system and providing method thereof |
CN104281533A (en) * | 2014-09-18 | 2015-01-14 | 深圳市中博科创信息技术有限公司 | Data storage method and device |
US20170177487A1 (en) * | 2015-12-16 | 2017-06-22 | Rambus Inc. | Deterministic operation of storage class memory |
CN107807796A (en) * | 2017-11-17 | 2018-03-16 | 北京联想超融合科技有限公司 | A kind of data hierarchy method, terminal and system based on super fusion storage system |
CN109840244A (en) * | 2018-12-29 | 2019-06-04 | 方正璞华软件(武汉)股份有限公司 | A kind of image type conversion method and device |
CN110347732A (en) * | 2019-05-20 | 2019-10-18 | 中国平安人寿保险股份有限公司 | A kind of data transfer device and device |
-
2020
- 2020-07-31 CN CN202010761389.7A patent/CN111858497B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20140108851A (en) * | 2013-03-04 | 2014-09-15 | 주식회사 이파피루스 | Document type conversion system and providing method thereof |
CN104281533A (en) * | 2014-09-18 | 2015-01-14 | 深圳市中博科创信息技术有限公司 | Data storage method and device |
US20170177487A1 (en) * | 2015-12-16 | 2017-06-22 | Rambus Inc. | Deterministic operation of storage class memory |
CN107807796A (en) * | 2017-11-17 | 2018-03-16 | 北京联想超融合科技有限公司 | A kind of data hierarchy method, terminal and system based on super fusion storage system |
CN109840244A (en) * | 2018-12-29 | 2019-06-04 | 方正璞华软件(武汉)股份有限公司 | A kind of image type conversion method and device |
CN110347732A (en) * | 2019-05-20 | 2019-10-18 | 中国平安人寿保险股份有限公司 | A kind of data transfer device and device |
Non-Patent Citations (3)
Title |
---|
AWS: "Amazon Simple Storage Service 用户指南", 《AMAZON SIMPLE STORAGE SERVICE 用户指南》, 31 December 2019 (2019-12-31), pages 703 - 740 * |
梅成刚等主编: "《C++ Builder项目开发实践》", vol. 1, 31 May 2003, 中国铁道出版社, pages: 208 - 209 * |
谢丽华等主编: "《云计算架构与服务模式》", vol. 1, 31 October 2019, 北京工业大学出版社, pages: 99 - 100 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113900597A (en) * | 2021-11-30 | 2022-01-07 | 深圳市安信达存储技术有限公司 | Data storage method, system, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111858497B (en) | 2024-12-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111181975B (en) | An account management method, device, equipment and storage medium | |
CN108897628B (en) | Method and device for realizing distributed lock and electronic equipment | |
CN109936571A (en) | Mass data sharing method, open sharing platform and electronic device | |
CN109391673B (en) | Method, system and terminal equipment for managing update file | |
CN109213604B (en) | Data source management method and device | |
CN110213250B (en) | Data processing method and terminal equipment | |
CN111177703B (en) | Method and device for determining data integrity of operating system | |
US20180152434A1 (en) | Virtual content repository | |
CN110740057A (en) | service deployment method and block chain platform | |
CN107682250B (en) | Method and equipment for executing social operation | |
WO2023165226A1 (en) | Application resource backup method and apparatus, electronic device, and storage medium | |
CN116319026A (en) | Trust assessment method and device in zero-trust architecture and electronic equipment | |
CN113946854B (en) | File access control method and device and computer readable storage medium | |
CN111858498A (en) | Storage type conversion method, system, device and device | |
CN111858497A (en) | A storage type conversion method, device and device | |
CN114065183A (en) | Authority control method and device, electronic equipment and storage medium | |
CN112685778A (en) | Data storage method and device | |
CN112733510A (en) | Financial certificate generation method, device, equipment and computer readable storage medium | |
CN116628773A (en) | Data processing method, device, electronic device and storage medium | |
WO2018121164A1 (en) | Method, device, and system for creating service numbers | |
WO2022133827A1 (en) | Method and apparatus for processing task processing request, and blockchain node device | |
CN116611058A (en) | A kind of blackmail virus detection method and related system | |
CN114386087A (en) | Data query processing method and device, electronic equipment and storage medium | |
CN106851648B (en) | A method, device and system for sharing access information of wireless access points | |
CN111092892A (en) | Authentication method, device, server and storage medium |
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 |