Skip to content

Commit

Permalink
Skip plugin checks on hosted Elasticsearch
Browse files Browse the repository at this point in the history
The AWS Elasticsearch service does not expose the list of installed
plugins, so our plugin checking code breaks.

Fortunately, for now, it has the plugin we need already installed.

Note that in our testing, Pelias performs significantly worse on the
hosted Elasticsearch compared to regular EC2 instances.
See pelias/pelias#402 (comment)
for more details

Fixes #213
  • Loading branch information
orangejulius committed Mar 20, 2017
1 parent f55dc3a commit aaf5891
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/check_plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ client.nodes.info( null, function( err, res ){
for( var uid in res.nodes ){

var node = res.nodes[uid];

// Amazon's hosted Elasticsearch does not have the plugins property
// but has the plugins we need
if (!node.plugins) {
continue;
}

console.log( util.format( "\033[1;37mnode '%s' [%s]\033[0m", node.name, uid ) );

// per node failures
Expand Down

0 comments on commit aaf5891

Please sign in to comment.