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
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