Skip to content

Instantly share code, notes, and snippets.

@DazWorrall
Created January 29, 2016 11:32
Show Gist options
  • Save DazWorrall/72aa75d844c588027cf0 to your computer and use it in GitHub Desktop.
Save DazWorrall/72aa75d844c588027cf0 to your computer and use it in GitHub Desktop.
1 carbon-relay in front of 4 x carbon-cache
29/01/2016 11:28:48 :: [query] 127.0.0.1:48390 connected
29/01/2016 11:28:48 :: [query] [127.0.0.1:48390] cache query bulk for "6" metrics returned 477 values
29/01/2016 11:28:48 :: [query] [127.0.0.1:37758] cache query bulk for "32" metrics returned 2025 values
29/01/2016 11:28:53 :: [query] [127.0.0.1:37758] cache query bulk for "33" metrics returned 1897 values
[cache]
USER =
MAX_CACHE_SIZE = inf
MAX_UPDATES_PER_SECOND = 1500
MAX_CREATES_PER_MINUTE = 500
ENABLE_UDP_LISTENER = True
LINE_RECEIVER_INTERFACE = 0.0.0.0
UDP_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
USE_INSECURE_UNPICKLER = False
CACHE_QUERY_INTERFACE = 0.0.0.0
CACHE_QUERY_PORT = 7102
USE_FLOW_CONTROL = True
LOG_UPDATES = False
WHISPER_AUTOFLUSH = False
CACHE_QUERY_PORT = 7002
[cache:1]
LINE_RECEIVER_PORT = 2103
UDP_RECEIVER_PORT = 2103
PICKLE_RECEIVER_PORT = 2104
CACHE_QUERY_PORT = 7102
[cache:2]
LINE_RECEIVER_PORT = 2203
UDP_RECEIVER_PORT = 2203
PICKLE_RECEIVER_PORT = 2204
CACHE_QUERY_PORT = 7202
[cache:3]
LINE_RECEIVER_PORT = 2303
UDP_RECEIVER_PORT = 2303
PICKLE_RECEIVER_PORT = 2304
CACHE_QUERY_PORT = 7302
[cache:4]
LINE_RECEIVER_PORT = 2403
UDP_RECEIVER_PORT = 2403
PICKLE_RECEIVER_PORT = 2404
CACHE_QUERY_PORT = 7402
[relay]
LINE_RECEIVER_INTERFACE = 0.0.0.0
LINE_RECEIVER_PORT = 2003
UDP_RECEIVER_PORT = 2003
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = 2014
RELAY_METHOD = aggregated-consistent-hashing
REPLICATION_FACTOR = 1
MAX_DATAPOINTS_PER_MESSAGE = 500
MAX_QUEUE_SIZE = 10000
USE_FLOW_CONTROL = True
DESTINATIONS = 127.0.0.1:2104:1,127.0.0.1:2204:2,127.0.0.1:2304:3,127.0.0.1:2404:4
[aggregator]
LINE_RECEIVER_INTERFACE = 0.0.0.0
LINE_RECEIVER_PORT = 2023
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = 2024
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
from settings import *
TIME_ZONE = 'Europe/London'
SECRET_KEY = 'REDACTED'
DATABASES = {
'default': {
'NAME': '/opt/graphite/storage/graphite.db',
'ENGINE': 'django.db.backends.sqlite3',
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': ''
}
}
ALLOWED_HOSTS = ['*', ]
LOG_DIR = '/var/log/graphite'
CARBONLINK_HOSTS = ['127.0.0.1:7102:1','127.0.0.1:7202:2','127.0.0.1:7302:3','127.0.0.1:7402:4',]
CARBONLINK_QUERY_BULK = True
import os
if os.path.exists('/var/run/rrdcached.sock'):
FLUSHRRDCACHED = '/var/run/rrdcached.sock'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment