Jump to content
aioshin

High Availability Server - 2 node cluster

Recommended Posts

Hi,

 

Can anyone suggest a good setup of server + database clustering. The involve are HTTP and PostgreSql. Im planning to setup an active passive environment, though Google would display lots of results on the topic, but maybe some one here has a good advice on which solution to go.

 

here's the scenario:

 

2 centos server running httpd and postrgresql

database and apps content is mounted via iscsi at storage MSA2312i.

 

not a best practice though since apps like httpd runs along with postgres, but its already there and currently not yet separated.

 

Really appreciate if someone can point me to a good solution or advice.

 

thanks

 

:)

Share this post


Link to post
Share on other sites

You can do it with just these two machines, although not ideal. Ideally I would have had four servers in this scenario. Two providing the active/standby cluster machines with the VIP address bound to them. The remaining two being the real servers, which have the httpd and postgresql on them. The first two servers would redirect and load balance between the two back-end (real) servers. If you only have these two servers, then you can run the high-availability daemon on both machines, but then you don't really have a cluster as such. All you are doing is just monitoring either server, and then bringing up the standby server if heartbeat fails on the primary one.

 

So, if you understand what I put, I can help further if I know if you have more than just these two servers or not.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...