← Back to team overview

graphite-dev team mailing list archive

[Question #204886]: Replication via aggregator does not work

 

New question #204886 on Graphite:
https://answers.launchpad.net/graphite/+question/204886

Hello,

I am trying to setup replication of my data points to two carbon-caches. It works fine with carbon-relay involved, but does not work with carbon-aggregator -> carbon-cache scheme.

There are two vagrant boxes:

33.33.33.101 - aggregator, cache1
33.33.33.102 - cache2

But only cache2 gets the data I send to aggregator.

Here is my config I used for tests:

[vagrant@n1 ~]$ sed -e '/^$/d' -e '/^#/d' /etc/carbon/carbon.conf 
[cache]
STORAGE_DIR    = /var/lib/carbon/
LOCAL_DATA_DIR = /var/lib/carbon/whisper/
WHITELISTS_DIR = /var/lib/carbon/lists/
CONF_DIR       = /etc/carbon/
LOG_DIR        = /var/log/carbon/
PID_DIR        = /var/run/
USER = carbon
MAX_CACHE_SIZE = inf
MAX_UPDATES_PER_SECOND = 500
MAX_CREATES_PER_MINUTE = 50
LINE_RECEIVER_INTERFACE = 0.0.0.0
LINE_RECEIVER_PORT = 2003
ENABLE_UDP_LISTENER = False
UDP_RECEIVER_INTERFACE = 0.0.0.0
UDP_RECEIVER_PORT = 2003
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = 2004
USE_INSECURE_UNPICKLER = False
CACHE_QUERY_INTERFACE = 0.0.0.0
CACHE_QUERY_PORT = 7002
USE_FLOW_CONTROL = True
LOG_UPDATES = False
WHISPER_AUTOFLUSH = False

[relay]
LINE_RECEIVER_INTERFACE = 0.0.0.0
LINE_RECEIVER_PORT = 2013
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = 2014
RELAY_METHOD = rules
REPLICATION_FACTOR = 2
DESTINATIONS = 33.33.33.101:2004, 33.33.33.102:2004
MAX_DATAPOINTS_PER_MESSAGE = 500
MAX_QUEUE_SIZE = 10000
USE_FLOW_CONTROL = True

[aggregator]
LINE_RECEIVER_INTERFACE = 0.0.0.0
LINE_RECEIVER_PORT = 2023
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = 2024
DESTINATIONS = 33.33.33.101:2004, 33.33.33.102:2004
REPLICATION_FACTOR = 2
MAX_QUEUE_SIZE = 10000
USE_FLOW_CONTROL = True
MAX_DATAPOINTS_PER_MESSAGE = 500
MAX_AGGREGATION_INTERVALS = 5


If I replace DESTINATIONS in [aggregator] section with the following:

DESTINATIONS = 33.33.33.101:2014 # carbon-relay port number

and start carbon-relay on 33.33.33.101 along with aggregator , cache1 both boxes gets the metric data.

Thank you,
Max

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