Configuring timeouts for the connection to Elasticsearch

Tweak the timeout settings for your connection to Elasticsearch in the application.properties file(s) of your IQ microservice(s).

Procedure

  1. In the configuration location of your IQ Combined Index and Query Services microservice, or alternatively, in each of the configuration locations of your IQ Index Service and your IQ Query Service, open application.properties for editing.
  2. Add lines of the format PROPERTY=VALUE, where PROPERTY is the property you want to set and VALUE is its desired value, in order to tweak the timeout behavior and number of connections. You can set any or all of the following properties:
    PropertyDescriptionDefault if not set
    es.client.max.connections.per.routeThe maximum number of connections for the route to the Elasticsearch server.30
    es.client.max.connectionThe maximum number of open connections the underlying HTTP client is allowed to have100
    es.client.connection.request.timeoutThe time (in milliseconds) before a connection request is considered to have timed out10000
    es.client.connect.timeoutThe time (in milliseconds) before a connect action is considered to have timed out10000
    es.client.socket.timeoutThe time (in milliseconds) before the socket is considered to have timed out30000
    es.client.max.retry.timeoutThe time (in milliseconds) before a connection retry is considered to have timed out30000