diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-02-09 22:13:28 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-02-09 22:13:28 -0500 |
commit | 5eb5dab79fa6f24fe0a1b6739c510ac3a0f46e32 (patch) | |
tree | a11b03c8755c22173db8d63172cd62144f61d836 | |
parent | ba830a02d41cd9104bb3acd7c5a060cb45b1c619 (diff) | |
download | mongo-5eb5dab79fa6f24fe0a1b6739c510ac3a0f46e32.tar.gz |
SERVER-500 - use ports < 32867 and no http interface for sharding tests
-rw-r--r-- | shell/servers.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/servers.js b/shell/servers.js index c7a159057ce..6138b89669e 100644 --- a/shell/servers.js +++ b/shell/servers.js @@ -113,7 +113,7 @@ ShardingTest = function( testName , numServers , verboseLevel , numMongos ){ for ( var i=0; i<numServers; i++){ var conn = startMongod( { port : 30000 + i , dbpath : "/data/db/" + testName + i , - noprealloc : "" , smallfiles : "" , oplogSize : "2" } ); + noprealloc : "" , smallfiles : "" , oplogSize : "2" , "nohttpinterface" : ""} ); conn.name = "localhost:" + ( 30000 + i ); this._connections.push( conn ); @@ -124,7 +124,7 @@ ShardingTest = function( testName , numServers , verboseLevel , numMongos ){ this._mongos = []; - var startMongosPort = 39999; + var startMongosPort = 31000; for ( var i=0; i<(numMongos||1); i++ ){ var myPort = startMongosPort - i; var conn = startMongos( { port : startMongosPort - i , v : verboseLevel || 0 , configdb : this._configDB } ); @@ -173,7 +173,7 @@ ShardingTest.prototype.getOther = function( one ){ ShardingTest.prototype.stop = function(){ for ( var i=0; i<this._mongos.length; i++ ){ - stopMongoProgram( 39999 - i ); + stopMongoProgram( 31000 - i ); } for ( var i=0; i<this._connections.length; i++){ stopMongod( 30000 + i ); @@ -615,4 +615,4 @@ allocatePorts = function( n ) { for( var i = 31000; i < 31000 + n; ++i ) ret.push( i ); return ret; -}
\ No newline at end of file +} |