[openstack-dev] [nova][neutron] Filtering Instances by IP address performance improvement test result
jaypipes at gmail.com
Fri Jan 5 20:50:11 UTC 2018
Excellent work on this, Kevin. I'll review the patch series on Monday.
On 01/04/2018 09:53 PM, Zhenyu Zheng wrote:
> Hi All,
> We are working on patches to improve the performance filtering instance
> by IP address this cycle. As discussed in the previous ML, it
> contains both patches from Nova and Neutron.
> As the POC is almost functional(the neutron extension part seems not
> working, it cannot be successfully listed in patchset 14 of  , I have
> to bypass the "if" condition for checking neutron
> "ip-substring-filtering" extension to make it work, but that seems easy
> to fix), I made some tests to check what kind of improvement has been
> done with those patches.
> In the tests, I wrote a simple script (the script is silly, please
> don't laugh at me:) ) which generated 2000 vm records in Nova DB with IP
> address allocated(one IP for each vm), and also 2000 port records with
> corresponding IP addresses in my local devstack env.
> Before adding those patches, querying instance with a specific IP
> filtering causes about 4000 ms, the test has been done several times,
> and I took the averaged result:
> Inline image 1
> After adding those patches(and some modifications as mentioned above)
> querying with the same request causes only about 400ms:
> Inline image 2
> So, the design seems working well.
> I also tested with a "Sub-String" manner filtering with IP address:
> 192.168.7.2, which will match 66 instances, and it takes about 900ms:
> Inline image 3
> It increased, but seems reasonable as it matches more instances, and
> still much better than current implementation.
> Please test out in your own env if interested, the script might need
> some modification as I hardcoded db connection, network_id and subnet_id.
> And also, please help review the patches :)
>  https://review.openstack.org/#/c/509326/
>  https://review.openstack.org/#/c/525505/
>  https://review.openstack.org/#/c/518865/
>  https://review.openstack.org/#/c/521683/
>  https://review.openstack.org/#/c/525284/
> Kevin Zheng
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
More information about the OpenStack-dev