nicolae
||
Does this help? We have 6 master-master pairs of hash databases each
with a bnum value of 1 billion. We are planning for these to have
approximately 250 million documents in each database.
[tyrant@fs6 ~]$ tyrantmanager replication-status
10:46:38 INFO : storage-001 is replicating from tt1.collectiveintellect.com:11000
10:46:38 INFO : tt1.collectiveintellect.com:11000 is replicating from tt2.collectiveintellect.com:11001
10:46:38 INFO : Primary master : 10.10.12.15:11000 -> 89480612 records, primary since 2009-10-20 10:46:38
10:46:38 INFO : Failover master : 10.10.12.16:11001 -> 89480615 records, last replicated 0.102007 seconds ago
10:46:38 INFO :
10:46:39 INFO : storage-003 is replicating from tt1.collectiveintellect.com:11002
10:46:39 INFO : tt1.collectiveintellect.com:11002 is replicating from tt2.collectiveintellect.com:11003
10:46:39 INFO : Primary master : 10.10.12.16:11003 -> 87715752 records, primary since 2009-10-20 10:46:38
10:46:39 INFO : Failover master : 10.10.12.15:11002 -> 87715751 records, last replicated 0.036739 seconds ago
10:46:39 INFO :
10:46:39 INFO : storage-005 is replicating from tt1.collectiveintellect.com:11004
10:46:39 INFO : tt1.collectiveintellect.com:11004 is replicating from tt2.collectiveintellect.com:11005
10:46:39 INFO : Primary master : 10.10.12.15:11004 -> 176595425 records, primary since 2009-10-20 10:46:38
10:46:39 INFO : Failover master : 10.10.12.16:11005 -> 176595437 records, last replicated 0.141081 seconds ago
10:46:39 INFO :
10:46:39 INFO : storage-007 is replicating from tt1.collectiveintellect.com:11006
10:46:39 INFO : tt1.collectiveintellect.com:11006 is replicating from tt2.collectiveintellect.com:11007
10:46:39 INFO : Primary master : 10.10.12.15:11006 -> 176178472 records, primary since 2009-10-20 10:46:38
10:46:39 INFO : Failover master : 10.10.12.16:11007 -> 176178497 records, last replicated 0.126130 seconds ago
10:46:39 INFO :
10:46:39 INFO : storage-009 is replicating from tt1.collectiveintellect.com:11008
10:46:39 INFO : tt1.collectiveintellect.com:11008 is replicating from tt2.collectiveintellect.com:11009
10:46:39 INFO : Primary master : 10.10.12.16:11009 -> 88625774 records, primary since 2009-10-20 10:46:38
10:46:39 INFO : Failover master : 10.10.12.15:11008 -> 88625774 records, last replicated 0.012528 seconds ago
10:46:39 INFO :
10:46:39 INFO : storage-011 is replicating from tt1.collectiveintellect.com:11010
10:46:39 INFO : tt1.collectiveintellect.com:11010 is replicating from tt2.collectiveintellect.com:11011
10:46:39 INFO : Primary master : 10.10.12.16:11011 -> 89604842 records, primary since 2009-10-20 10:46:38
10:46:39 INFO : Failover master : 10.10.12.15:11010 -> 89604831 records, last replicated 0.233051 seconds ago
This is a sample commandline for each of our tyrants.
[tyrant@fs6 ~]$ tyrantmanager start --dry-run storage-001
10:51:56 INFO : Starting storage-001 : ttserver -host 0.0.0.0 -port 11001 -thnum 8 \
-tout 15 -dmn -pid /data10/storage-001/storage-001.pid \
-log /data10/storage-001/log/storage-001.log -le \
-ulog /data10/storage-001/ulog -ulim 1g -sid 11001 \
-mhost tt1.collectiveintellect.com -mport 11000 \
-rts /data10/storage-001/storage-001.rts -mask vanish \
/data10/storage-001/data/storage-001.tch#opts=ld#mode=wc#bnum=1000000000 : (dry-run)
And here is the directory layout for each tyrant instance:
Each tyrant gets its own disk for its data, and at some point we may
split out update logs to separate disks also.
[tyrant@fs6 /]$ tree -I *.ulog /data10/storage-001
/data10/storage-001
|-- config.rb
|-- data
| `-- storage-001.tch
|-- log
| `-- storage-001.log
|-- lua
|-- storage-001.pid
|-- storage-001.rts
`-- ulog
I keep meaning to put together a blog post about this setup.
enjoy,
-jeremy
--
========================================================================
Jeremy Hinegardner jer...@hinegardner.org