[asterisk-dev] How to improve astdb? Any ideas?

Russell Bryant russell at digium.com
Tue Sep 7 13:34:00 CDT 2010


On Sun, 2010-09-05 at 20:32 +0200, Stefan Schmidt wrote:
> 1.)
> using a global counter and a scheduler to sync the astdb only on every
> 100. change, or atleast every (or 5) second if there has been a change.
> 
> this would cause a possible data loss of 1 second if the system crash.
> for example if there are 3600 sip peers atleast one registration will be
> lost and also other data which are written in the last second.
> another problem of this solution would be the loss of data when astdb is
> used from the dialplan. so maybe there should be a difference between
> sip data and dialplan data.
> 
> this solution will decrease system load but the highest amount of data
> loss is possible.

I think that this is probably the most reasonable short term improvement
to make.  I'm going to post a patch up on reviewboard in a few minutes
for you to test out to see if it makes a difference in your tests.

-- 
Russell Bryant
Digium, Inc.  |  Engineering Manager, Open Source Software
445 Jan Davis Drive NW   -    Huntsville, AL 35806  -  USA
jabber: rbryant at digium.com    -=-    skype: russell-bryant
www.digium.com -=- www.asterisk.org -=- blogs.asterisk.org





More information about the asterisk-dev mailing list