[SR-Users] pipelimit db schema

thrillerbee thrillerbee at gmail.com
Wed Feb 23 22:27:09 CET 2011


I found the answer to my most recent question (my timer interval was set too
long). Can someone answer this one?

Is there a fifo command available to reload pipelimit config from db?
something like 'kamctl fifo pl_reload'?

On Wed, Feb 23, 2011 at 2:00 PM, thrillerbee <thrillerbee at gmail.com> wrote:

> ...and while I'm asking questions, how should the algorithm be specified in
> the db column? Could someone provide some examples?
> I'm catching the CPS, but nothing is actually being dropped:
>
> #kamctl fifo pl_get_pipes
> PIPE::  id=30236 algorithm=TAILDROP limit=15 counter=82
>
> Thanks.
>
>
> On Wed, Feb 23, 2011 at 1:32 PM, thrillerbee <thrillerbee at gmail.com>wrote:
>
>> Is there a fifo command available to reload pipelimit config from db?
>> something like 'kamctl fifo pl_reload'?
>>
>>
>> On Wed, Feb 23, 2011 at 9:02 AM, thrillerbee <thrillerbee at gmail.com>wrote:
>>
>>> Cool, thanks.
>>>
>>>
>>> On Wed, Feb 23, 2011 at 12:36 AM, Daniel-Constantin Mierla <
>>> miconda at gmail.com> wrote:
>>>
>>>> Hello,
>>>>
>>>>
>>>> On 2/23/11 12:30 AM, thrillerbee wrote:
>>>>
>>>>> Can anyone point me to the db schema for the new pipelimit module?
>>>>>
>>>>
>>>> seems I forgot to add it to db creation script. I will fix that in the
>>>> next days. Meanwhile you can use:
>>>>
>>>> INSERT INTO version (table_name, table_version) values ('pl_pipes','1');
>>>> CREATE TABLE pl_pipes (
>>>>  id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
>>>>  pipeid VARCHAR(64) DEFAULT '' NOT NULL,
>>>>  algorithm VARCHAR(32) DEFAULT '' NOT NULL,
>>>>  plimit INT DEFAULT 0 NOT NULL,
>>>>  CONSTRAINT pipeid_idx UNIQUE (pipeid)
>>>> ) ENGINE=MyISAM;
>>>>
>>>> This is inside sources, modules/pipelimit/pl_db.c
>>>>
>>>> Thanks, Daniel
>>>>
>>>> --
>>>> Daniel-Constantin Mierla
>>>> http://www.asipto.com
>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110223/26304ecd/attachment.htm>


More information about the sr-users mailing list