- 论坛徽章:
- 0
|
当postgresql数据量达到100万条时如何优化 急!急!急!
最好的解决方案是
做集群,PostgreSQL 可以用Postgres-R 来做数据实实peer to peer
复制,同步多台数据库。
然后数据库与数据库再做HA
用LVS 做调度服务器,实现分流,负载均衡。
这个方案如何能成功。完全可以与MS SQL ,Sybase(中型数据库)一拼。
对数据库容量方面。PostgreSQL 1T 应该没问题,但1T以上我就不知上,PG手册上写1T没问题。
我也在实验当中:(
上面的方案是可行的。
我自己瞎搞,主要是英文不好,看不懂手册,目前还没装上Postgre-R,有兴趣去下面网址看看:
PostgreSQL Manual: http://www.postgresql.org/docs/
PostgreSQL JDBC Drivers: http://jdbc.postgresql.org/
http://www.cs.mcgill.ca/~kemme/disl/replication.html
http://gborg.postgresql.org/genpage?replication_72install
MD5:http://userpages.umbc.edu/~mabzug1/cs/md5/md5.html
OpenLDAP: http://www.openldap.org/
High-Availability Linux Project: http://linux-ha.org/
LVS : http:///linuxvirtualserver.org/ |
|