vmware-archive / vsphere-storage-for-docker

vSphere Storage for Docker
https://vmware.github.io/vsphere-storage-for-docker
Apache License 2.0
251 stars 95 forks source link

[Improvement] Creation of individual volume takes lots of time. #1122

Open ashahi1 opened 7 years ago

ashahi1 commented 7 years ago

Time taken to create individual volume seems to be a lot for a thin provisioned volume of 100 mb size. Duration fluctuated a lot but on an average it took between 25-35 seconds per volume. ~90 seconds was the maximum I saw and ~7 seconds was the minimum time it took to create one volume.

Setup:

One ESX  - 312 VMs 
All VMs are on one ESX
~80 VMs are powered-on  and rest are powered-off.
All VMs are on sharedVmfs-0 datastore.

Test will create ten threads - each thread will make 75 thin provisioned volumes of 100 mb each. Total volumes created - 750 of 100 mb each

Steps:

1. Create volumes simultaneously from each thread.
2. Do docker volume ls and admin cli volume ls.
3. Remove volumes simultaneously from each thread.

Duration for each operation is as follows:

Individual volume creation - duration fluctuated a lot but on an average it took between 25-35 seconds per volume. ~90 seconds was the maximum I saw and ~7 seconds was the minimum time it took to create one volume.

docker volume ls - ~12-14 seconds per thread
admin cli volume ls - ~180 seconds per thread
Individual volume removal - ~6-7 seconds

Product Logs: vmdk_ops.log.1.txt vmdk_ops.txt docker-volume-vsphere.txt

Test Logs: Parallel_Run1.txt

govint commented 7 years ago

Not a common scenario to have users creating a lot of volumes in parallel - 10 threads each creating 75 volumes isn't common at all.