From 7943288678954ef28de69ff6695e9d6b8133c5b2 Mon Sep 17 00:00:00 2001 From: onestraw Date: Tue, 22 Jan 2019 18:24:29 +0800 Subject: [PATCH] Add storage redis configuration example Change-Id: I908c69d50fab0963f508f3688ec5934a25aa0550 --- example_config.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/example_config.yaml b/example_config.yaml index 01e2519..d9eb484 100644 --- a/example_config.yaml +++ b/example_config.yaml @@ -127,6 +127,32 @@ chihaya: # are collected and posted to Prometheus. prometheus_reporting_interval: 1s + # This block defines configuration used for redis storage. + # storage: + # name: redis + # config: + # # The frequency which stale peers are removed. + # gc_interval: 14m + + # # The frequency which metrics are pushed into a local Prometheus endpoint. + # prometheus_reporting_interval: 1s + + # # The amount of time until a peer is considered stale. + # # To avoid churn, keep this slightly larger than `announce_interval` + # peer_lifetime: 16m + + # # The address of redis storage. + # redis_broker: "redis://pwd@127.0.0.1:6379/0" + + # # The timeout for reading a command reply from redis. + # redis_read_timeout: 15s + + # # The timeout for writing a command to redis. + # redis_write_timeout: 15s + + # # The timeout for connecting to redis server. + # redis_connect_timeout: 15s + # This block defines configuration used for middleware executed before a # response has been returned to a BitTorrent client. prehooks: