[OpenSIPS-Users] hash and dispatcher on failover

Matt Hamilton mistral9999 at hotmail.com
Fri Nov 25 06:58:48 CET 2011


I'm new to dispatcher - wanted to clarify couple of things...



I'm using algorithm 7 (hash over the content of PVs string) to pick a destination.


modparam("dispatcher", "hash_pvar", "$pvar")
ds_select_dst("1", "7");


Let's say the probing_mode is 1, and based on the value of $pvar  (A, B, C, etc.), incoming requests are dispatched in the following fashion:


A -> Asterisk1
B -> Asterisk1
C -> Asterisk2
D -> Asterisk3
E -> Asterisk4
F -> Asterisk4


What happens to E, F if Asterisk4 fails? Are they distributed among the remaining servers or do they all go to the same server? 

Do A, B, C, D still go to the same servers? In other words, is the hash recalculated?


Can hash_pvar be changed; e.g. use $si for route[1], use $ci for failure_route[1]?


Thanks,
Matt
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20111125/8aaecd97/attachment.htm>


More information about the Users mailing list