[Openstack] Glance performance v1 vs v2

Sam Morrison sorrison at gmail.com
Thu Jun 26 10:39:17 UTC 2014


Hi Stuart,

Yeah we’re using Icehouse which has this patch included. Glad to hear it’s not just our set up and to confirm that v2 API does seem to be slower.
I’m just worried as there is talk of deprecating v2 API but currently it doesn’t seem anywhere near ready to be a suitable replacement for v1.

Hopefully as more people start to look at v2 we can iron out some of these issues.

Cheers,
Sam



On 25 Jun 2014, at 10:54 pm, stuart.mclaren at hp.com wrote:

> Hi Sam,
> 
> We're just starting to look at v2.
> 
> We did see some really slow listing behaviour, backporting
> Ie7458044edbe1ef64871bcf5ef4996ed3cc0f957 helped a lot -- but you'll
> probably have that change already if you're using more recent code.
> 
> Even with that it does seem slower in some cases, eg devstack listing 1000 images:
> 
> v1:
> $ time ./.tox/py27/bin/glance --os-image-api-version 1 image-list > /dev/null
> real	0m6.058s
> user	0m1.348s
> sys	0m0.172s
> 
> v2, no registry:
> $ time ./.tox/py27/bin/glance --os-image-api-version 2 image-list > /dev/null
> real	0m15.487s
> user	0m9.233s
> sys	0m0.120s
> 
> v2, with registry:
> $ time glance --os-image-api-version 2 image-list > /tmp/out
> real	0m21.904s
> user	0m9.217s
> sys	0m0.116s
> 
> 
> -Stuart
> 
> On Wed, 25 Jun 2014, Sam Morrison wrote:
> 
>> We’ve recently enabled glance v2 API on our glance servers. We’ve noticed it is considerably slower than v1 to do things like glance image-list. (~4 seconds compared to ~1)
>> Has anyone else experienced this or run any benchmarks comparing the two APIs?
>> 
>> I should note we’re using glance registry for both v1 and v2 requests too.
>> 
>> Also just wondering if people are actually using v2?
>> For instance from what I can tell you can’t create an image with v2 via the client yet [1]
>> 
>> Cheers,
>> Sam
>> 
>> 
>> [1] https://bugs.launchpad.net/python-glanceclient/+bug/1302351
>> _______________________________________________
>> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>> Post to     : openstack at lists.openstack.org
>> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack





More information about the Openstack mailing list