Re: [gnocchi] Running Gnocchi API in specific interface
On Thu, May 18, 2017 at 11:14:06AM +0800, Andres Alvarez wrote:
>The gnocchi-api command allows running the API server usign a spefic port:
>usage: gnocchi-api [-h] [--port PORT] -- [passed options]
> -- [passed options] '--' is the separator of the arguments used to start
> the WSGI server and the arguments passed to the WSGI
> -h, --help show this help message and exit
> --port PORT, -p PORT TCP port to listen on (default: 8000)
>I was wondering if it's possible as well to use a specific interface? (In
>my case, I am working on a cloud dev environment, so I need 0.0.0.0)?
gnocchi-api is for testing purpose, for production or any HTTP server
advanced usage, I would recommend to use the wsgi application inside a
real HTTP server, you can find an example with uwsgi here:
So I think I'd agree with Haikel here. But ultimately, in the RDO case,
the packaging files should leverage a real WSGI Web server like uwsgi if
they want to start the service, rather than defaulting *all* packages to
the same pbr default. Which will conflict and is bad user experience.
Nobody asks what the default port of e.g. phpmyadmin. The same should go
with OpenStack services ultimately. Unfortunately, the bad habit has
spread from the early day of Nova and Swift using a port and not
providing a WSGI file.