From 977ddb37635052cb2b6eda625b4d1ffda66dd62f Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Fri, 8 Mar 2024 14:05:14 +0100 Subject: [PATCH] Search: protect ourselves from executing long queries This is similar to what we are doing in PostgreSQL to avoid running long queries and degrading the service. Related https://github.com/readthedocs/addons/issues/84 --- dockerfiles/docker-compose-search.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/dockerfiles/docker-compose-search.yml b/dockerfiles/docker-compose-search.yml index 0e95b9a..93c716c 100644 --- a/dockerfiles/docker-compose-search.yml +++ b/dockerfiles/docker-compose-search.yml @@ -24,6 +24,7 @@ services: - node.name=search - cluster.routing.allocation.disk.threshold_enabled=false - cluster.info.update.interval=30m + - search.default_search_timeout=15s - "ES_JAVA_OPTS=-Xms128m -Xmx128m" - ELASTIC_PASSWORD=password # Disable HTTPS on development.