Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Wackamole failing after cable dis-/reconnect: msg#00016

apache.mod-wackamole.general

Subject: Re: Wackamole failing after cable dis-/reconnect

Ashima Munjal wrote:


Wednesday, October 22, 2003, 6:44:52 AM, Toralf Richter wrote:

TR> Hallo,

TR> I have a Spread/Wackamole setup which works at least testing-wise fine
TR> as long as I fail one machine of the two machine setup by completely
TR> rebooting it or by killing the Wackamole or Spread daemon.
TR> I the above case(s) the other machine in that litte cluster takes over
TR> with a very short outage only.

TR> The problem which I encounter is after disconnecting physically the
TR> network interface's cable on either machine and afterwards reconnecting
TR> that cable.
TR> Step by step I do the following, assuming initially both machines are
TR> fine an listening:
TR> 1. disconnect NIC cable of machine A (which is 2.4.20 kernel, German
TR> SUSE 8.2 distro)
TR> 2. watch syslog on the other machine B (which is RH 7.1, kernel TR> 2.4.2-2), wait for Wackamole to complete the arp spoof
TR> 3. watch ping -t on a Windows box on the same network. After TR> disconnection there is a brief outage of one-two seconds, then the other
TR> machine jumps in, and ping is receiving good responses again
TR> 3. reconnect NIC cable of machine A (where Spread daemon and Wackamole
TR> have continued running while the cable was off)
TR> 4. watch syslog of machine B, Wackamole brings the VIP down
TR> 5. watch syslog of machine A, there is no activity, apart from the
TR> notice that the cacle has been reconnected and a 100Mbit link has been
TR> established
TR> 6. watch ping -t on Windows box, ping receives destination host TR> unreachable messages originating from the physical IP of machine B.
TR> Since machine B has taken down the VIP it was listening to when the
TR> cable on machine A was reconnected it should not be able to respond to
TR> ping going to the VIP, which is OK.
TR> 7. doing arp -a on the Windows box, I see that the arp cache for the VIP
TR> has not been updated. One explanation that occurs to me is, that the arp
TR> spoof and subsequent update of the shared arp cache seem to happen only
TR> when a VIP comes up, not when its ging down. So in my case, the VIP on
TR> machine B goes down, without notifying anyone of it. And the VIP on
TR> machine A, which has been up right through during the physical TR> disconnect, does not sense any changes and therefore does not broadcast
TR> arp information as well.
TR> 8. If I purge the VIP from the Windows box arp cache, the ping comes
TR> right back with good responses.

TR> Well, I hope no one got bored with the lengthy explanation.
TR> I will post the important parts of my conf below.
TR> The Wackamole conf is different from most others I have seen. I want
TR> (have to) use only one IP Address as VIP for both machines in my little
TR> cluster, since booth machines have to exposed by that IP address, not at
TR> the same time (I know this wouldn't work) but intermittendly depending
TR> on their health state or running condition. The network has no DNS
TR> available, therefore I have to go with the IP.

TR> Spread (Conf is identical on both machines A and B)
TR> Spread_Segment 192.168.1.255:4803 {
TR> "192" 192.168.1.141
TR> ibm-linux 192.168.1.59
TR> }

TR> Wackamole (identical as well)
TR> # The Spread daemon we are going to connect to. It should be on the
TR> local box
TR> Spread = 4803
TR> SpreadRetryInterval = 2s
TR> # The group name
TR> Group = wack1
TR> # Named socket for online control
TR> Control = /var/run/wack.it

TR> # Denote the interface we prefer to have
TR> #prefer eth0:10.3.4.5/8
TR> #prefer { eth0:10.2.3.4/8 eth1:192.168.10.23/24 }

TR> # In most cases, I just don't care. Let wackamole decide.
TR> Prefer None

TR> # List all the virtual interfaces (ALL of them)
TR> VirtualInterfaces {
TR> # The following two lines have the same effect
TR> # en0:192.168.1.2/24
TR> { eth0:192.168.1.200/24 }

TR> # This is how you say 2 or more IPs are to be treated as a single
TR> # "set" or "virtual interface". If wackamole decides that this
TR> # machine will manage it, you are ensured to get ALL the ips in the
TR> # set.
TR> # { en1:10.0.0.1/8 en0:192.168.35.64/26 }
TR> }

TR> # Collect and broadcast the IPs in our ARP table every so often
TR> Arp-Cache = 1s

TR> # List who we will notify
TR> # Here the netblock (/24 or /28) can be deceptive. It is NOT a
TR> netmask
TR> # for a single IP. It is how one will describe that they want to
TR> # notify ALL IPs in a segment.
TR> Notify {
TR> # Let's notify our router:
TR> eth0:192.168.1.1/32
TR> # Notify out DNS servers
TR> # en1:10.0.0.10/32
TR> # en1:10.0.0.11/32
TR> # 10.0.0.0 -> 10.0.0.255, but only 128 notifications/sec
TR> # en0:10.0.0.0/24 throttle 128
TR> # Wackamole shares arp-cache across machines, this says to
TR> # notify every IP address in the aggregate shared arp-cache.
TR> arp-cache
TR> }
TR> balance {
TR> # This field is the maximum number of IP addresses that will move
TR> # from one wackamole to another during a round of balancing.
TR> AcquisitionsPerRound = 1
TR> # Time interval in each balancing round.
TR> interval = 1s
TR> }
TR> # How long it takes us to mature
TR> mature = 3s


TR> -----

TR> If anyone has got some time:
TR> Can that what I intend to do work at all?
TR> Any hints how I could work aroud my problem?

TR> If you haven't the time, thanks for reading anyway!




Hi Toralf,
As you said your network has no dns available. Somewhere in
wackamole we obtain a index for each machines based on dns information
and when that is not availabe wackamole tends to screw up. If you care
to dig into the code to fix that for your case, you'll need to give
each machine a unique index though the command line.



Hi Ashima,
Thanks for the reply.
just for clarification for me and for:
I had the two machines which make up the little cluster using DNS. Although, since I am not maintaining the network I am working in I am still in process of finding out whether the two cluster machines have their own records in the DNS. Clients that connect to either machine in the cluster using the VIP will never be able to use DNS resolution and will always connect using the IP number.

Is what you said above about Wackamole keeping a machine index based on the DNS records still true considering what I wrote now?

Would wackamole work in a scenario where cluster machines have acces to DNS and have their records in it and only client machines do not have access to DNS information?

--
Mit freundlichen Gruessen / Kind Regards
Toralf Richter

fon 069.94 34 05-10
fax 069.94 34 05-27
t.richter@xxxxxxxxxxxxxx

triplesense GmbH
Hanauer Landstraße 186
60314 Frankfurt am Main


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation