[PATCH] Precision timing patch for load.[c|h]

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[PATCH] Precision timing patch for load.[c|h]

Kannel Neo
Hi all,

We are running a very high performance Kannel instance (>1000 messages/second at times).

We are finding throttling errors from our upstream suppliers because the load counters inside Kannel are too imprecise, being that they only update after 1 second due to the fact that they are using time in seconds.

For example, you set the throughput of your SMPP bind to 200 per second, if you have a fast machine, your bind can send more than 200 messages in a second and then only subsequently realise (as the second ticks over) that it has exceeded the throughput and waiting.

Herewith the attached patch which will allow precision load timers to update these rates intra-second.

We are using this and find it helps a great deal.

Thanks

precision_timing.patch (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [PATCH] Precision timing patch for load.[c|h]

amalysh
Hi,

thanks for the patch. Changed/cleanup-ed version commited.

Thanks,
Alex

> Am 28.06.2016 um 10:44 schrieb Kannel Neo <[hidden email]>:
>
> Hi all,
>
> We are running a very high performance Kannel instance (>1000 messages/second at times).
>
> We are finding throttling errors from our upstream suppliers because the load counters inside Kannel are too imprecise, being that they only update after 1 second due to the fact that they are using time in seconds.
>
> For example, you set the throughput of your SMPP bind to 200 per second, if you have a fast machine, your bind can send more than 200 messages in a second and then only subsequently realise (as the second ticks over) that it has exceeded the throughput and waiting.
>
> Herewith the attached patch which will allow precision load timers to update these rates intra-second.
>
> We are using this and find it helps a great deal.
>
> Thanks
> <precision_timing.patch>


Loading...