storage: dynamically register drivers

This commit is contained in:
Jimmy Zelinskie
2017-02-21 00:58:57 -05:00
parent 6fc3f618aa
commit 496cc1a31d
6 changed files with 129 additions and 12 deletions

View File

@@ -67,16 +67,18 @@ chihaya:
# This block defines configuration used for the storage of peer data.
storage:
# The frequency which stale peers are removed.
gc_interval: 14m
name: memory
config:
# The frequency which stale peers are removed.
gc_interval: 14m
# The amount of time until a peer is considered stale.
# To avoid churn, keep this slightly larger than `announce_interval`
peer_lifetime: 16m
# The amount of time until a peer is considered stale.
# To avoid churn, keep this slightly larger than `announce_interval`
peer_lifetime: 16m
# The number of partitions data will be divided into in order to provide a
# higher degree of parallelism.
shard_count: 1024
# The number of partitions data will be divided into in order to provide a
# higher degree of parallelism.
shards: 1024
# The interval at which metrics about the number of infohashes and peers
# are collected and posted to Prometheus.