Skip to content

[ML] Improving trained models list performance#237072

Merged
jgowdyelastic merged 1 commit intoelastic:mainfrom
jgowdyelastic:improve-trained-models-list-performance
Oct 2, 2025
Merged

[ML] Improving trained models list performance#237072
jgowdyelastic merged 1 commit intoelastic:mainfrom
jgowdyelastic:improve-trained-models-list-performance

Conversation

@jgowdyelastic
Copy link
Member

@jgowdyelastic jgowdyelastic commented Oct 1, 2025

Adds some filters to the request to get all index settings to reduce the amount of data fetched and reduce the load on elasticsearch for clusters with many indices.

Fixes #235344

@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #14 / Core Analysis - Entity Store @ess Entity Store History - Snapshots Successfuly create a snapshot Should perform snapshot task

Metrics [docs]

✅ unchanged

cc @jgowdyelastic

Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ⚡

@jgowdyelastic jgowdyelastic added the backport:version Backport to applied version labels label Oct 2, 2025
Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jgowdyelastic jgowdyelastic merged commit 48f63e7 into elastic:main Oct 2, 2025
34 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.0, 9.1, 9.2

https://github.com/elastic/kibana/actions/runs/18197635819

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 2, 2025
Adds some filters to the request to get all index settings to reduce the
amount of data fetched and reduce the load on elasticsearch for clusters
with many indices.

Fixes elastic#235344

(cherry picked from commit 48f63e7)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 2, 2025
Adds some filters to the request to get all index settings to reduce the
amount of data fetched and reduce the load on elasticsearch for clusters
with many indices.

Fixes elastic#235344

(cherry picked from commit 48f63e7)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 2, 2025
Adds some filters to the request to get all index settings to reduce the
amount of data fetched and reduce the load on elasticsearch for clusters
with many indices.

Fixes elastic#235344

(cherry picked from commit 48f63e7)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 2, 2025
Adds some filters to the request to get all index settings to reduce the
amount of data fetched and reduce the load on elasticsearch for clusters
with many indices.

Fixes elastic#235344

(cherry picked from commit 48f63e7)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.19
9.0
9.1
9.2

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 2, 2025
# Backport

This will backport the following commits from `main` to `9.1`:
- [[ML] Improving trained models list performance
(#237072)](#237072)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"James
Gowdy","email":"jgowdy@elastic.co"},"sourceCommit":{"committedDate":"2025-10-02T15:24:33Z","message":"[ML]
Improving trained models list performance (#237072)\n\nAdds some filters
to the request to get all index settings to reduce the\namount of data
fetched and reduce the load on elasticsearch for clusters\nwith many
indices.\n\nFixes
https://github.com/elastic/kibana/issues/235344","sha":"48f63e71dc31cc02304448ea10294a8b9ed0c418","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix",":ml","Feature:3rd
Party
Models","backport:version","v9.2.0","v8.19.5","v9.0.8","v9.1.5","v9.3.0"],"title":"[ML]
Improving trained models list
performance","number":237072,"url":"https://github.com/elastic/kibana/pull/237072","mergeCommit":{"message":"[ML]
Improving trained models list performance (#237072)\n\nAdds some filters
to the request to get all index settings to reduce the\namount of data
fetched and reduce the load on elasticsearch for clusters\nwith many
indices.\n\nFixes
https://github.com/elastic/kibana/issues/235344","sha":"48f63e71dc31cc02304448ea10294a8b9ed0c418"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","8.19","9.0","9.1"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/237072","number":237072,"mergeCommit":{"message":"[ML]
Improving trained models list performance (#237072)\n\nAdds some filters
to the request to get all index settings to reduce the\namount of data
fetched and reduce the load on elasticsearch for clusters\nwith many
indices.\n\nFixes
https://github.com/elastic/kibana/issues/235344","sha":"48f63e71dc31cc02304448ea10294a8b9ed0c418"}}]}]
BACKPORT-->

Co-authored-by: James Gowdy <jgowdy@elastic.co>
kibanamachine added a commit that referenced this pull request Oct 2, 2025
# Backport

This will backport the following commits from `main` to `9.0`:
- [[ML] Improving trained models list performance
(#237072)](#237072)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"James
Gowdy","email":"jgowdy@elastic.co"},"sourceCommit":{"committedDate":"2025-10-02T15:24:33Z","message":"[ML]
Improving trained models list performance (#237072)\n\nAdds some filters
to the request to get all index settings to reduce the\namount of data
fetched and reduce the load on elasticsearch for clusters\nwith many
indices.\n\nFixes
https://github.com/elastic/kibana/issues/235344","sha":"48f63e71dc31cc02304448ea10294a8b9ed0c418","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix",":ml","Feature:3rd
Party
Models","backport:version","v9.2.0","v8.19.5","v9.0.8","v9.1.5","v9.3.0"],"title":"[ML]
Improving trained models list
performance","number":237072,"url":"https://github.com/elastic/kibana/pull/237072","mergeCommit":{"message":"[ML]
Improving trained models list performance (#237072)\n\nAdds some filters
to the request to get all index settings to reduce the\namount of data
fetched and reduce the load on elasticsearch for clusters\nwith many
indices.\n\nFixes
https://github.com/elastic/kibana/issues/235344","sha":"48f63e71dc31cc02304448ea10294a8b9ed0c418"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","8.19","9.0","9.1"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/237072","number":237072,"mergeCommit":{"message":"[ML]
Improving trained models list performance (#237072)\n\nAdds some filters
to the request to get all index settings to reduce the\namount of data
fetched and reduce the load on elasticsearch for clusters\nwith many
indices.\n\nFixes
https://github.com/elastic/kibana/issues/235344","sha":"48f63e71dc31cc02304448ea10294a8b9ed0c418"}}]}]
BACKPORT-->

Co-authored-by: James Gowdy <jgowdy@elastic.co>
kibanamachine added a commit that referenced this pull request Oct 2, 2025
)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[ML] Improving trained models list performance
(#237072)](#237072)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"James
Gowdy","email":"jgowdy@elastic.co"},"sourceCommit":{"committedDate":"2025-10-02T15:24:33Z","message":"[ML]
Improving trained models list performance (#237072)\n\nAdds some filters
to the request to get all index settings to reduce the\namount of data
fetched and reduce the load on elasticsearch for clusters\nwith many
indices.\n\nFixes
https://github.com/elastic/kibana/issues/235344","sha":"48f63e71dc31cc02304448ea10294a8b9ed0c418","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix",":ml","Feature:3rd
Party
Models","backport:version","v9.2.0","v8.19.5","v9.0.8","v9.1.5","v9.3.0"],"title":"[ML]
Improving trained models list
performance","number":237072,"url":"https://github.com/elastic/kibana/pull/237072","mergeCommit":{"message":"[ML]
Improving trained models list performance (#237072)\n\nAdds some filters
to the request to get all index settings to reduce the\namount of data
fetched and reduce the load on elasticsearch for clusters\nwith many
indices.\n\nFixes
https://github.com/elastic/kibana/issues/235344","sha":"48f63e71dc31cc02304448ea10294a8b9ed0c418"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","8.19","9.0","9.1"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/237072","number":237072,"mergeCommit":{"message":"[ML]
Improving trained models list performance (#237072)\n\nAdds some filters
to the request to get all index settings to reduce the\namount of data
fetched and reduce the load on elasticsearch for clusters\nwith many
indices.\n\nFixes
https://github.com/elastic/kibana/issues/235344","sha":"48f63e71dc31cc02304448ea10294a8b9ed0c418"}}]}]
BACKPORT-->

Co-authored-by: James Gowdy <jgowdy@elastic.co>
kibanamachine added a commit that referenced this pull request Oct 3, 2025
# Backport

This will backport the following commits from `main` to `9.2`:
- [[ML] Improving trained models list performance
(#237072)](#237072)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"James
Gowdy","email":"jgowdy@elastic.co"},"sourceCommit":{"committedDate":"2025-10-02T15:24:33Z","message":"[ML]
Improving trained models list performance (#237072)\n\nAdds some filters
to the request to get all index settings to reduce the\namount of data
fetched and reduce the load on elasticsearch for clusters\nwith many
indices.\n\nFixes
https://github.com/elastic/kibana/issues/235344","sha":"48f63e71dc31cc02304448ea10294a8b9ed0c418","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix",":ml","Feature:3rd
Party
Models","backport:version","v9.2.0","v8.19.5","v9.0.8","v9.1.5","v9.3.0"],"title":"[ML]
Improving trained models list
performance","number":237072,"url":"https://github.com/elastic/kibana/pull/237072","mergeCommit":{"message":"[ML]
Improving trained models list performance (#237072)\n\nAdds some filters
to the request to get all index settings to reduce the\namount of data
fetched and reduce the load on elasticsearch for clusters\nwith many
indices.\n\nFixes
https://github.com/elastic/kibana/issues/235344","sha":"48f63e71dc31cc02304448ea10294a8b9ed0c418"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","8.19","9.0","9.1"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/237072","number":237072,"mergeCommit":{"message":"[ML]
Improving trained models list performance (#237072)\n\nAdds some filters
to the request to get all index settings to reduce the\namount of data
fetched and reduce the load on elasticsearch for clusters\nwith many
indices.\n\nFixes
https://github.com/elastic/kibana/issues/235344","sha":"48f63e71dc31cc02304448ea10294a8b9ed0c418"}}]}]
BACKPORT-->

Co-authored-by: James Gowdy <jgowdy@elastic.co>
@mistic mistic added v9.1.6 and removed v9.1.5 labels Oct 6, 2025
rylnd pushed a commit to rylnd/kibana that referenced this pull request Oct 17, 2025
Adds some filters to the request to get all index settings to reduce the
amount of data fetched and reduce the load on elasticsearch for clusters
with many indices.

Fixes elastic#235344
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment