@ -60,7 +60,7 @@ Send a HEAD request to `/` and allow up to 1 second for it to complete.
|
|||||||
```js
|
```js
|
||||||
client.ping({
|
client.ping({
|
||||||
// ping usually has a 3000ms timeout
|
// ping usually has a 3000ms timeout
|
||||||
requestTimeout: Infinity
|
requestTimeout: 1000
|
||||||
}, function (error) {
|
}, function (error) {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.trace('elasticsearch cluster is down!');
|
console.trace('elasticsearch cluster is down!');
|
||||||
|
|||||||
Reference in New Issue
Block a user