map_instances default batch size is too small.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Opinion
|
Low
|
Surya Seetharaman | ||
Ubuntu Cloud Archive |
Triaged
|
Low
|
Unassigned | ||
nova (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
Description
===========
map_instances seemingly hung for hours on a cloud with ~190000 instance records. I think the following fixes are valid (in order of preference):
1) nova_manage should examine the amount of instances that need mapping and make an informed choice about batch size if max_count is not set.
2) max_counts default should be raised. It is currently 50 and I cannot imagine what use case 50 is a good default for. For small clouds the max_count is almost irrelevant, for medium/large clouds 50 is far too low.
3) Update max_count description. It currently reads "Maximum number of instances to map" but I think it should also point out that this is the batch size that instances will be processed in.
Steps to reproduce
==================
Fire up a large number of instances on a cloud and run map_instances without max_count set:
nova-manage --config-file /etc/nova/nova.conf cell_v2 map_instances --cell_uuid <uuid>
Expected result
===============
The command should complete in a reasonable time (under an hour)
Actual result
=============
Command runs for over three hours
Environment
===========
1. Exact version of OpenStack you are running. See the following
list for all releases: http://
If this is from a distro please provide
# dpkg -l | grep nova
ii nova-api-os-compute 2:16.0.
ii nova-common 2:16.0.
ii nova-conductor 2:16.0.
ii nova-placement-api 2:16.0.
ii nova-scheduler 2:16.0.
ii python-nova 2:16.0.
Changed in nova: | |
status: | New → Opinion |
importance: | Undecided → Low |
Changed in nova: | |
assignee: | nobody → Surya Seetharaman (tssurya) |
Changed in cloud-archive: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in nova (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Triaged |
Actually, it would be useful to be able to say map all the instances using this batch size, eg:
nova-manage --config-file /etc/nova/nova.conf cell_v2 map_instances --cell_uuid <uuid> --max_count all --batch_size 50000