clustered graphite webapps render graphs that are inconsistent between instances.
I have 4 instances in a clustered graphite instances.
carbon-cache uses consistent hashing relay method.
Here is carbon-conf from one of the instance.
The other instances are same except for the interface IPs.
[cache]
LOCAL_DATA_DIR = /opt/graphite/
USER=
MAX_CACHE_SIZE = inf
MAX_UPDATES_
MAX_CREATES_
LINE_RECEIVER_
LINE_RECEIVER_PORT = 2003
ENABLE_UDP_LISTENER = False
UDP_RECEIVER_
UDP_RECEIVER_PORT = 2003
PICKLE_
PICKLE_
USE_INSECURE_
# Cache Query
CACHE_QUERY_
CACHE_QUERY_PORT = 7002
USE_FLOW_CONTROL = True
LOG_UPDATES = True
WHISPER_AUTOFLUSH = False
[relay]
LINE_RECEIVER_
LINE_RECEIVER_PORT = 2013
PICKLE_
PICKLE_
RELAY_METHOD = consistent-hashing
REPLICATION_FACTOR = 2
DESTINATIONS = 172.20.
MAX_DATAPOINTS_
MAX_QUEUE_SIZE = 10000
USE_FLOW_CONTROL = True
[aggregator]
LINE_RECEIVER_
LINE_RECEIVER_PORT = 2023
PICKLE_
PICKLE_
DESTINATIONS = 127.0.0.1:2004
REPLICATION_FACTOR = 2
MAX_QUEUE_SIZE = 10000
USE_FLOW_CONTROL = True
MAX_DATAPOINTS_
MAX_AGGREGATION
relay-rules.conf
[default]
default = true
destinations = 172.20.
local_settings.py
TIME_ZONE = 'America/
DEBUG = False
MEMCACHE_HOSTS = []
DATA_DIRS = ['/opt/
CLUSTER_SERVERS= [ "172.20.
CARBONLINK_HOSTS = [ "172.20.
metrics are sent to relay port ( 2013). I do not use carbon-aggregator. For testing purpose I am sending 3 metrics periodically ( every 10 seconds ). As the relay method is consistent hashing, the metrics end up with the same carbon-cache instance.
When accessing the webapp, each of the instance
ie 172.20.
For eg: One of the webapp instance shows all the metrics, one shows only 2 of 3 and one does not show any of the metrics.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Graphite Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Suresh Avadhanula
- Solved:
- Last query:
- Last reply: