Skip to content

Commit

Permalink
split default recommend per search+index
Browse files Browse the repository at this point in the history
  • Loading branch information
stefnestor committed Dec 11, 2024
1 parent 6eacf4f commit 1a9ff1f
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions docs/reference/index-modules/slowlog.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -232,18 +232,29 @@ optimization information, see <<tune-for-search-speed,tune for search speed>>
and <<tune-for-indexing-speed,tune for indexing speed>.

If you are uncertain where to begin investigating problematic traffic, we
recommend dynamically enabling via <<indices-update-settings,update indices
settings>> with high thresholds against both slow logs:
recommend dynamically enabling the `warn` threshold with a high `30s` threshold
via <<indices-update-settings,update indices settings>>. For slow logs for

* search
+
[source,console]
--------------------------------------------------
PUT _all/_settings
{
"index.indexing.slowlog.include.user": true
"index.indexing.slowlog.threshold.index.warn": "30s",
"index.search.slowlog.include.user": true
"index.search.slowlog.threshold.fetch.warn": "30s",
"index.search.slowlog.threshold.query.warn": "30s",
"index.search.slowlog.threshold.query.warn": "30s"
}
--------------------------------------------------

* indexing
+
[source,console]
--------------------------------------------------
PUT _all/_settings
{
"index.indexing.slowlog.include.user": true
"index.indexing.slowlog.threshold.index.warn": "30s"
}
--------------------------------------------------

Expand Down

0 comments on commit 1a9ff1f

Please sign in to comment.