PostgreSQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesPostgreSQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 13th, 2001, 04:39 AM
immo immo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 3 immo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question

Simple question: I have set up a small web farm consisting of two Linux servers serving JSP content. There is a load-balancing traffic manager between the Internet and the servers. The servers access a small local database of usernames, passwords and preferences. How do I ensure that new registrations get into both copies of the database?

Ideas that have occurred to me so far include

a. A script that runs every five minutes to export all rows of the users table to CSV format, and to import the other server's export file. Not very scaleable and it would make it difficult to delete an account.
b. Stored trigger that replicates updates as and when they happen. How does one do this? Can the action be deferred if the mirror database happens to be down?
c. Modify the registration script to explicitly update both copies of the database. Laborious and again not really scaleable.
d. Use a master database, possibly on a third server, through which to funnel all updates.

Your thoughts would be appreciated.

Reply With Quote
  #2  
Old February 13th, 2001, 05:36 AM
immo immo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 3 immo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile Database Replication solution found

A colleague has pointed out that there is a PSQL replication server available from URL

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesPostgreSQL Help > Database Replication solution?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway