[OpenSER-Users] SRV load-balancing not balancing evenly?
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Tue Oct 9 13:44:00 CEST 2007
Hi Tim,
if you have records with the same priority, openser will take the first
one as returned by the DNS server - it does not do a load balancing -
maybe the DNS server should do.
regards,
bogdan
Tim Madorma wrote:
> Hi,
>
> The OpenSER is performing an SRV lookup which returns the following record info:
>
> ;; QUESTION SECTION:
> ;_sip._udp.aimcidfilter.com. IN SRV
>
> ;; ANSWER SECTION:
> _sip._udp.aimcidfilter.com. 180 IN SRV 1 50 5061 spinner.eng.rr.com.
> _sip._udp.aimcidfilter.com. 180 IN SRV 1 50 5061 bart.eng.rr.com.
> _sip._udp.aimcidfilter.com. 180 IN SRV 2 50 5061 homer.eng.rr.com.
> _sip._udp.aimcidfilter.com. 180 IN SRV 2 50 5061 crunch.eng.rr.com.
>
> As you can see, the weighting for the two priority "1" endpoints is
> 50/50 which indicates that the load should be distributed evenly
> between them. But when I run my test, it consistently sends 75% to
> spinner.eng.rr.com and 25% to bart.eng.rr.com.
>
> Any ideas?
>
>
> ----------- some config info.
>
> debug=5 # debug level (cmd line: -dddddddddd)
> fork=yes
> log_stderror=no # (cmd line: -E)
>
> maxbuffer=1048576
>
> check_via=no # (cmd. line: -v)
> dns=no # (cmd. line: -r)
> rev_dns=no # (cmd. line: -R)
> #reply_to_via=1
> children=4
> log_facility=LOG_LOCAL4
> dns_use_search_list=no
> dns_servers_no=2 #
> user="sipproxy"
> group="sipproxy"
> #disable_dns_blacklist=yes # FOR TESTING ONLY
> #dns_try_ipv6=no # FOR TESTING ONLY
>
> listen=udp:65.185.232.62:5060
>
> alias=65.185.233.104:5060
>
> # LOAD OpenSER MODULES
> mpath="/sw/lib/openser/modules/"
> loadmodule "sl.so"
> loadmodule "tm.so"
> loadmodule "rr.so"
> loadmodule "maxfwd.so"
> loadmodule "usrloc.so"
> loadmodule "registrar.so"
> loadmodule "textops.so"
> loadmodule "acc.so"
> loadmodule "mi_fifo.so"
> loadmodule "xlog.so"
>
> # ----------------- setting module-specific parameters ---------------
>
> # -- usrloc params --
>
> modparam("usrloc", "db_mode", 0)
>
> # -- rr params --
> # add value to ;lr param to make some broken UAs happy
> modparam("rr", "enable_full_lr", 1)
>
> # ------------------------- request routing logic -------------------
> modparam("acc", "log_level", 2)
> modparam("acc", "log_flag", 1)
> modparam("acc","report_cancels", 1)
> modparam("acc","failed_transaction_flag", 1)
> modparam("acc","log_extra", "req_uri=$rU")
> modparam("tm", "fr_timer", 5)
> modparam("tm","fr_inv_timer",5)
> modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
>
More information about the sr-users
mailing list