66 lines
2.0 KiB
Plaintext
66 lines
2.0 KiB
Plaintext
indexer
|
|
{
|
|
# memory limit, in bytes, kiloytes (16384K) or megabytes (256M)
|
|
# optional, default is 32M, max is 2047M, recommended is 256M to 1024M
|
|
mem_limit = 256M
|
|
|
|
# maximum IO calls per second (for I/O throttling)
|
|
# optional, default is 0 (unlimited)
|
|
#
|
|
# max_iops = 40
|
|
|
|
# maximum IO call size, bytes (for I/O throttling)
|
|
# optional, default is 0 (unlimited)
|
|
#
|
|
max_iosize = 524288
|
|
}
|
|
|
|
searchd
|
|
{
|
|
|
|
listen = {{ sphinx_listen }}
|
|
|
|
# required by RT-indexes
|
|
workers = threads
|
|
|
|
# log file, searchd run info is logged here
|
|
# optional, default is 'searchd.log'
|
|
log = {{sphinx_var_path}}/log/searchd.log
|
|
|
|
# query log file, all search queries are logged here
|
|
# optional, default is empty (do not log queries)
|
|
query_log = {{sphinx_var_path}}/log/query.log
|
|
|
|
# client read timeout, seconds
|
|
# optional, default is 5
|
|
read_timeout = 7
|
|
|
|
# maximum amount of children to fork (concurrent searches to run)
|
|
# optional, default is 0 (unlimited)
|
|
max_children = 4
|
|
|
|
# PID file, searchd process ID file name
|
|
# mandatory
|
|
pid_file = {{sphinx_var_path}}/run/searchd.pid
|
|
|
|
# max amount of matches the daemon ever keeps in RAM, per-index
|
|
# WARNING, THERE'S ALSO PER-QUERY LIMIT, SEE SetLimits() API CALL
|
|
# default is 1000 (just like Google)
|
|
max_matches = 1000
|
|
|
|
# seamless rotate, prevents rotate stalls if precaching huge datasets
|
|
# optional, default is 1
|
|
seamless_rotate = 1
|
|
|
|
# whether to forcibly preopen all indexes on startup
|
|
# optional, default is 0 (do not preopen)
|
|
preopen_indexes = 0
|
|
|
|
# whether to unlink .old index copies on succesful rotation.
|
|
# optional, default is 1 (do unlink)
|
|
unlink_old = 1
|
|
|
|
expansion_limit = 48
|
|
}
|
|
|