Module: sems Branch: master Commit: a7383254aba89059a4b22be48b4d471dec67f0f1 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=a7383254aba89059a4b22be48b4d471dec67f0f1
Author: Szókovács Róbert <[email protected]> Committer: Szókovács Róbert <[email protected]> Date: Thu Nov 7 15:59:47 2013 +0100 core: CPS limiter Calls-per-sec limiting capability, similar to the maximum number of calls limiter. There is a "soft limit" that is intended to use by the applications: if the app uses async processing and detects that the incoming workload is too much for the currenti capacity (which can depend on for example the remote DB engine's load), it can slewi it back to some percent of the current CPS; then when the circumstances are restored it can switch the CPS limit back to the configuration (or XMLRPC/stats interface) mandated value. --- apps/xmlrpc2di/XMLRPC2DI.cpp | 35 ++++++++++- apps/xmlrpc2di/XMLRPC2DI.h | 6 ++ core/AmConfig.cpp | 19 ++++++- core/AmConfig.h | 3 + core/AmSession.cpp | 73 ---------------------- core/AmSession.h | 11 ---- core/AmSessionContainer.cpp | 106 ++++++++++++++++++++++++++++++++- core/AmSessionContainer.h | 37 +++++++++++ core/etc/sems.conf.cmake | 10 +++ core/etc/sems.conf.sample | 12 ++++- core/plug-in/stats/StatsUDPServer.cpp | 25 ++++++-- 11 files changed, 240 insertions(+), 97 deletions(-) Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commitdiff;h=a7383254aba89059a4b22be48b4d471dec67f0f1 _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
