bayonne-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Bayonne-devel] Bayonne Hunting


From: Julien Chavanton
Subject: RE: [Bayonne-devel] Bayonne Hunting
Date: Fri, 10 Jun 2005 09:53:01 -0400

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: address@hidden [mailto:address@hidden On Behalf Of Julien Chavanton
Sent: December 2, 2004 1:14 PM
To: address@hidden
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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]