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

fix default timeouts and ignored requestTimeout #6341

Closed
wants to merge 10 commits into from
2 changes: 1 addition & 1 deletion src/plugins/elasticsearch/index.js
Expand Up @@ -19,7 +19,7 @@ module.exports = function ({ Plugin }) {
username: string(),
password: string(),
shardTimeout: number().default(0),
requestTimeout: number().default(30000),
requestTimeout: number().default(300000),
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure we want the default value to be 5 mins. The 30s default seems to be fine for most use cases, and now that the configure value is actually being used, if users need a longer timeout, they can add the elasticsearch.requestTimeout value to their config.

Copy link
Author

Choose a reason for hiding this comment

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

I put this in so it matched the default value in the kibana.yml config file. Agreed, 5 minutes is probably a bit excessive.

Copy link
Contributor

Choose a reason for hiding this comment

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

Huh, totally missed that. I think that's a typo in the config file, I think we should fix the value in the yml file and leave this value alone personally. The default in the es client is 30 seconds/30000.

Choose a reason for hiding this comment

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

goat

pingTimeout: number().default(30000),
startupTimeout: number().default(5000),
ssl: object({
Expand Down