1
0
Fork 0
mirror of synced 2024-05-18 19:32:24 +12:00
ArchiveBox/etc/sonic.cfg

68 lines
930 B
INI
Raw Permalink Normal View History

2020-11-21 04:29:28 +13:00
# Sonic
# Fast, lightweight and schema-less search backend
# Configuration file
# Example: https://github.com/valeriansaliou/sonic/blob/master/config.cfg
[server]
2024-02-23 01:47:51 +13:00
# log_level = "debug"
log_level = "warn"
2020-11-21 04:29:28 +13:00
[channel]
inet = "0.0.0.0:1491"
tcp_timeout = 300
auth_password = "${env.SEARCH_BACKEND_PASSWORD}"
2020-11-21 04:29:28 +13:00
[channel.search]
2020-11-21 09:27:39 +13:00
query_limit_default = 65535
query_limit_maximum = 65535
query_alternates_try = 10
2020-11-21 04:29:28 +13:00
suggest_limit_default = 5
suggest_limit_maximum = 20
[store]
[store.kv]
path = "/var/lib/sonic/store/kv/"
retain_word_objects = 100000
2020-11-21 04:29:28 +13:00
[store.kv.pool]
inactive_after = 1800
[store.kv.database]
flush_after = 900
compress = true
parallelism = 2
max_files = 100
max_compactions = 1
max_flushes = 1
write_buffer = 16384
write_ahead_log = true
[store.fst]
path = "/var/lib/sonic/store/fst/"
[store.fst.pool]
inactive_after = 300
[store.fst.graph]
consolidate_after = 180
max_size = 2048
max_words = 250000