Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using mlaunch with 3.4 #461

Closed
Steve-Hand opened this issue Nov 2, 2016 · 0 comments
Closed

Using mlaunch with 3.4 #461

Steve-Hand opened this issue Nov 2, 2016 · 0 comments
Assignees
Milestone

Comments

@Steve-Hand
Copy link
Contributor

Steve-Hand commented Nov 2, 2016

Using MongoDB version 3.4.0-rc2.

$ mlaunch init --dir /data/SF-388794 --sharded tic tac toe --single --port 28000
launching: mongod on port 28001
launching: mongod on port 28002
launching: mongod on port 28003
launching: config server on port 28004
launching: mongos on port 28000
can't start process, return code 2. tried to launch: mongos --logpath /data/SF-388794/mongos.log --port 28000 --configdb Stevens-MacBook-Pro-2.local:28004 --logappend   --fork

$ psmongo 
USER              PID  %CPU %MEM      VSZ    RSS   TT  STAT STARTED      TIME COMMAND
shand           36504   0.3  0.1  2634344  20812   ??  S     8:35AM   0:05.23 mongod --dbpath /data/SF-388794/config/db --logpath /data/SF-388794/config/mongod.log --port 28004 --logappend --fork --configsvr
shand           36498   0.3  0.1  2627616  19704   ??  S     8:35AM   0:05.02 mongod --dbpath /data/SF-388794/tac/db --logpath /data/SF-388794/tac/mongod.log --port 28002 --logappend --fork --shardsvr
shand           36495   0.4  0.1  2627616  19692   ??  S     8:35AM   0:05.08 mongod --dbpath /data/SF-388794/tic/db --logpath /data/SF-388794/tic/mongod.log --port 28001 --logappend --fork --shardsvr
shand           36501   0.3  0.1  2627616  19788   ??  S     8:35AM   0:05.06 mongod --dbpath /data/SF-388794/toe/db --logpath /data/SF-388794/toe/mongod.log --port 28003 --logappend --fork --shardsvr

$ mongos --logpath /data/SF-388794/mongos.log --port 28000 --configdb Stevens-MacBook-Pro-2.local:28004 --logappend
BadValue: configdb supports only replica set connection string
try 'mongos --help' for more information

second try

$ mlaunch init --dir /data/SF-388794 --sharded tic tac toe --replicaset  --port 28000 --config 3     
launching: mongod on port 28001
launching: mongod on port 28002
launching: mongod on port 28003
launching: mongod on port 28004
launching: mongod on port 28005
launching: mongod on port 28006
launching: mongod on port 28007
launching: mongod on port 28008
launching: mongod on port 28009
launching: config server on port 28010
launching: config server on port 28011
launching: config server on port 28012
replica set 'tic' initialized.
replica set 'tac' initialized.
replica set 'toe' initialized.
launching: mongos on port 28000
can't start process, return code 2. tried to launch: mongos --logpath /data/SF-388794/mongos.log --port 28000 --configdb Stevens-MacBook-Pro-2.local:28010,Stevens-MacBook-Pro-2.local:28011,Stevens-MacBook-Pro-2.local:28012 --logappend   --fork

$ psmongo
USER              PID  %CPU %MEM      VSZ    RSS   TT  STAT STARTED      TIME COMMAND 
shand           37038   0.4  0.1  2624888  18256   ??  S     8:53AM   0:00.24 mongod --dbpath /data/SF-388794/config1/db --logpath /data/SF-388794/config1/mongod.log --port 28010 --logappend --fork --configsvr
shand           37041   0.5  0.1  2625048  18308   ??  S     8:53AM   0:00.24 mongod --dbpath /data/SF-388794/config2/db --logpath /data/SF-388794/config2/mongod.log --port 28011 --logappend --fork --configsvr
shand           37044   0.5  0.1  2628112  20040   ??  S     8:53AM   0:00.25 mongod --dbpath /data/SF-388794/config3/db --logpath /data/SF-388794/config3/mongod.log --port 28012 --logappend --fork --configsvr
shand           37020   0.8  0.1  2733108  22416   ??  S     8:52AM   0:00.32 mongod --replSet tac --dbpath /data/SF-388794/tac/rs1/db --logpath /data/SF-388794/tac/rs1/mongod.log --port 28004 --logappend --fork --shardsvr
shand           37023   0.8  0.1  2665992  22240   ??  S     8:52AM   0:00.31 mongod --replSet tac --dbpath /data/SF-388794/tac/rs2/db --logpath /data/SF-388794/tac/rs2/mongod.log --port 28005 --logappend --fork --shardsvr
shand           37026   0.9  0.1  2665992  22384   ??  S     8:52AM   0:00.30 mongod --replSet tac --dbpath /data/SF-388794/tac/rs3/db --logpath /data/SF-388794/tac/rs3/mongod.log --port 28006 --logappend --fork --shardsvr
shand           37011   0.8  0.1  2733108  22452   ??  S     8:52AM   0:00.31 mongod --replSet tic --dbpath /data/SF-388794/tic/rs1/db --logpath /data/SF-388794/tic/rs1/mongod.log --port 28001 --logappend --fork --shardsvr
shand           37014   0.8  0.1  2666516  22400   ??  S     8:52AM   0:00.31 mongod --replSet tic --dbpath /data/SF-388794/tic/rs2/db --logpath /data/SF-388794/tic/rs2/mongod.log --port 28002 --logappend --fork --shardsvr
shand           37017   0.7  0.1  2665992  22468   ??  S     8:52AM   0:00.31 mongod --replSet tic --dbpath /data/SF-388794/tic/rs3/db --logpath /data/SF-388794/tic/rs3/mongod.log --port 28003 --logappend --fork --shardsvr
shand           37029   0.7  0.1  2733108  22080   ??  S     8:53AM   0:00.29 mongod --replSet toe --dbpath /data/SF-388794/toe/rs1/db --logpath /data/SF-388794/toe/rs1/mongod.log --port 28007 --logappend --fork --shardsvr
shand           37032   0.6  0.1  2665992  22228   ??  S     8:53AM   0:00.30 mongod --replSet toe --dbpath /data/SF-388794/toe/rs2/db --logpath /data/SF-388794/toe/rs2/mongod.log --port 28008 --logappend --fork --shardsvr
shand           37035   0.8  0.1  2665992  22420   ??  S     8:53AM   0:00.30 mongod --replSet toe --dbpath /data/SF-388794/toe/rs3/db --logpath /data/SF-388794/toe/rs3/mongod.log --port 28009 --logappend --fork --shardsvr

Try starting explicitly using the "--csrs" parameter

$ killall mongod       
$ rm -fr /data/SF-388794                                                                        
$ mkdir /data/SF-388794 

$ mlaunch init --dir /data/SF-388794 --sharded tic tac toe --replicaset  --port 28000 --config 3 --csrs
 
 * The '--csrs' option requires MongoDB version 3.2.0 or greater, the current version is 0-rc2.

There are two problems.

  1. Because of the version check issue, mlaunch version check fails silently and leads to unexpected side effects #451 , mlaunch does not automatically use the "-csrs" parameter, which is required because this is version 3.4., and create a CSRS cluster.
  2. If we are using 3.4, then we have to use the the replica set connection string parameter for the mongos router

For example:

--configdb <replicasetName>/<config1>,<config2>...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants