Skip to content

Instantly share code, notes, and snippets.

@Licenser
Created September 6, 2014 23:16
Show Gist options
  • Save Licenser/f74f188a4510c4bca97b to your computer and use it in GitHub Desktop.
Save Licenser/f74f188a4510c4bca97b to your computer and use it in GitHub Desktop.
[cache:a]
USER = www
MAX_CACHE_SIZE = 10000000
MAX_UPDATES_PER_SECOND = 500000
MAX_CREATES_PER_MINUTE = 50000
LINE_RECEIVER_INTERFACE = 0.0.0.0
LINE_RECEIVER_PORT = 2103
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = 2104
CACHE_QUERY_INTERFACE = 0.0.0.0
CACHE_QUERY_PORT = 7102
LOG_UPDATES = False
WHISPER_AUTOFLUSH = False
[cache:b]
USER = www
MAX_CACHE_SIZE = 10000000
MAX_UPDATES_PER_SECOND = 500000
MAX_CREATES_PER_MINUTE = 50000
LINE_RECEIVER_INTERFACE = 0.0.0.0
LINE_RECEIVER_PORT = 2203
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = 2204
CACHE_QUERY_INTERFACE = 0.0.0.0
CACHE_QUERY_PORT = 7202
LOG_UPDATES = False
WHISPER_AUTOFLUSH = False
[cache:c]
USER = www
MAX_CACHE_SIZE = 10000000
MAX_UPDATES_PER_SECOND = 500000
MAX_CREATES_PER_MINUTE = 50000
LINE_RECEIVER_INTERFACE = 0.0.0.0
LINE_RECEIVER_PORT = 2303
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = 2304
CACHE_QUERY_INTERFACE = 0.0.0.0
CACHE_QUERY_PORT = 7302
LOG_UPDATES = False
WHISPER_AUTOFLUSH = False
[cache:d]
USER = www
MAX_CACHE_SIZE = 10000000
MAX_UPDATES_PER_SECOND = 500000
MAX_CREATES_PER_MINUTE = 50000
LINE_RECEIVER_INTERFACE = 0.0.0.0
LINE_RECEIVER_PORT = 2403
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = 2404
CACHE_QUERY_INTERFACE = 0.0.0.0
CACHE_QUERY_PORT = 7402
LOG_UPDATES = False
WHISPER_AUTOFLUSH = False
# Relay destination rules for carbon-relay. Entries are scanned in order,
# and the first pattern a metric matches will cause processing to cease after sending
# unless `continue` is set to true
#
# [name]
# pattern = <regex>
# destinations = <list of destination addresses>
# continue = <boolean> # default: False
#
# name: Arbitrary unique name to identify the rule
# pattern: Regex pattern to match against the metric name
# destinations: Comma-separated list of destinations.
# ex: 127.0.0.1, 10.1.2.3:2004, 10.1.2.4:2004:a, myserver.mydomain.com
# continue: Continue processing rules if this rule matches (default: False)
# You must have exactly one section with 'default = true'
# Note that all destinations listed must also exist in carbon.conf
# in the DESTINATIONS setting in the [relay] section
[relay:a]
default = true
LINE_RECEIVER_INTERFACE = 0.0.0.0
LINE_RECEIVER_PORT = 2113
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = 2114
MAX_QUEUE_SIZE = 10000
MAX_DATAPOINTS_PER_MESSAGE = 50000
RELAY_METHOD = consistent-hashing
DESTINATIONS = 127.0.0.1:2104:a, 127.0.0.1:2204:b, 127.0.0.1:2304:c, 127.0.0.1:2404:d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment