tracker/config_example.yaml
Jimmy Zelinskie 1874584eae Merge pull request #136 from mrd0ll4r/middleware-config
middleware: made middleware configurable
2016-03-23 12:09:07 -04:00

56 lines
1.3 KiB
YAML

# Copyright 2016 The Chihaya Authors. All rights reserved.
# Use of this source code is governed by the BSD 2-Clause license,
# which can be found in the LICENSE file.
chihaya:
tracker:
announce: 10m
min_announce: 5m
announce_middleware:
# These are currently fake values
- name: prometheus
- name: store_client_validation
config:
be_clever: true
- name: store_create_on_announce
scrape_middleware:
# These are currently fake values
- name: prometheus
- name: store_client_validation
servers:
- name: store
config:
addr: localhost:6880
request_timeout: 10s
read_timeout: 10s
write_timeout: 10s
client_store:
name: memory
ip_store:
name: memory
string_store:
name: memory
peer_store:
name: memory
config:
gcAfter: 30m
shards: 1
- name: prometheus
config:
addr: localhost:6881
shutdown_timeout: 10s
read_timeout: 10s
write_timeout: 10s
- name: http
config:
addr: localhost:6882
request_timeout: 10s
read_timeout: 10s
write_timeout: 10s
- name: udp
config:
addr: localhost:6883