LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-01-2013, 07:50 AM   #16
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90

Quote:
Do you think is best with crontab or group it with VIP?
Well, actually, no but it's your ass so.....
 
Old 03-01-2013, 07:53 AM   #17
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
I mean, will you be able to make sure that each node on its own will be able to recognize when to take over the IP and not make the mistake of either leaving the IP unattended or both nodes taking over it? pacemaker provides the infrastructure so that those cases don't happen (unless there's a catastrophe involved).
 
Old 03-04-2013, 04:42 AM   #18
arrals.vl
Member
 
Registered: May 2012
Posts: 48

Original Poster
Rep: Reputation: Disabled
Hi,

would you please provide me any example of an lsb script that monitors tomcat application if it is running or maybe another service, not only tomcat?

thank you a lot!
 
Old 03-04-2013, 07:32 AM   #19
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
Well, you have plenty of examples in /etc/init.d, for sure.

The problem is creating your script so that it is "lsb" compliant because, from what I read on pacemaker's documentation, some of those scripts do not interface correctly making pacemaker misbehave.

Here's all the magic explained:
http://clusterlabs.org/doc/en-US/Pac...ed/ap-lsb.html
http://refspecs.linuxbase.org/LSB_3....iscrptact.html

The trick for my suggestion to create an lsb script is that you really don't have to start/stop tomcat. It will be running all the time. You just tell pacemaker that you started/stopped it (without really starting/stopping it) and it will do. What you have to do is perform a _test_ of the tomcat service in status and tell pacemaker about it (is it running? Is it not?). That's it.
 
Old 03-06-2013, 10:11 AM   #20
arrals.vl
Member
 
Registered: May 2012
Posts: 48

Original Poster
Rep: Reputation: Disabled
Hi, i was reading this post http://foaa.de/old-blog/2010/10/intr...s-all-the-same . Its something about clones and scores...
It seems like this could do for my need..
would you please help me a little bit?
 
Old 03-06-2013, 10:13 AM   #21
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
aaaahhhhh, well, pacemaker does it for me and I already gave you an idea what you could to use pacemaker. Want to go another route? That's fine but I don't have the time (nor the will) to sit down to learn how to do it some other way at this point. So have fun with what you found.
 
Old 03-06-2013, 10:16 AM   #22
arrals.vl
Member
 
Registered: May 2012
Posts: 48

Original Poster
Rep: Reputation: Disabled
no,it is actually about pacemaker.Clones and preference location scores are part of pacemaker configuration. I thought you could help me with these conf options.
 
Old 03-06-2013, 10:18 AM   #23
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
Oh.... no experience with that either so won't be of much help.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] gcc 4.6.3 'invalid operands to binary % ( have 'float' and 'float' ) error curious95 Programming 6 02-22-2013 08:51 AM
Tomcat Issue (multiple tomcat is running) vignesh4sh Linux - Server 4 02-04-2013 01:16 AM
shorewwall forwad public vip to private vip on same box shorif2000 Linux - Networking 0 06-08-2011 07:51 AM
Keepalived redirect public vip to private vip shorif2000 Linux - Networking 1 06-07-2011 10:33 AM
count digits of a float || convert float to string nadroj Programming 6 07-11-2005 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration