diff options
author | Aaron <aaron@10gen.com> | 2009-04-02 18:20:57 -0400 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-04-02 18:20:57 -0400 |
commit | 1866fed9c62ae0acd16c5c0a1059db31de009ddb (patch) | |
tree | 251c7632d2437508b23e5a4392de6b12d6278fe4 | |
parent | b372835b9183f3ea8cf2d0103c82805e52a497a1 (diff) | |
download | mongo-1866fed9c62ae0acd16c5c0a1059db31de009ddb.tar.gz |
disable http interface in repl tests
-rw-r--r-- | jstests/repl/pair1.js | 10 | ||||
-rw-r--r-- | jstests/repl/pair2.js | 8 | ||||
-rw-r--r-- | jstests/repl/repl1.js | 8 | ||||
-rw-r--r-- | jstests/repl/repl2.js | 6 | ||||
-rw-r--r-- | jstests/repl/repl3.js | 6 | ||||
-rw-r--r-- | jstests/repl/repl4.js | 4 | ||||
-rw-r--r-- | jstests/repl/repl5.js | 6 | ||||
-rw-r--r-- | jstests/repl/repl6.js | 12 | ||||
-rw-r--r-- | jstests/repl/repl7.js | 6 | ||||
-rw-r--r-- | jstests/repl/replacePeer1.js | 10 | ||||
-rw-r--r-- | jstests/repl/replacePeer2.js | 10 |
11 files changed, 43 insertions, 43 deletions
diff --git a/jstests/repl/pair1.js b/jstests/repl/pair1.js index 0ade808f9e5..a9405a718b9 100644 --- a/jstests/repl/pair1.js +++ b/jstests/repl/pair1.js @@ -60,9 +60,9 @@ doTest = function( signal ) { ports = allocatePorts( 3 ); // spec small oplog for fast startup on 64bit machines - a = startMongod( "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-arbiter" ); - l = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-left", "--pairwith", "127.0.0.1:" + ports[ 2 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1" ); - r = startMongod( "--port", ports[ 2 ], "--dbpath", "/data/db/" + baseName + "-right", "--pairwith", "127.0.0.1:" + ports[ 1 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1" ); + a = startMongod( "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-arbiter", "--nohttpinterface" ); + l = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-left", "--pairwith", "127.0.0.1:" + ports[ 2 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1", "--nohttpinterface" ); + r = startMongod( "--port", ports[ 2 ], "--dbpath", "/data/db/" + baseName + "-right", "--pairwith", "127.0.0.1:" + ports[ 1 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1", "--nohttpinterface" ); assert.soon( function() { am = ismaster( a ); @@ -90,7 +90,7 @@ doTest = function( signal ) { writeOne( l ); - r = startMongod( "--port", ports[ 2 ], "--dbpath", "/data/db/" + baseName + "-right", "--pairwith", "127.0.0.1:" + ports[ 1 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1" ); + r = startMongod( "--port", ports[ 2 ], "--dbpath", "/data/db/" + baseName + "-right", "--pairwith", "127.0.0.1:" + ports[ 1 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1", "--nohttpinterface" ); assert.soon( function() { lm = ismaster( l ); @@ -115,7 +115,7 @@ doTest = function( signal ) { return ( rm == 1 ); } ); - l = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-left", "--pairwith", "127.0.0.1:" + ports[ 2 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1" ); + l = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-left", "--pairwith", "127.0.0.1:" + ports[ 2 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1", "--nohttpinterface" ); assert.soon( function() { lm = ismaster( l ); diff --git a/jstests/repl/pair2.js b/jstests/repl/pair2.js index 9db915c84b2..ad9f0ac2160 100644 --- a/jstests/repl/pair2.js +++ b/jstests/repl/pair2.js @@ -25,9 +25,9 @@ doTest = function( signal ) { ports = allocatePorts( 3 ); // spec small oplog for fast startup on 64bit machines - a = startMongod( "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-arbiter" ); - l = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-left", "--pairwith", "127.0.0.1:" + ports[ 2 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1" ); - r = startMongod( "--port", ports[ 2 ], "--dbpath", "/data/db/" + baseName + "-right", "--pairwith", "127.0.0.1:" + ports[ 1 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1" ); + a = startMongod( "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-arbiter", "--nohttpinterface" ); + l = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-left", "--pairwith", "127.0.0.1:" + ports[ 2 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1", "--nohttpinterface" ); + r = startMongod( "--port", ports[ 2 ], "--dbpath", "/data/db/" + baseName + "-right", "--pairwith", "127.0.0.1:" + ports[ 1 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1", "--nohttpinterface" ); l.setSlaveOk(); assert.soon( function() { return ( ismaster( l ) == 0 && ismaster( r ) == 1 ); } ); @@ -45,7 +45,7 @@ doTest = function( signal ) { for( i = 0; i < 1000; ++i ) rz.save( { _id: new ObjectId(), i: i, b: big } ); - l = startMongoProgram( "mongod", "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-left", "--pairwith", "127.0.0.1:" + ports[ 2 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1" ); + l = startMongoProgram( "mongod", "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-left", "--pairwith", "127.0.0.1:" + ports[ 2 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1", "--nohttpinterface" ); l.setSlaveOk(); assert.soon( function() { return 1 == l.getDB( "admin" ).runCommand( { "resync" : 1 } ).ok; } ); diff --git a/jstests/repl/repl1.js b/jstests/repl/repl1.js index df1e60c8b02..00c70af89f0 100644 --- a/jstests/repl/repl1.js +++ b/jstests/repl/repl1.js @@ -19,8 +19,8 @@ doTest = function( signal ) { ports = allocatePorts( 2 ); // spec small oplog for fast startup on 64bit machines - m = startMongod( "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-master", "--master", "--oplogSize", "1" ); - s = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:" + ports[ 0 ] ); + m = startMongod( "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-master", "--master", "--oplogSize", "1", "--nohttpinterface" ); + s = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:" + ports[ 0 ], "--nohttpinterface" ); am = m.getDB( baseName ).a @@ -37,14 +37,14 @@ doTest = function( signal ) { for( i = 1000; i < 1010; ++i ) am.save( { _id: new ObjectId(), i: i } ); - s = startMongoProgram( "mongod", "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:" + ports[ 0 ] ); + s = startMongoProgram( "mongod", "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:" + ports[ 0 ], "--nohttpinterface" ); soonCount( 1010 ); as = s.getDB( baseName ).a assert.eq( 1, as.find( { i: 1009 } ).count() ); stopMongod( ports[ 0 ], signal ); - m = startMongoProgram( "mongod", "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-master", "--master", "--oplogSize", "1" ); + m = startMongoProgram( "mongod", "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-master", "--master", "--oplogSize", "1", "--nohttpinterface" ); am = m.getDB( baseName ).a for( i = 1010; i < 1020; ++i ) diff --git a/jstests/repl/repl2.js b/jstests/repl/repl2.js index 347492667a1..2bdb2021380 100644 --- a/jstests/repl/repl2.js +++ b/jstests/repl/repl2.js @@ -19,8 +19,8 @@ doTest = function( signal ) { ports = allocatePorts( 2 ); // spec small oplog to make slave get out of sync - m = startMongod( "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-master", "--master", "--oplogSize", "1" ); - s = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:" + ports[ 0 ] ); + m = startMongod( "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-master", "--master", "--oplogSize", "1", "--nohttpinterface" ); + s = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:" + ports[ 0 ], "--nohttpinterface" ); am = m.getDB( baseName ).a @@ -33,7 +33,7 @@ doTest = function( signal ) { for( i = 0; i < 1000; ++i ) am.save( { _id: new ObjectId(), i: i, b: big } ); - s = startMongoProgram( "mongod", "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:" + ports[ 0 ] ); + s = startMongoProgram( "mongod", "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:" + ports[ 0 ], "--nohttpinterface" ); assert.soon( function() { return 1 == s.getDB( "admin" ).runCommand( { "resync" : 1 } ).ok; } ); sleep( 10000 ); diff --git a/jstests/repl/repl3.js b/jstests/repl/repl3.js index dfee2bb9498..5ae571de179 100644 --- a/jstests/repl/repl3.js +++ b/jstests/repl/repl3.js @@ -19,8 +19,8 @@ doTest = function( signal ) { ports = allocatePorts( 2 ); // spec small oplog to make slave get out of sync - m = startMongod( "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-master", "--master", "--oplogSize", "1" ); - s = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:" + ports[ 0 ] ); + m = startMongod( "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-master", "--master", "--oplogSize", "1", "--nohttpinterface" ); + s = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:" + ports[ 0 ], "--nohttpinterface" ); am = m.getDB( baseName ).a @@ -32,7 +32,7 @@ doTest = function( signal ) { for( i = 0; i < 1000; ++i ) am.save( { _id: new ObjectId(), i: i, b: big } ); - s = startMongoProgram( "mongod", "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:" + ports[ 0 ], "--autoresync" ); + s = startMongoProgram( "mongod", "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:" + ports[ 0 ], "--autoresync", "--nohttpinterface" ); // after SyncException, mongod waits 10 secs. sleep( 12000 ); diff --git a/jstests/repl/repl4.js b/jstests/repl/repl4.js index f9cbdf4273c..12d45a98201 100644 --- a/jstests/repl/repl4.js +++ b/jstests/repl/repl4.js @@ -17,8 +17,8 @@ doTest = function() { ports = allocatePorts( 2 ); // spec small oplog for fast startup on 64bit machines - m = startMongod( "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-master", "--master", "--oplogSize", "1" ); - s = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:" + ports[ 0 ], "--only", "c" ); + m = startMongod( "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-master", "--master", "--oplogSize", "1", "--nohttpinterface" ); + s = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:" + ports[ 0 ], "--only", "c", "--nohttpinterface" ); cm = m.getDB( "c" ).c bm = m.getDB( "b" ).b diff --git a/jstests/repl/repl5.js b/jstests/repl/repl5.js index edb34a0e3e3..c54ea3cd800 100644 --- a/jstests/repl/repl5.js +++ b/jstests/repl/repl5.js @@ -17,17 +17,17 @@ doTest = function( signal ) { ports = allocatePorts( 2 ); - m = startMongod( "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-master", "--master", "--oplogSize", "1" ); + m = startMongod( "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-master", "--master", "--oplogSize", "1", "--nohttpinterface" ); ma = m.getDB( "a" ).a; for( i = 0; i < 10000; ++i ) ma.save( { i:i } ); - s = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:" + ports[ 0 ] ); + s = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:" + ports[ 0 ], "--nohttpinterface" ); soonCountAtLeast( "a", "a", 1 ); stopMongod( ports[ 1 ], signal ); - s = startMongoProgram( "mongod", "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:" + ports[ 0 ] ); + s = startMongoProgram( "mongod", "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:" + ports[ 0 ], "--nohttpinterface" ); sleep( 1000 ); ma.save( { i:-1 } ); diff --git a/jstests/repl/repl6.js b/jstests/repl/repl6.js index 53a7425db51..e9daa6cefa9 100644 --- a/jstests/repl/repl6.js +++ b/jstests/repl/repl6.js @@ -19,9 +19,9 @@ doTest = function( signal ) { ports = allocatePorts( 3 ); // spec small oplog for fast startup on 64bit machines - m = startMongod( "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-master", "--master", "--oplogSize", "1" ); - s1 = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave1", "--slave", "--source", "127.0.0.1:" + ports[ 0 ] ); - s2 = startMongod( "--port", ports[ 2 ], "--dbpath", "/data/db/" + baseName + "-slave2", "--slave", "--source", "127.0.0.1:" + ports[ 0 ] ); + m = startMongod( "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-master", "--master", "--oplogSize", "1", "--nohttpinterface" ); + s1 = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave1", "--slave", "--source", "127.0.0.1:" + ports[ 0 ], "--nohttpinterface" ); + s2 = startMongod( "--port", ports[ 2 ], "--dbpath", "/data/db/" + baseName + "-slave2", "--slave", "--source", "127.0.0.1:" + ports[ 0 ], "--nohttpinterface" ); am = m.getDB( baseName ).a @@ -47,14 +47,14 @@ doTest = function( signal ) { for( i = 1000; i < 1010; ++i ) am.save( { _id: new ObjectId(), i: i } ); - s1 = startMongoProgram( "mongod", "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave1", "--slave", "--source", "127.0.0.1:" + ports[ 0 ] ); + s1 = startMongoProgram( "mongod", "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave1", "--slave", "--source", "127.0.0.1:" + ports[ 0 ], "--nohttpinterface" ); soonCount( s1, 1010 ); as = s1.getDB( baseName ).a assert.eq( 1, as.find( { i: 1009 } ).count() ); stopMongod( ports[ 0 ], signal ); - m = startMongoProgram( "mongod", "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-master", "--master", "--oplogSize", "1" ); + m = startMongoProgram( "mongod", "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-master", "--master", "--oplogSize", "1", "--nohttpinterface" ); am = m.getDB( baseName ).a for( i = 1010; i < 1020; ++i ) @@ -63,7 +63,7 @@ doTest = function( signal ) { soonCount( s1, 1020 ); assert.eq( 1, as.find( { i: 1019 } ).count() ); - s2 = startMongoProgram( "mongod", "--port", ports[ 2 ], "--dbpath", "/data/db/" + baseName + "-slave2", "--slave", "--source", "127.0.0.1:" + ports[ 0 ] ); + s2 = startMongoProgram( "mongod", "--port", ports[ 2 ], "--dbpath", "/data/db/" + baseName + "-slave2", "--slave", "--source", "127.0.0.1:" + ports[ 0 ], "--nohttpinterface" ); soonCount( s2, 1020 ); as = s2.getDB( baseName ).a assert.eq( 1, as.find( { i: 1009 } ).count() ); diff --git a/jstests/repl/repl7.js b/jstests/repl/repl7.js index 06ae08cac0e..3219735b0dd 100644 --- a/jstests/repl/repl7.js +++ b/jstests/repl/repl7.js @@ -7,13 +7,13 @@ doTest = function( signal ) { ports = allocatePorts( 2 ); // spec small oplog for fast startup on 64bit machines - m = startMongod( "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-master", "--master", "--oplogSize", "1" ); + m = startMongod( "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-master", "--master", "--oplogSize", "1", "--nohttpinterface" ); for( n = "a"; n != "aaaaa"; n += "a" ) { m.getDB( n ).a.save( {x:1} ); } - s = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:" + ports[ 0 ] ); + s = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:" + ports[ 0 ], "--nohttpinterface" ); assert.soon( function() { return -1 != s.getDBNames().indexOf( "aa" ); @@ -21,7 +21,7 @@ doTest = function( signal ) { stopMongod( ports[ 1 ], signal ); - s = startMongoProgram( "mongod", "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:" + ports[ 0 ] ); + s = startMongoProgram( "mongod", "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:" + ports[ 0 ], "--nohttpinterface" ); assert.soon( function() { for( n = "a"; n != "aaaaa"; n += "a" ) { diff --git a/jstests/repl/replacePeer1.js b/jstests/repl/replacePeer1.js index 537c08241fe..fdae6cb4b0b 100644 --- a/jstests/repl/replacePeer1.js +++ b/jstests/repl/replacePeer1.js @@ -37,9 +37,9 @@ doTest = function( signal ) { ports = allocatePorts( 4 ); // spec small oplog for fast startup on 64bit machines - a = startMongod( "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-arbiter" ); - l = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-left", "--pairwith", "127.0.0.1:" + ports[ 3 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1" ); - r = startMongod( "--port", ports[ 3 ], "--dbpath", "/data/db/" + baseName + "-right", "--pairwith", "127.0.0.1:" + ports[ 1 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1" ); + a = startMongod( "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-arbiter", "--nohttpinterface" ); + l = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-left", "--pairwith", "127.0.0.1:" + ports[ 3 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1", "--nohttpinterface" ); + r = startMongod( "--port", ports[ 3 ], "--dbpath", "/data/db/" + baseName + "-right", "--pairwith", "127.0.0.1:" + ports[ 1 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1", "--nohttpinterface" ); assert.soon( function() { am = ismaster( a ); @@ -63,8 +63,8 @@ doTest = function( signal ) { stopMongod( ports[ 3 ], signal ); - l = startMongod( "--port", ports[ 2 ], "--dbpath", "/data/db/" + baseName + "-left", "--pairwith", "127.0.0.1:" + ports[ 3 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1" ); - r = startMongoProgram( "mongod", "--port", ports[ 3 ], "--dbpath", "/data/db/" + baseName + "-right", "--pairwith", "127.0.0.1:" + ports[ 2 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1" ); + l = startMongod( "--port", ports[ 2 ], "--dbpath", "/data/db/" + baseName + "-left", "--pairwith", "127.0.0.1:" + ports[ 3 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1", "--nohttpinterface" ); + r = startMongoProgram( "mongod", "--port", ports[ 3 ], "--dbpath", "/data/db/" + baseName + "-right", "--pairwith", "127.0.0.1:" + ports[ 2 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1", "--nohttpinterface" ); assert.soon( function() { am = ismaster( a ); diff --git a/jstests/repl/replacePeer2.js b/jstests/repl/replacePeer2.js index c6d0c1e73aa..77272508d71 100644 --- a/jstests/repl/replacePeer2.js +++ b/jstests/repl/replacePeer2.js @@ -37,9 +37,9 @@ doTest = function( signal ) { ports = allocatePorts( 4 ); // spec small oplog for fast startup on 64bit machines - a = startMongod( "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-arbiter" ); - l = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-left", "--pairwith", "127.0.0.1:" + ports[ 3 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1" ); - r = startMongod( "--port", ports[ 3 ], "--dbpath", "/data/db/" + baseName + "-right", "--pairwith", "127.0.0.1:" + ports[ 1 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1" ); + a = startMongod( "--port", ports[ 0 ], "--dbpath", "/data/db/" + baseName + "-arbiter", "--nohttpinterface" ); + l = startMongod( "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-left", "--pairwith", "127.0.0.1:" + ports[ 3 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1", "--nohttpinterface" ); + r = startMongod( "--port", ports[ 3 ], "--dbpath", "/data/db/" + baseName + "-right", "--pairwith", "127.0.0.1:" + ports[ 1 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1", "--nohttpinterface" ); assert.soon( function() { am = ismaster( a ); @@ -65,8 +65,8 @@ doTest = function( signal ) { stopMongod( ports[ 3 ], signal ); stopMongod( ports[ 1 ], signal ); - l = startMongoProgram( "mongod", "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-left", "--pairwith", "127.0.0.1:" + ports[ 2 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1" ); - r = startMongod( "--port", ports[ 2 ], "--dbpath", "/data/db/" + baseName + "-right", "--pairwith", "127.0.0.1:" + ports[ 1 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1" ); + l = startMongoProgram( "mongod", "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-left", "--pairwith", "127.0.0.1:" + ports[ 2 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1", "--nohttpinterface" ); + r = startMongod( "--port", ports[ 2 ], "--dbpath", "/data/db/" + baseName + "-right", "--pairwith", "127.0.0.1:" + ports[ 1 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1", "--nohttpinterface" ); assert.soon( function() { am = ismaster( a ); |