Skip to content

requestTimeout in 4.x #6331

@ich199

Description

@ich199

Hi,

I have been experiencing an issue where Kibana (4.4.1) returns an Unknown Error when running long queries/visualisations. If the Elasticsearch cluster takes longer than 120 seconds to return the results then the error occurs. This seems to be completely unaffected by the elasticsearch.requestTimeout and elasticsearch.shardTimeout settings in the kibana.yml config file. The error appears consistently at 120 seconds.

Initial investigates seem to show that the Kibana server process is closing the connection to the web browser due to a default NodeJS timeout of 120 seconds (https://nodejs.org/docs/v0.12.10/api/http.html#http_server_timeout) as the default value for routes.timeout.socket (http://hapijs.com/api/8.8.1#route-options) is being used in the hapi server connectionOptions in https://github.com/elastic/kibana/blob/4.x/src/server/http/index.js

There also appears to be a second default hapi timeout being hit in the elasticsearch proxy (https://github.com/elastic/kibana/blob/4.x/src/plugins/elasticsearch/lib/create_proxy.js) the if this issue is fixed, of 180 seconds, as described http://hapijs.com/api/8.8.1#built-in-handlers which causes a HTTP 504 Gateway timeout error.

All the changes I have made to remove these default timeouts are in my commmt ich199@86eb9d6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugFixes for quality problems that affect the customer experiencev4.5.0

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions