Open vindimy opened 10 years ago
you should set those to nil... or I guess we can just remove them all.
I think the attributes should be removed in mongodb::mongos
recipe, since sometimes they're set at environment or role level..
See what we did in #212 for dbpath
.
I guess the newer version of mongos
is more strict about what it allows.
this seems especially relevant to #310
I got this when I run mongos:
Error parsing INI config file: unrecognised option 'chunkSize'
if I comment out chunkSize in the mongos.conf, I got the following:
FailedToParse: mirrored config server connections are not supported; for config server replica sets be sure to use the replica set connection string
My mongos.conf is as below:
configdb=mongo1:20000,mongo2:20000,mongo3:20000
port=28885
#chunkSize=100
logpath=/usr/local/mongodb/logs/mongos1.log
logappend=true
fork=true
Thanks.
We've ran into this issue when provisioning hosts with
recipe[mongodb::mongos]
:mongos
doesn't supportnojournal
,rest
, andsmallfiles
options, but they're set as default attributes in the cookbook.We've used a helper cookbook to work around the issue, but ultimately
mongodb
cookbook should have logic to avoid setting these attributes ifrecipe[mongodb::mongos]
is used: