亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標(biāo)題: 使用Bucardo從PostgreSQL同步數(shù)據(jù)到MongoDB [打印本頁]

作者: 三里屯搖滾    時間: 2012-02-23 18:59
標(biāo)題: 使用Bucardo從PostgreSQL同步數(shù)據(jù)到MongoDB
使用Bucardo從PostgreSQL同步數(shù)據(jù)到MongoDB





Bucardo 是一個PostgreSQL的異步同步工具,它支持任意方式的主從同步,multi-master或者multi-slave等。而最近Bucardo的一個版本中將數(shù)據(jù)同步到其他存儲系統(tǒng)。比如下面這個同步到MongoDB的例子,其使用也非常簡單,下面是截取的部分代碼,更具體的安裝測試全教程請點下面來源。

來源地址:MongoDB replication from Postgres using Bucardo

.....
$
  1. bucardo add sync mongotest  herd=therd  dbs=tgroup  ping=false
  2. Added sync "mongotest"

  3. $ bucardo start
  4. Checking for existing processes
  5. Starting Bucardo

  6. $ pgbench -t 10000 btest1
  7. starting vacuum...end.
  8. transaction type: TPC-B (sort of)
  9. number of transactions actually processed: 10000/10000
  10. ...
  11. tps = 503.300595 (excluding connections establishing)
  12. $ pgbench -t 10000 btest2
  13. number of transactions actually processed: 10000/10000
  14. ...
  15. tps = 408.059368 (excluding connections establishing)
  16. $ bucardo kick mongotest
  17. .....
復(fù)制代碼

作者: 小鬼萌萌控    時間: 2012-02-24 17:06
謝謝你謝謝分享




歡迎光臨 Chinaunix (http://www.72891.cn/) Powered by Discuz! X3.2