Resource allocation method for a physical computer used by a back end server including calculating database resource cost based on SQL process type
First Claim
1. A resource allocation method for a physical computer used by a Back End Server (BES) executed in a virtual computer operating on resources of the physical computer when processing an inputted Structured Query Language (SQL) request based on a database stored in an accessible storage device, wherein an access to the database to be subjected to SQL processes is of a shared everything type architecture in which the BES can process the database, the method comprising steps of:
- subjecting the inputted SQL request to a syntax analysis and extracting a plurality of SQL processes from the inputted SQL request,calculating, for each of one or more process types contained in the extracted SQL processes and one or more BESs, a resource cost of a database required by the one or more BESs to perform the extracted SQL processes for which an executing BES of the one or more BESs is determined,deciding an allocation ratio for allocating the resources of the physical computer to the virtual computer in accordance with a resource cost ratio of each of the one or more BESs required to execute the extracted SQL processes,selecting one of the one or more BESs which has a highest allocation ratio in the decided allocation ratios as an executing BES for the extracted SQL processes for which an executing BES of the one or more BESs is not determined, andrequesting for execution of the selected one of the one or more BESs on the virtual computer to which the resources have been allocated so as to execute the extracted SQL processes,wherein if the process type of the extracted SQL processes is a condition judgment, the step of calculating the resource cost of the database required by the one or more BESs includes multiplying the number of database cases to be subjected to the extracted SQL processes by a hit rate corresponding to the type of a predicate contained in an SQL command of the extracted SQL processes corresponding to the condition judgment, and by a predetermined coefficient.
1 Assignment
0 Petitions
Accused Products
Abstract
A resource allocation method, a resource allocation program, and a resource allocation apparatus in which a request reception server subjects an inputted SQL to a syntax analysis. At least one SQL process is extracted from the input SQL, and a resource cost of a database required by a BES (Back End Server) to perform the SQL process for each of one or more process types contained in the SQL process is calculated. Further, an allocation ratio is determined for allocating the resource of a request executing server to a virtualized server in accordance with a resource cost ratio required by each of the BES to execute the SQL process. Additionally, requests are made for execution of the respective BES on the virtualized server to which the resource has been allocated so as to execute the SQL process.
38 Citations
6 Claims
-
1. A resource allocation method for a physical computer used by a Back End Server (BES) executed in a virtual computer operating on resources of the physical computer when processing an inputted Structured Query Language (SQL) request based on a database stored in an accessible storage device, wherein an access to the database to be subjected to SQL processes is of a shared everything type architecture in which the BES can process the database, the method comprising steps of:
-
subjecting the inputted SQL request to a syntax analysis and extracting a plurality of SQL processes from the inputted SQL request, calculating, for each of one or more process types contained in the extracted SQL processes and one or more BESs, a resource cost of a database required by the one or more BESs to perform the extracted SQL processes for which an executing BES of the one or more BESs is determined, deciding an allocation ratio for allocating the resources of the physical computer to the virtual computer in accordance with a resource cost ratio of each of the one or more BESs required to execute the extracted SQL processes, selecting one of the one or more BESs which has a highest allocation ratio in the decided allocation ratios as an executing BES for the extracted SQL processes for which an executing BES of the one or more BESs is not determined, and requesting for execution of the selected one of the one or more BESs on the virtual computer to which the resources have been allocated so as to execute the extracted SQL processes, wherein if the process type of the extracted SQL processes is a condition judgment, the step of calculating the resource cost of the database required by the one or more BESs includes multiplying the number of database cases to be subjected to the extracted SQL processes by a hit rate corresponding to the type of a predicate contained in an SQL command of the extracted SQL processes corresponding to the condition judgment, and by a predetermined coefficient. - View Dependent Claims (2, 3, 4, 5, 6)
-
Specification