
PERFORMANCE STUDY /25
VMware vCloud Director 1.0 Performance and Best Practices
Figure 22. Sync Time for Inventory Cache Sizes Set to 1000, 5000 and 10,000 with 5000 VMs
Inventory Cache and JVM Heap Size Tuning
vCloud Director maintains an inventory of all vCenter Server entities it manages. A part of this inventory is cached
by each vCloud Director cell. This caching process depends on the size of the cache configured for each cell.
There is one sizing configuration for inventory cache for all cells of the vCloud Director installation. Serialization
and deserialization of vCenter Server entities and querying the database for these objects are expensive. So, the
overall performance of vCloud Director is greatly enhanced by proper sizing. This section describes how this
sizing matters and how inventory cache prioritizes objects.
By default, each vCloud Director cell is configured for 5000 inventory items (total inventory cache entries
including hosts, networks, folders, resource pools, and so on). We estimate that this sizing is optimal for 2000
VMs. Our measurements show that on average, each inventory cache item is about 30KB in size. So, with the
default configuration, an installation supporting 2000 VMs may end up using 5000 × 30KB =
~
150MB.
2
Note: For steps to change the inventory cache, see “
Adjusting Thread Pool and Cache Limits” on page 28.
Because the number of supported VMs increases in the vCD when additional vCloud Director cells are added,
proper tuning of this inventory size will help boost performance. We recommend the following formula to help
figure out what number to use for the cache size on each cell:
Inventory Cache Size = 2.5 × (Total Number of VMs in vCloud Director)
We assume here that most VMs in one or more instances of vCenter Server that are managed by vCloud Director
are the ones created by vCloud Director. If that is not the case, substitute the
Total number of VMs in vCloud
Director
with
Total number of VMs in each vCenter Server
.
As the number of VMs managed by vCloud Director increases, you can either add new vCenter Server instances
to support more VMs, or you can utilize vCenter Server to its full scale (3000 VMs for vSphere 4.0 and 10,000
VMs for vSphere 4.1). Because the inventory in vCloud Director is the aggregate of all vCenter Server inventories
2
5000 × (30KB) = 5000 × (30 × 1024) bytes = 153,600,000 bytes ÷ 1,048,576 = 146MB
0
10
20
30
40
50
60
Seconds
Inventory Cache Sizes
reconnect-vCenter-sync
Komentarze do niniejszej Instrukcji