mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 22:01:33 +00:00
177 lines
6.7 KiB
Plaintext
177 lines
6.7 KiB
Plaintext
indexer
|
|
{
|
|
# Memory limit, in bytes, kilobytes (16384K) or megabytes (256M)
|
|
# Default is 128M, max is 2047M, recommended is 256M to 1024M
|
|
# https://manual.manticoresearch.com/Data_creation_and_modification/Adding_data_from_external_storages/Plain_tables_creation#indexer-mem_limit
|
|
mem_limit = 1024M
|
|
|
|
# Maximum IO calls per second (for I/O throttling)
|
|
# optional, default is 0 (unlimited)
|
|
# https://manual.manticoresearch.com/Data_creation_and_modification/Adding_data_from_external_storages/Plain_tables_creation#indexer-max_iops
|
|
# max_iops = 0
|
|
|
|
# Maximum IO call size, bytes (for I/O throttling)
|
|
# optional, default is 0 (unlimited)
|
|
# https://manual.manticoresearch.com/Data_creation_and_modification/Adding_data_from_external_storages/Plain_tables_creation#indexer-max_iosize
|
|
# max_iosize = 0
|
|
|
|
# Write buffer size, bytes
|
|
# several (currently up to 4) buffers will be allocated
|
|
# write buffers are allocated in addition to mem_limit
|
|
# optional, default is 1M
|
|
# https://manual.manticoresearch.com/Data_creation_and_modification/Adding_data_from_external_storages/Plain_tables_creation#indexer-write_buffer
|
|
# write_buffer = 1M
|
|
|
|
# Lemmatizer cache size. Optional, default is 256K.
|
|
# https://manual.manticoresearch.com/Data_creation_and_modification/Adding_data_from_external_storages/Plain_tables_creation#indexer-lemmatizer_cache
|
|
# lemmatizer_cache = 256K
|
|
}
|
|
|
|
searchd
|
|
{
|
|
# [hostname:]port[:protocol], or /unix/socket/path to listen on
|
|
# known protocols are 'sphinx' (SphinxAPI), 'mysql' (SphinxQL), and 'http' (HTTP API)
|
|
#
|
|
# multi-value, multiple listen points are allowed
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#listen
|
|
listen = 9312:sphinx
|
|
listen = 9306:mysql
|
|
listen = 9308:http
|
|
|
|
# data directory, where all tables and binlog files are stored
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#data_dir
|
|
data_dir = /var/lib/manticore/data
|
|
|
|
# log file, searchd run info is logged here
|
|
# optional, default is 'searchd.log'
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#log
|
|
log = /var/log/manticore/searchd.log
|
|
|
|
# query log file, all search queries are logged here
|
|
# optional, default is empty (do not log queries)
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#query_log
|
|
# query_log = /var/log/manticore/query.log
|
|
|
|
# query log file format
|
|
# optional, known values are plain and sphinxql, default is plain
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#query_log_format
|
|
# query_log_format = sphinxql
|
|
|
|
# network timeout for client requests, seconds
|
|
# optional, default is 5
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#network_timeout
|
|
network_timeout = 5
|
|
|
|
# client read/write timeout, seconds
|
|
# optional, default is 5 minutes (300)
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#client_timeout
|
|
client_timeout = 300
|
|
|
|
# PID file, searchd process ID file name
|
|
# mandatory
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#pid_file
|
|
pid_file = /var/run/manticore/searchd.pid
|
|
|
|
# seamless rotate, prevents rotate stalls if precaching huge datasets
|
|
# optional, default is 1
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#seamless_rotate
|
|
seamless_rotate = 1
|
|
|
|
# whether to forcibly preopen all tables on startup
|
|
# optional, default is 1 (preopen everything)
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#preopen_tables
|
|
preopen_tables = 1
|
|
|
|
# whether to unlink .old table copies on successful rotation
|
|
# optional, default is 1 (do unlink)
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#unlink_old
|
|
unlink_old = 1
|
|
|
|
# max allowed network packet size
|
|
# limits both query packets from clients, and responses from agents
|
|
# optional, default size is 8M
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#max_packet_size
|
|
max_packet_size = 16M
|
|
|
|
# maximum number of files searchd may keep open
|
|
# package/systemd installs must also set LimitNOFILE at least this high
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#max_open_files
|
|
max_open_files = 524288
|
|
|
|
# max allowed per-query filter count
|
|
# optional, default is 256
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#max_filters
|
|
max_filters = 256
|
|
|
|
# max allowed per-filter values count
|
|
# optional, default is 4096
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#max_filter_values
|
|
max_filter_values = 4096
|
|
|
|
# binlog files path; use empty string to disable binlog
|
|
# optional, default is data_dir
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#binlog_path
|
|
binlog_path = /var/lib/manticore/data
|
|
|
|
# binlog flush/sync mode
|
|
# 0 means flush and sync every second
|
|
# 1 means flush and sync every transaction
|
|
# 2 means flush every transaction, sync every second
|
|
# optional, default is 2
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#binlog_flush
|
|
binlog_flush = 2
|
|
|
|
# binlog per-file size limit
|
|
# optional, default is 128M, 0 means no limit
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#binlog_max_log_size
|
|
binlog_max_log_size = 512M
|
|
|
|
# RT table RAM chunk flush period in seconds
|
|
# optional, default is 10 hours (36000)
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#rt_flush_period
|
|
rt_flush_period = 900
|
|
|
|
# per-keyword expansion limit (for prefix/infix/wildcard searches)
|
|
# optional, default is 0 (no limit)
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#expansion_limit
|
|
expansion_limit = 1000
|
|
|
|
# threads configuration - number of threads used for searching
|
|
# optional, default is number of CPU cores
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#threads
|
|
# threads = 4
|
|
|
|
# thread stack size
|
|
# optional, default is 1M (was 64K in older versions)
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#thread_stack
|
|
# thread_stack = 1M
|
|
|
|
# maximum RAM chunk size before automatic flush
|
|
# optional, default is 128M
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#rt_mem_limit
|
|
# rt_mem_limit = 128M
|
|
|
|
# query cache configuration
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#qcache_max_bytes
|
|
# qcache_max_bytes = 16M
|
|
# qcache_thresh_msec = 3000
|
|
# qcache_ttl_sec = 60
|
|
|
|
# secondary indexes for faster filtering
|
|
# optional, default is 1 (enabled)
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#secondary_indexes
|
|
secondary_indexes = 1
|
|
|
|
# pseudo-sharding for improved multi-core utilization
|
|
# optional, default is 1 (enabled)
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#pseudo_sharding
|
|
pseudo_sharding = 1
|
|
|
|
# Buddy connector for advanced SQL/JSON features
|
|
# optional, default is 1 (enabled)
|
|
# https://manual.manticoresearch.com/Server_settings/Searchd#buddy_path
|
|
# buddy_path = manticore-buddy
|
|
}
|
|
|
|
# --eof--
|