[openstack-dev] [gnocchi] Running Gnocchi API in specific interface
Mehdi Abaakouk
sileht at sileht.net
Thu May 18 05:40:11 UTC 2017
Hi,
On Thu, May 18, 2017 at 11:14:06AM +0800, Andres Alvarez wrote:
>Hello folks
>
>The gnocchi-api command allows running the API server usign a spefic port:
>
>usage: gnocchi-api [-h] [--port PORT] -- [passed options]
>
>positional arguments:
> -- [passed options] '--' is the separator of the arguments used to start
> the WSGI server and the arguments passed to the WSGI
> application.
>
>optional arguments:
> -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:
http://gnocchi.xyz/running.htm
Cheers,
--
Mehdi Abaakouk
mail: sileht at sileht.net
irc: sileht
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170518/00e18f4c/attachment.sig>
More information about the OpenStack-dev
mailing list