This application claims priority to Indian Application No. 202211056304 filed Sep. 30, 2022, which is incorporated herein by reference, in its entirety, for any purpose.
Examples described herein relate to data analytics systems for file systems, including distributed file servers hosting file systems. Examples of analytics systems which may select files for tiering and/or recall operations are described herein.
Data, including files, are increasingly important to enterprises and individuals. The ability to store significant corpuses of files is important to the operation of many modern enterprises. Existing systems that store enterprise data may be complex or cumbersome to interact with in order to quickly or easily establish what actions have been taken with respect to the enterprise's data and what attention may be needed from an administrator. In addition, an incomplete catalog of the file system may result in an incomplete analysis of the enterprise data to determine usage characteristics and to detect anomalies.
Certain details are set forth herein to provide an understanding of described embodiments of technology. However, other examples may be practiced without various of these particular details. In some instances, well-known circuits, control signals, timing protocols, and/or software operations have not been shown in detail in order to avoid unnecessarily obscuring the described embodiments. Other embodiments may be utilized, and other changes may be made, without departing from the spirit or scope of the subject matter presented here.
Data analytics systems described herein may provide a cloud-hosted analytics and monitoring service for file servers. The file servers may be hosted on any number of architectures, such as Nutanix Files and/or Isilon and/or NetApp file servers. Data analytics systems described herein may centralize data from clusters connected to admin systems operating at various data center locations. Cloud resources may reduce scaling constraints, as the cloud is not dependent on the file server resources, which may provide near-real-time analytics and alerts even for load-heavy file servers of more than 250 million files and over 500 TB of storage. Hosting file analytics on premises may limit the service to local file servers only. In contrast, systems described herein may function on a global level, in a cluster-neutral environment, without being tied to a single cluster.
Examples described herein include metadata and events-based file analytics systems for file systems. In some examples, the file systems may be implemented using hyper-converged scale out distributed file storage systems. Embodiments presented herein include a file analytics system which may retrieve, organize, aggregate, and/or analyze information pertaining to a file system. Information about the file system may be stored in an analytics datastore. The file analytics system may query or monitor the analytics datastore to provide information (e.g., to an administrator) in the form of display interfaces, reports, and alerts and/or notifications. In some examples, the file analytics system may be hosted in a remote computing environment (e.g., in a cloud computing architecture). In some examples, the file analytics system may be hosted on a computing node, whether standalone or on a cluster of computing nodes. In some examples, the file analytics system may interface with a file system managed by a distributed virtualized file server (VFS) hosted on a cluster of computing nodes. An example VFS may provide for shared storage (e.g., across an enterprise), failover and backup functionalities, as well as scalability and security of data stored on the VFS.
Data analytics systems described herein may scan metadata from the file system, and/or receive event data from the file system, and may store the metadata and/or event data in a database, data warehouse, or other location. This data may be used to provide a variety of analytics for the file system.
Data analytics systems described herein may utilize the metadata and event data to provide tiering instructions to the file system. Tiering generally may refer to moving files or other amounts of data from one tier of storage to another tier of storage. Typically, “hot” or more frequently used data may be stored in a storage tier which may generally have higher performance and/or be more expensive than “cold” or less frequently used data. Determining which data to send to which tier, and moving the data, can be a large project—particularly when managing TBs of storage.
Data analytics systems described herein may be utilized to identify files to be moved from one tier of storage to another, and to schedule the files for tiering. The data analytics systems may additionally or instead be used to recall files or other data from one tier to another.
During operation, the file analytics system may retrieve metadata associated with the file system, configuration and/or user information from the file system, and/or event data from the file system.
In some examples, the file server may include an audit framework that manages event data in an event log. The audit framework may be configured to communicate with the analytics system to provide event data and/or metadata to the analytics system from the event log.
In some examples, the information retrieved or received by the analytics system may include event data records and metadata. The metadata collection process may include gathering the overall size, structure, and storage locations of parts of the file system managed by the file server, as well as details (e.g., file size, allocated storage quota, creation and/or modification information, owner information, permissions information, etc.) for each data item (e.g., file, folder, directory, share, etc.) in the file system. In some examples, the metadata collection process may rely on scanning one or more snapshots of the file system managed by the file server to gather the metadata, such as one or more snapshots generated by a disaster recovery application of the file server. The analytics tool may use the information gathered from the one or more snapshots to develop a comprehensive picture of the file system managed by the file server. In some examples, the analytics tool may employ multiple threads to perform scanning of the snapshots in parallel. The multiple threads may be employed to scan different shares in parallel, different files of a common share in parallel, or any combination thereof.
To capture configuration information, the file analytics system may use an application programming interface (API) architecture to request the configuration information. The configuration information may include user information, a number of shares, deleted shares, created shares, etc.
To capture event data, the VFS may include an audit framework with a connector that is configured to communicate the event data records and other information for consumption by a file analytics system. The event data records may include data related to various operations on the file system executed by the VFS, such as adding, deleting, moving, modifying, etc., a file, folder, directory, share, etc. The event data records may indicate an event type (e.g., add, move, delete, modify, a user associated with the event, an event time, etc.).
To capture event data, the file analytics system may interface with the file server to receive event data. Received event data may be stored by the file analytics system in an analytics datastore, which may be a database and/or data warehouse. The event data may include data related to various operations performed with the file system, such as creating, deleting, reading, opening, editing, moving, modifying, etc., a file, folder, directory, share, etc., within the file system. The event information may indicate an event type (e.g., create, read, edit, delete), a user associated with the event, an event time, etc. Examples of events which may be supported in some examples include file open, file write, file rename, file create, file read, file delete, security change, directory create, directory delete, file open/permission denied, file close, and/or set attribute. Events may include file server audit events (e.g., Server Message Block (SMB) audit events). Events as described herein may be for either a file, directory, share, or other item of the file server.
The file analytics system may generate reports, including predetermined reports and/or customizable reports. The reports may be related to aggregate and/or specific user activity; aggregate file system activity; specific file, directory, share, etc., activity; etc.; or any combination of thereof.
Examples described herein provide analytics which may be used, for example, to collect, analyze, and display data about a file system. Generally, data from any file system may be obtained and analyzed in accordance with techniques described herein. In some examples, the file system may be implemented as a virtualized file system, such as on a distributed virtualized file server which may host a file system. Virtualization may be advantageous in modern business and computing environments in part because of the resource utilization advantages provided by virtualized computing systems. Without virtualization, if a physical machine is limited to a single dedicated process, function, and/or operating system, then during periods of inactivity by that process, function, and/or operating system, the physical machine is not utilized to perform useful work. This may be wasteful and inefficient if there are users on other physical machines which are currently waiting for computing resources. To address this problem, virtualization allows multiple virtualized computing instances, such as virtual machines (VMs) and/or containers to share the underlying physical resources so that during periods of inactivity by one virtualized computing instance, other instances can take advantage of the resource availability to process workloads. This can produce efficiencies for the utilization of physical devices and can result in reduced redundancies and better resource cost management.
Furthermore, virtualized computing systems may be used to not only utilize the processing power of the physical devices but also to aggregate the storage of the individual physical devices to create a logical storage pool where the data may be distributed across the physical devices but appears to the virtual machines and/or containers to be part of the system that the virtual machine and/or container is hosted on. Such systems may operate using metadata, which may be distributed and replicated any number of times across the system, to locate the indicated data.
Examples of virtualized file servers that may be used in examples described herein are also described in U.S. Published Patent Application 2017/0235760, published Aug. 17, 2017, entitled “Virtualized File Server” on U.S. application Ser. No. 15/422,220 filed Feb. 1, 2017, which application and publication are hereby incorporated herein by reference in their entirety for any purpose.
Examples of analytics systems which may be integrated with virtualized file servers are also described in U.S. application Ser. No. 17/304,096, filed Jun. 14, 2021, and entitled “File Analytics Systems and Methods,” which application is hereby incorporated by reference herein in its entirety for any purpose.
The system of
Each host machine 102, 106, 104 may run virtualization software. Virtualization software may include one or more virtualization managers (e.g., one or more virtual machine managers, such as one or more hypervisors, and/or one or more container managers). Examples of hypervisors include NUTANIX AHV, VMWARE ESX(I), MICROSOFT HYPER-V, DOCKER hypervisor, and REDHAT KVM. Examples of container managers include Kubernetes. The virtualization software shown in
In some examples, controller virtual machines, such as CVMs 124, 126, and 128 of
A host machine may be designated as a leader node within a cluster of host machines. For example, host machine 104 may be a leader node. A leader node may have a software component designated to perform operations of the leader. For example, CVM 126 on host machine 104 and/or file server VM 164 of host machine 104 may be designated to perform such operations. A leader may be responsible for monitoring or handling requests from other host machines or software components on other host machines throughout the virtualized environment. For example, a leader service may handle the distribution of requests to and from other instances of that service throughout the distributed environment. If a leader fails, a new leader may be designated. In particular embodiments, a management module (e.g., in the form of an agent) may be running on the leader node.
Virtual disks may be made available to one or more user processes. In the example of
Performance advantages can be gained in some examples by allowing the virtualization system to access and utilize local storage 136, 138, and 140. This is because I/O performance may be much faster when performing access to local storage as compared to performing access to network-attached storage 110 across a network 154. This faster performance for locally attached storage can be increased even further by using certain types of optimized local storage devices, such as SSDs.
As a user process (e.g., a user VM) performs I/O operations (e.g., a read operation or a write operation), the I/O commands may be sent to the hypervisor that shares the same server as the user process, in examples utilizing hypervisors. For example, the hypervisor may present to the virtual machines an emulated storage controller, receive an I/O command, and facilitate the performance of the I/O command (e.g., via interfacing with storage that is the object of the command, or passing the command to a service that will perform the I/O command). An emulated storage controller may facilitate I/O operations between a user VM and a vDisk. A vDisk may present to a user VM as one or more discrete storage drives, but each vDisk may correspond to any part of one or more drives within storage pool 156. Additionally or alternatively, CVMs 124, 126, 128 may present an emulated storage controller either to the hypervisor or to user VMs to facilitate I/O operations. CVMs 124, 126, and 128 may be connected to storage within storage pool 156. CVM 124 may have the ability to perform I/O operations using local storage 136 within the same host machine 102, by connecting via network 154 to cloud storage 108 or network-attached storage 110, or by connecting via network 154 to local storage 138 or 140 within another host machine 104 or 106 (e.g., via connecting to another CVM 126 or 128). In particular embodiments, any computing system may be used to implement a host machine.
Examples described herein include virtualized file servers. A virtualized file server may be implemented using a cluster of virtualized software instances (e.g., a cluster of file server virtual machines). A virtualized file server 160 is shown in
In particular embodiments, the VFS 160 may include a set of file server virtual machines (FSVMs) 162, 164, and 166 that execute on host machines 102, 104, and 106. The set of file server virtual machines (FSVMs) may operate together to form a cluster. The FSVMs may process storage item access operations requested by user VMs executing on the host machines 102, 104, and 106. The FSVMs 162, 164, and 166 may communicate with storage controllers provided by CVMs 124, 126, 128 and/or hypervisors executing on the host machines 102, 104, 106 to store and retrieve files, folders, SMB shares, or other storage items. The FSVMs 162, 164, and 166 may store and retrieve block-level data on the host machines 102, 104, 106, e.g., on the local storage 136, 138, 140 of the host machines 102, 104, 106. The block-level data may include block-level representations of the storage items. The network protocol used for communication between user VMs, FSVMs, CVMs, and/or hypervisors via the network 154 may be Internet Small Computer Systems Interface (iSCSI), Server Message Block (SMB), Network File System (NFS), pNFS (Parallel NFS), or another appropriate protocol.
Generally, FSVMs may be utilized to receive and process requests in accordance with a file system protocol—e.g., NFS, SMB. In this manner, the cluster of FSVMs may provide a file system that may present files, folders, and/or a directory structure to users, where the files, folders, and/or directory structure may be distributed across a storage pool in one or more shares. The cluster of FSVMs may present a single namespace of storage items of a file system stored in the storage pool.
For the purposes of VFS 160, host machine 106 may be designated as a leader node within a cluster of host machines. In this case, FSVM 166 on host machine 106 may be designated to perform such operations. A leader may be responsible for monitoring or handling requests from FSVMs on other host machines throughout the virtualized environment. If FSVM 166 fails, a new leader may be designated for VFS 160.
In some examples, the user VMs may send data to the VFS 160 using write requests, and may receive data from it using read requests. The read and write requests, and their associated parameters, data, and results, may be sent between a user VM and one or more file server VMs (FSVMs) located on the same host machine as the user VM or on different host machines from the user VM. The read and write requests may be sent between host machines 102, 104, 106 via network 154, e.g., using a network communication protocol such as iSCSI, CIFS, SMB, TCP, Internet Protocol (IP), or the like. When a read or write request is sent between two VMs located on the same one of the host machines 102, 104, 106 (e.g., between the user VM 112 and the FSVM 162 located on the host machine 102), the request may be sent using local communication within the host machine 102 instead of via the network 154. Such local communication may be faster than communication via the network 154 in some examples. The local communication may be performed by, e.g., writing to and reading from shared memory accessible by the user VM 112 and the FSVM 162, sending and receiving data via a local “loopback” network interface, local stream communication, or the like.
In some examples, the storage items stored by the VFS 160, such as files and folders, may be distributed among storage managed by multiple FSVMs 162, 164, 166. In some examples, when storage access requests are received from the user VMs, the VFS 160 identifies FS VMs 162, 164, 166 at which requested storage items, e.g., folders, files, or portions thereof, are stored or managed, and directs the user VMs to the locations of the storage items. The FSVMs 162, 164, 166 may maintain a storage map, such as a sharding map, that maps names or identifiers of storage items to their corresponding locations. The storage map may be a distributed data structure of which copies are maintained at each FSVM 162, 164, 166 and accessed using distributed locks or other storage item access operations. In some examples, the storage map may be maintained by an FSVM at a leader node such as the FSVM 166, and the other FSVMs 162 and 164 may send requests to query and update the storage map to the leader FSVM 166. Other implementations of the storage map are possible using appropriate techniques to provide asynchronous data access to a shared resource by multiple readers and writers. The storage map may map names or identifiers of storage items in the form of text strings or numeric identifiers, such as file system paths, folder names, file names, and/or identifiers of portions of folders or files (e.g., numeric start offset positions and counts in bytes or other units) to locations of the files, folders, or portions thereof. Locations may be represented as names of FSVMs, e.g., “FSVM-1”, as network addresses of host machines on which FSVMs are located (e.g., “ip-addr1” or 128.1.1.10), or as other types of location identifiers.
When a user application, e.g., executing in a user VM 112 on host machine 102 initiates a storage access operation, such as reading or writing data, the user VM 112 may send the storage access operation in a request to one of the FSVMs 162, 164, 166 on one of the host machines 102, 104, 106. An FSVM 164 executing on a host machine 102 that receives a storage access request may use the storage map to determine whether the requested file or folder is located on and/or managed by the FSVM 164. If the requested file or folder is located on and/or managed by the FSVM 164, the FSVM 164 executes the requested storage access operation. Otherwise, the FSVM 164 responds to the request with an indication that the data is not on the FSVM 164, and may redirect the requesting user VM 112 to the FSVM on which the storage map indicates the file or folder is located. The client may cache the address of the FSVM on which the file or folder is located, so that it may send subsequent requests for the file or folder directly to that FSVM.
As an example and not by way of limitation, the location of a file or a folder may be pinned to a particular FSVM 162 by sending a file service operation that creates the file or folder to a CVM, container, and/or hypervisor associated with (e.g., located on the same host machine as) the FSVM 162—the CVM 124 in the example of
In particular embodiments, a name service 168, such as that specified by the Domain Name System (DNS) Internet protocol, may communicate with the host machines 102, 104, 106 via the network 154 and may store a database of domain names (e.g., host names) to IP address mappings. The domain names may correspond to FSVMs, e.g., fsvm1.domain.com or ip-addr1.domain.com for an FSVM named FSVM-1. The name service 168 may be queried by the user VMs to determine the IP address of a particular host machine (e.g., computing node) 102, 104, 106 given a name of the host machine, e.g., to determine the IP address of the host name ip-addrl for the host machine 102. The name service 168 may be located on a separate server computer system or on one or more of the host machines 102, 104, 106. The names and IP addresses of the host machines of the VFS 160, e.g., the host machines 102, 104, 106, may be stored in the name service 168 so that the user VMs may determine the IP address of each of the host machines 102, 104, 106, or FSVMs 162, 164, 166. The name of each VFS instance, e.g., FS1, FS2, or the like, may be stored in the name service 168 in association with a set of one or more names that contains the name(s) of the host machines 102, 104, 106 or FSVMs 162, 164, 166 of the VFS 160 instance. The FSVMs 162, 164, 166 may be associated with the host names ip-addr1, ip-addr2, and ip-addr3, respectively. For example, the file server instance name FS1.domain.com may be associated with the host names ip-addr1, ip-addr2, and ip-addr3 in the name service 168, so that a query of the name service 168 for the server instance name “FS1” or “FS1.domain.com” returns the names ip-addr1, ip-addr2, and ip-addr3. As another example, the file server instance name FS1.domain.com may be associated with the host names fsvm-1, fsvm-2, and fsvm-3. Further, the name service 168 may return the names in a different order for each name lookup request, e.g., using round-robin ordering, so that the sequence of names (or addresses) returned by the name service for a file server instance name is a different permutation for each query until all the permutations have been returned in response to requests, at which point the permutation cycle starts again, e.g., with the first permutation. In this way, storage access requests from user VMs may be balanced across the host machines, since the user VMs submit requests to the name service 168 for the address of the VFS instance for storage items for which the user VMs do not have a record or cache entry, as described below.
In particular embodiments, each FSVM may have two IP (Internet Protocol) addresses: an external IP address and an internal IP address. The external IP addresses may be used by SMB/CIFS clients, such as user VMs, to connect to the FSVMs. The external IP addresses may be stored in the name service 168. The IP addresses ip-addr1, ip-addr2, and ip-addr3 described above are examples of external IP addresses. The internal IP addresses may be used for iSCSI communication to CVMs, e.g., between the FSVMs 162, 164, 166 and the CVMs 124, 126, 128. Other internal communications may be sent via the internal IP addresses as well, e.g., file server configuration information may be sent from the CVMs to the FSVMs using the internal IP addresses, and the CVMs may get file server statistics from the FSVMs via internal communication.
Since the VFS 160 is provided by a distributed cluster of FSVMs 162, 164, 166, the user VMs that access particular requested storage items, such as files or folders, do not necessarily know the locations of the requested storage items when the request is received. A distributed file system protocol, e.g., MICROSOFT DFS or the like, may therefore be used, in which a user VM 112 may request the addresses of FSVMs 162, 164, 166 from a name service 168 (e.g., DNS). The name service 168 may send one or more network addresses of FSVMs 162, 164, 166 to the user VM 112. The addresses may be sent in an order that changes for each subsequent request in some examples. These network addresses are not necessarily the addresses of the FSVM 164 on which the storage item requested by the user VM 112 is located, since the name service 168 does not necessarily have information about the mapping between storage items and FSVMs 162, 164, 166. Next, the user VM 112 may send an access request to one of the network addresses provided by the name service, e.g., the address of FSVM 164. The FSVM 164 may receive the access request and determine whether the storage item identified by the request is located on the FSVM 164. If so, the FSVM 164 may process the request and send the results to the requesting user VM 112. However, if the identified storage item is located on a different FSVM 166, then the FSVM 164 may redirect the user VM 112 to the FSVM 166 on which the requested storage item is located by sending a “redirect” response referencing FSVM 166 to the user VM 112. The user VM 112 may then send the access request to FSVM 166, which may perform the requested operation for the identified storage item.
A particular VFS 160, including the items it stores, e.g., files and folders, may be referred to herein as a VFS “instance” and may have an associated name, e.g., FS1, as described above. Although a VFS instance may have multiple FSVMs distributed across different host machines, with different files being stored on FSVMs, the VFS instance may present a single name space to its clients such as the user VMs. The single name space may include, for example, a set of named “shares” and each share may have an associated folder hierarchy in which files are stored. Storage items such as files and folders may have associated names and metadata such as permissions, access control information, size quota limits, file types, files sizes, and so on. As another example, the name space may be a single folder hierarchy, e.g., a single root directory that contains files and other folders. User VMs may access the data stored on a distributed VFS instance via storage access operations, such as operations to list folders and files in a specified folder, create a new file or folder, open an existing file for reading or writing, and read data from or write data to a file, as well as storage item manipulation operations to rename, delete, copy, or get details, such as metadata, of files or folders. Note that folders may also be referred to herein as “directories.”
In particular embodiments, storage items such as files and folders in a file server namespace may be accessed by clients, such as user VMs, by name and/or path, e.g., “\Folder-1\File-1” and “\Folder-2\File-2” for two different files named File-1 and File-2 in the folders Folder-1 and Folder-2, respectively (where Folder-1 and Folder-2 are sub-folders of the root folder). Names that identify files in the namespace using folder names and file names may be referred to as “path names.” Client systems may access the storage items stored on the VFS instance by specifying the file names or path names, e.g., the path name “\Folder-1\File-1”, in storage access operations. If the storage items are stored on a share (e.g., a shared drive), then the share name may be used to access the storage items, e.g., via the path name “\\Share-1\Folder-1\File-1” to access File-1 in folder Folder-1 on a share named Share-1.
In particular embodiments, although the VFS may store different folders, files, or portions thereof at different locations, e.g., on different FSVMs, the use of different FSVMs or other elements of storage pool 156 to store the folders and files may be hidden from the accessing clients. The share name is not necessarily a name of a location such as an FSVM or host machine. For example, the name Share-1 does not identify a particular FSVM on which storage items of the share are located. The share Share-1 may have portions of storage items stored on three host machines, but a user may simply access Share-1, e.g., by mapping Share-1 to a client computer, to gain access to the storage items on Share-1 as if they were located on the client computer. Names of storage items, such as file names and folder names, may similarly be location-independent. Thus, although storage items, such as files and their containing folders and shares, may be stored at different locations, such as different host machines, the files may be accessed in a location-transparent manner by clients (such as the user VMs). Thus, users at client systems need not specify or know the locations of each storage item being accessed. The VFS may automatically map the file names, folder names, or full path names to the locations at which the storage items are stored. As an example and not by way of limitation, a storage item's location may be specified by the name, address, or identity of the FSVM that provides access to the storage item on the host machine on which the storage item is located. A storage item such as a file may be divided into multiple parts that may be located on different FSVMs, in which case access requests for a particular portion of the file may be automatically mapped to the location of the portion of the file based on the portion of the file being accessed (e.g., the offset from the beginning of the file and the number of bytes being accessed).
In particular embodiments, VFS 160 determines the location, e.g., FSVM, at which to store a storage item when the storage item is created. For example, an FSVM 162 may attempt to create a file or folder using a CVM 124 on the same host machine 102 as the user VM 114 that requested creation of the file, so that the CVM 124 that controls access operations to the file folder is co-located with the user VM 114. While operations with a CVM are described herein, the operations could also or instead occur using a hypervisor and/or container in some examples. In this way, since the user VM 114 is known to be associated with the file or folder and is thus likely to access the file again, e.g., in the near future or on behalf of the same user, access operations may use local communication or short-distance communication to improve performance, e.g., by reducing access times or increasing access throughput. If there is a local CVM on the same host machine as the FSVM, the FSVM may identify it and use it by default. If there is no local CVM on the same host machine as the FSVM, a delay may be incurred for communication between the FSVM and a CVM on a different host machine. Further, the VFS 160 may also attempt to store the file on a storage device that is local to the CVM being used to create the file, such as local storage, so that storage access operations between the CVM and local storage may use local or short-distance communication.
In some examples, if a CVM is unable to store the storage item in local storage of a host machine on which an FSVM resides, e.g., because local storage does not have sufficient available free space, then the file may be stored in local storage of a different host machine. In this case, the stored file is not physically local to the host machine, but storage access operations for the file are performed by the locally-associated CVM and FSVM, and the CVM may communicate with local storage on the remote host machine using a network file sharing protocol, e.g., iSCSI, SAMBA, or the like.
In some examples, if a virtual machine, such as a user VM 112, CVM 124, or FSVM 162, moves from a host machine 102 to a destination host machine 104, e.g., because of resource availability changes, and data items such as files or folders associated with the VM are not locally accessible on the destination host machine 104, then data migration may be performed for the data items associated with the moved VM to migrate them to the new host machine 104, so that they are local to the moved VM on the new host machine 104. FSVMs may detect removal and addition of CVMs (as may occur, for example, when a CVM fails or is shut down) via the iSCSI protocol or other technique, such as heartbeat messages. As another example, an FSVM may determine that a particular file's location is to be changed, e.g., because a disk on which the file is stored is becoming full, because changing the file's location is likely to reduce network communication delays and therefore improve performance, or for other reasons. Upon determining that a file is to be moved, VFS 160 may change the location of the file by, for example, copying the file from its existing location(s), such as local storage 136 of a host machine 102, to its new location(s), such as local storage 138 of host machine 104 (and to or from other host machines, such as local storage 140 of host machine 106 if appropriate), and deleting the file from its existing location(s). Write operations on the file may be blocked or queued while the file is being copied, so that the copy is consistent. The VFS 160 may also redirect storage access requests for the file from an FSVM at the file's existing location to an FSVM at the file's new location.
In particular embodiments, VFS 160 includes at least three file server virtual machines (FSVMs) 162, 164, 166 located on three respective host machines 102, 104, 106. To provide high-availability, in some examples, there may be a maximum of one FSVM for a particular VFS instance VFS 160 per host machine in a cluster. If two FSVMs are detected on a single host machine, then one of the FSVMs may be moved to another host machine automatically in some examples, or the user (e.g., system administrator) may be notified to move the FSVM to another host machine. The user may move an FSVM to another host machine using an administrative interface that provides commands for starting, stopping, and moving FSVMs between host machines.
In some examples, two FSVMs of different VFS instances may reside on the same host machine. If the host machine fails, the FSVMs on the host machine become unavailable, at least until the host machine recovers. Thus, if there is at most one FSVM for each VFS instance on each host machine, then at most one of the FSVMs may be lost per VFS per failed host machine. As an example, if more than one FSVM for a particular VFS instance were to reside on a host machine, and the VFS instance includes three host machines and three FSVMs, then loss of one host machine would result in loss of two-thirds of the FSVMs for the VFS instance, which may be more disruptive and more difficult to recover from than loss of one-third of the FSVMs for the VFS instance.
In some examples, users, such as system administrators or other users of the system and/or user VMs, may expand the cluster of FSVMs by adding additional FSVMs. Each FSVM may be associated with at least one network address, such as an IP (Internet Protocol) address of the host machine on which the FSVM resides. There may be multiple clusters, and all FSVMs of a particular VFS instance are ordinarily in the same cluster. The VFS instance may be a member of a MICROSOFT ACTIVE DIRECTORY domain, which may provide authentication and other services such as a name service.
In some examples, files hosted by a virtualized file server, such as the VFS 160, may be provided in shares—e.g., SMB shares and/or NFS exports. SMB shares may be distributed shares (e.g., home shares) and/or standard shares (e.g., general shares). NFS exports may be distributed exports (e.g., sharded exports) and/or standard exports (e.g., non-sharded exports). A standard share may in some examples be an SMB share and/or an NFS export hosted by a single FSVM (e.g., FSVM 162, FSVM 164, and/or FSVM 166 of
Accordingly, systems described herein may include one or more virtual file servers, where each virtual file server may include a cluster of file server VMs and/or containers operating together to provide a file system. Examples of systems described herein may include a file analytics system that may collect, monitor, store, analyze, and report on various analytics associated with the virtual file server(s). By providing a file analytics system, system administrators may advantageously find it easier to manage their files stored in a file system, and may more easily gain, understand, protect and utilize insights about the stored data and/or the usage of the file system over time. Examples of file analytics systems are described as being provided in a hosted system (e.g., cloud computing system), however, it is to be understood that the analytics VM may be implemented in various examples using one or more virtual machines and/or one or more containers or other virtual computing instances.
Accordingly, an analytics system may be in communication with the system 100 of
During operation, the analytics system may perform multiple functions related to information collection, including a metadata collection process to receive metadata associated with the file system, a configuration information collection process to receive configuration and user information from the VFS 160, and an event data collection process to receive event data from the VFS 160.
The metadata collection process may include gathering the overall size, structure, and storage locations of the VFS 160 and/or parts of the file system managed by the VFS 160, as well as details for one or more (e.g., each) data item (e.g., file, folder, directory, share, etc.) in the VFS 160 and/or other metadata associated with the VFS 160. In some examples, the analytics system may communicate with each of the FSVMs 162, 164, 166 of the VFS 160 during the metadata collection process to retrieve respective portions of the metadata.
In some examples, the analytics system may make an initial scan of the VFS 160 to obtain initial metadata concerning the file system (e.g., number of files, directories, file names, file sizes, file owner ID and/or name, file permissions (e.g., access control lists, etc.)). The analytics system may provide an API call (e.g., SMB ACL call) to the VFS 160 to retrieve owner usernames and/or ACL permission information based on the owner identifier and the ACL identifier.
In some examples, the analytics system may communicate with each of the FSVMs 162, 164, 166 of the VFS 160 during the metadata collection process to retrieve respective portions of the metadata from the file system. In some examples, the metadata collection processes performed by the analytics system may include a multi-threaded breadth-first search (BFS) that involves performing parallel threaded file system scanning. The parallel threaded file system scanning may include parallel scanning of different shares, parallel scanning of different folders of a common share, or any combination thereof. In some examples, the metadata collection process may implement a parallel BFS with level order traversal of a directory tree to collect metadata. Level order traversal may include processing a directory tree one level at a time. For example, starting with a top-level directory, a first level of a directory tree is processed before moving onto a next level of the directory tree. The level order traversal includes a current queue, which includes each item in the level of the directory tree currently being processed, and a next queue, which includes children of the level of the directory tree currently being processed. When processing of the current queue is completed, the current queue may be loaded with the next queue entries. By performing level order traversal, a size of the two queues may be more manageable, as compared with a system where every item from a directory tree is loaded into a single queue. The parallel BFS may include starting a thread on each level, and letting processing of all the data items on that level be completed in the current queue before making a move to the next or child queue.
To capture configuration information, the analytics system may use an application programming interface (API) architecture to request the configuration information from the VFS 160. The API architecture may include representation state transfer (REST) API architecture. The configuration information may include user information, a number of shares, deleted shares, created shares, etc. In some examples, the analytics system may communicate directly with the leader FSVM of the FSVMs 162, 164, 166 of the VFS 160 to collect the configuration information. In some examples, the analytics system may communicate directly with another component (e.g., application, process, and/or service) of the VFS 160 or of the distributed computing system 100 (e.g., one or more storage controllers, virtualization managers, the CVMs 124, 126, 128, the hypervisors 130, 132, 134, etc.) to collect the configuration information. In some examples, the analytics system may communicate directly with another component (e.g., application, process, and/or service) of the VFS 160 or of the distributed computing system or in communication with the distributed computing system 100 (e.g., computing node, an administrative system, a storage controller, the CVMs 124, 126, 128, the hypervisors 130, 132, 134, etc.) to collect the configuration information.
To capture event data, the analytics system may interface with the VFS 160 to receive event data for storage in an analytics datastore. The VFS 160 may include or may be associated with an audit framework with a connector that is configured to provide the event data for consumption by the analytics system. For example, the FSVMs 162, 164, 166 of the VFS 160 may each include or may be associated with a respective audit framework 163, 165, 167 with a connector that may provide the event data to the analytics system. In some examples, while the audit framework 163, 165, 167 for each FS VM 162, 164, 166 is depicted as being part of the FSVMs 162, 164, 166, the audit framework 163, 165, 167 may be hosted by another component (e.g., application, process, and/or service) of the VFS 160 or of the distributed computing system 100 (e.g., one or more storage controller(s), the CVMs 124, 126, 128, the hypervisors 130, 132, 134, etc.) without departing from the scope of the disclosure. The audit framework generally refers to one or more software components which may be provided to collect, store, analyze, and/or transmit audit data (e.g., data regarding events in the file system). The event data may include data related to various operations performed with the VFS 160, such as adding, deleting, moving, modifying, etc., a file, folder, directory, share, etc., within the VFS 160. The event information may indicate an event type (e.g., add, move, delete, modify), a user associated with the event, an event time, etc. In some examples, once an event is written to the analytics datastore, it is not able to be modified. In some examples, the analytics system may aggregate multiple events into a single event for storage in the analytics datastore. For example, if a known task (e.g., moving a file) results in generation of a predictable sequence of events, the analytics system may aggregate that sequence into a single event.
In some examples, the analytics system and/or the corresponding VFS 160 may include protections to prevent event data from being lost. In some examples, the VFS 160 may store event data until it is provided to the analytics system. For example, if the analytics system becomes unavailable, the VFS 160 may persistently store the event data until the analytics system becomes available.
To support the persistent storage, as well as provision of the event data to the analytics system, the FSVMs 162, 164, 166 of the VFS 160 may each include or be associated with the audit framework that includes a dedicated event log (e.g., tied to an FSVM-specific volume group) that is capable of being scaled to store all event data and/or metadata for a particular FSVM until successfully sent to the analytics system. In some examples, the audit framework for each FSVM 162, 164, 166 may be hosted by another component (e.g., application, process, and/or service) of the VFS 160 or of the distributed computing system or in communication with the distributed computing system 100 (e.g., computing node, an administrative system, a storage controller, the CVMs 124, 126, 128, the hypervisors 130, 132, 134, etc.)
For example, each respective audit framework 163, 165, 167 may manage a separate respective event log via a separate volume group (e.g., the audit framework 163 manages the volume group 1 (VG1) event log 171, the audit framework 165 manages the volume group 2 (VG2) event log 173, and the audit framework 167 manages the volume group 3 (VG3) event log 175). The VG1-3 event logs 171, 173, and 175 may each be capable of being scaled to store all event data and/or metadata for parts of the VFS 160 that are managed by the respective FSVM 162, 164, 166. In some examples, the data may be persisted (e.g., maintained) until successfully provided to the analytics system. While the VG1-3 event logs 171, 173, 175 are each shown in the respective local storages 136, 138, and 140, the VG1-3 event logs 171, 173, 175 may be maintained anywhere in the storage pool 156 without departing from the scope of the disclosure.
In some examples, if one of the FSVMs 162, 164, or 166 fails, the failed FSVM may be migrated to another one of the host machines (e.g., computing nodes) 102, 104, or 106. In addition, the audit framework 163, 165, or 167 associated with the failed FSVM may also migrate over to the same computing node as the failed FSVM, and may continue updating the same VG1-3 event log 171, 173, or 175 based on the write index.
The audit framework (e.g., each audit framework 163, 165, and/or 167) may include an audit queue, an event logger, an event log, and a service connector. The audit queue may be configured to receive event data and/or metadata from the VFS 160 via network file server or server message block server communications, and to provide the event data and/or metadata to the mediator (e.g., event logger). The event logger may be configured to store the received event data and/or metadata from the audit queue, as well as retrieve requested event data and/or metadata from the event log in response to a request from the service connector. The service connector may be configured to communicate with other services (e.g., such as the analytics VM system) to respond to requests for provision of event data and/or metadata, as well as receive acknowledgments when event data and/or metadata are successfully received by the analytics system. The events in the event log may be uniquely identified by a monotonically increasing sequence number, will be persisted to an event log, and will be read from it when requested by the service connector.
The event logger may coordinate all of the event data and/or metadata writes and reads to and from the event log, which may facilitate the use of the event log for multiple services. The event logger may keep the in-memory state of the write index in the event log, and may persist it periodically to a control record (e.g., a master block). When the audit framework is started or restarted, the master record may be read to set the write index.
Multiple services may be able to read from an event log (e.g., the VG1-3 event logs 171, 173, 175) via their own service connectors (e.g., Kafka connectors). A service connector may have the responsibility of sending event data and metadata to the requesting service (e.g., such as the analytics system) reliably, keeping track of its state, and reacting to its failure and recovery. Each service connector may be tasked with persisting its respective read index, as well as being able to communicate the respective read index to the event logger when initiating an event read. The service connector may increment the in-memory read index only after receiving acknowledgment from its corresponding service and will periodically persist in-memory state. The persisted read index value may be read at start/restart (e.g., or after a service interruption) and used to set the in-memory read index to a value from which to start reading from. In some examples, when an event data record is read from the event log by a particular service, the event logger may stop maintenance of the event data record (e.g., allow it to be overwritten or removed from the event log).
During service start/recovery, a service connector may detect its presence and initiate an event read by communicating the read index to the event logger to read from the event log as part of the read call. The event logger may use the read index to find the next event to read and send to the requesting service (e.g., the analytics system) via the service connector.
The analytics system and/or the VFS 160 may further include architecture to prevent event data from being processed out of chronological order. For example, the service connector and/or the requesting service may keep track of the message sequence number it has seen before failure, and may ignore any messages which have a sequence number less than and equal to the sequence it has seen before failure. An exception may be raised by the message topic broker of the requesting service if the event log does not have the event for the sequence number expected by the service connector or if the message topic broker indicates that it has received a message with a sequence number that is not consecutive. In order to use the same event log for other services, a superset of all the proto fields will be taken to create a common format for an event record. The service connector will be responsible for filtering the required fields to get the ones it needs.
Other mechanisms can be used to implement an audit framework in other examples.
In some examples, the audit framework and event log may be tied to a particular FSVM and its own volume group. Thus, if an FSVM is migrated to another computing node, the event log may move with the FSVM and be maintained in the separate volume group from event logs of other FSVMs.
In some examples, the VFS 160 may be configured with denylist policies to denylist or prevent certain types of events from being analyzed and/or sent to the analytics system, such as specific event types, events corresponding to a particular user, events corresponding to a particular client IP address, events related to certain file types, or any combination thereof. The denylisted events may be provided from the VFS 160 to the analytics system in response to an API call from the analytics system. In addition, the analytics system may include an interface that allows a user to request and/or update the denylist policy, and send the updated denylist policy to the VFS 160. In some examples, the analytics VM 170 may be configured to process multiple channels of event data in parallel, while maintaining integrity and sequencing of the event data such that older event data does not overwrite newer event data.
In some examples, the analytics system may perform the metadata collection process in parallel with receipt of event data. The analytics system may reconcile information captured via the metadata collection process with event data information to prevent older data from overwriting newer data. In cases of reconciliation of the file system state caused by triggering an on demand scan, the state of the files index may be updated by both the event flow process and the scan process. To avoid the race condition, and maintain data integrity, when a metadata record corresponding to a storage item is received, the analytics system may determine if any records for the storage item exist, and if so, may decline to update those records. If no records exist, then the analytics system may add a record for the storage item.
The analytics system may process the metadata, event data, and configuration information to populate the analytics datastore. The analytics datastore may include an entry for each item in the VFS 160. In some examples, the event data and the metadata may include a unique user identifier that ties back to a user, but may not be used outside of the event data generation in some examples. In some examples, the analytics system may retrieve a user ID-to-username relationship from an active directory of the VFS 160 by connecting to a lightweight directory access protocol (LDAP) (e.g., for SMB, perform LDAP search on configured active directory, or on NFS, perform PDAP search on configured active directory or execute an API call if RFC2307 is not configured). In addition, rather than requesting a username or other identifier associated with the unique user identifier for every event, the analytics system may maintain a username-to-unique user identifier conversion table (e.g., stored in cache) for at least some of the unique user identifiers, and the username-to-unique user identifier conversion table may be used to retrieve a username, which may reduce traffic and improve performance of the VFS 160. Any mechanism to provide user context for active directory enabled SMB shares may help an administrator understand which user performed which operation as well as ownership of the file.
The analytics system may generate reports, including standard or default reports and/or customizable reports. The reports may be related to aggregate and/or specific user activity; aggregate file system activity; specific file, directory, share, etc., activity; etc.; or any combination of thereof. If multiple report requests are submitted at a same time and/or during at least partially overlapping times, examples of the analytics VM may queue report requests and process the requests sequentially and/or partially sequentially. The status of report requests in the queue may be displayed (e.g., queued, processing, completed, etc.). In some examples, the analytics system may manage and facilitate administrator-set archival policies, such as time-based archival (e.g., archive data based on a last-accessed date being greater than a threshold), storage capacity-based archival (e.g., archiving certain data when available storage falls below a threshold), or any combination thereof.
Although some examples for generating and providing metadata and event data are described herein, other mechanisms for obtaining and/or communicating metadata and/or event data from a file server may be used in other examples.
In some examples, the analytics system may be configured to analyze the received event data to detect irregular, anomalous, and/or malicious activity within the file system. For example, the analytics system may detect malicious software activity (e.g., ransomware) or anomalous user activity (e.g., deleting a large amount of files, deleting a large share, etc.).
The components shown in
The file server 202 of
File servers may collect metadata and event data and provide the metadata and event data to file analytics systems described herein. The metadata for a file system provided by a file server generally may include overall size, structure, and storage locations of parts of the file system managed by the file server, as well as details for each data item (e.g., file, folder, directory, share, owner information, and/or permission information). The details for each data item may include, for example, an identification of the data item, size, name, file type, owner, and/or permissions information. The metadata may be used by file analytics systems described herein to provide analytics regarding the file system. In the example of
Example file servers may include event collector(s), such as event collector 210 of
In some examples, the file server may act to collect and/or transmit metadata and/or event data at the request of the analytics system. For example, the file server 202 may perform a metadata scan responsive to a request from analytics system 216. The remote request service 214 may be provided in the file server 202 to receive a request from the analytics system 216, which may be, for example, an API call, to initiate a metadata scan and/or to provide event data. The metadata collector 212 and/or event collector 210 may act in response to a request from analytics system 216 to perform a metadata scan and/or to provide event data. The analytics system 216 may request a metadata scan and/or may request event data using remote request service 214 in some examples.
File servers described herein may accordingly provide one or more file systems. A file system generally refers to an arrangement of files in folders which may be accessed in accordance with a namespace. For example, a path in the namespace may be used to access a particular file. Generally file servers described herein may have an ability to receive and respond to requests formulated in accordance with a file server protocol, such as NFS and/or SMB. So, the example file server 202 in
File servers described herein may include an audit framework, such as audit framework 208 of
File servers described herein may include a communication component, such as communicator 206. The communicator 206 may be implemented using a software service operating on a host machine that forms part of the file server 202. The communicator 206 may provide event and/or metadata to the analytics system 216. For example, the communicator 206 may provide data from the event collector 210 and/or metadata collector 212 to the analytics system 216. The communicator 206 may connect to the analytics system 216 over a network, such as the Internet. For example, the analytics system 216 may be a hosted solution residing in a cloud service provider, and the file server 202 may be an on premises file server which may communicate with the cloud service provider using communicator 206.
In this manner, during operation of a file server, metadata and event data regarding files and other items in a file system may be collected by the file server. The metadata and/or event data may be provided to an analytics system, such as the analytics system 216 of
Analytics systems described herein may include one or more receiver processes, such as receivers 228 of
Accordingly, file analytics systems described herein may maintain a datastore, such as datastore 226 of
A data warehouse generally refers to a data management system that may be used to store enterprise data and provide an analytical processing function to access the data. Accordingly, query engine 242 is depicted in
Examples of analytics systems described herein may include a batch processor that may be utilized to execute batch operations on the file system based on the metadata and event data obtained by the file analytics system. For example, the analytics system 216 of
Examples of analytics systems described herein may include a user interface. For example, the analytics system 216 of
In some examples, data tiering policies may be determined, changed, and/or updated based on metadata and/or events data collected by file analytics systems. For example, the VFS 160 of
Virtualized file servers, such as VFS 160 of
File analytics systems may provide information to the file server based on captured metadata and/or events data regarding the stored files. The information provided by analytics based on metadata and events may be used by the VFS 160 to implement, create, modify, and/or update tiering policies and/or to tier data.
Individual files may be tiered as objects in a tiered storage (e.g., implemented as part of and/or as an extension of storage pool 156 of
In some examples, the decision to tier and/or how and/or when to tier may be made at least in part by a policy engine implemented by an analytics system described herein. For example, policy engine 244 of
User interfaces (e.g., user interface 236 of
The tiering engine of the VFS (which may be hosted, e.g., on node 102, node 104, and/or node 106 of
A user may (e.g., through user interface 236) set an automatic recall policy while setting up the tiering policy and/or at another time. A recall policy may specify when a file may be recalled from a tier back into the main storage pool and/or other tier. The recall policy may, for example, be based on how many accesses (e.g., reads and/or writes) within a period may trigger a recall. Other users (e.g., admins) may also initiate the recall of specific tiered files, according to the users' requests. In case of manual recall, a user may provide a file, directory and/or a share for recall. The request may be saved in an analytics datastore (e.g., datastore 226 of
In some examples, the tiering engine of the file server may collect file server statistics used to make a tiering decision (e.g., network bandwidth, pending tiering requests). The analytics system may receive the file server statistics collected by the tiering engine, e.g., through one or more API calls and/or audit events. The file server statistics may be used by the analytics system (e.g., the policy engine 244) to control the number of tiering instructions provided to the file server.
Based on the collected information and current state of the objects, the analytics system (e.g., analytics system 216, such as by using policy engine 244) may calculate the projected storage savings using a particular tiering selection on a time scale. This information may aid users to configure snapshot and tiering policies for most effective utilization of the file server, balancing between performance and cost in some examples.
Accordingly, tiering engines in a file server may utilize file analytics determined based on collected metadata and/or events data from the file server to make decisions on which files to tier and subsequently truncate in some examples from the primary storage. File analytics systems may additionally or instead decide to untier files based on user defined recall policy (e.g., based on access pattern as determined using collected event data and metadata) and/or based on manual trigger. The policy engine of an analytics system may generally include a collection of services which may work together to provide this functionality. The policy engine may execute the tiering policy in the background, and call file server APIs to tier and recall files. The policy engine may keep track of tiered files and/or the files in the process of being tiered or recalled.
The components shown in
Generally, file servers described herein may support tiering. In the example of
The file server 302 of
Examples of file servers described herein may include a tiering engine which may tier files to a particular target(s). The tiering engine 314 of
File servers described herein, such as file server 302 of
The file server 302 of
In examples described herein, analytics systems may analyze file system metadata and/or event data and may transmit requests to a file server to tier selected files in accordance with a particular schedule and/or at particular times in some examples.
The analytics system 304 includes event processor 318. The event processor 318 may be analogous to the event processor 224 of
The analytics system 304 may include API gateway 322. The API gateway 322 may be utilized to generate API calls, or other requests or queries, that may be provided to request service 324 and/or datastore 320. The analytics system 304 may include request service 324 which may generate requests for transmission to the file server 302. For example, the request service 324 of analytics system 304 may communicate with the request service 310 of file server 302. The request service 324 may receive communications from the file server 302, such as from the request service 310.
The analytics system 304 may include a user interface 328. The user interface 328 may be analogous to the user interface 236 of
In some examples, the user interface 328 may be used for a user to establish a tiering policy. The user may provide, through user interface 328, information about tiering targets, such as storage tier(s) 316 (e.g., names, types, costs, access times, and capacity of each tier). The user may provide access credentials for file server 202 and/or storage tier(s) 316 to the analytics system 304 using user interface 328. In some examples, a user may provide a tiering policy and/or desired free capacity for each tier through the user interface 328. In some examples, the tiering policy and/or desired free capacity for each tier may be predetermined. The tiering policy and/or desired free capacity for each tier may be stored, for example, in datastore 320. The tiering policy may include information regarding a target access time or overall storage cost for the system. The tiering policy may include information about the files which may be tiered and/or may be excluded from tiering. For example, certain file types, shares, and/or owners may be excluded from tiering. Those files may not be tiered in accordance with the operation of the tiering engine 314. The exclusion criteria may be stored, for example, in datastore 320. The tiering policy may describe a threshold file access frequency for tiering (e.g., files last accessed greater than a threshold time ago may be eligible for tiering).
Examples of file analytics systems described herein may have a policy engine, such as policy engine 326 which may be implemented by and/or used to implement policy engine 244 of
Examples of file analytics systems described herein may include user behavior as one or more factors in selecting files for tiering. For example, analytics systems described herein may access data based on the metadata and/or event data received from a file server. Accordingly, the analytics system may access audit events relating to user behavior regarding files, and this information may be used, e.g., by policy engine 326, in selecting files for tiering. Examples of user behavior which may be used include whether specified actions have occurred (and/or not occurred) for a file within a particular time period. For example, files that have not been accessed by particular users within a particular time frame (e.g., 5 days) may be selected for tiering. As another example, files that have only been read (e.g., not modified) within a particular time frame (e.g., 5 days). Generally, any particular time frame and/or user action may be used as a factor in selecting files for tiering by the policy engine 326. For example, the policy engine 326 may access the datastore 320 which may contain audit records for actions performed by particular users on the files in the file server. This information may be used by the policy engine 326 to select files for tiering.
In some examples, content of the file may be used as a factor by the policy engine 326 in selecting files for tiering. For example, files containing personal identifiable information (PII) may be selected (or excluded) by the policy engine 326 for tiering. The policy engine 326 may access information in datastore 320 regarding the files. In some examples, certain file content, such as PII, may be indicated in the datastore 320 and used by the policy engine 326 as a factor in selecting files for tiering.
In some examples, the policy engine 326 may be implemented using a cron job that may run periodically and/or at scheduled times on the analytics system 304. For example, the policy engine 326 may be scheduled to run at times when the file server 302 is predicted to have processing capacity for tiering (e.g., less busy times). For example, the policy engine 326 may run on weekend days or overnight in some examples. In some examples, the policy engine 326 may be wholly and/or partially implemented using a batch processor, such as batch processor 246 of
Examples of policy engines described herein may select files for recall and provide requests to recall files to file servers. For example, the policy engine 326 may access the datastore 320 and select files for recall from tiered storage (e.g., from secondary storage) back to primary storage. It may be tedious for system administrators to manually identify files for recall from tiered storage; accordingly, it may be advantageous for a policy engine to utilize recall techniques described herein to select files automatically for recall.
In some examples, a recall policy may also be set through user interface 328 and/or provided by policy engine 326. The recall policy may specify, for example, how many accesses (e.g., reads) may occur to trigger a recall. For example, a threshold number of accesses may be specified. After a file has been tiered, if it is accessed the threshold number of times and/or the threshold number of times within a particular time period, the policy engine 326 may request a recall of the file. The request for recall may be provided to the file server 302, and the tiering engine 314 may implement the recall. In some examples, a user may initiate a manual recall through the user interface 328, for example by providing a file, folder (e.g., directory), and/or share. The request may be stored in datastore 320 and may be acted on by the policy engine 326 when the policy engine 326 runs.
In some examples, analogous criteria may be used by a policy engine described herein to select files for recall as the criteria for selecting files for tiering. For example, policy engines described herein may select files for recall based in some examples on particular users. In some examples, the policy engine 326 may select files (e.g., files whose ID and/or other associated data is stored in datastore 320) owned by and/or last acted on by users from a particular enterprise group (e.g., accounting group and/or human resource group). In some examples, other files owned by and/or last acted on by other users may not be recalled, even if they otherwise meet the criteria for recall (e.g., number of attempted accesses within a particular time period). In some examples, a policy engine may select files for recall based on particular shares. Files belonging to particular shares may be selected for recall. In some examples, a policy engine may select files for recall based on file extension (e.g., .doc, .docx, .xls, .ppt). In some examples, files belonging to other shares may not be selected for recall, even if they otherwise meet the criteria (e.g., number of accesses) for recall. In some examples, a policy engine may select files for recall, based on file size. For example, files less than a threshold size may be eligible for recall, or within a particular size range. Accordingly, the policy engine 326 may select files for recall when they are eligible files (e.g., in accordance with particular users, extensions, shares, and/or file sizes) and they meet the recall criteria (e.g., accessed more than a threshold number of times within a predetermined time period).
In some examples, the analytics system 304 may provide a user with information used to provide, set, and/or update a tiering policy. For example, the user interface 328 may be used to display information useful in setting a tiering policy. Examples of such information include a calculated projected storage savings, storage savings over time, and/or overall cost of storage in different tiering configurations. This may aid a user in setting a tiering policy. The user may input a tiering policy to the user interface 328 based on information provided through the user interface 328 in some examples.
Examples of systems described herein may accordingly include a policy engine which may implement a tiering policy. Analytics systems described herein may leverage analytics based on metadata and event data received from a file server to make decisions regarding which files to tier and truncate from primary storage. The analytics system may additionally or instead decide to untier (e.g., recall) files based on recall policies and/or manual trigger. Tiering engines described herein may execute a tiering policy in the background, and may communicate with the file server to tier and recall files—e.g., by calling APIs of the file server. Tiering engines may maintain a record of the tiered files, and/or the status of the tiering process for each file (e.g., tiering in process, tiering complete, tiering failed).
The method 402 of
In block 404, profile information may be received, for example, through user interface 236 and/or user interface 328. Examples of profile information which may be generated and/or received in block 404 may include profile id, profile name, user id, share IDs, access key ID, access certificates and/or credentials for file server(s) used in the tiering process, names and/or locations of any data stores to be used in tiering processes. In some examples, some or all of the profile information may not be provided by an external user, but an analytics system may obtain the profile information from one or more file servers in block 404. For example, the analytics system 304 may communicate with file server 302 to obtain some or all of the profile information.
Profile information may be stored in configuration database 406. The configuration database 406 may additionally be used by policy engines described herein to store and/or track a status of tiering requests (e.g., queued, submitted, failed, completed).
In block 408, a determination may be made whether a tiering policy may utilize capacity restraints. For example, a user may be prompted (e.g., through a display including a selection box, or other selector) to indicate whether capacity constraints will be used. If yes, in block 410 a capacity threshold may be defined. Capacity constraints generally refer to a capacity threshold below which tiering will not be implemented—e.g., a capacity threshold above which tiering may be permitted and/or triggered. For example, the capacity threshold may refer to a percentage of file server capacity that may trigger tiering operations. In this manner, when primary storage (e.g., local storage) is below the capacity threshold (e.g., 80% in some examples, 75% in some examples, 50% in some examples), tiering may not be used. This may save computational time and expense in situations where the primary storage may not be full enough to justify tiering.
Tiering criteria may be defined in block 412. For example, a user may be prompted (e.g., through a display including a selection box, text input box, or other input mechanism) to provide various tiering criteria. Examples of criteria include exclusion criteria in block 414. Exclusion criteria may refer to criteria for files that will not be requested to tier, even if the files otherwise meet the criteria for tiering. For example, a threshold file size may be set as an exclusion criteria. Files below the threshold file size may not be tiered. This may avoid overhead in the tiering process for tiering small files. In some examples, a size criteria may be 64 KB—e.g., files having a size less than 64 KB may not be tiered. Other thresholds may be used in other examples. In some examples, the exclusion criteria may include one or more particular shares. Files located on the share(s) specified in the exclusion criteria may not be tiered. This may allow a system (e.g., a user) to specify a high-value or complex share as excluded from the tiering process, ensuring that access to files in that share will not be impacted by the tiering processes described herein. In some examples, the exclusion criteria may include file type. File types may include, for example, file extensions, MIME types, applications used to generate the files, and/or categories of files (e.g., images, videos, text, encrypted files, etc.). Certain file types may be excluded from tiering, to ensure those file types are not impacted by tiering processes described herein and remain located on a primary storage tier. In some examples, multiple exclusion criteria may be used. In some examples, no exclusion criteria may be used. While described as exclusion criteria, the exclusion criteria may in some examples be expressed as inclusion criteria—e.g., the criteria may be expressed as those attributes of files which are eligible to be tiered, rather than those that are ineligible for tiering.
The tiering criteria may be used to create a tiering policy in block 422. The tiering policy may be created, for example, by storing the tiering criteria and/or capacity constraints in storage accessible to a policy engine described herein. For example, the configuration database 406 may store tiering criteria and/or capacity constraints.
During operation, policy engines described herein, such as policy engine 244 and/or policy engine 326, may utilize tiering policies created in accordance with method 402 to identify files for tiering. The policy engine may implement tiering on an automatic and/or manual schedule. The schedule may additionally be set during method 402 in some examples.
Accordingly, examples of policy engines described herein may identify files for tiering in accordance with one or more tiering policies. The files may be identified based on metadata and/or event data received from a file server and stored in a datastore. Data in the datastore may be maintained in accordance with the metadata and/or event data. For example, the datastore may include a file size, age, and/or last access time for the files of the file system.
File systems which may be used in accordance with examples described herein may be large. It may not be unusual, for example, for millions of files to be included in a file server with different sizes and varying ages. When a tiering engine communicates with a file server to request that files be tiered, one or more remote API calls or other communication may be used. When the file server tiers files, again some computational overhead is incurred, such as one or more PUT calls to tier the files. When tiering, there may also be metadata overhead on the file server as the metadata for files is changed. Complex logic which may be used to identify files for tiering may also utilize significant resources (e.g., compute and/or memory) to apply weighted logic, for example, based on time and/or size—particularly when the number of files may be large.
Accordingly, examples of policy engines described herein may select files for tiering in a manner which may more efficiently utilize the resources available for tiering. In some examples, policy engines described herein may implement a selection technique which may identify an oldest and/or least recently accessed batch of files. Within that batch of files, a subset of largest files may be selected for tiering. In a next run, the policy engine may again select a batch of next oldest and/or least recently accessed files. Within that batch of files, a subset of largest files may be selected for tiering. In this manner, overhead may be reduced for tiering decisions while providing more effective use of the tiering resources of the file server.
Moreover, file servers may constantly be undergoing changes during use (e.g., write, append, truncate) and the age and/or last access time (e.g., time of last read and/or write) of files may be constantly changing. There may be a time gap between when a file is selected for tiering and when the actual tiering is implemented. During this time, the attributes of the file may have changed, making it a less desirable tiering target in some examples. Accordingly, policy engines described herein may advantageously in some examples process batches of files for tiering (e.g., files from a first-time window, largest files in that batch, then files from another time window). In this manner, a gap between a time a file is selected for tiering and when the file is tiered may be reduced, because multiple smaller tiering decisions may be made over time (e.g., one for each time window) rather than a single decision time.
The method 502 of
In block 504, a set of files having last access times within a time range may be identified. For example, the policy engine 326 of
In some examples, block 506 may optionally additionally and/or instead be used. In block 506, the policy engine (e.g., policy engine 326 and/or policy engine 244) may identify files having a particular size. A size range and/or size threshold may be used. In some examples, a size threshold is used, and the policy engine may identify files within the sub set having a file size greater than the threshold. In this manner, a batch or group of files may be identified (e.g., by a policy engine) that meet a particular size threshold and/or range. That batch or group of files may also have an access time and/or age that meet a particular size threshold and/or range. The size threshold used in block 506 may be equal to or less stringent than a size threshold set for a tiering policy, e.g., in
In block 508, the subset of files may be instructed to be tiered. For example, a policy engine described herein may request that the subset of files identified in block 506 may be tiered by a file system. Referring to
In block 510, a next time range may be used. For example, during a next time a policy engine described herein evaluates files for tiering, another time range may be used, and the process of block 504, block 506, and/or block 508 may be repeated. In some examples, consecutive (e.g., adjacent) time ranges may be used in each repetition. The time range used in each repetition may be referred to as a window, and the process of repetition may be referred to as a sliding window. For example, in a first evaluation, files having last access times greater than 2 years may be evaluated for tiering, and a set of largest files in that window may be instructed for filing. In a second evaluation, files having last access times between 1 and 2 years may be evaluated for tiering, and a set of largest files in that window may be instructed for filing. In a next evaluation, files having last access times between 6 months and 1 year may be evaluated for tiering, and a set of largest files in that window may be instructed for filing. Different time windows and different size thresholds and/or ranges may be used during each repetition. The repetitions may continue until a capacity constraint on the primary storage is met (e.g., until a sufficient number of files have been tiered that the capacity available on the primary storage is no longer indicative of tiering). The repetitions may continue in some examples until batches of files from a full-time range of the available time range for tiering have been identified. In some examples, after processing all time windows, the capacity constraints may still not have been met on the primary storage (e.g., the capacity is such that further tiering is indicated). Accordingly, in some examples, policy engines described herein may again perform selections in accordance with the method 502 of
In some examples, during the process of tiering and/or recalling files, various kinds of failures can be encountered. Examples of failures include remote storage credentials are invalid, low storage space on primary storage, intermittent network failures, and/or timeouts. Other failures may also be encountered. File servers described herein may conduct the tiering and/or recalling of files, such as using tiering engine 314 of file server 302 in
The method 602 of
Examples of analytics systems described herein may receive indication(s) of tiering failure, such as in block 604 of
Examples of analytics systems described herein may track the progress of tiering and/or recall requests. For example, event data received by the analytics system may indicate that a tiering request (and/or a recall request) is completed or has an error. In block 608, an error code may be stored and associated with an ID of a file which failed to tier and/or failed to recall. In other examples, an indication of tiering and/or recall complete may be stored in association with the ID of the file which tiered and/or was recalled. The indications of tiering and/or recall status may be stored in failure database 606. The failure database 606, for example, may be implemented using datastore 226 of
Example of analytics systems described herein may retry tiering and/or recall operations after failure of an attempted operation. In block 610, a tiering operation may be retried based on the error code. The frequency, timing, and/or schedule of retries may vary based on the error code and/or type of error encountered. In some examples, recall policy engines described herein may select files for tiering and/or recall and may send requests to a file server to tier and/or recall files. The policy engine, such as policy engine 244 and/or policy engine 326, may be implemented using a process that is active at particular times and/or for particular lengths. As an example, a policy engine may be implemented using a process which is active during evenings and/or on weekends. In this manner, tiering and/or recall requests may be received by a file server and serviced during periods where the load on the file server is expected to be relatively light. However, the process may end at the end of the allotted period. Because tiering and/or recall status is stored in failure database 606, however, it may be persisted across different instances of the policy engine process. Accordingly, if the policy engine is implemented using a process that ends on, for example, Sunday afternoon, when the process next runs, for example, starting on a Saturday morning, it may have access to the tiering and/or recall status to initiate retries where appropriate. In some examples, the policy engine may retry any tiering and/or recall operation that is associated with a failed state. To retry the operation, the policy engine may re-send a request to tier and/or recall the file to the file server.
In some examples, the timing, frequency, and/or schedule of the retrying may be based on the error. Some example errors and their associated retry behavior are described herein; however, other errors and retry behaviors may be used in other examples.
In some examples, a tiering and/or recall operation may fail due to one or more intermittent or other network failures. Accordingly, an error code or other identification associated with a network failure may be stored in failure database 606 and associated with the file name or ID that failed to tier or recall. A policy engine, such as policy engine 326, may periodically access the failure database 606 and retry the tiering and/or recall operations that failed due to network failure. A count of a number of retries may be stored in the failure database 606. The policy engine may retry the request a threshold number of times before ceasing to retry the request in some examples. In some examples, the policy engine may wait a predetermined amount of time between retry attempts.
In some examples, a tiering and/or recall operation may fail due to the presence of a sparse file. A sparse file generally refers to a file which has a larger logical file size than the file's actual physical size. For example, an application may request a particular size allotment for a file, but the file may not yet have reached that size. In some examples, tiering engines described herein, such as tiering engine 314, may return an error if requested to tier a sparse file. The error may be returned because it may not be desirable to tier the sparse file due to its small physical size and/or the nature of the sparse file is such that additional accesses are expected, or some other reason. The analytics system may store an indication of the sparse file error and tiering failure in failure database 606. A policy engine may wait a predetermined period of time before initiating a retry of a tiering request associated with a sparse file. For example, the policy engine may not retry the tiering request for files having sparse file errors until a predetermined amount of time has passed (e.g., 2 hours, 2 days, or other time period). In this manner, different error codes may cause the policy engine to retry tiering requests after failure at different time period and/or a different number of times depending on the error code.
Examples of user interfaces described herein may display tiering configuration information, such as tiering configuration 704 of
Examples of user interfaces described herein may display capacity summaries, such as capacity summary 706. The capacity summary 706 may be a summary of capacity of a file server (e.g., file server 202 of
Examples of user interfaces described herein may display a tiering summary, such as tiering summary 708. The tiering summary 708 provides a graph of total amount of data tiered over time. The tiering summary 708 additionally displays a bar graph of each date or other time interval showing number of files tiered in each time interval. Other depictions of tiering summary may be used in other examples. Note that the amount of data and files tiered (and accordingly displayed by the user interface 702) may be determined in accordance with tiering techniques described herein, including sliding window techniques described with reference to
Examples of user interfaces described herein may display a recall summary, such as recall summary 710. The recall summary 710 provides a graph of total amount of data recalled over time. The recall summary 710 additionally displays a bar graph of each date or other time interval showing a number of files recalled in each time interval. Other depictions of recall summaries may be used in other examples.
The computing node 800 includes a communications fabric 802, which provides communications between one or more processor(s) 804, memory 806, local storage 808, communications unit 810, and I/O interface(s) 812. The communications fabric 802 can be implemented with any architecture designed for passing data and/or control information between processors (such as microprocessors, communications and network processors, etc.), system memory, peripheral devices, and any other hardware components within a system. For example, the communications fabric 802 can be implemented with one or more buses.
The memory 806 and the local storage 808 are computer-readable storage media. In this embodiment, the memory 806 includes random access memory RAM 814 and cache 816. In general, the memory 806 can include any suitable volatile or non-volatile computer-readable storage media. In an embodiment, the local storage 808 includes an SSD 822 and an HDD 824.
Various computer instructions, programs, files, images, etc. may be stored in local storage 808 for execution by one or more of the respective processor(s) 804 via one or more memories of memory 806. In some examples, local storage 808 includes a magnetic HDD 824. Alternatively, or in addition to a magnetic hard disk drive, local storage 808 can include the SSD 822, a semiconductor storage device, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, or any other computer-readable storage media that is capable of storing program instructions or digital information.
The media used by local storage 808 may also be removable. For example, a removable hard drive may be used for local storage 808. Other examples include optical and magnetic disks, thumb drives, and smart cards that are inserted into a drive for transfer onto another computer-readable storage medium that is also part of local storage 808. The local storage may be configured to store executable instructions for an analytics system 807 and/or executable instructions for an audit framework 809. The analytics system 807 may perform operations described with reference to the analytics system 216 and/or analytics system 304 in some examples. The audit framework 809 may perform operations described with reference to the audit framework of the file server 202 of
Communications unit 810, in these examples, provides for communications with other data processing systems or devices. In these examples, communications unit 810 includes one or more network interface cards. Communications unit 810 may provide communications through the use of either or both physical and wireless communications links.
I/O interface(s) 812 allows for input and output of data with other devices that may be connected to computing node 800. For example, I/O interface(s) 812 may provide a connection to external device(s) 818 such as a keyboard, a keypad, a touch screen, and/or some other suitable input device. External device(s) 818 can also include portable computer-readable storage media such as, for example, thumb drives, portable optical or magnetic disks, and memory cards. Software and data used to practice embodiments of the present disclosure can be stored on such portable computer-readable storage media and can be loaded onto local storage 808 via I/O interface(s) 812. I/O interface(s) 812 also connect to a display 820.
Display 820 provides a mechanism to display data to a user and may be, for example, a computer monitor. In some examples, a GUI associated with the user interface 236 of
From the foregoing it will be appreciated that, although specific embodiments have been described herein for purposes of illustration, various modifications may be made while remaining with the scope of the claimed technology.
Examples described herein may refer to various components as “coupled” or signals as being “provided to” or “received from” certain components. It is to be understood that in some examples the components are directly coupled one to another, while in other examples the components are coupled with intervening components disposed between them. Similarly, signals or communications may be provided directly to and/or received directly from the recited components without intervening components, but also may be provided to and/or received from the certain components through intervening components.
Number | Date | Country | Kind |
---|---|---|---|
202211056304 | Sep 2022 | IN | national |