anchor.diff:  # Example: store everything
   # BIND_PATTERNS = #
   
  -# NOTE: you cannot run both a cache and a relay on the same server
  -# with the default configuration, you have to specify a distinict
  -# interfaces and ports for the listeners.
  -
  -#[relay]
  -#LINE_RECEIVER_INTERFACE = 0.0.0.0
  -#LINE_RECEIVER_PORT = 2003
  -
  -#PICKLE_RECEIVER_INTERFACE = 0.0.0.0
  -#PICKLE_RECEIVER_PORT = 2004
  -
  -#CACHE_SERVERS = server1, server2, server3
  -#MAX_QUEUE_SIZE = 10000
  +# To configure special settings for the carbon-cache instance 'b', uncomment this:
  +#[cache:b]
  +#LINE_RECEIVER_PORT = 2103
  +#PICKLE_RECEIVER_PORT = 2104
  +#CACHE_QUERY_PORT = 7102
  +# and any other settings you want to customize, defaults are inherited
  +# from [carbon] section.
  +# You can then specify the --instance=b option to manage this instance
  +
  +
  +
  +[relay]
  +LINE_RECEIVER_INTERFACE = 0.0.0.0
  +LINE_RECEIVER_PORT = 2013
  +PICKLE_RECEIVER_INTERFACE = 0.0.0.0
  +PICKLE_RECEIVER_PORT = 2014
  +
  +# To use consistent hashing instead of the user defined relay-rules.conf,
  +# change this to:
  +# RELAY_METHOD = consistent-hashing
  +RELAY_METHOD = rules
  +
  +# If you use consistent-hashing you may want to add redundancy
  +# of your data by replicating every datapoint to more than
  +# one machine.
  +REPLICATION_FACTOR = 1
  +
  +# This is a list of carbon daemons we will send any relayed or
  +# generated metrics to. The default provided would send to a single
  +# carbon-cache instance on the default port. However if you
  +# use multiple carbon-cache instances then it would look like this:
  +#
  +# DESTINATIONS = 127.0.0.1:2004:a, 127.0.0.1:2104:b
  +#
  +# The general form is IP:PORT:INSTANCE where the :INSTANCE part is
  +# optional and refers to the "None" instance if omitted.
  +#
  +# Note that if the destinations are all carbon-caches then this should
  +# exactly match the webapp's CARBONLINK_HOSTS setting in terms of
  +# instances listed (order matters!).
  +#
  +# If using RELAY_METHOD = rules, all destinations used in relay-rules.conf
  +# must be defined in this list
  +DESTINATIONS = 127.0.0.1:2004
  +
  +# This defines the maximum "message size" between carbon daemons.
  +# You shouldn't need to tune this unless you really know what you're doing.
  +MAX_DATAPOINTS_PER_MESSAGE = 500
  +MAX_QUEUE_SIZE = 10000
  +
  +# Set this to False to drop datapoints when any send queue (sending datapoints
  +# to a downstream carbon daemon) hits MAX_QUEUE_SIZE. If this is True (the
  +# default) then sockets over which metrics are received will temporarily stop accepting
  +# data until the send queues fall below 80% MAX_QUEUE_SIZE.
  +USE_FLOW_CONTROL = True
  +
  +# Set this to True to enable whitelisting and blacklisting of metrics in
  +# CONF_DIR/whitelist and CONF_DIR/blacklist. If the whitelist is missing or
  +# empty, all metrics will pass through
  +# USE_WHITELIST = False
  +
  +# By default, carbon itself will log statistics (such as a count,
  +# metricsReceived) with the top level prefix of 'carbon' at an interval of 60
  +# seconds. Set CARBON_METRIC_INTERVAL to 0 to disable instrumentation
  +# CARBON_METRIC_PREFIX = carbon
  +# CARBON_METRIC_INTERVAL = 60
  +
  +
  +[aggregator]
  +LINE_RECEIVER_INTERFACE = 0.0.0.0
  +LINE_RECEIVER_PORT = 2023
  +
  +PICKLE_RECEIVER_INTERFACE = 0.0.0.0
  +PICKLE_RECEIVER_PORT = 2024
  +
  +# This is a list of carbon daemons we will send any relayed or
  +# generated metrics to. The default provided would send to a single
  +# carbon-cache instance on the default port. However if you
  +# use multiple carbon-cache instances then it would look like this:
  +#
  +# DESTINATIONS = 127.0.0.1:2004:a, 127.0.0.1:2104:b
  +#
  +# The format is comma-delimited IP:PORT:INSTANCE where the :INSTANCE part is
  +# optional and refers to the "None" instance if omitted.
  +#
  +# Note that if the destinations are all carbon-caches then this should
  +# exactly match the webapp's CARBONLINK_HOSTS setting in terms of
  +# instances listed (order matters!).
  +DESTINATIONS = 127.0.0.1:2004
  +
  +# If you want to add redundancy to your data by replicating every
  +# datapoint to more than one machine, increase this.
  +REPLICATION_FACTOR = 1
  +
  +# This is the maximum number of datapoints that can be queued up
  +# for a single destination. Once this limit is hit, we will
  +# stop accepting new data if USE_FLOW_CONTROL is True, otherwise
  +# we will drop any subsequently received datapoints.
  +MAX_QUEUE_SIZE = 10000
  +
  +# Set this to False to drop datapoints when any send queue (sending datapoints
  +# to a downstream carbon daemon) hits MAX_QUEUE_SIZE. If this is True (the
  +# default) then sockets over which metrics are received will temporarily stop accepting
  +# data until the send queues fall below 80% MAX_QUEUE_SIZE.
  +USE_FLOW_CONTROL = True
  +
  +# This defines the maximum "message size" between carbon daemons.
  +# You shouldn't need to tune this unless you really know what you're doing.
  +MAX_DATAPOINTS_PER_MESSAGE = 500
  +
  +# This defines how many datapoints the aggregator remembers for
  +# each metric. Aggregation only happens for datapoints that fall in
  +# the past MAX_AGGREGATION_INTERVALS * intervalSize seconds.
  +MAX_AGGREGATION_INTERVALS = 5
  +
  +# Set this to True to enable whitelisting and blacklisting of metrics in
  +# CONF_DIR/whitelist and CONF_DIR/blacklist. If the whitelist is missing or
  +# empty, all metrics will pass through
  +# USE_WHITELIST = False
  +
  +# By default, carbon itself will log statistics (such as a count,
  +# metricsReceived) with the top level prefix of 'carbon' at an interval of 60
  +# seconds. Set CARBON_METRIC_INTERVAL to 0 to disable instrumentation
  +# CARBON_METRIC_PREFIX = carbon
  +# CARBON_METRIC_INTERVAL = 60
  
positive.code: # AMQP_USER = guest
  # AMQP_PASSWORD = guest
  # AMQP_EXCHANGE = graphite
  <% end %>
  
  # Patterns for all of the metrics this machine will store. Read more at
  # http://en.wikipedia.org/wiki/Advanced_Message_Queuing_Protocol#Bindings
  
negative.code: LINE_RECEIVER_INTERFACE = <%= @line_receiver_interface %>
  LINE_RECEIVER_PORT = <%= @line_receiver_port %>
  
  # Set this to True to enable the UDP listener. By default this is off
  # because it is very common to run multiple carbon daemons and managing
  # another (rarely used) port for every carbon instance is not fun.
  ENABLE_UDP_LISTENER = False
  UDP_RECEIVER_INTERFACE = 0.0.0.0
  UDP_RECEIVER_PORT = 2003
  
  PICKLE_RECEIVER_INTERFACE = <%= @pickle_receiver_interface %>
  PICKLE_RECEIVER_PORT = <%= @pickle_receiver_port %>
  
  # Per security concerns outlined in Bug #817247 the pickle receiver
  # will use a more secure and slightly less efficient unpickler.
  # Set this to True to revert to the old-fashioned insecure unpickler.
  USE_INSECURE_UNPICKLER = False
  
  CACHE_QUERY_INTERFACE = <%= @cache_query_interface %>
  CACHE_QUERY_PORT = <%= @cache_query_port %>
  
  # Set this to False to drop datapoints received after the cache
  # reaches MAX_CACHE_SIZE. If this is True (the default) then sockets
  # over which metrics are received will temporarily stop accepting
  # data until the cache size falls below 95% MAX_CACHE_SIZE.
  USE_FLOW_CONTROL = True
  
  # By default, carbon-cache will log every whisper update. This can be excessive and
  # degrade performance if logging on the same volume as the whisper data is stored.
  LOG_UPDATES = <%= @log_whisper_updates %>
  
  # On some systems it is desirable for whisper to write synchronously.
  # Set this option to True if you'd like to try this. Basically it will
  # shift the onus of buffering writes from the kernel into carbon's cache.
  WHISPER_AUTOFLUSH = False
  
  # By default new Whisper files are created pre-allocated with the data region
  # filled with zeros to prevent fragmentation and speed up contiguous reads and
  # writes (which are common). Enabling this option will cause Whisper to create
  # the file sparsely instead. Enabling this option may allow a large increase of
  # MAX_CREATES_PER_MINUTE but may have longer term performance implications
  # depending on the underlying storage configuration.
  # WHISPER_SPARSE_CREATE = False
  
  # Enabling this option will cause Whisper to lock each Whisper file it writes
  # to with an exclusive lock (LOCK_EX, see: man 2 flock). This is useful when
  # multiple carbon-cache daemons are writing to the same files
  # WHISPER_LOCK_WRITES = False
  
  # Set this to True to enable whitelisting and blacklisting of metrics in
  # CONF_DIR/whitelist and CONF_DIR/blacklist. If the whitelist is missing or
  # empty, all metrics will pass through
  # USE_WHITELIST = False
  
  # By default, carbon itself will log statistics (such as a count,
  # metricsReceived) with the top level prefix of 'carbon' at an interval of 60
  # seconds. Set CARBON_METRIC_INTERVAL to 0 to disable instrumentation
  # CARBON_METRIC_PREFIX = carbon
  # CARBON_METRIC_INTERVAL = 60
  
  # Enable AMQP if you want to receve metrics using an amqp broker
  <% if @enable_amqp %>
  