Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeouts in cluster monitoring #1663

Closed
juankaromo opened this issue Aug 6, 2019 · 2 comments
Closed

Timeouts in cluster monitoring #1663

juankaromo opened this issue Aug 6, 2019 · 2 comments
Assignees
Labels
type/bug Bug issue

Comments

@juankaromo
Copy link
Contributor

Wazuh Elastic Rev
3.9.4 7.x 527

Description
It seems that cluster-monitoring makes a disproportionate call for the data we are taking, since it returns a lot of alerts and fall. You have to look for graphs that consume less.
It doesn't make sense that 2 out of 10 times you give us a timeout only in this part of the App for that graph.

Steps to reproduce

  1. Go to Management > Cluster monitoring
  2. See timeout error (sometimes)

Screenshots
image

Additional context
We are using Kibana's own calls for monitoring /elastic/visualizations/cluster-monitoring.

@juankaromo juankaromo added this to To do in Wazuh 3.10.0 via automation Aug 9, 2019
@jesusgn90 jesusgn90 moved this from To do to In progress in Wazuh 3.10.0 Aug 20, 2019
@jesusgn90 jesusgn90 self-assigned this Aug 20, 2019
@jesusgn90
Copy link
Contributor

jesusgn90 commented Aug 20, 2019

After some researching I've found a possible way to optimize this view and to reduce this load time:

Since the timelion visualizations don't need all the fields under _source, we are showing "counts", we can try to remove the _source from results.

This can be done setting the _source values in the searchSource instance as follows:

searchSource.setField('source',false)

image

Of course, we need to add some conditions to don't do this always, just in case we are feeding visualizations, but it's still needed when using the Discover itself.

@jesusgn90
Copy link
Contributor

PR #1704 improves the load time, and we should not see more timeouts here for standard situations (all components are working)

Wazuh 3.10.0 automation moved this from In progress to Done Aug 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Bug issue
Projects
No open projects
Wazuh 3.10.0
  
Done
Development

No branches or pull requests

2 participants