anchor.diff:    # split-random = "/^hf.*/"
   
     [sharding.long-term]
  -  duration = "30d"
  -  split = 1
  +  duration = "<%= @config['sharding']['long-term']['duration'] %>"
  +  split = <%= @config['sharding']['long-term']['split'] %>
     # split-random = "/^Hf.*/"
   
   [wal]
   
  -dir   = "/opt/influxdb/shared/data/wal"
  -flush-after = 1000 # the number of writes after which wal will be flushed, 0 for flushing on every write
  -bookmark-after = 1000 # the number of writes after which a bookmark will be created
  +dir   = "<%= @config['wal']['dir'] %>"
  +flush-after = <%= @config['wal']['flush-after'] %> # the number of writes after which wal will be flushed, 0 for flushing on every write
  +bookmark-after = <%= @config['wal']['bookmark-after'] %> # the number of writes after which a bookmark will be created
   
   # the number of writes after which an index entry is created pointing
   # to the offset of the first request, default to 1k
  -index-after = 1000
  +index-after = <%= @config['wal']['index-after'] %>
   
   # the number of requests per one log file, if new requests came in a
   # new log file will be created
  -requests-per-logfile = 10000
  +requests-per-logfile = <%= @config['wal']['requests-per-logfile'] %>
  
positive.code: [sharding]
    # how many servers in the cluster should have a copy of each shard.
    # this will give you high availability and scalability on queries
    replication-factor = 1
  
    [sharding.short-term]
    # each shard will have this period of time. Note that it's best to have
    # group by time() intervals on all queries be < than this setting. If they are
    # then the aggregate is calculated locally. Otherwise, all that data gets sent
    # over the network when doing a query.
    duration = "7d"
  
    # split will determine how many shards to split each duration into. For example,
    # if we created a shard for 2014-02-10 and split was set to 2. Then two shards
  
negative.code: # to track the number of instances running and the versions which
  # is very helpful for us.
  # Change this option to true to disable reporting.
  reporting-disabled = <%= @config['reporting-disabled'] %>
  
  [logging]
  # logging level can be one of "debug", "info", "warn" or "error"
  level  = "<%= @config['logging']['level'] %>"
  file   = "<%= @config['logging']['file'] %>"         # stdout to log to standard out
  
  # Configure the admin server
  [admin]
  port   = <%= @config['admin']['port'] %>              # binding is disabled if the port isn't set
  assets = "<%= @config['admin']['assets'] %>"
  
  # Configure the http api
  [api]
  port     = <%= @config['api']['port'] %>    # binding is disabled if the port isn't set
  # ssl-port = 8084    # Ssl support is enabled if you set a port and cert
  # ssl-cert = /path/to/cert.pem
  
  # connections will timeout after this amount of time. Ensures that clients that misbehave
  # and keep alive connections they don't use won't end up connection a million times.
  # However, if a request is taking longer than this to complete, could be a problem.
  read-timeout = "<%= @config['api']['read-timeout'] %>"
  
  [input_plugins]
  
    # Configure the graphite api
    [input_plugins.graphite]
    enabled = <%= @config['input_plugins']['graphite']['enabled'] %>
    # port = 2003
    # database = ""  # store graphite data in this database
    # udp_enabled = true # enable udp interface on the same port as the tcp interface
  
    # Configure the udp api
    [input_plugins.udp]
    enabled = <%= @config['input_plugins']['udp']['enabled'] %>
    # port = 4444
    # database = ""
  
    # Configure multiple udp apis each can write to separate db.  Just
    # repeat the following section to enable multiple udp apis on
    # different ports.
    <% @config['input_plugins']['udp_servers'].each do |srv| -%>
    [[input_plugins.udp_servers]] # array of tables
    enabled = <%= srv.enabled %>
    # port = 5551
    # database = "db1"
    <% end -%>
  
  # Raft configuration
  [raft]
  # The raft port should be open between all servers in a cluster.
  # However, this port shouldn't be accessible from the internet.
  
  port = <%= @config['raft']['enabled'] %>
  
  # Where the raft logs are stored. The user running InfluxDB will need read/write access.
  dir  = "<%= @config['raft']['dir'] %>"
  
  election-timeout = "<%= @config['raft']['election-timeout'] %>"
  
  [storage]
  dir = "<%= @config['storage']['dir'] %>"
  # How many requests to potentially buffer in memory. If the buffer gets filled then writes
  # will still be logged and once the local storage has caught up (or compacted) the writes
  # will be replayed from the WAL
  write-buffer-size = <%= @config['storage']['write-buffer-size'] %>
  
  [cluster]
  # A comma separated list of servers to seed
  