- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Redhat clustering for squid
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2009 12:28 AM
тАО02-19-2009 12:28 AM
I am trying to create a redhat cluster for squid as cluster service. My requirement is like this.
I would have 2 servers and both the servers would have squid running locally and the cache data is also independed each other, only the virtual IP is common for both the nodes.Only one node will server the request at a time.
Incase any one of the node is going down the virtual IP should get failed over to the other node.
Please let me know whether it is possible to create one like this? and if yes please any one could share the steps with me?
I have configured a basic cluster and my cmanager daemon is running.
clustat
msg_open: No such file or directory
Member Status: Quorate
Member Name ID Status
------ ---- ---- ------
MYUSVWSHQLABHA2 1 Online
MYUSVWSHQLABHA1 2 Online, Local
Thanks,
Adithyan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2009 02:51 AM
тАО02-19-2009 02:51 AM
Re: Redhat clustering for squid
In case of a failover cluster, then is more simple, just create a IP address resource and attach to it a script resource, that points to the /etc/rc.d/init.d/squid script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2009 03:05 AM
тАО02-19-2009 03:05 AM
Re: Redhat clustering for squid
Thanks for your quick responce. I have a question here, can I configure the fail over cluster without a shared storage? If yes, do you have any sample config file?
And do you know how to check the heartbeat status in redhat cluster and how would I dedicate an interface for heartbeat?
Thanks again for your support.
Regds, Adi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2009 03:22 AM
тАО02-19-2009 03:22 AM
Re: Redhat clustering for squid
Yes you can, but I don't have a sample config file. Just use system-config-cluster.
>>> And do you know how to check the heartbeat status in redhat cluster and how would I dedicate an interface for heartbeat?
I don't understand this question. You should take a look at the red hat cluster suite documentation available at the red hat page.
One more thing, if your service will be started by red hat cluster, ensure to disable it from the start at boot with the chkconfig command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2009 07:02 AM
тАО02-19-2009 07:02 AM
SolutionWith Red Hat Clustering this is possible.
You build the two node cluster as you have done.
What you need to add is a sync script that copies the squid cache data from the active node to the passive node.
rsync -avH --stats --delete -e ssh /var/httpd/ $othernode:/var/httpd/
The variable othernode is set in a configuration file. The rsync command which saves a lot of time with files that have not changed uses ssh (to maintain encrypted data stream) from the active node to the passive node.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2009 04:14 AM
тАО02-20-2009 04:14 AM
Re: Redhat clustering for squid
Thanks a ton for your advice.
Here I am not looking for the cache data to be copied between servers. I just need to do the IP fail over. My confusion here is, how to assign the virtual IP address to the proxy?
I have 2 proxy servers running on both the servers. Normally the clients access the proxy using either their name or IP address, how would I assign a virtual IP for it so that both the servers can serve (One at a time) clients using this VIP. This may be very simple in cluster but honestly I do not have any idea in doing this. If you could give me the steps it would be really grateful!
Regards,
Adi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2009 05:10 AM
тАО02-20-2009 05:10 AM
Re: Redhat clustering for squid
All you need to do is set up a resource as an IP address, and put it into a failover domain that includes both nodes or:
You can include the IP address with the squid package to insure the IP address and squid are always running on the same node.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com