Re: [SR-Users] LCR weight

2012-11-20 Thread Juha Heinanen
Camila Troncoso writes: >scripts are provided in lcr/utils directory that can be used to check >the probabilities resulting from a given set of weight values. Same can >be done with command 'kamctl eval_weights'. > > I really don't understand what is the probability finally assign to

Re: [SR-Users] LCR weight

2012-11-20 Thread Camila Troncoso
Hi, Here is a copy of part of README: " When the function load_gws() is called, matching gateways (that are not currently designated as defunct) are ordered for forwarding purposes as follows: * (1) according to longest user part match * (2) according to tuple's priority *

Re: [SR-Users] LCR weight parameter

2011-11-22 Thread Juha Heinanen
Fabian Borot writes: > 3 gws inside same group, and assuming the higher the weight the higher > the capacity > > gw 1 with weight 20 > gw 2 with weight 30 > gw 3 with weight 60 > > I would like to send more calls to gw 3, then gw 2 then gw 1 > but if when I do a load_gws, and I randomize the

Re: [SR-Users] LCR weight parameter

2011-11-22 Thread Fabian Borot
thank you Juha, I understand the purpose and that is how I intend to use it, [more weights for gws with more capacity] but I guess I should have rephrase my question as: what is the purpose of the "randomized" weight value then? when you randomize it then the weight parameter becomes useless.

Re: [SR-Users] LCR weight parameter

2011-11-22 Thread Juha Heinanen
Fabian Borot writes: > The help file for versions 3.1 and 3.2 also says "randomized weight", > does it really work on those versions? yes it does. > or do you mean the "priority" column on the "lcr_rule_target" table > instead? yes. > This may be a dumb question but since I don't get it I have

Re: [SR-Users] LCR weight parameter

2011-11-22 Thread Fabian Borot
Thanks Juha, I figured that the avp reordering would be something like that. The help file for versions 3.1 and 3.2 also says "randomized weight", does it really work on those versions? this is from 3.2 *** When the function load_gws() is called, matching gateways (that a

Re: [SR-Users] LCR "weight" column question

2010-09-29 Thread Juha Heinanen
Ovidiu Sas writes: > The awk version of the script is now integrated in kamctl. thank you very much, -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/

Re: [SR-Users] LCR "weight" column question

2010-09-29 Thread Ovidiu Sas
Hello Juha, The awk version of the script is now integrated in kamctl. Regards, Ovidiu Sas On Wed, Sep 29, 2010 at 6:59 AM, Juha Heinanen wrote: > Daniel-Constantin Mierla writes: > >>   just to mention that kamctl base depends on awk, so this language can >> be used in case something is easie

Re: [SR-Users] LCR "weight" column question

2010-09-29 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > just to mention that kamctl base depends on awk, so this language can > be used in case something is easier to do with it than pure shell. i created awk version of lcr_weight_test script. i'm not using kamctl myself, but if someone is and would like to call

Re: [SR-Users] LCR "weight" column question

2010-09-29 Thread Daniel-Constantin Mierla
just to mention that kamctl base depends on awk, so this language can be used in case something is easier to do with it than pure shell. Cheers, Daniel On 9/28/10 8:53 PM, Juha Heinanen wrote: Ovidiu Sas writes: If the script can be provided in bash, then it would be nice to be integrated i

Re: [SR-Users] LCR "weight" column question

2010-09-28 Thread Juha Heinanen
Ovidiu Sas writes: > If the script can be provided in bash, then it would be nice to be > integrated in kamctl: > - kamctl lcr weight_eval ... ovidiu, possibly it could be done, but i'm not that good in bash. -- juha ___ SIP Express Router (SER)

Re: [SR-Users] LCR "weight" column question

2010-09-27 Thread Ovidiu Sas
If the script can be provided in bash, then it would be nice to be integrated in kamctl: - kamctl lcr weight_eval ... Regards, Ovidiu Sas On Mon, Sep 27, 2010 at 1:53 PM, Juha Heinanen wrote: > Daniel-Constantin Mierla writes: > >> you can create as well an utils or tools directory inside l

Re: [SR-Users] LCR "weight" column question

2010-09-27 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > you can create as well an utils or tools directory inside lcr module > folder, that will suggest direct relation with the module. ok, juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list s

Re: [SR-Users] LCR "weight" column question

2010-09-27 Thread Daniel-Constantin Mierla
On 9/27/10 7:44 PM, Juha Heinanen wrote: Daniel-Constantin Mierla writes: maybe there are other options, but here is what I did for dispatcher weighted load balancing: - each destination set has associated an array of 100 integers - when destination set is loaded, this array is filled with in

Re: [SR-Users] LCR "weight" column question

2010-09-27 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > maybe there are other options, but here is what I did for dispatcher > weighted load balancing: > - each destination set has associated an array of 100 integers > - when destination set is loaded, this array is filled with indexes of > destination addresses in

Re: [SR-Users] LCR "weight" column question

2010-09-27 Thread Daniel-Constantin Mierla
Hello, On 9/24/10 9:43 AM, Juha Heinanen wrote: [...] any ideas on how to improve weighted random number calculation without loosing performance? maybe there are other options, but here is what I did for dispatcher weighted load balancing: - each destination set has associated an array of 10

Re: [SR-Users] LCR "weight" column question

2010-09-27 Thread Ricardo Martinez
of each gateway. Thanks again, Regards, Ricardo.- -Mensaje original- De: Juha Heinanen [mailto:j...@tutpro.com] Enviado el: domingo, 26 de septiembre de 2010 2:03 Para: Ricardo Martinez; us...@lists.kamailio.org Asunto: Re: [SR-Users] LCR "weight" column question ricardo, i stu

Re: [SR-Users] LCR "weight" column question

2010-09-25 Thread Juha Heinanen
ricardo, i studied the weight problem a bit more and came to the conclusion that implementing a fair weighting algorithm would be too complicated. below is a script that can be used to find weight values matching desired probabilities for lcr gateways. i don't know if it would be appropriate to

Re: [SR-Users] LCR "weight" column question

2010-09-24 Thread Juha Heinanen
Ricardo Martinez writes: > As you can see there is no a 20,20,20,20,10,10 call repartition. > Could this be a bug? ricardo, it is a "feature" of the way randomized weights are currently calculated. if you have two wgs with weights 1 and 2 and then generate two random numbers 1 * random number

Re: [SR-Users] LCR "weight" column question

2010-09-23 Thread Juha Heinanen
Ricardo Martinez writes: > I’m observing something like this : (these are “Simmultaneous calls” > graphs) ricardo, my email client does not know to display your data, but weight is assigned to gws like this: matched_gws[gw_index].weight = t->weight * (rand() >> 8); where t->weight comes from d

Re: [SR-Users] LCR "weight" column question

2010-09-23 Thread Ricardo Martinez
Hello Juha. I’m observing something like this : (these are “Simmultaneous calls” graphs) As you can see the GW05, Gw06, Gw09 and GW10 seems to share the load equally, as expected.. but I was also expecting a little more load in the GW02 ad Gw03. They seems to me very underloaded (accordi

Re: [SR-Users] LCR "weight" column question

2010-09-22 Thread Iñaki Baz Castillo
2010/9/22 Ricardo Martinez : > If I have 100 calls, I was expecting was to have 20 to GW05, 20 to GW06, 20 > to GW09 and 20 to GW10 > > Finalle 10 to GW02 and 10 to GW02. > > Is this the correct interpretation of this parameter? Yes, but note you need to do much more that 100 calls in order the go