Skip to content

Commit fcb6a16

Browse files
erhastaple
authored andcommitted
SERVER-500 - use ports < 32867 and no http interface for sharding tests
1 parent 0745532 commit fcb6a16

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

shell/servers.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ ShardingTest = function( testName , numServers , verboseLevel , numMongos ){
113113

114114
for ( var i=0; i<numServers; i++){
115115
var conn = startMongod( { port : 30000 + i , dbpath : "/data/db/" + testName + i ,
116-
noprealloc : "" , smallfiles : "" , oplogSize : "2" } );
116+
noprealloc : "" , smallfiles : "" , oplogSize : "2" , "nohttpinterface" : ""} );
117117
conn.name = "localhost:" + ( 30000 + i );
118118

119119
this._connections.push( conn );
@@ -124,7 +124,7 @@ ShardingTest = function( testName , numServers , verboseLevel , numMongos ){
124124

125125

126126
this._mongos = [];
127-
var startMongosPort = 39999;
127+
var startMongosPort = 31000;
128128
for ( var i=0; i<(numMongos||1); i++ ){
129129
var myPort = startMongosPort - i;
130130
var conn = startMongos( { port : startMongosPort - i , v : verboseLevel || 0 , configdb : this._configDB } );
@@ -173,7 +173,7 @@ ShardingTest.prototype.getOther = function( one ){
173173

174174
ShardingTest.prototype.stop = function(){
175175
for ( var i=0; i<this._mongos.length; i++ ){
176-
stopMongoProgram( 39999 - i );
176+
stopMongoProgram( 31000 - i );
177177
}
178178
for ( var i=0; i<this._connections.length; i++){
179179
stopMongod( 30000 + i );
@@ -607,4 +607,4 @@ allocatePorts = function( n ) {
607607
for( var i = 31000; i < 31000 + n; ++i )
608608
ret.push( i );
609609
return ret;
610-
}
610+
}

0 commit comments

Comments
 (0)