[SR-Users] Calls per second
Olle E. Johansson
oej at edvina.net
Thu Jul 3 14:31:59 CEST 2014
On 03 Jul 2014, at 14:21, Alex Balashov <abalashov at evaristesys.com> wrote:
> On 07/03/2014 08:18 AM, Abdelkader Allam wrote:
>> Very true Alex, didnt knew about htables, just checking about it, very
>> interesting :) The added value of Redis though is that other scripts
>> running outside of Kamailio can interact with it and potentially
>> interact with kamailio, can an external script have access to htables in
>> memory db ?
>
> Yes, but only rather crudely, via the management interface, i.e.
>
> http://kamailio.org/docs/modules/4.1.x/modules/htable.html#idp1887744
>
> So, I agree that if external access to the raw sampling is desired, htable is not the best.
Yes and no.
It's easy to write a simple HTTP interface for htables...
I really need per second, not average. I need to react FAST.
I think one htable with timestamp for last request per IP and one with number of requests for this timestamp will work. Using REDIS may not be fast enough, but I haven't tried. Redis or memcache would easily handle a situation with multiple proxys.
Would memcached or Redis handle this on a per second basis?
/O
More information about the sr-users
mailing list