Method, terminal, device and computer readable storage medium for improving the performance of virtual machine
First Claim
1. A method for improving a performance of a virtual machine, comprising:
- determining whether or not a failure of a disk of a host having a virtual disk file stored therein occurs if a virtual machine sends a read request or a write request to the virtual disk file;
if the failure occurs, sending the read request or the write request to a storage device which is associated with the host and has the virtual disk file stored therein so that the storage device is able to feed back corresponding data;
detecting whether or not a corresponding disk of the host is recovered if the data fed back from the write request is received; and
writing the data fed back from the write request into the corresponding disk of the host if the disk of the host is recovered;
the method further comprising;
determining whether or not a congestion of the read request or write request occurs if the virtual machine sends the read request or the write request to the virtual disk file;
buffering the read request or write request in a memory allocated by the host if no congestion occurs;
determining whether or not a failure of the disk of the host having the virtual disk file stored therein occurs; and
sending the buffered read request or write request to a storage device, which is associated with the host and has the virtual disk file stored therein, according to a predetermined order if a failure occurs, so that the storage device is able to feed back corresponding data.
1 Assignment
0 Petitions
Accused Products
Abstract
Disclosed are a method, a terminal, a device, and a computer readable storage medium for improving the performance of a virtual machine. The method includes determining whether a failure of a disk of a host having a virtual disk file stored therein occurs if a virtual machine sends a read request or a write request to the virtual disk file; sending the read or write request to a storage device which is associated with the host and has the virtual disk file stored therein if the failure occurs, so that the storage device is able to feed back data; detecting whether the disk of the host is recovered if the data fed back from the write request is received; and writing the data fed back from the write request into the disk of the host if the disk of the host is recovered.
14 Citations
12 Claims
-
1. A method for improving a performance of a virtual machine, comprising:
-
determining whether or not a failure of a disk of a host having a virtual disk file stored therein occurs if a virtual machine sends a read request or a write request to the virtual disk file; if the failure occurs, sending the read request or the write request to a storage device which is associated with the host and has the virtual disk file stored therein so that the storage device is able to feed back corresponding data; detecting whether or not a corresponding disk of the host is recovered if the data fed back from the write request is received; and writing the data fed back from the write request into the corresponding disk of the host if the disk of the host is recovered; the method further comprising; determining whether or not a congestion of the read request or write request occurs if the virtual machine sends the read request or the write request to the virtual disk file; buffering the read request or write request in a memory allocated by the host if no congestion occurs; determining whether or not a failure of the disk of the host having the virtual disk file stored therein occurs; and sending the buffered read request or write request to a storage device, which is associated with the host and has the virtual disk file stored therein, according to a predetermined order if a failure occurs, so that the storage device is able to feed back corresponding data. - View Dependent Claims (2, 3, 4)
-
-
5. A device, comprising a processor, and an input device, an output device, and a memory, coupled to the processor;
- wherein the input device is provided for a user to input into a read request or a write request into a virtual disk file;
the output device is provided for outputting data fed back from the read request or write request; the memory, is provided for storing program data of the host and the storage device associated with the host, the read request or write request, and other callable and operable program data; and the processor, is provided for calling the program data stored in the memory and executing the steps of determining whether or not a failure of a disk of a host having a virtual disk file stored therein occurs if a virtual machine sends a read request or a write request to the virtual disk file; if the failure occurs, sending the read request or the write request to a storage device which is associated with the host and has the virtual disk file stored therein so that the storage device is able to feed back corresponding data; detecting whether or not a corresponding disk of the host is recovered if the data fed back from the write request is received; and writing the data fed back from the write request into the corresponding disk of the host if the disk of the host is recovered; wherein the processor further executes the steps of; determining whether or not a congestion of the read request or write request occurs if the virtual machine sends the read request or the write request to the virtual disk file; buffering the read request or write request in a memory allocated by the host if no congestion occurs; determining whether or not a failure of the disk of the host having the virtual disk file stored therein occurs; and sending the buffered read request or write request to a storage device, which is associated with the host and has the virtual disk file stored therein, according to a predetermined order if a failure occurs, so that the storage device is able to feed back corresponding data. - View Dependent Claims (6, 7, 8)
- wherein the input device is provided for a user to input into a read request or a write request into a virtual disk file;
-
9. A non-transitory computer readable storage medium, provided for storing one or more programs executed by one or more processors, and executing the steps of:
-
determining whether or not a failure of a disk of a host having a virtual disk file stored therein occurs if a virtual machine sends a read request or a write request to the virtual disk file; if the failure occurs, sending the read request or the write request to a storage device which is associated with the host and has the virtual disk file stored therein so that the storage device is able to feed back corresponding data; detecting whether or not a corresponding disk of the host is recovered if the data fed back from the write request is received; and writing the data fed back from the write request into the corresponding disk of the host if the disk of the host is recovered; wherein the processors further execute the steps of; determining whether or not a congestion of the read request or write request occurs if the virtual machine sends the read request or the write request to the virtual disk file; buffering the read request or write request in a memory allocated by the host if no congestion occurs; determining whether or not a failure of the disk of the host having the virtual disk file stored therein occurs; and sending the buffered read request or write request to a storage device, which is associated with the host and has the virtual disk file stored therein, according to a predetermined order if a failure occurs, so that the storage device is able to feed back corresponding data. - View Dependent Claims (10, 11, 12)
-
Specification