[Search Sessions] Kibana fails to update or delete sessions in non-default space #96124
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Search
Querying infrastructure in Kibana
v7.12.0
Kibana version: 7.12.0
Elasticsearch version: 7.12.0
Server OS version:
Original install method (e.g. download page, yum, from source, etc.): From source or cloud
Describe the bug:
Kibana fails to update and delete search sessions created in non-default space.
This leads to cluster performance degradation caused by a growing number of periodic
_async_search/status/<id>
requests from Kibana to ES.Steps to reproduce:
IN-PROGRESS
->COMPLETED
state and not deleted.Expected behavior:
When searches complete, the session object should be transitioned to
COMPLETED
state and then in ~1m completely deleted.The behavior in the default space is expected.
Screenshots (if relevant):
Symptoms:
Any additional context:
Workaround
To stabilize cluster manually delete search-sessions objects. This has to be done periodically:
And/or disable
search-sessions
feature in kibana.yml:With
search-sessions
disabled, session monitoring which calls_async_search/status/<id>
will not be scheduled: the number of search-session objects will still grow in a cluster, but tasks that processing them will not run hence not affect cluster performance.After restarting a 7.12 cluster with
xpack.data_enhanced.search.sessions.enabled: false
also make sure that the task doesn't exist from the previous run.If it exists, then delete it:
The text was updated successfully, but these errors were encountered: