perf(fulltextsearch): improve elasticsearch healthcheck and add performance tuning (#7947)

This commit is contained in:
Simon L.
2026-04-20 14:11:20 +02:00
committed by GitHub
3 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,3 @@
#!/bin/bash
nc -z 127.0.0.1 9200 || exit 1
curl -fs "http://127.0.0.1:9200/_cluster/health?filter_path=status" | grep -qE '"status":"(green|yellow)"' || exit 1

View File

@@ -444,6 +444,9 @@ services:
- http.port=9200
- xpack.license.self_generated.type=basic
- xpack.security.enabled=false
- indices.fielddata.cache.size=20%
- indices.memory.index_buffer_size=20%
- thread_pool.write.queue_size=1000
- FULLTEXTSEARCH_PASSWORD
volumes:
- nextcloud_aio_elasticsearch:/usr/share/elasticsearch/data:rw

View File

@@ -813,6 +813,9 @@
"http.port=9200",
"xpack.license.self_generated.type=basic",
"xpack.security.enabled=false",
"indices.fielddata.cache.size=20%",
"indices.memory.index_buffer_size=20%",
"thread_pool.write.queue_size=1000",
"FULLTEXTSEARCH_PASSWORD=%FULLTEXTSEARCH_PASSWORD%"
],
"volumes": [