Test Postgresql hot standby + replication and integrated Postgresql database in store-cluster sample. Add a front cache component which can be used to wire a cache component and a database component.

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@985799 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jsdelfino 2010-08-16 06:15:24 +00:00
commit 16f96409b9
44 changed files with 912 additions and 174 deletions

View file

@ -22,15 +22,25 @@
../../components/cache/memcached-start 11212
../../components/cache/memcached-start 11213
# Start three app servers
# Start three app servers, with a master database and
# two hot standby databases
./server-conf tmp/server1 8101
./sqldb-master-conf tmp/server1 5432
../../components/sqldb/pgsql-start tmp/server1
../../modules/http/httpd-start tmp/server1
sleep 1
./server-conf tmp/server2 8102
./sqldb-standby-conf tmp/server2 localhost 5432 8101 5433
../../components/sqldb/pgsql-start tmp/server2
../../modules/http/httpd-start tmp/server2
sleep 1
./server-conf tmp/server3 8103
./sqldb-standby-conf tmp/server3 localhost 5432 8101 5434
../../components/sqldb/pgsql-start tmp/server3
../../modules/http/httpd-start tmp/server3
sleep 1
# Start two proxy balancers
./proxy-conf tmp/proxy1 8091