From 41a8cea873bf1abcb40998fef31bb31965015338 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 8 Sep 2022 07:20:30 +0100 Subject: [PATCH] Lower memory requirements to prevent crashes --- docker/docker-compose.prod.yml | 2 +- docker/manticore.conf | 6 +++--- docker/manticore/manticore.conf | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docker/docker-compose.prod.yml b/docker/docker-compose.prod.yml index b4fe434..8c5f8e8 100644 --- a/docker/docker-compose.prod.yml +++ b/docker/docker-compose.prod.yml @@ -31,7 +31,7 @@ services: - tmp db: - image: manticoresearch/manticore:dev + image: manticoresearch/manticore:latest restart: always ports: - 9308 diff --git a/docker/manticore.conf b/docker/manticore.conf index 25006ee..492f745 100644 --- a/docker/manticore.conf +++ b/docker/manticore.conf @@ -102,7 +102,7 @@ searchd { # max_filter_values = 4096 # https://manual.manticoresearch.com/Server_settings/Searchd#max_open_files - max_open_files = max + # max_open_files = max # https://manual.manticoresearch.com/Server_settings/Searchd#max_packet_size max_packet_size = 128M @@ -141,10 +141,10 @@ searchd { # preopen_indexes = 1 # https://manual.manticoresearch.com/Server_settings/Searchd#qcache_max_bytes - qcache_max_bytes = 2048Mb + qcache_max_bytes = 128Mb # https://manual.manticoresearch.com/Server_settings/Searchd#qcache_thresh_msec - qcache_thresh_msec = 100 + qcache_thresh_msec = 150 # https://manual.manticoresearch.com/Server_settings/Searchd#qcache_ttl_sec qcache_ttl_sec = 120 diff --git a/docker/manticore/manticore.conf b/docker/manticore/manticore.conf index 03192f1..3122ed5 100644 --- a/docker/manticore/manticore.conf +++ b/docker/manticore/manticore.conf @@ -153,10 +153,10 @@ searchd { query_log_format = sphinxql # https://manual.manticoresearch.com/Server_settings/Searchd#query_log_min_msec - # query_log_min_msec = 0 + query_log_min_msec = 0 # https://manual.manticoresearch.com/Server_settings/Searchd#query_log - # query_log = /var/log/manticore/query.log + query_log = /var/log/manticore/query.log # https://manual.manticoresearch.com/Server_settings/Searchd#query_log_mode # query_log_mode = 600