https://www.youtube.com/watch?feature=player_embedded&v=AzrQRCSNLrM
https://www.youtube.com/watch?feature=player_embedded&v=Im9LIyW0SbI
https://www.youtube.com/watch?feature=player_embedded&v=MSO6WLUdq_M
https://www.youtube.com/watch?feature=player_embedded&v=7-rKn2zsZbY
https://www.youtube.com/watch?feature=player_embedded&v=rq4Ex4zIS5c
https://www.youtube.com/watch?feature=player_embedded&v=65ATMbOpVo0
https://www.youtube.com/watch?feature=player_embedded&v=v8IGPu8XLKo
https://www.youtube.com/watch?feature=player_embedded&v=FOdl1lM5cR8
https://www.youtube.com/watch?feature=player_embedded&v=2S_hVFkCwyo
https://www.youtube.com/watch?feature=player_embedded&v=2q-xm4N2I8E
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| M202 - 5.3 HOMEWORK | |
| // sudo mkdir /data | |
| // sudo mkdir /data/db/ | |
| // sudo chown -R batman:batman /data/db/ | |
| // mongo -nodb | |
| MongoDB shell version: 2.6.1 | |
| > cluster = new ShardingTest({shards: 2, chunksize: 1, rs : {nodes : [{}, {}, {arbiter: true}]} }); | |
| _______________________________________________________________________________________________________________________ | |
| En otro terminal. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Homework: 4.2: Optimizing a secondary for special case reads | |
| La idea de este ejercicio es crear un índice solo en el secudario de nuestro conjunto de replicas. | |
| Para esto debemos iniciar el secundario en otro puerto y sin el parametro de replica añadir el índice y luego volverlo a iniciar como replica en el puerto que corresponde. | |
| batman@baticomputer:~# mkdir proyectos/mongodb/mongod-pri | |
| batman@baticomputer:~# mkdir proyectos/mongodb/mongod-sec | |
| batman@baticomputer:~# mkdir proyectos/mongodb/mongod-arb | |
| batman@baticomputer:~# mongod --port 27017 --dbpath /home/batman/proyectos/mongodb/mongod-pri --replSet rs0 --smallfiles --oplogSize 128 | |
| batman@baticomputer:~# mongod --port 27018 --dbpath /home/batman/proyectos/mongodb/mongod-sec --replSet rs0 --smallfiles --oplogSize 128 | |
| batman@baticomputer:~# mongod --port 27019 --dbpath /home/batman/proyectos/mongodb/mongod-arb --replSet rs0 --smallfiles --oplogSize 128 |
Videos M202 Week 04 – Chapter 4: Fault Tolerance and Availability
https://www.youtube.com/watch?feature=player_embedded&v=L2tv_OC31uQ
https://www.youtube.com/watch?feature=player_embedded&v=LH22a2FATho
https://www.youtube.com/watch?feature=player_embedded&v=fqcDrfwvygU
https://www.youtube.com/watch?feature=player_embedded&v=LW_mlmvwWDM
https://www.youtube.com/watch?feature=player_embedded&v=-kzJ44CbCsM
https://www.youtube.com/watch?feature=player_embedded&v=Vxmu2a60t0g
https://www.youtube.com/watch?feature=player_embedded&v=K-HCSA83iqI
https://www.youtube.com/watch?feature=player_embedded&v=RFsNyf1mBhs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mongod --config mongod.df30592c9ae3.conf | |
| mongodump -d local -c oplog.rs -o oplogD --port 30001 | |
| mkdir data | |
| mongo local --port 30001 | |
| MongoDB shell version: 2.6.1 | |
| connecting to: 127.0.0.1:30001/local | |
| > db.oplog.rs.findOne({o: {drop: "backupColl"}}) | |
| { | |
| "ts" : Timestamp(1398778745, 1), | |
| "h" : NumberLong("-4262957146204779874"), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <VirtualHost *:8080> | |
| ServerAlias ophal | |
| ServerName apesol.org.pe | |
| DocumentRoot /var/www/ophal | |
| <Directory /> | |
| Options FollowSymLinks | |
| AllowOverride None | |
| </Directory> | |
| <Directory /var/www/ophal/> | |
| Options Indexes FollowSymLinks MultiViews +ExecCGI |
NewerOlder