RE: Bayonne Hunting

"Julien Chavanton" <[email protected]>
Newsgroups gmane.comp.gnu.bayonne.devel
Message-ID <[email protected]>
Finally, I did implement this decremental hunting I will now put this in
operation on my server doing lots of outbound call,

This hunting will minimize the impact of a port being blocked

However this is a bit to much hard coded since we can not select the
hunting from bayonne.conf

Anyway this is my favorite hunting.

 

Julien

 

// fifo.cpp

 

bool Fifo::startScript(char **argv)

{

        Trunk *trunk = getTrunk(argv[1]);

        TrunkGroup *group = getGroup(argv[1]);

        TrunkEvent event;

        int port = driver->getTrunkCount();

 

        if((!trunk && !group) || !argv[2])

                return false;

 

        if(trunk && !group)

        {

                event.id = TRUNK_START_SCRIPT;

                event.parm.argv = &argv[2];

                return trunk->postEvent(&event);

        }

        if(!group)

                return false;

 

        while(port--)

        {

                if(driver->getTrunkGroup(port) != group)

                        continue;

 

                if(port >= group->lastPort && group->lastPort != 0)

                {

                 port = group->lastPort - 1;

                 if(driver->getTrunkGroup(port) != group)

                 {

                  port = driver->getTrunkCount();

                  group->lastPort = 0;

                  continue;

                 }

                }

 

                trunk = driver->getTrunkPort(port);

                if(!trunk)

                        continue;

 

                slog(Slog::levelDebug) <<" Starting Script:"<<port<<"
Last Port:"<<group->lastPort<<" Group:"<<argv[1]<<endl;

                group->lastPort = port;

 

                event.id = TRUNK_START_SCRIPT;

                event.parm.argv = &argv[2];

                if(trunk->postEvent(&event))

                        return true;

        }

        return false;

}

 

  _____  

From: bayonne-devel-bounces+j.chavanton=oneworldinteractive.com@gnu.org
[mailto:[email protected]
g] On Behalf Of Julien Chavanton
Sent: December 2, 2004 1:14 PM
To: [email protected]
Subject: [Bayonne-devel] Bayonne Hunting

 

David,

 

I think it would be a great improvement to have flexible hunting

Example Incremental would be great! (Most idle is not necessary I think
because the most idle time-slot may be the malfunctioning one)

 

1: Port will have more time to recover from last calls

2: If a port is out the impact on the overall traffic will be minimized

 

I guess this should not be to hard to implement?

 

Julien

_______________________________________________
Bayonne-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bayonne-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.