projectcontour / gimbal

Gimbal is an ingress load balancing platform capable of routing traffic to multiple Kubernetes and OpenStack clusters. Built by Heptio in partnership with Actapio.
https://github.com/projectcontour/gimbal
Apache License 2.0
661 stars 92 forks source link

Limit OpenStack discovery with white list #241

Closed hmorikaw closed 5 years ago

hmorikaw commented 6 years ago

Describe the solution you'd like [A clear and concise description of what you want to happen.]

The OpenStack discoverer sync cycle spend too long when OpenStack cluster has too many projects. So, I'd like to limit sync projects by white list.

In my cluster, which has about 3900 projects, one sync cycle spends about 30 min. So, OpenStack LBaaS operations don't sync instantly.

$ kubectl logs openstack-discoverer-5556b6dcbc-ptj6n -n gimbal-discovery | grep 'dreco-001/openstack-626c5bf1-3cf8-438a-b6a1-e20419126eee'

time="2018-10-28T22:20:33Z" level=info msg="Successfully handled: update service 'dreco-001/openstack-626c5bf1-3cf8-438a-b6a1-e20419126eee'"
time="2018-10-28T22:51:58Z" level=info msg="Successfully handled: update endpoints 'dreco-001/openstack-626c5bf1-3cf8-438a-b6a1-e20419126eee'"
time="2018-10-28T22:51:59Z" level=info msg="Successfully handled: update service 'dreco-001/openstack-626c5bf1-3cf8-438a-b6a1-e20419126eee'"
time="2018-10-28T23:23:19Z" level=info msg="Successfully handled: update endpoints 'dreco-001/openstack-626c5bf1-3cf8-438a-b6a1-e20419126eee'"
time="2018-10-28T23:54:43Z" level=info msg="Successfully handled: update service 'dreco-001/openstack-626c5bf1-3cf8-438a-b6a1-e20419126eee'"
time="2018-10-28T23:54:43Z" level=info msg="Successfully handled: update endpoints 'dreco-001/openstack-626c5bf1-3cf8-438a-b6a1-e20419126eee'"

Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]

Environment:

rosskukulinski commented 5 years ago

This was resolved in #249, Thanks @hmorikaw for your PR!