opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.65k stars 854 forks source link

[BUG] Visualizations "Controls" autocompleteTimeout: Parameter not documented and #1249

Open awuetz opened 2 years ago

awuetz commented 2 years ago

Describe the bug

I wanted to use the visualization "controls" to have a dropdown list with predefined values which can be selected. This is working, but I noticed the exclamation mark, which tells me, that the list may be incomplete because the request is taking too long.
To work around this, i searched for the autocomplete settings in the opensearch_dashboards.yml file, but did not found anything about it. So by searching through this repo i suppose this settings are not documented in the default opensearch_dashboards.yml

After that i tried to set the autocompleteTimeout by looking through the code, so I tried:

opensearchDashboards.autocompleteTimeout: 600000

But with even 600000ms configured the warning in visualization "control" did not disappear.

To Reproduce

  1. Create a visualisation of type "control"

OpenSearch Version opensearch docker image 1.2.3

Dashboards Version opensearch-dashboard docker image 1.2.0

Screenshots 2022-02-15_09h55_59 2022-02-15_09h56_13

Host/Environment (please complete the following information):

ashwin-pc commented 2 years ago

How did you validate that the new timeout was enforced and that the request was still timing out? Do you have any steps to reproduce the issue?

kavilla commented 2 years ago

Hello @awuetz, for first point I agree about the lack of information of possible configurations within OpenSearch Dashboards. There is a current issue here for the docs site to add more details: https://github.com/opensearch-project/documentation-website/issues/214.

hobayoba commented 2 years ago

got the same tried to increase autocompleteTimeout and autocompleteTerminateAfter settings in config:

user1@myhost:/usr/share/opensearch-dashboards/config$ grep "autocomplete" opensearch_dashboards.yml
opensearchDashboards.autocompleteTimeout: 900000
opensearchDashboards.autocompleteTerminateAfter: 900000

and then restarted the dashboard service, and checked it again, but didn't get positive result: image

p.s.: btw, i remember that this visualization was working like a charm in Kibana after increasing similar parameters up to 120000 ms with less number of events per week (about ~7-8 million)

rasituum commented 1 month ago

Hello, It seems that autocompleteTerminateAfter parameter is in nanoseconds while the autocompleteTimeout parameter is in milliseconds. Try with the following values, it works for me :

opensearchDashboards.autocompleteTimeout: 900000
opensearchDashboards.autocompleteTerminateAfter: 900000000

Request : Screenshot_20240730_161649

Response: Screenshot_20240730_161814