[openstack-dev] [gnocchi] Running Gnocchi API in specific interface
julien at danjou.info
Thu May 18 09:06:39 UTC 2017
On Thu, May 18 2017, Hanxi Liu wrote:
> Ceilometer, Gnocchi, Aodh all use pbr, so the port is 8000 by default.
> I guess we also should hardcode Gnocchi's port in rdo project, together
> with Aodh.
> i proposed patchs for Aodh and Gnocchi:
> But hguemar suggest not to hardcode port.
> How do you think about this?
Port for HTTP is 80. The rest, unless assigned by IANA, is fantasy. :-)
You can make all your (OpenStack) services run under
http://example.com/openstack, e.g. http://example.com/openstack/metric
for Gnocchi, if you want. So there's no good reason to assigne a port to
a service more than there is to assigne a hardcoded URL prefix.
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.
/* Free Software hacker
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 800 bytes
Desc: not available
More information about the OpenStack-dev