High Volume RealTime IAXpeers


#1

I’m running a high volume instance of Asterisk and I am trying to move to a Real-time (MySQL) set up for the 13,000+ peers. I am finding that as soon as real-time is turned on the performance starts degrading.

It almost looks like there is a single DB connection used and the requests are backing up. How can I confirm if this is the case? Can someone help me in diagnosing this problem?


#2

While thinking about implementing a cache in chan_iax2 guess what I found. I will add a note to the wiki, but I found below in a iax.conf If someone could explain why I would want rtignoreexpire it would be great and in reading the code rtnoupdate seems not to do anything.

;
; Cache realtime friends by adding them to the internal list
; just like friends added from the config file only on a
; as-needed basis.
;
;rtcachefriends=yes
;
; do not send the update request over realtime.
;
;rtnoupdate=yes
;
; Auto-Expire friends created on the fly on the same schedule
; as if it had just registered when the registration expires
; the friend will vanish from the configuration until requested
; again. If set to an integer, friends expire
; within this number of seconds instead of the
; same as the registration interval
;
;rtautoclear=yes
;
;rtignoreexpire=yes ; when reading a peer from Realtime, if the peer’s registration
; has expired based on its registration interval, used the stored
; address information regardless