Watch Endpoints as a Service project for Red Hat. WEaaS is for use with Kuryr and OpenStack.
WEaaS (a.k.a stop polling all the things) is offered as a more efficient alternative to monitor endpoints by tapping directly into Neutron's messaging queue. Currently, the Kuryr Controller polls the Neutron using the OpenStack API to watch for networking events. By communicating directly with RabbitMQ, OpenStack's messaging service, WEaaS is able to return endpoint information faster than polling.
Intended client: Kuryr Controller
- Neutron:
- port
More info here.
- LBaaS v2:
- loadbalancer
- listener
- pool
- member
More info here.
Request a token using the Keystone api.
gunicorn -b 127.0.0.1:5000 --threads 8 watchEndpoints:app
More info on gunicorn args here.
USing the API with Keystone authentication (for example):
curl http://127.0.0.1:5000/$some_endpoint -H "X-Auth-Token: $A_VALID_TOKEN"
Notes:
Client connections and server may be terminated by a keyboard interrupt