Skip to content

nimbus-cloud/mongodb-boshrelease

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Before becreating release please download mongodb-4.0.23-src-bin.tgz from https://s4-viewer.cf.paas.bskyb.com/mongodb/mongodb-4.0.23-src-bin.tgz, remane it to mongodb-4.0.23.tgz and place it in to /src/mongod/ directory.

Below should be run only on brand new deployment.

To bootstrap replica set and create an admin user:

  1. Pick a non-arbiter node after all nodes are deployed

  2. Ssh into that node

  3. Bootstrap replica set:

    export PATH=$PATH:/var/vcap/packages/mongod/ mongo /var/vcap/jobs/mongod/bootstrap/replica_set.js

  4. Wait for a while for the replica set to initiate, the node on which bootstrap was done will become primary after few seconds

  5. Create admin user:

    mongo /var/vcap/jobs/mongod/bootstrap/create_admin_user.js

Currently I cannot think of a way of automating this, hence these two scripts has to be run manually.

Automation is problematic because:

  1. These two scripts should be run when all vms have been deployed. See (1)
  2. Because we have a replica set name in the config, it is not possible to create admin user before replica set is bootstrapped.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •