Sha256: ca47b689ad3c49018ef547d119216757ec6cb4d4cd9626c06a972ea5a5883fb6

Contents?: true

Size: 121 Bytes

Versions: 44

Compression:

Stored size: 121 Bytes

Contents

rs.status().members.forEach(function (status) {
    if (status.health === 0) {
        rs.remove(status.name);
    }
});

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
cloud-mu-3.6.10 cookbooks/mu-mongo/files/default/remove_nodes.js
cloud-mu-3.6.9 cookbooks/mu-mongo/files/default/remove_nodes.js
cloud-mu-3.6.8 cookbooks/mu-mongo/files/default/remove_nodes.js
cloud-mu-3.6.7 cookbooks/mu-mongo/files/default/remove_nodes.js
cloud-mu-3.6.5 cookbooks/mu-mongo/files/default/remove_nodes.js
cloud-mu-3.6.4 cookbooks/mu-mongo/files/default/remove_nodes.js
cloud-mu-3.6.3 cookbooks/mu-mongo/files/default/remove_nodes.js
cloud-mu-3.5.1 cookbooks/mu-mongo/files/default/remove_nodes.js
cloud-mu-3.5.0 cookbooks/mu-mongo/files/default/remove_nodes.js
cloud-mu-3.4.0 cookbooks/mu-mongo/files/default/remove_nodes.js
cloud-mu-3.3.2 cookbooks/mu-mongo/files/default/remove_nodes.js
cloud-mu-3.3.1 cookbooks/mu-mongo/files/default/remove_nodes.js
cloud-mu-3.3.0 cookbooks/mu-mongo/files/default/remove_nodes.js
cloud-mu-3.2.0 cookbooks/mu-mongo/files/default/remove_nodes.js
cloud-mu-3.1.6 cookbooks/mu-mongo/files/default/remove_nodes.js
cloud-mu-3.1.5 cookbooks/mu-mongo/files/default/remove_nodes.js
cloud-mu-3.1.4 cookbooks/mu-mongo/files/default/remove_nodes.js
cloud-mu-3.1.3 cookbooks/mu-mongo/files/default/remove_nodes.js
cloud-mu-3.1.2 cookbooks/mu-mongo/files/default/remove_nodes.js
cloud-mu-3.1.2beta2 cookbooks/mu-mongo/files/default/remove_nodes.js