Failed CarbonLink query on Web Server with only CLUSTER_SERVERS setting

Asked by Radu

Hello,

The server is returning the data using the rest api against another server running graphite-web + carbon-cache.py but the exception log gets an entry for each query.

Just to troubleshoot I've used the following settings with no success.

# You *should* use 127.0.0.1 here in most cases
#CARBONLINK_HOSTS = ["127.0.0.1:7002:a", "127.0.0.1:7102:b", "127.0.0.1:7202:c"]

CLUSTER_SERVERS = [ '10.0.0.1:80','10.0.0.2:80' ]

REMOTE_STORE_FETCH_TIMEOUT = 100 # Timeout to fetch series data
REMOTE_STORE_FIND_TIMEOUT = 100 # Timeout for metric find requests
REMOTE_STORE_RETRY_DELAY = 200 # Time before retrying a failed remote webapp
REMOTE_FIND_CACHE_DURATION = 300 # Time to cache remote metric find results

Failed CarbonLink query '.......................................'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/graphite/render/datalib.py", line 231, in fetchData
    cachedResults = CarbonLink.query(dbFile.real_metric)
  File "/usr/lib/python2.7/site-packages/graphite/render/datalib.py", line 140, in query
    results = self.send_request(request)
  File "/usr/lib/python2.7/site-packages/graphite/render/datalib.py", line 163, in send_request
    conn = self.get_connection(host)
  File "/usr/lib/python2.7/site-packages/graphite/render/datalib.py", line 130, in get_connection
    connection.connect( (server, port) )
  File "/usr/lib64/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 111] Connection refused

Your help will be greatly appreciated.

Kind regards,
Radu

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Denis Zhdanov
Solved:
Last query:
Last reply:
Revision history for this message
Best Denis Zhdanov (deniszhdanov) said :
#1

If you have no CARBONLINK_HOSTS for this server you need to provide empty array to this variable anyway in config -
CARBONLINK_HOSTS = []
Also you need to run graphite_web 0.9.14 at least, merge was done not long time ago - https://github.com/graphite-project/graphite-web/pull/1270

Revision history for this message
Radu (radu-db) said :
#2

Thanks Denis Zhdanov, that solved my question.