You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sharding:
clusterRole: shardsvr
foriin {1..4}
do
gcscp mongod.conf-shard shard-$i:
done
Configuracion del router, indicando cual/es son los config server:
sharding:
configDB: rsconfig/config-1:27019,config-2:27019,config-3:27019
for i in {1..2}
do
gcscp mongod.conf-router router-$i:
done
sudo systemctl start mongos.service
use sysadmingalicia
var before = new Date()
for (var i = 0; i<50000; i++) {
db.foo.insert({"number": 10000000000*Math.random(),"data":"janjndandanasnsafsanfnaskjdnjaskndjsandjsnadjksndjasndjksandjksandkjasndnaldaksndlasndlasndlkasndasndlsandjsandlansdlasndl"});
}
var after = new Date()
execution_mills = after - before
use sysadmingalicia
var before = new Date()
for (var i = 0; i<50000; i++) {
db.foo.insert({"number": 10000000000*Math.random(),"data":"janjndandanasnsafsanfnaskjdnjaskndjsandjsnadjksndjasndjksandjksandkjasndnaldaksndlasndlasndlkasndasndlsandjsandlansdlasndl"});
}
var after = new Date()
execution_mills = after - before
Eliminar 2 shards (volver a ejecutar para ver estado)