[asterisk-dev] [Code Review] Rate limit astdb->sync() calls
Saúl Ibarra Corretgé
saghul at gmail.com
Thu Sep 9 02:29:32 CDT 2010
Hi,
>> +1 for that! While I don't fully understand all the technical
>> discussions going on about astdb, it would be great to see Stefan's
>> release the code for his testing tool. I would be very interested in
>> seeing how it works.
>
> While the most recent results have been specific to astdb, the more important numbers are the effects on SIP registration performance as a result of the changes. That's how we got into astdb, since it was identified as one of the bottlenecks when doing SIP registration load testing. I'm not sure how Stefan's test is built, but doing that via SIPp is pretty easy (at least as far as SIPp goes).
>
I don't quite understand the low level implementation of this, though
there is something that could be worth mentioning.
In other software I've been using, such as OpenSIPS and Kamailio,
different strategies are provided for saving information such as
registrations:
- Memory-only storage, thus no persistent storage and everything is
lost on restart
- Write-back approach: information is stored in memory and synced at
regular intervals. Data loss might happen if the software is restarted
before data is synced but in some cases this could be affordable.
- Write-through approach: data is synced to persistent storage every
time. This has worse performance, but data loss is prevented.
Again, I might be missing something, but does this model make sense here?
Keep up the good works!
Regards,
--
/Saúl
http://saghul.net | http://sipdoc.net
More information about the asterisk-dev
mailing list