Constructs a single ElastiSearch connection. Connects to a randomly chosen server on the list.
If the connection fails, it will attempt to connect to each server on the list in turn until one succeeds. If it is unable to find an active server, it will throw a NoServerAvailable exception.
Failing servers are kept on a separate list and eventually retried, no sooner than retry_time seconds after failure.
List of ES servers with format: “hostname:port”
Default: [‘127.0.0.1:9500’]
Timeout in seconds (e.g. 0.5)
Default: None (it will stall forever)
Minimum time in seconds until a failed server is reinstated. (e.g. 0.5)
Default: 60
Max time in seconds before an open connection is closed and returned to the pool.
Default: None (Never recycle)
ES client
Constructs a single ElastiSearch connection. Connects to a randomly chosen server on the list.
If the connection fails, it will attempt to connect to each server on the list in turn until one succeeds. If it is unable to find an active server, it will throw a NoServerAvailable exception.
Failing servers are kept on a separate list and eventually retried, no sooner than retry_time seconds after failure.
List of ES servers with format: “hostname:port”
Default: [‘127.0.0.1:9500’]
Timeout in seconds (e.g. 0.5)
Default: None (it will stall forever)
Minimum time in seconds until a failed server is reinstated. (e.g. 0.5)
Default: 60
Max time in seconds before an open connection is closed and returned to the pool.
Default: None (Never recycle)
ES client