Improve the performance of filtering instance by IP

Registered by Zhenyu Zheng

The performance of filtering instance by IP is poor, this is due to that IP address is one part of the instance.network_info JSON, we have to iterate one by one to find the instance that matches the request.

As discussed in Queens PTG[1], one possible solution is to get filtered ports from Neutron
and retrieve the instance uuid from the port.device_id and then merge to the other filters.

As Nova provides regex matching manner filtering for IP filter, so this is depend on
Neutron changes that addes regex matching manner to the GET /ports API[2]

[1] http://lists.openstack.org/pipermail/openstack-dev/2017-September/122258.html
[2] https://bugs.launchpad.net/neutron/+bug/1718605

Blueprint information

Status:
Complete
Approver:
Matt Riedemann
Priority:
Medium
Drafter:
Zhenyu Zheng
Direction:
Approved
Assignee:
Zhenyu Zheng
Definition:
Approved
Series goal:
Accepted for queens
Implementation:
Implemented
Milestone target:
milestone icon queens-rc1
Started by
Matt Riedemann
Completed by
Matt Riedemann

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/improve-filter-instances-by-ip-performance,n,z

Addressed by: https://review.openstack.org/509326
    Improve the performance of filtering instances by IP.

Approved for Queens. -- mriedem 20171019

Addressed by: https://review.openstack.org/525505
    [WIP] POC to use neutron port_list when filtering instance by ip

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.