Apparatus for determining resource migration schedule
One or more storage devices store resource migration schedule information including a plurality of records. Each of the plurality of records indicating a migration source node and a migration destination node of each of one or more resources. One or more processors are configured to determine a priority of each of the plurality of records such that a record having locality after migration has a higher priority than a priority of a record without locality after migration. The locality is determined based on whether a virtual machine and a volume associated with each other in advance exist in the same node. The one or more processors are configured to determine a migration schedule of each of the plurality of records based on the priority of each of the plurality of records.
1. An apparatus for determining a migration schedule of a resource including a virtual machine and a volume in a cluster including a plurality of nodes, the apparatus comprising:
one or more processors; and
one or more storage devices,
the one or more storage devices being configured to store resource migration schedule information including a plurality of records,
wherein each of the plurality of records indicates a migration source node and a migration destination node of each of one or more resources,
wherein the one or more processors are configured to determine a priority of each of the plurality of records such that a record having locality after migration has a higher priority than a priority of a record without locality after migration,
wherein the locality after migration is determined based on whether a virtual machine and a volume associated with each other will be hosted in the same node,
wherein a locality before migration is determined based on whether a virtual machine and a volume associated with each other are hosted on the same node before migration and is considered in assigning priorities,
wherein the one or more processors are configured to determine a migration schedule of each of the plurality of records based on the priority of each of the plurality of records.
2. The apparatus according to claim 1 , wherein the one or more processors are configured to determine the priority of each of the plurality of records such that a record having locality after migration and without locality before migration has a higher priority than a priority of a record having locality after migration and having locality before migration.
3. The apparatus according to claim 1 , wherein the one or more processors are configured to determine the priority of each of the plurality of records such that a record without locality after migration and without locality before migration has a higher priority than a priority of a record without locality after migration and having locality before migration.
4. The apparatus according to claim 1 ,
wherein a first record included in the plurality of records indicates migrating a virtual machine and a volume associated with each other in advance from the same migration source node, and
wherein the one or more processors are configured to determine to migrate, in the migration indicated by the first record, the virtual machine after migration of the volume.
5. The apparatus according to claim 4 , wherein the one or more processors are configured to determine to migrate the virtual machine after the migration of the volume in any one of a case in which the first record indicates migrating the virtual machine and the volume to the same migration destination node and a case in which the first record indicates migrating the virtual machine and the volume to different migration destination nodes.
6. The apparatus according to claim 1 , wherein the one or more processors are configured to determine the priority of a record without locality before migration and having locality after migration such that a record indicating migrating only a virtual machine has a higher priority than a priority of a record indicating migrating a volume.
7. The apparatus according to claim 1 ,
wherein the one or more storage devices are configured to store information on a change over time in a load estimation value of each of the plurality of nodes, and
wherein the one or more processors are configured to:
determine, based on the information on the change over time in the load estimation value of each of the migration source node and the migration destination node indicated by a second record, and a migration load estimation value of a migration indicated by the second record, whether the migration indicated by the second record is executable within a predetermined period; and
search the plurality of nodes for an intermediate node configured to mediate migration of a resource from the migration source node to the migration destination node indicated by the second record within the predetermined period when it is determined that the migration indicated by the second record is not executable within the predetermined period.
8. The apparatus according to claim 7 , wherein the one or more processors are configured to search for the intermediate node from among nodes having a higher priority.
9. The apparatus according to claim 1 , wherein the one or more processors are configured to determine to perform the migration indicated by a second record determined as being not executable within a predetermined period, at a slower transfer rate.
10. A method of determining, by an apparatus, a migration schedule of a resource including a virtual machine and a volume in a cluster including a plurality of nodes,
the apparatus being configured to store resource migration schedule information including a plurality of records,
each of the plurality of records indicating a migration source node and a migration destination node of each of one or more resources,
the method comprising:
determining, by the apparatus, a priority of each of the plurality of records such that a record having locality after migration has a higher priority than a priority of a record without locality after migration, the locality after migration being determined based on whether a virtual machine and a volume associated with each other will be hosted in the same node; and
determining, by the apparatus, a migration schedule of each of the plurality of records based on the priority of each of the plurality of records,
wherein a locality before migration is determined based on whether a virtual machine and a volume associated with each other are hosted on the same node before migration and is considered in assigning priorities.
11. A computer-readable non-transitory storage medium having stored thereon a command code for causing a computer system to execute processing,
the computer system being configured to store resource migration schedule information including a plurality of records,
each of the plurality of records indicating a migration source node and a migration destination node of each of one or more resources,
the processing comprising determining a priority of each of the plurality of records such that a record having locality after migration has a higher priority than a priority of a record without locality after migration,
the locality after migration being determined based on whether a virtual machine and a volume associated with each other will be hosted in advance exists in the same node,
the processing comprising determining a migration schedule of each of the plurality of records based on the priority of each of the plurality of records,
wherein a locality before migration is determined based on whether a virtual machine and a volume associated with each other are hosted on the same node before migration and is considered in assigning priorities.