[openstack-dev] [Gnocchi] Difference between Gnocchi-api and uwsgi

mate200 at mailbox.org mate200 at mailbox.org
Thu Jun 22 20:23:47 UTC 2017


Hello everyone !

I'm sorry that I'm disturbing you, but I was sent here from openstack-operators ML.
On my Mitaka test stack I installed Gnocchi as database for measurements, but I have problems with
api part. Firstly, I ran it directly executing gnocchi-api -p 8041. I noted the warning message and later rerun api
using uwsgi daemon. The problem that I'm faced with is a connection errors that appears in ceilometer-collector.log
approximately every 5-10 minutes:

2017-06-22 12:54:09.751 1846835 ERROR ceilometer.dispatcher.gnocchi ConnectFailure: Unable to establish connection to ht
tp://10.10.10.69:8041/v1/resource/generic/c900fd60-0b65-57b5-a481-
eaee8e116312/metric/network.incoming.bytes.rate/measures

I run uwsgi with the following config:

[uwsgi]
#http-socket = 127.0.0.1:8000
http-socket = 10.10.10.69:8041

# Set the correct path depending on your installation
wsgi-file = /usr/local/bin/gnocchi-api
logto = /var/log/gnocchi/gnocchi-uwsgi.log

master = true
die-on-term = true
threads = 1
# Adjust based on the number of CPU
processes = 5
enabled-threads = true
thunder-lock = true
plugins = python
buffer-size = 65535
lazy-apps = true


I don't understand why this happens. 
Maybe I should point wsgi-file as /usr/local/lib/python2.7/dist-packages/gnocchi/rest/app.wsgi ? 
Form uwsgi manual I read that direct parsing of http is slow. So maybe I need to use apache with uwsgi mod ?



Thanks in advance.



-- 
Best regards,
Mate200



More information about the OpenStack-dev mailing list