← Back to team overview

graphite-dev team mailing list archive

Re: [Question #252963]: Failed CarbonLink query

 

Question #252963 on Graphite changed:
https://answers.launchpad.net/graphite/+question/252963

Denis Zhdanov posted a new comment:
You can change your setup to one-relay / four-caches for start and also
increase timeout, e.g.:

/opt/graphite/conf/carbon.conf
==================================
[relay]
LINE_RECEIVER_INTERFACE = 0.0.0.0
LINE_RECEIVER_PORT = 2003
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = 2004
RELAY_METHOD = consistent-hashing 
REPLICATION_FACTOR = 1
DESTINATIONS = 127.0.0.1:2014:1, 127.0.0.1:2024:2, 127.0.0.1:2034:3, 127.0.0.1:2044:4

[cache]
LINE_RECEIVER_INTERFACE = 127.0.0.1
PICKLE_RECEIVER_INTERFACE = 127.0.0.1
CACHE_QUERY_INTERFACE = 127.0.0.1

[cache:1]
LINE_RECEIVER_PORT = 2013
PICKLE_RECEIVER_PORT = 2014
CACHE_QUERY_PORT = 7012

[cache:2]
LINE_RECEIVER_PORT = 2023
PICKLE_RECEIVER_PORT = 2024
CACHE_QUERY_PORT = 7022

[cache:3]
LINE_RECEIVER_PORT = 2033
PICKLE_RECEIVER_PORT = 2034
CACHE_QUERY_PORT = 7032

[cache:4]
LINE_RECEIVER_PORT = 2043
PICKLE_RECEIVER_PORT = 2044
CACHE_QUERY_PORT = 7042


/opt/graphite/webapp/graphite/local_settings.py
==================================================
CARBONLINK_HOSTS = ['127.0.0.1:7012', '127.0.0.1:7022', '127.0.0.1:7032', '127.0.0.1:7042']
CARBONLINK_TIMEOUT = 3.0 

It's a config snippets, nor ready to run configs, just edit values your config.
Then you need to run relay daemon and 4 caches:

Instead of running: 
bin/carbon-cache.py start

You would run: 
bin/carbon-relay.py start
bin/carbon-cache.py --instance=1 start 
bin/carbon-cache.py --instance=2 start
bin/carbon-cache.py --instance=3 start 
bin/carbon-cache.py --instance=4 start

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.