Skip to content

Instantly share code, notes, and snippets.

@mfournier
Created June 28, 2013 18:38
Show Gist options
  • Save mfournier/5886960 to your computer and use it in GitHub Desktop.
Save mfournier/5886960 to your computer and use it in GitHub Desktop.
problematic carbon config, 1 host, with 4 CPUs, 4GB memory, shitty disks (vmware virtual host), and about 70000 wsp files with 1 new point every 10 sec (collectd default settings)
[cache]
STORAGE_DIR = /srv/carbon
LOCAL_DATA_DIR = /srv/carbon/whisper
WHITELISTS_DIR = /srv/carbon/lists
CONF_DIR = /opt/carbon-venv/conf/
LOG_DIR = /var/log/carbon/
PID_DIR = /var/run/
USER = carbon
MAX_CACHE_SIZE = inf
MAX_UPDATES_PER_SECOND = 10
MAX_CREATES_PER_MINUTE = 10
LINE_RECEIVER_INTERFACE = 127.0.0.1
LINE_RECEIVER_PORT = 2003
ENABLE_UDP_LISTENER = False
UDP_RECEIVER_INTERFACE = 127.0.0.1
UDP_RECEIVER_PORT = 2003
PICKLE_RECEIVER_INTERFACE = 127.0.0.1
PICKLE_RECEIVER_PORT = 2004
USE_INSECURE_UNPICKLER = False
CACHE_QUERY_INTERFACE = 127.0.0.1
CACHE_QUERY_PORT = 7002
USE_FLOW_CONTROL = True
LOG_UPDATES = False
WHISPER_AUTOFLUSH = False
[cache:b]
LINE_RECEIVER_PORT=2103
PICKLE_RECEIVER_PORT=2104
CACHE_QUERY_PORT=7102
[cache:c]
LINE_RECEIVER_PORT=2203
PICKLE_RECEIVER_PORT=2204
CACHE_QUERY_PORT=7202
[cache:d]
LINE_RECEIVER_PORT=2303
PICKLE_RECEIVER_PORT=2304
CACHE_QUERY_PORT=7302
[cache:e]
LINE_RECEIVER_PORT=2403
PICKLE_RECEIVER_PORT=2404
CACHE_QUERY_PORT=7402
[cache:f]
LINE_RECEIVER_PORT=2503
PICKLE_RECEIVER_PORT=2504
CACHE_QUERY_PORT=7502
[cache:g]
LINE_RECEIVER_PORT=2603
PICKLE_RECEIVER_PORT=2604
CACHE_QUERY_PORT=7602
[cache:h]
LINE_RECEIVER_PORT=2703
PICKLE_RECEIVER_PORT=2704
CACHE_QUERY_PORT=7702
[cache:i]
LINE_RECEIVER_PORT=2803
PICKLE_RECEIVER_PORT=2804
CACHE_QUERY_PORT=7802
[cache:j]
LINE_RECEIVER_PORT=2903
PICKLE_RECEIVER_PORT=2904
CACHE_QUERY_PORT=7902
[cache:k]
LINE_RECEIVER_PORT=3003
PICKLE_RECEIVER_PORT=3004
CACHE_QUERY_PORT=8002
[cache:l]
LINE_RECEIVER_PORT=3103
PICKLE_RECEIVER_PORT=3104
CACHE_QUERY_PORT=8102
[relay]
LINE_RECEIVER_INTERFACE = 127.0.0.1
LINE_RECEIVER_PORT = 2023
PICKLE_RECEIVER_INTERFACE = 127.0.0.1
PICKLE_RECEIVER_PORT = 2024
RELAY_METHOD = consistent-hashing
REPLICATION_FACTOR = 1
DESTINATIONS = 127.0.0.1:2004:a, 127.0.0.1:2104:b, 127.0.0.1:2204:c, 127.0.0.1:2304:d, 127.0.0.1:2404:e, 127.0.0.1:2504:f, 127.0.0.1:2604:g, 127.0.0.1:2704:h, 127.0.0.1:2804:i, 127.0.0.1:2904:j, 127.0.0.1:3004:k, 127.0.0.1:3104:l
MAX_DATAPOINTS_PER_MESSAGE = 500
MAX_QUEUE_SIZE = 100000
QUEUE_LOW_WATERMARK_PCT = 0.8
TIME_TO_DEFER_SENDING = 0.0001
USE_FLOW_CONTROL = True
USE_RATIO_RESET=False
MIN_RESET_STAT_FLOW=1000
MIN_RESET_RATIO=0.9
MIN_RESET_INTERVAL=121
[aggregator]
LINE_RECEIVER_INTERFACE = 127.0.0.1
LINE_RECEIVER_PORT = 2023
PICKLE_RECEIVER_INTERFACE = 127.0.0.1
PICKLE_RECEIVER_PORT = 2024
DESTINATIONS = 127.0.0.1:2104:a, 127.0.0.1:2204:b
REPLICATION_FACTOR = 1
MAX_QUEUE_SIZE = 10000
USE_FLOW_CONTROL = True
MAX_DATAPOINTS_PER_MESSAGE = 500
MAX_AGGREGATION_INTERVALS = 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment