The present disclosure relates generally to the field of computer networks and storage networks, and, more particularly, to a system and method for the implementation of an adaptive cache policy in a storage controller.
As the value and use of information continues to increase, individuals and businesses seek additional ways to process and store information. One option available to these users is an information handling system. An information handling system generally processes, compiles, stores, and/or communicates information or data for business, personal, or other purposes thereby allowing users to take advantage of the value of the information. Because technology and information handling needs and requirements vary between different users or applications, information handling systems may vary with respect to the type of information handled; the methods for handling the information; the methods for processing, storing or communicating the information; the amount of information processed, stored, or communicated; and the speed and efficiency with which the information is processed, stored, or communicated. The variations in information handling systems allow for information handling systems to be general or configured for a specific user or specific use such as financial transaction processing, airline reservations, enterprise data storage, or global communications. In addition, information handling systems may include or comprise a variety of hardware and software components that may be configured to process, store, and communicate information and may include one or more computer systems, data storage systems, and networking systems.
A computer network may include a server cluster coupled to shared storage. A server cluster is a group of networked servers that are managed as a whole to provide an enhanced level of fault tolerance, scalability, and manageability. In a shared storage environment, each of the servers of the server cluster may access the shared storage resources, although only one of the servers will have logical ownership of any logical division of the shared storage resources at any one time. The shared storage resources may comprise multiple drives that are managed according to a redundant storage methodology. One example of a redundant storage methodology is a RAID storage methodology, in which a group of drives are managed as a whole to improve the performance and data redundancy of the drives. The drives of a RAID are typically controlled by a RAID storage controller which may be located in one of the server nodes or in one or more of the storage enclosures that include the drives of the RAID array or arrays.
In a non-clustered environment or in the case of external storage controller in a storage-based RAID environment, a cache in a storage controller may include a dedicated battery source as for the purpose of supplying power to the cache in the event of a failure of the server node. In the case of a storage controller that is included within the server nodes of the server cluster, the storage controller may have the capability of performing cache operations for I/O accesses to the drives of the RAID array. The use of a write-back or read-ahead caching policy in an internal storage controller may improve the performance of the network, including the performance of the RAID array. The use of a write-back cache may, however, lead to a discontinuity in the data of a RAID array. In the event of a failure of a server node, the applications of a first server node are failed over, or migrated, to a second server node of the cluster. If uncommitted or dirty data resides in the cache of the first server node, a discontinuity in the data of the RAID array will result, as the data of write commands transmitted by the first node has not yet been written back to the drives of the RAID array. Because the first server node has failed, the second server node will not have access to the uncommitted data residing in the cache of the first server node.
In accordance with the present disclosure, a system and method for the implementation of an adaptive cache policy in a storage controller is disclosed in which a cache optimization utility monitors data access commands generated by one or more of the software applications of a server node. On the basis of one or more characteristics of the data access commands, including the type or target of the commands, the cache optimization utility can adjust the cache policy of the storage controller with respect to the storage volume contained therein. In the case of a database application, for example, the cache policy of the storage controller can be adjusted so that a first cache policy is applied with respect to data access commands directed to the data files of the database and a second cache policy is applied with respect to data access commands directed to transaction log files of the database.
The system and method disclosed herein is technically advantageous because the cache policy of a storage controller for a redundant storage system can be tailored for improved performance and failover reliability on the basis of the characteristics of the data access commands being received by the storage controller. Another technical advantage of the system and method disclosed herein is the operation of the cache optimization utility is transparent with respect to the operation of the software application of the server node. Because of the transparency of the cache optimization utility, the cache policy of the storage controller can be optimized without modifying the operation of the software application of the server node. The system and method disclosed herein is also advantageous because the cache policy of the storage controller can be modified with respect to any number of characteristics of the data access commands generated by the software applications of the server node. The cache policy of the storage controller can be adaptively modified and adjusted so that a cache policy implemented that is most advantageous for the operation of the application. Other technical advantages will be apparent to those of ordinary skill in the art in view of the following specification, claims, and drawings.
A more complete understanding of the present embodiments and advantages thereof may be acquired by referring to the following description taken in conjunction with the accompanying drawings, in which like reference numbers indicate like features, and wherein:
For purposes of this disclosure, an information handling system may include any instrumentality or aggregate of instrumentalities operable to compute, classify, process, transmit, receive, retrieve, originate, switch, store, display, manifest, detect, record, reproduce, handle, or utilize any form of information, intelligence, or data for business, scientific, control, or other purposes. For example, an information handling system may be a personal computer, a network storage device, or any other suitable device and may vary in size, shape, performance, functionality, and price. The information handling system may include random access memory (RAM), one or more processing resources such as a central processing unit (CPU) or hardware or software control logic, ROM, and/or other types of nonvolatile memory. Additional components of the information handling system may include one or more disk drives, one or more network ports for communication with external devices as well as various input and output (I/O) devices, such as a keyboard, a mouse, and a video display. The information handling system may also include one or more buses operable to transmit communications between the various hardware components.
Shown in
Application software instance 14 may comprise any of a number of application software programs. One example is a database program, which is a software application that stores, organizes, and access data in a database format in storage. Cache policy optimization layer 16 may comprise a software utility that monitors data access commands, including read and write commands, being generated by the application software instance. A utility, as that term is used herein, refers to a software program. From the perspective of the application software instance, the cache policy optimization layer 16 is transparent, as application software instance 14 does not recognize that its data access commands are being monitored by the cache policy optimization layer. Data access commands are received by storage controller 18 and translated for transmission to one or more of the drives of storage enclosure 26.
Storage enclosure 26 includes twenty drives, which are identified as drives D0 through D19. The drives may be managed according to a RAID storage methodology so that multiple drives or portions of multiple drives are managed as a single logical drive. In this example, drives D0 through D15 are managed as a first logical drive, and drives D16 through D19 are managed as a second logical drive. In the example of a database application executing on a server node of the network, the first logical drive (D0 through D15) may include the data files of the database, while the second logical drive D16 through D19 includes the transaction log files of the database. For a typical database, the data files will consume more storage space than the transaction log files of the database.
Each of the nodes 12 are coupled to one another by a communications link 24. Communications link 24 is used for synchronization and polling between the two server nodes. In the event of a failure of a server node or the storage controller, this failure is recognized by the opposite server node across communications link 24 and the applications of the failed server node are failed over or migrated to the alternate server nodes which then assumes ownership over the logical drives previously owned by the failed server node.
Shown in
At step 42, cache policy optimization layer 16 categorizes and analyzes the data access commands. The data access commands may be categorized or analyzed according to a number of criteria, including the frequency of the commands, the type of commands, and the storage target for the command. At step 44, the cache policy optimization layer adjusts the cache policy of the storage controller in response to the analyzed data access commands. As an example, the cache policy may be adjusted on the basis of the type of data access commands and the storage target for the commands. In the case of a database application, the data access commands will consist of a first set of data access commands, including write commands, directed to the drives housing the data files of the database and a second set of data access commands, including write commands, directed to the drives housing the transaction log files of the database. Recognizing that the database application is issuing data access commands that comprise commands directed to either the drives of the data files or the drives of the transaction log files, the cache policy optimization layer adjusts the caching policy so that write-back caching is enabled for all writes directed to the transaction log files, and so that write caching is disabled for all writes directed to the data files.
The segregation of the caching policy of the storage controller according to the destination of the command is desirable in some applications due to the nature of the data access commands and the consequence of having uncommitted data upon the failure of the storage controller. Write-back caching can be enabled for write commands to the transaction log files because the write commands to the transaction log files are sequential commands. As sequential commands, the commands must be executed in the order in which the commands were issued. As such, a performance advantage can be gained by storing the write data associated with these commands in the cache before flushing a larger set of data to the storage drives, where the commands can be executed in the sequence in which the commands were received by the storage controller. Although data access commands directed to data files need not be executed sequentially, having uncommitted data in the cache of the storage controller can create a data inconsistency in the event of a failure of the storage controller, as data from certain write commands has not yet been committed to the storage drives. Write caching is thus disabled for write commands directed to the data files. The failure of a server node or storage controller is less problematic in the case of uncommitted data directed to the transaction log files, as this data concerns transaction logs that can be recreated on the basis of the data files following a failure of a server node or a storage controller. This is necessary because there is not any cache coherency between RAID controllers in separate nodes.
Following the adjustment of the cache policy by the cache policy optimization layer, the storage controller implements the cache policy upon the receipt of data access commands. Shown in
It should be recognized that the cache policy optimization layer can adjust the cache policy of the storage controller on the basis of factors other than the target logical drive of the data access command. As an example, the cache policy could be adjusted on the basis of the volume of data access requests to a particular logical volume. In the event of a high volume of data access requests to one logical volume, write-back caching could be enabled and the size of the cache could be increased so that the cache would have to be flushed less frequently. The cache policy optimization layer can also work with software applications other than database applications. Depending on the data access commands generated by the software application, the cache policy of the storage controller can be modified to improve the performance of the software application while not compromising the ability of the software application to recover from a failure in the server node or storage controller.
Although the present disclosure has been described in detail, it should be understood that various changes, substitutions, and alterations can be made hereto without departing from the spirit and the scope of the invention as defined by the appended claims.