| |
|
If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
|
 |

12-19-10, 07:53
|
|
Registered User
|
|
Join Date: Jun 2009
Posts: 1
|
|
Does Postgres Supports Cluster like MySQL ?
|
|
Hi All,
I would like to know that does Postgres supports clustering concept like MySQL Clustering or Oracle RAC ?
We need to setup our server side architecture where we want a load balanced servers hitting to shared data storage, not in active/passive modes but working simultaneously. Replication is one way to create load balanced architecture but we don't want replication here. Is it any way to make a shared storage cluster for two or more postgres servers ??
Thanks in advance
|
|

12-22-10, 09:14
|
|
Registered User
|
|
Join Date: Oct 2010
Location: Orlando, FL
Posts: 184
|
|
Clustering
PostgreSQL is more commonly utilized in the enterprise environment so I can't see how it could NOT support clustering.
|
|

12-22-10, 09:27
|
|
Registered User
|
|
Join Date: Nov 2003
Posts: 2,408
|
|
|
|
Quote:
Originally Posted by CarlosinFL
Clustering
PostgreSQL is more commonly utilized in the enterprise environment so I can't see how it could NOT support clustering.
|
Well Postgres does indeed not support the same type of clustering as MySQL does. But most of the time a single PostgreSQL server scales a lot better than a single MySQL server, so "clustering" is usually only used for fail-over scenarios not so much for load-balancing
|
|

12-22-10, 09:54
|
|
Registered User
|
|
Join Date: Oct 2010
Location: Orlando, FL
Posts: 184
|
|
I've never used MySQL that much and assumed their clusters were only used for fail over and not load balancing. So you're saying basically:
MySQL Clustering = Load Balance & Fail Over
PostgreSQL Clustering = Fail Over ONLY
Is that correct?
|
|

12-22-10, 10:00
|
|
Registered User
|
|
Join Date: Nov 2003
Posts: 2,408
|
|
Quote:
Originally Posted by CarlosinFL
I've never used MySQL that much and assumed their clusters were only used for fail over and not load balancing. So you're saying basically:
MySQL Clustering = Load Balance & Fail Over
PostgreSQL Clustering = Fail Over ONLY
Is that correct?
|
I have never really used MySQL but that was my impression, yes.
But with 9.0 the hot standby server can also be used for queries, so you get some kind of load balancing out of the box.
But of course there are 3rd party solutions for PostgreSQL (pg-bouncer, pg-pool) that can give you load balancing as well. They are a bit cumbersome to setup though.
|
|

12-22-10, 10:02
|
|
Registered User
|
|
Join Date: Oct 2010
Location: Orlando, FL
Posts: 184
|
|
I've only got one PG server at work that gets backed up every hour but you're saying if I want to configure a 2nd cluster for fail over (kind of like RAID 1 mirror), I would need to use a 3rd party utility or is this native to PostgreSQL?
|
|

12-22-10, 10:12
|
|
Registered User
|
|
Join Date: Nov 2003
Posts: 2,408
|
|
|
|

12-23-10, 01:11
|
|
Super Moderator
|
|
Join Date: Jun 2004
Location: Arizona, USA
Posts: 1,797
|
|
The key point to remember is that postgresql scales up, handling hundreds of concurrent users on the individual server much better than MySQL, which shammat mentions in Post #3. Meaning, of course, that the need for load balancing is lower with pg.
Ref Page 6 of this server comparison at Tweakers.net. The gist of the article is a real-world hardware server comparison under various levels of concurrency, but in taking a look at the results, it's quite clear that pg scales quite nicely. MySQL, not so much.
__________________
Lou
使大吃一惊
"Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
"I have my standards. They may be low, but I have them!" - Bette Middler
"It's a book about a Spanish guy named Manual. You should read it." - Dilbert
|
|

12-23-10, 02:37
|
|
Registered User
|
|
Join Date: Nov 2003
Posts: 2,408
|
|
Quote:
Originally Posted by loquin
Ref Page 6 of this server comparison at Tweakers.net. The gist of the article is a real-world hardware server comparison under various levels of concurrency, but in taking a look at the results, it's quite clear that pg scales quite nicely. MySQL, not so much.
|
I do prefer PostgreSQL over MySQL for various reasons, but I wonder how this benchmark would look like with MySQL 5.5 as they claim that the write performance of InnoDB has been improved drastically.
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|