mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 02:01:33 +00:00
Update and modernize manticore.conf file
This commit is contained in:
@@ -1,202 +1,112 @@
|
||||
indexer
|
||||
|
||||
{
|
||||
# Memory limit, in bytes, kiloytes (16384K) or megabytes (256M)
|
||||
# Default is 32M, max is 2047M, recommended is 256M to 1024M
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-mem-limit
|
||||
# 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)
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-max-iops
|
||||
# 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)
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-max-iosize
|
||||
# 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
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-write-buffer
|
||||
# https://manual.manticoresearch.com/Data_creation_and_modification/Adding_data_from_external_storages/Plain_tables_creation#indexer-write_buffer
|
||||
# write_buffer = 1M
|
||||
|
||||
# maximum file field adaptive buffer size
|
||||
# optional, default is 8M, minimum is 1M
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-max-file-field-buffer
|
||||
# max_file_field_buffer = 8M
|
||||
|
||||
# Lemmatizer cache size. Optional, default is 256K.
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-lemmatizer-cache
|
||||
# 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) and 'mysql41' (SphinxQL)
|
||||
# known protocols are 'sphinx' (SphinxAPI), 'mysql' (SphinxQL), and 'http' (HTTP API)
|
||||
#
|
||||
# multi-value, multiple listen points are allowed
|
||||
# optional, defaults are 9312:sphinx and 9306:mysql41, as below
|
||||
# listen = 127.0.0.1
|
||||
# listen = 192.168.0.1:9312
|
||||
# listen = 9312
|
||||
# listen = /var/run/searchd.sock
|
||||
|
||||
# Setting anything else can cause issues, beware.
|
||||
# The first listen is for the sphinxse plugin in MySQL to communicate with the sphinx server,
|
||||
# so we can select from the RT index.
|
||||
# The second listen is for sphinxql, to insert and delete data from the RT index.
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-listen
|
||||
# https://manual.manticoresearch.com/Server_settings/Searchd#listen
|
||||
listen = 9312:sphinx
|
||||
listen = 9306:mysql
|
||||
listen = 9308:http
|
||||
listen = 9308:http
|
||||
listen = 9443:https
|
||||
|
||||
# data directory, where all indexes and binlog files are stored
|
||||
# optional, default is build-time configured data directory
|
||||
# !*: This is recommended, it rebuilds indexes if your server crashes.
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-data-dir
|
||||
# data_dir = # disable logging
|
||||
# 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'
|
||||
# !*: Make sure this folder exists and is writable, if you have issues starting sphinx,
|
||||
# look at /var/log/upstart/sphinxsearch.log also.
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-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)
|
||||
# !*: Not recommended enabling this.
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-query-log
|
||||
# query_log = /var/log/sphinxsearch/query.log
|
||||
# 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
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-query-log-format
|
||||
# https://manual.manticoresearch.com/Server_settings/Searchd#query_log_format
|
||||
# query_log_format = sphinxql
|
||||
|
||||
# client read timeout, seconds
|
||||
# network timeout for client requests, seconds
|
||||
# optional, default is 5
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-read-timeout
|
||||
# https://manual.manticoresearch.com/Server_settings/Searchd#network_timeout
|
||||
network_timeout = 5
|
||||
|
||||
# request timeout, seconds
|
||||
# optional, default is 5 minutes
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-client-timeout
|
||||
# client read/write timeout, seconds
|
||||
# optional, default is 5 minutes (300)
|
||||
# https://manual.manticoresearch.com/Server_settings/Searchd#client_timeout
|
||||
client_timeout = 300
|
||||
|
||||
# maximum amount of children to fork (concurrent searches to run)
|
||||
# optional, default is 0 (unlimited)
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-max-children
|
||||
# max_children = 0
|
||||
|
||||
# PID file, searchd process ID file name
|
||||
# mandatory
|
||||
# !*: Sphinx will not start if this folder does not exist.
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-pid-file
|
||||
# https://manual.manticoresearch.com/Server_settings/Searchd#pid_file
|
||||
pid_file = /var/run/manticore/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)
|
||||
# !*: Note, this is deprecated in v2.2.3 of sphinx.
|
||||
#max_matches = 10000
|
||||
|
||||
# seamless rotate, prevents rotate stalls if precaching huge datasets
|
||||
# optional, default is 1
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-seamless-rotate
|
||||
# https://manual.manticoresearch.com/Server_settings/Searchd#seamless_rotate
|
||||
seamless_rotate = 1
|
||||
|
||||
# whether to forcibly preopen all indexes on startup
|
||||
# whether to forcibly preopen all tables on startup
|
||||
# optional, default is 1 (preopen everything)
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-preopen-indexes
|
||||
# https://manual.manticoresearch.com/Server_settings/Searchd#preopen_tables
|
||||
preopen_tables = 1
|
||||
|
||||
# whether to unlink .old index copies on succesful rotation.
|
||||
# whether to unlink .old table copies on successful rotation
|
||||
# optional, default is 1 (do unlink)
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-unlink-old
|
||||
# https://manual.manticoresearch.com/Server_settings/Searchd#unlink_old
|
||||
unlink_old = 1
|
||||
|
||||
# attribute updates periodic flush timeout, seconds
|
||||
# updates will be automatically dumped to disk this frequently
|
||||
# optional, default is 0 (disable periodic flush)
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-attr-flush-period
|
||||
# attr_flush_period = 0
|
||||
|
||||
# max allowed network packet size
|
||||
# limits both query packets from clients, and responses from agents
|
||||
# optional, default size is 8M
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-max-packet-size
|
||||
# https://manual.manticoresearch.com/Server_settings/Searchd#max_packet_size
|
||||
max_packet_size = 16M
|
||||
|
||||
# MVA updates pool size
|
||||
# shared between all instances of searchd, disables attr flushes!
|
||||
# optional, default size is 1M
|
||||
# mva_updates_pool = 1M
|
||||
|
||||
# max allowed per-query filter count
|
||||
# optional, default is 256
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-max-filters
|
||||
# https://manual.manticoresearch.com/Server_settings/Searchd#max_filters
|
||||
max_filters = 256
|
||||
|
||||
# max allowed per-filter values count
|
||||
# optional, default is 4096
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-max-filter-values
|
||||
# https://manual.manticoresearch.com/Server_settings/Searchd#max_filter_values
|
||||
max_filter_values = 4096
|
||||
|
||||
# socket listen queue length
|
||||
# optional, default is 5
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-listen-backlog
|
||||
# listen_backlog = 5
|
||||
|
||||
# per-keyword read buffer size
|
||||
# optional, default is 256K
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-read-buffer
|
||||
# read_buffer = 256K
|
||||
|
||||
# unhinted read size (currently used when reading hits)
|
||||
# optional, default is 32K
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-read-unhinted
|
||||
# read_unhinted = 32K
|
||||
|
||||
# max allowed per-batch query count (aka multi-query count)
|
||||
# optional, default is 32
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-max-batch-queries
|
||||
# max_batch_queries = 32
|
||||
|
||||
# max common subtree document cache size, per-query
|
||||
# optional, default is 0 (disable subtree optimization)
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-subtree-docs-cache
|
||||
# subtree_docs_cache = 4M
|
||||
|
||||
# max common subtree hit cache size, per-query
|
||||
# optional, default is 0 (disable subtree optimization)
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-subtree-hits-cache
|
||||
# subtree_hits_cache = 8M
|
||||
|
||||
# multi-processing mode (MPM)
|
||||
# known values are none, fork, prefork, and threads
|
||||
# optional, default is fork
|
||||
# !*: Do not change this.
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-workers
|
||||
# workers are deprecated in latest manticore version
|
||||
# workers = threads
|
||||
|
||||
# max threads to create for searching local parts of a distributed index
|
||||
# optional, default is 0, which means disable multi-threaded searching
|
||||
# should work with all MPMs (ie. does NOT require workers=threads)
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-dist-threads
|
||||
# dist_threads = 4
|
||||
|
||||
# binlog files path; use empty string to disable binlog
|
||||
# optional, default is build-time configured data directory
|
||||
# binlog_path = # disable logging
|
||||
# !*: This is recommended, it rebuilds indexes if your server crashes.
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-binlog-path
|
||||
# optional, default is data_dir
|
||||
# https://manual.manticoresearch.com/Server_settings/Searchd#binlog_path
|
||||
binlog_path = /var/lib/manticore/data
|
||||
|
||||
# binlog flush/sync mode
|
||||
@@ -204,72 +114,59 @@ searchd
|
||||
# 1 means flush and sync every transaction
|
||||
# 2 means flush every transaction, sync every second
|
||||
# optional, default is 2
|
||||
# !*: You should leave this to 2
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-binlog-flush
|
||||
# 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
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-binlog-max-log-size
|
||||
# https://manual.manticoresearch.com/Server_settings/Searchd#binlog_max_log_size
|
||||
binlog_max_log_size = 512M
|
||||
|
||||
# default server-wide collation
|
||||
# optional, default is libc_ci
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-collation-server
|
||||
# collation_server = utf8_general_ci
|
||||
|
||||
# server-wide locale for libc based collations
|
||||
# optional, default is C
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-collation-libc-locale
|
||||
# collation_libc_locale = ru_RU.UTF-8
|
||||
|
||||
# trusted plugin directory
|
||||
# optional, default is empty (disable UDFs)
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-plugin-dir
|
||||
# plugin_dir = /usr/local/sphinx/lib
|
||||
|
||||
# version string returned to MySQL network protocol clients
|
||||
# optional, default is empty (use Sphinx version)
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-mysql-version-string
|
||||
# mysql_version_string = 5.0.37
|
||||
|
||||
# RT RAM chunks flush period
|
||||
# optional, default is 0 (no periodic flush)
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-rt-flush-period
|
||||
# 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-thread stack size, only affects workers=threads mode
|
||||
# optional, default is 64K
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-thread-stack
|
||||
# thread_stack = 128K
|
||||
|
||||
# per-keyword expansion limit (for dict=keywords prefix searches)
|
||||
# per-keyword expansion limit (for prefix/infix/wildcard searches)
|
||||
# optional, default is 0 (no limit)
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-expansion-limit
|
||||
# https://manual.manticoresearch.com/Server_settings/Searchd#expansion_limit
|
||||
expansion_limit = 1000
|
||||
|
||||
# threaded server watchdog (only used in workers=threads mode)
|
||||
# optional, values are 0 and 1, default is 1 (watchdog on)
|
||||
# !*: Do not set this to 0.
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-watchdog
|
||||
# watchdog = 1
|
||||
# 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
|
||||
|
||||
# SphinxQL compatibility mode (legacy columns and their names)
|
||||
# optional, default is 0 (SQL compliant syntax and result sets)
|
||||
# !*: Deprecated in v2.2.1
|
||||
# compat_sphinxql_magics = 1
|
||||
# thread stack size
|
||||
# optional, default is 1M (was 64K in older versions)
|
||||
# https://manual.manticoresearch.com/Server_settings/Searchd#thread_stack
|
||||
# thread_stack = 1M
|
||||
|
||||
# A maximum number of I/O operations (per second) that the RT chunks merge thread is allowed to start.
|
||||
# This directive lets you throttle down the I/O impact arising from the OPTIMIZE statements.
|
||||
# Optional, default is 0 (no limit).
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-rt-merge-iops
|
||||
# rt_merge_iops = 0
|
||||
# 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
|
||||
|
||||
# A maximum size of an I/O operation that the RT chunks merge thread is allowed to start.
|
||||
# This directive lets you throttle down the I/O impact arising from the OPTIMIZE statements.
|
||||
# Optional, default is 0 (no limit).
|
||||
# !*: http://sphinxsearch.com/docs/current.html#conf-rt-merge-maxiosize
|
||||
# rt_merge_maxiosize = 0
|
||||
# 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--
|
||||
|
||||
Reference in New Issue
Block a user