Open deshsidd opened 1 week ago
Incorrect Top N value displayed in the configurations page in certain situations. Please find how to reproduce the bug in the following section.
{ "persistent": {}, "transient": {} }
window_size
top_n_size
latency
{ "persistent": { "search.insights.top_queries.latency.enabled" : true, "search.insights.top_queries.cpu.enabled" : true, "search.insights.top_queries.memory.enabled" : true, "search.insights.top_queries.group_by" : "none", "search.insights.top_queries.latency.window_size" : "1m", "search.insights.top_queries.latency.top_n_size" : 5 } }
_cluster/settings?include_defaults
Relevant part of the default settings showing top_n_size for memory and cpu is 3:
"search": { "default_search_timeout": "-1", "max_aggregation_rewrite_filters": "3000", "max_open_pit_context": "300", "insights": { "top_queries": { "cpu": { "top_n_size": "3", "window_size": "60s" }, "max_groups_excluding_topn": "100", "memory": { "top_n_size": "3", "window_size": "60s" }, "grouping": { "attributes": { "field_type": "true", "field_name": "true" } } } },
Top n size in settings should match what is displayed on the UI
Operating system, version. macos
If applicable, add screenshots to help explain your problem.
Add any other context about the problem.
To fix this we should take into account the default settings when making a call to get cluster settings
What is the bug?
Incorrect Top N value displayed in the configurations page in certain situations. Please find how to reproduce the bug in the following section.
How can one reproduce the bug?
window_size
andtop_n_size
forlatency
:top_n_size
for cpu and memory:Relevant part of the default settings showing
top_n_size
for memory and cpu is 3:What is the expected behavior?
Top n size in settings should match what is displayed on the UI
What is your host/environment?
Operating system, version. macos
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.
To fix this we should take into account the default settings when making a call to get cluster settings