Expand on when you might want to set --max-count for map_instances
The default behavior for the "nova-manage cell_v2 map_instances" command is to map all instances in the cell in batches of 50. This can be slow when there are several thousand instances in the deployment and an operator may want to specify a higher --max-count value and run the command until it completes. This simply updates the command option description and man page to point this out for consideration. Change-Id: I59c2ed89fe02212977445f6825c6da8fedbb8ccf Related-Bug: #1742649
This commit is contained in:
parent
27eadbc499
commit
2890d8db67
|
@ -152,6 +152,10 @@ Nova Cells v2
|
|||
instances have been mapped, and 1 if there are still instances to be
|
||||
mapped.
|
||||
|
||||
If ``--max-count`` is not specified, all instances in the cell will be
|
||||
mapped in batches of 50. If you have a large number of instances, consider
|
||||
specifying a custom value and run the command until it exits with 0.
|
||||
|
||||
``nova-manage cell_v2 map_cell_and_hosts [--name <cell_name>] [--transport-url <transport_url>] [--verbose]``
|
||||
|
||||
Create a cell mapping to the database connection and message queue
|
||||
|
|
|
@ -1073,7 +1073,10 @@ class CellV2Commands(object):
|
|||
help='Unmigrated instances will be mapped to the cell with the '
|
||||
'uuid provided.')
|
||||
@args('--max-count', metavar='<max_count>', dest='max_count',
|
||||
help='Maximum number of instances to map')
|
||||
help='Maximum number of instances to map. If not set, all instances '
|
||||
'in the cell will be mapped in batches of 50. If you have a '
|
||||
'large number of instances, consider specifying a custom value '
|
||||
'and run the command until it exits with 0.')
|
||||
def map_instances(self, cell_uuid, max_count=None):
|
||||
"""Map instances into the provided cell.
|
||||
|
||||
|
|
Loading…
Reference in New Issue