This application claims priority from Chinese Patent Application Number CNC201610144505.4, filed on Mar. 14, 2016 at the State Intellectual Property Office, China. titled “METHOD AND APPARATUS FOR DATA STORAGE SERVICE” the contents of which is herein incorporated by reference in its entirety.
Embodiments of the present disclosure relate to storage systems, and more specifically relate to methods and apparatuses for providing data storage functions/services.
In the field of data storage, more and more storages are software defined and storage functions/services are gradually virtualized. For instance, some hardware apparatuses are migrated to a pure software solution and installed, for example, on x86 machines.
EMC™ is one of the top storage solution providers and possesses various storage technologies, such as storage built-in data replication, RPA and TWirlt Strata, Maginatics/CloudBoost, Spinning, etc. Besides, EMC™ has also made many trials for solutions of software defined storages.
However, there is no flexible and unified solution available at present that enables a user to customize provided storage services and enables the customization to be partially reusable for another user.
Embodiments of the present, disclosure provide a method and apparatus to solve at least some of the above problems.
Embodiments of the present disclosure provide methods and apparatuses for providing a storage service in a storage system. A brief summary of the embodiments is provided below to provide a basic understanding of sonic aspects of the embodiments. The summary does not intend to indicate key points of the essential elements or to describe scope of the embodiments. Its sole purpose lies in presenting some concepts in a simplified form as a preamble for more detailed description in the following context.
A first aspect of the present disclosure provides a method for a storage service. The method comprises: receiving, from an user, a storage service template specifying a storage service policy for the user and a service instance to launch; and providing the storage service according to the storage service template; wherein the storage service policy defines a storage function to be performed for data of the user.
In an embodiment, the storage service template may specify the storage service policy for the user by indicating at least one storage service policy from a predefined set of storage service policies.
In another embodiment, a storage service policy can be defined with work flow engine, wherein a task in the work flow engine corresponds to a storage function node or a type of storage service.
In still another embodiment, the storage service template may further specify a network for providing the storage service.
In an embodiment, the storage service policy may further define an execution module for the storage function, and/or a parameter for performing the storage function. In another embodiment, the execution module for the storage function comprises a virtual machine or a container image.
In a further embodiment, a parameter for performing the storage function may include an execution order and/or a triggering condition for the storage function.
A second aspect of the present disclosure provides an apparatus for data storage services, the apparatus comprises: a receiving unit configured to receive, from an user, a storage service template specifying a storage service policy for the user and a service instance to launch; and an executing unit configured to provide a storage service according to the storage service template; wherein the storage service policy defines a storage function to be performed for data of the user.
A third aspect of the present disclosure provides an apparatus comprising at least one processor and at least one memory comprising computer program code, wherein the at least one memory and the computer program code are configured, with the at least one processor, to cause the apparatus to implement a method according to the first aspect of the present disclosure.
A fourth aspect of the present disclosure provides a computer program comprising instructions which, when executed in at least one processor, cause the at least one processor to implement a method according to the first aspect of the present disclosure.
With methods or apparatuses according to embodiments of the present disclosure, the user can customize a required storage function flexibly and avoid complicated manual operations. Moreover, embodiments of the present disclosure provide a unified solution for overall orchestration of storage functions.
Though specific embodiments are provided by way of example in the drawings, it should be understood that description of the detailed embodiments does not intend to limit the embodiments as to the disclosed specific form disclosed.
Objectives, advantages and other features of the present disclosure will become more apparent in the following disclosure and claims. Just for illustration purpose, example embodiments are described here in a non-limitative manner with reference to the drawings, in which:
In the following description, many details are illustrated for the purpose of illustration. However, those skilled in the art would realize that embodiments of the present disclosure may be implemented without the specific details. Therefore, the present disclosure is not intended to be limited by the embodiments shown here but will be invested with the broadest scope consistent with the principles and features described herein.
It is to be understood that terms “a first” “a second”, etc. are only used to distinguish one element from another. As a matter of fact, a first element can also be called a second element and vice versa. It should further be understood that “comprising” and “including” are only used to indicate the presence of the illustrated features, elements, functions or components without excluding the presence of one or more other features, elements, functions or components.
As stated above, software defined storage is a trend of development currently. Many trials have been made in this aspect. For instance, EMC™ has made the following researches:
virtualize the current storage technology: based on technologies like virtual applications (vApps), the storage function can be put into a virtual machine which can run on an x86 machine.
containerize the existing storage technology: encapsulate the storage function into a container for fast deployment, launching and expanding. For example, EMC™ has published a virtual machine with replication function vVNX and vRPA, and they can be encapsulated as a container or Intel ClearLinux VM or VMWare Photon. Intel ClearLinux VM is a customized Linux with a starting time of about 200 ms and 20 MB storage footprint.
However, similar to most of the micro-service architecture, it should be noted that a problem to be addressed for the current virtualized storage solution is how to determine the granularity of the encapsulated storage function. Too big granularity would render the function difficult to be reused while too small granularity would require a powerful and complicated orchestration solution for the storage functions/services.
To solve at least some of the above problems, inventor of the present application proposes that the storage function/service should be orchestrated from global view of point and there are provided a method and apparatus in the embodiments of the present disclosure for chaining the storage function/service according to a predefined rule to meet various storage service requirements.
The flow chart of the example method 200 for data storage service according to an embodiment of the present disclosure is illustrated in the following with reference to
In an embodiment, the storage service template can further comprise a name and/or identifier (ID) of the template.
In an embodiment, at block S201, the storage service template can be received from the user in the form of a file, instruction or message. Embodiments of the present disclosure are not limited to any specific form of the storage service template.
In another embodiment, the storage service template specifies the storage service policy for the user by indicating at least one storage service policy from the predefined set of storage service policies.
Optionally, in still another embodiment, the storage service policy may also define an execution module of the storage function, and/or a parameter for executing the storage function. In an embodiment, the execution module of the storage function can include, but is not limited to, a virtual machine or container images. In another embodiment, the execution module of the storage function may also be specified in the storage service template rather than in each storage service policy.
In an example, each storage service policy of the set of storage service policies may specify chaining and execution conditions (or triggers) for a particular storage function. Thus, by specifying a proper index or reference identifier of a storage service policy in the storage service template, a corresponding storage service policy can be executed and the storage function desired by the user can be realized.
Additionally, embodiments of the present disclosure are not limited to any particular format/form to define storage service policy. Just as an example, the storage service policy may be defined with a work flow engine. The work flow engine may have the following concepts: namely, systematically organizing resource into a process which changes substance, provides service or processes information. According to embodiments of the present disclosure, each task in the work flow engine may correspond to a storage function node or a storage service. In an embodiment, the input data in the work flow may correspond to information and/or substance and/or energy required to complete the storage processing procedure. In another embodiment, the task in the work flow may correspond to a rule and algorithm for storage processing. The rule will cause resource consumption and the resource is provided by the hosted virtual machine or container. In another embodiment, the output data of the work flow may correspond to the information and/or substance and/or energy produced by the processing steps and are provided as input of a downstreain step. Two storage functions/services can be chained/plugged together only if the output of one previous storage function/service is equal to the mandatory input requirements of the following component. As can be understood by those skilled in the art, defining the storage service policy with a work flow engine is not the sole option.
In an embodiment, the storage service template can specify a network for providing the storage service. For example, the storage service template can specify one or more of the identifier, IP address and type of the network where each virtual machine or container image locates. The type of the network is particularly important in storage function/service connection. The majority of the storage services are data plane services that data will through. Data can be encrypted by different tunnels depending on different network types.
In another embodiment, parameters defined by the storage service policy for implementing storage function can include, but are not limited to, the execution order and/or triggering conditions of the storage function.
For the method according to embodiments of the present disclosure, a function/service (including file and block, such as replication, recovery. snapshot, or compression/decompression, encryption/decryption, etc.) can be regarded as a function node and each node may be provided by a service virtual machine or a container to operate one or more services dynamically. The method according to an embodiment of the present disclosure enables multiple nodes to be chained in a proper order for performing a complete work.
As stated above, the storage service template is a main component forming the chained storage system. With the storage service template, the user defines how data processing works. For the purpose of illustration rather than limitation, examples for storage service template and storage service policy are provided. Those skilled in the art can understand that in some embodiments, an implementation different from the example provided can be employed. As an example, storage service template may take different forms, such as XML, JSON, YAML, INT, etc. YAML is taken as an example in the following description.
In an embodiment, the following four storage service policies are predefined:
stream read: this policy reads data from a given sock. As an output-only policy, it cannot follow another policy;
encryption: this policy will start a virtual machine for data encryption. It can accept a data input and output it to another policy after encryption;
if_condition: this policy accepts a set of parameters to verify a data input and re-directs the data to different policies based on a determining condition;
backup: this policy will receive data and keep it. As an input-only strategy, it cannot be followed by another policy
As shown in
running the stream read policy at block 301 to start two virtual machines (VM) so as to read tax data from a given socket;
running the if condition policy at block 302 to check whether annual income of a taxpayer exceeds 120,000 yuan;
if yes, running the encryption policy at block 303 to encrypt the data; and
at block 304, by running the backup policy, retaining the encrypted data in a backup storage device.
For example rather than limitation, to realize this purpose, a storage service template can be illustrated as follows:
Now a schematic structure of apparatus 400 according to an embodiment of the present disclosure is illustrated with reference to
As shown in
In an embodiment, the storage service template may further comprise name and/or ID of the storage service template.
In another embodiment, the storage service template may specify the storage service policy for the user by indicating at least one storage service policy from a predefined set of storage service policies.
In another embodiment, the storage service policy may be defined with a work flow engine, wherein each task in the work flow engine corresponds to a storage function node or a kind of storage service. In an embodiment, input data in the work flow may correspond to information and/or substance and/or energy required to complete a storage processing step. In another embodiment, a task in the work flow may correspond to a rule and algorithm for the storage processing. The rule will cause resource consumption while the resource is provided by a hosted virtual machine or container. In another embodiment, output data of the work flow may correspond to information and/or substance and/or energy produced by the processing procedure and they are provided as input of a downstream step. Only if output of one previous storage function/service equal to a mandatory input requirement of a following component, the two storage functions/services can be chained/plugged together. As can be understood by those skilled in the art, defining a storage service policy with the work flow engine is not the sole option.
In an embodiment, the storage service template may also specify a network for providing the storage service. For example, the storage service template may specify at least one of the type, IP address and identifier of the network where each virtual machine or container image is located.
Optionally, in still another embodiment storage service policy may further define an execution module of the storage function, and/or parameters for executing the storage function. In an embodiment, the execution module of the storage function may include but is not limited to the virtual machine or container image. In another embodiment, the execution module of the storage function may also be specified in the storage service template rather than in a storage service policy.
In still another embodiment, parameters defined by the storage service policy for executing the storage function may include, but are not limited to an execution order and/or triggering condition of the storage function.
As can be understood by those skilled in the art, apparatus 400 may further comprise other units not shown in
Before the method and apparatus according to embodiments of the present disclosure are proposed, there is no efficient way for orchestrating storage functions/services. With the method and apparatus according to embodiments of the present disclosure, multiple storage functions can be chained flexibly to achieve a desired processing.
Those skilled in the art would readily realize that the blocks or steps of the above methods may be implemented with a programmed computer. In the present disclosure, some embodiments also intend to cover a computer program comprising instructions which, when implemented in at least one processor, cause the at least one processor to implement method 200. In the present disclosure, some embodiments also intend to cover a program storage system, for instance, a digital data storage medium which stores an instruction program readable by a machine or a computer and executable by an encoded machine or a computer, wherein the instructions implement some or all of the steps of the above method 200. The program storage system may be, for instance, a digital storage, a magnetic storage medium like magnetic disk and tape, hard disk driver or optical readable digital data storage medium. The embodiment also intends to cover a computer programmed to implement steps of the above method. Some embodiments intend to cover an apparatus comprising at least one processor, and at least one memory comprising computer program code, wherein the at least one memory and the computer program code are configured to, with the at least one processor, cause the apparatus to implement method 200.
A plurality of components within the apparatus 500 are connected to the I/O interface 505. The plurality of components include: an input unit 506, such as a keyboard and a mouse; an output unit 507, such as a display and a loudspeaker of various types; storage unit 508, such as a disk or a compact disk, etc.; and a communication unit 509, such as a network card, a modem or a wireless communication transceiver, etc. The communication unit 509 allows the apparatus 500 to communicate information/data with other devices via a computer network such as an internet and/or various telecommunication networks.
All the processes and processing described above, such as method 200, may be implemented by the processing unit 501. For example, in some embodiments, method 200 can be implemented as a computer software program which is embedded tangibly in machine readable medium, such as the storage unit 508. In some embodiments, a part of or all of a computer program may be loaded and/or installed into apparatus 500 via ROM 502 and/or communication unit 509. When loaded to RAM 503 and executed by the processing unit 501, the computer program can implement one or more of the steps of method 200 described above.
Therefore, solutions of the present disclosure may be provided in various manners. For example, in some embodiments, functions of various components of the apparatus shown in the figures or steps of a method shown in the figures may be provided by software, dedicated hardware and hardware that is associated with a proper software and can implement a software, or firmware, or a combination thereof. When it is provided by a processor, the function may be provided by a single dedicated processor, a single shared processor or a plurality of separate processors. Moreover, the term “processor” can include but is not limited to digital signal processor (DSP) hardware, a network processor, application-specific integrated circuit (ASIC), field programmable gate array (FPGA), read only memory (ROM) for storing software, random access memory (RAM) and a non-volatile storage device. It may also include other conventional and/or customized hardware.
Those skilled in the art should appreciate that the specification and drawings only illustrate principles of the embodiments. Therefore, it should be understood that those skilled in the art can design various arrangements, which though not clearly described or shown, embody the principles of embodiments of the present disclosure and are included in, the spirit and scope of embodiments of the present disclosure. In addition, all the examples are illustrated herein mainly for teaching purpose to facilitate readers in understanding principles of embodiments of the present disclosure and concepts contributed by the inventor to advance the field, and the embodiments should not be interpreted as limiting to examples and conditions elaborated herein. Meanwhile, all the statements describing principles, aspects and embodiments of the present disclosure also intend to include also their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
201610144505.4 | Mar 2016 | CN | national |