What is the function of the priority field in dispatcher module? The docs are pretty light on the subject and it's not clear to me what it's meant to do.
I'm looking for a way to assign a priority to preferred gateways within the same group.
Thanks
Bob
-------------------------------------------------------------------------- This email with all information contained herein or attached hereto may contain confidential and/or privileged information intended for the addressee(s) only. If you have received this email in error, please contact the sender and immediately delete this email in its entirety and any attachments thereto.
Robert McGilvray wrote:
I’m looking for a way to assign a priority to preferred gateways within the same group.
That's exactly what it does. Obviously, it is relevant only to certain distribution strategies/algorithms.
That's exactly what it does. Obviously, it is relevant only to certain distribution strategies/algorithms.
I misstated that a bit. I'm interested in more of a weighting system similar to that in SRV records. I'd still like to balance the load across the lesser gateways just have a higher ratio go to gateway X.
I'm using callid hashing and the priority field seems to be ignored. It does change the ordering in which the gateways are listed so I guess it works with first destination but that would only give failover. Is there a algorithm + priority combination that will do what I want?
Thanks
Bob
-------------------------------------------------------------------------- This email with all information contained herein or attached hereto may contain confidential and/or privileged information intended for the addressee(s) only. If you have received this email in error, please contact the sender and immediately delete this email in its entirety and any attachments thereto.
On Freitag, 6. November 2009, Robert McGilvray wrote:
That's exactly what it does. Obviously, it is relevant only to certain distribution strategies/algorithms.
I misstated that a bit. I'm interested in more of a weighting system similar to that in SRV records. I'd still like to balance the load across the lesser gateways just have a higher ratio go to gateway X.
Hello Bob,
don't know the dispatcher module that much. But the carrierroute module supports also a operation mode without database which we use on our balancer class systems. In the module configuration file you could specify for each host a certain percentage of the traffic which will be distributed from hash over certain message fields to them.
More details can be found in the configuration, e.g. Example 1.19 in: http://kamailio.org/docs/modules/1.5.x/carrierroute.html
Regards,
Henning
Hello,
On 11/6/09 9:54 PM, Robert McGilvray wrote:
That's exactly what it does. Obviously, it is relevant only to certain distribution strategies/algorithms.
I misstated that a bit. I'm interested in more of a weighting system similar to that in SRV records. I'd still like to balance the load across the lesser gateways just have a higher ratio go to gateway X.
I'm using callid hashing and the priority field seems to be ignored. It does change the ordering in which the gateways are listed so I guess it works with first destination but that would only give failover. Is there a algorithm + priority combination that will do what I want?
as Alex said, priority helps with algorithm 8 (selection of first entry) -- because with database is hard to predict the order of returned records of a select, priority ensures that the destination with highest priority is the first in dispatcher group list.
If you want to send 1/3 traffic to A and 2/3 traffic to B, you can add the address of B two times in destination set.
Cheers, Daniel