New question #242717 on Graphite: https://answers.launchpad.net/graphite/+question/242717
I'm trying to do a setup of two carbon-cache and one carbon-relay on the same machine. I can send metrics to both the carbon-caches and it works. But when I'm sending metrics to the relay it doesn't forward it to the caches. Anyone have any ideas of why it isn't working? Here is the carbon.conf: [cache] ENABLE_LOGROTATION = True USER = MAX_CACHE_SIZE = inf MAX_UPDATES_PER_SECOND = 60 MAX_UPDATES_PER_SECOND_ON_SHUTDOWN = 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 LOG_LISTENER_CONNECTIONS = True USE_INSECURE_UNPICKLER = False CACHE_QUERY_INTERFACE = 0.0.0.0 CACHE_QUERY_PORT = 7002 USE_FLOW_CONTROL = True LOG_UPDATES = True LOG_CACHE_HITS = False LOG_CACHE_QUEUE_SORTS = True CACHE_WRITE_STRATEGY = sorted WHISPER_AUTOFLUSH = False WHISPER_FALLOCATE_CREATE = True [cache:b] LINE_RECEIVER_PORT = 2103 PICKLE_RECEIVER_PORT = 2104 CACHE_QUERY_PORT = 7102 [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 = consistent-hashing REPLICATION_FACTOR = 0 DESTINATIONS = 127.0.0.1:2004:a, 127.0.0.1:2104:b 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 FORWARD_ALL = True DESTINATIONS = 127.0.0.1:2004 REPLICATION_FACTOR = 1 MAX_QUEUE_SIZE = 10000 USE_FLOW_CONTROL = True MAX_DATAPOINTS_PER_MESSAGE = 500 MAX_AGGREGATION_INTERVALS = 5 Can't restart carbon-cache-a because data is feeded to it at the moment. And it is running with all the LOG_settings set to False. # Log from carbon-cache-b Starting carbon-cache (instance b) 24/01/2014 16:03:12 :: [console] Log opened. 24/01/2014 16:03:12 :: [console] twistd 13.1.0 (/opt/graphite/bin/python 2.6.6) starting up. 24/01/2014 16:03:12 :: [console] reactor class: twisted.internet.epollreactor.EPollReactor. 24/01/2014 16:03:12 :: [console] ServerFactory starting on 2103 24/01/2014 16:03:12 :: [console] Starting factory <twisted.internet.protocol.ServerFactory instance at 0x2894950> 24/01/2014 16:03:12 :: [console] ServerFactory starting on 2104 24/01/2014 16:03:12 :: [console] Starting factory <twisted.internet.protocol.ServerFactory instance at 0x2b2d6c8> 24/01/2014 16:03:12 :: [console] ServerFactory starting on 7102 24/01/2014 16:03:12 :: [console] Starting factory <twisted.internet.protocol.ServerFactory instance at 0x2b2d878> 24/01/2014 16:03:12 :: [query] 127.0.0.1:37533 connected 24/01/2014 16:03:12 :: [query] 127.0.0.1:37542 connected 24/01/2014 16:03:12 :: [query] 127.0.0.1:37565 connected 24/01/2014 16:03:12 :: [query] 127.0.0.1:37569 connected 24/01/2014 16:03:48 :: [listener] MetricPickleReceiver connection with 127.0.0.1:46717 established # Log from carbon-relay Starting carbon-relay (instance a) 24/01/2014 16:03:48 :: [console] Log opened. 24/01/2014 16:03:48 :: [console] twistd 13.1.0 (/opt/graphite/bin/python 2.6.6) starting up. 24/01/2014 16:03:48 :: [console] reactor class: twisted.internet.epollreactor.EPollReactor. 24/01/2014 16:03:48 :: [console] ServerFactory starting on 2013 24/01/2014 16:03:48 :: [console] Starting factory <twisted.internet.protocol.ServerFactory instance at 0x27c7518> 24/01/2014 16:03:48 :: [console] ServerFactory starting on 2014 24/01/2014 16:03:48 :: [console] Starting factory <twisted.internet.protocol.ServerFactory instance at 0x2815b00> 24/01/2014 16:03:48 :: [console] Starting factory CarbonClientFactory(127.0.0.1:2104:b) 24/01/2014 16:03:48 :: [clients] CarbonClientFactory(127.0.0.1:2104:b)::startedConnecting (127.0.0.1:2104) 24/01/2014 16:03:48 :: [console] Starting factory CarbonClientFactory(127.0.0.1:2004:a) 24/01/2014 16:03:48 :: [clients] CarbonClientFactory(127.0.0.1:2004:a)::startedConnecting (127.0.0.1:2004) 24/01/2014 16:03:48 :: [clients] CarbonClientProtocol(127.0.0.1:2104:b)::connectionMade 24/01/2014 16:03:48 :: [clients] CarbonClientProtocol(127.0.0.1:2004:a)::connectionMade # After sending some data to the carbon-relay with the example-client.py 24/01/2014 16:04:14 :: [listener] MetricLineReceiver connection with 127.0.0.1:47103 established 24/01/2014 16:04:16 :: [listener] MetricLineReceiver connection with 127.0.0.1:47103 closed cleanly # After sending some data with: echo "Testdata.test1 `date +%S` `date +%s` " | nc graphite-server 2013; 24/01/2014 16:07:01 :: [listener] MetricLineReceiver connection with 192.168.147.14:56809 established 24/01/2014 16:07:01 :: [listener] MetricLineReceiver connection with 192.168.147.14:56809 closed cleanly PS. And if I got it right, then these settings should make the carbon-relay to split the metrics across the carbon-caches RELAY_METHOD = consistent-hashing REPLICATION_FACTOR = 0 -- You received this question notification because you are a member of graphite-dev, which is an answer contact for Graphite. _______________________________________________ Mailing list: https://launchpad.net/~graphite-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~graphite-dev More help : https://help.launchpad.net/ListHelp

