viewer/multies.js
// Ping (HEAD /) periodically to maintian a list of active ES nodes
Ping (HEAD /) periodically to maintian a list of active ES nodes
Ping ( HEAD / ) periodically to maintian a list of active ES nodes
function pingESNode (client, node) {
  return new Promise((resolve, reject) => {
    client.ping({}, {
      requestTimeout: 3 * 1000 
    }, function (error, { body: response }) {
      resolve({ isActive: !error, node: node });
    });
  });
}
function pingESNode ( client , node ) { return new Promise ( ( resolve , reject ) => { client . ping ( { } , { requestTimeout : 3 * 1000 } , function ( error , { body : response } ) { resolve ( { isActive : ! error , node : node } ) ; } ) ; } ) ; }
Ping (HEAD /) periodically to maintian a list of active ES nodes
Ping ( HEAD / ) periodically to maintian a list of active ES nodes
// ping usually has a 3000ms timeout