switch.conf.xml sessions-per-second issue
Hello, Does FS always reply with a 503 Maximum Calls In Progress regardless of the amount of calls attempts? So if the sessions-per-second is 10 and I generate 20 CPS, the remaining 10 will get a 503? Does this also apply to an higher number of attempts? Regards, Grant
Hello, On 01/11/2016 09:04 AM, Grant Bagdasarian wrote:
Does FS always reply with a 503 Maximum Calls In Progress regardless of the amount of calls attempts?
What do you mean by "always"? That's rather confusing in light of your next question:
So if the sessions-per-second is 10 and I generate 20 CPS, the remaining 10 will get a 503?
Does this also apply to an higher number of attempts?
If you generate 20 CPS and Freeswitch uses a "taildrop"-style algorithm to reject the "remaining" 10, that's certainly not "always". What is the actual question being asked here? It sounds like it's about the algorithm Freeswitch uses to determine which calls to reject once a rate limit is reached? -- Alex -- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Hello Alex, Yes, I need FS to always send a reply when it starts rate-limiting and rejecting calls. How do I change the algorithm used for rejecting calls during rate-limiting? Regards, Grant -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Alex Balashov Sent: Tuesday, January 12, 2016 2:33 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] switch.conf.xml sessions-per-second issue Hello, On 01/11/2016 09:04 AM, Grant Bagdasarian wrote:
Does FS always reply with a 503 Maximum Calls In Progress regardless of the amount of calls attempts?
What do you mean by "always"? That's rather confusing in light of your next question:
So if the sessions-per-second is 10 and I generate 20 CPS, the remaining 10 will get a 503?
Does this also apply to an higher number of attempts?
If you generate 20 CPS and Freeswitch uses a "taildrop"-style algorithm to reject the "remaining" 10, that's certainly not "always". What is the actual question being asked here? It sounds like it's about the algorithm Freeswitch uses to determine which calls to reject once a rate limit is reached? -- Alex -- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Jan 12, 2016, at 2:55 AM, Grant Bagdasarian <GB@cm.nl> wrote:
Hello Alex,
Yes, I need FS to always send a reply when it starts rate-limiting and rejecting calls. How do I change the algorithm used for rejecting calls during rate-limiting?
Change it to what? A reply should already be sent.
Regards,
Grant
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Alex Balashov Sent: Tuesday, January 12, 2016 2:33 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] switch.conf.xml sessions-per-second issue
Hello,
On 01/11/2016 09:04 AM, Grant Bagdasarian wrote:
Does FS always reply with a 503 Maximum Calls In Progress regardless of the amount of calls attempts?
What do you mean by "always"? That's rather confusing in light of your next question:
So if the sessions-per-second is 10 and I generate 20 CPS, the remaining 10 will get a 503?
Does this also apply to an higher number of attempts?
If you generate 20 CPS and Freeswitch uses a "taildrop"-style algorithm to reject the "remaining" 10, that's certainly not "always".
What is the actual question being asked here? It sounds like it's about the algorithm Freeswitch uses to determine which calls to reject once a rate limit is reached?
-- Alex
-- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
All calls beyond the configured max sps will receive a 503. For each 1 second period you can have up to 10 calls. If you are sending 20 cps, 10 of them more or less depending on timing will receive 503 and at least 10 will succeed. There is no way to change it other than hacking code. On Tue, Jan 12, 2016 at 10:02 AM, Michael Jerris <mike@jerris.com> wrote:
On Jan 12, 2016, at 2:55 AM, Grant Bagdasarian <GB@cm.nl> wrote:
Hello Alex,
Yes, I need FS to always send a reply when it starts rate-limiting and rejecting calls. How do I change the algorithm used for rejecting calls during rate-limiting?
Change it to what? A reply should already be sent.
Regards,
Grant
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Alex Balashov Sent: Tuesday, January 12, 2016 2:33 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] switch.conf.xml sessions-per-second issue
Hello,
On 01/11/2016 09:04 AM, Grant Bagdasarian wrote:
Does FS always reply with a 503 Maximum Calls In Progress regardless of the amount of calls attempts?
What do you mean by "always"? That's rather confusing in light of your next question:
So if the sessions-per-second is 10 and I generate 20 CPS, the remaining 10 will get a 503?
Does this also apply to an higher number of attempts?
If you generate 20 CPS and Freeswitch uses a "taildrop"-style algorithm to reject the "remaining" 10, that's certainly not "always".
What is the actual question being asked here? It sounds like it's about the algorithm Freeswitch uses to determine which calls to reject once a rate limit is reached?
-- Alex
-- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬ ☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞ http://twitter.com/FreeSWITCH ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+ <http://freeswitch.org/g+>* ClueCon Weekly Development Call ☎ sip:888@conference.freeswitch.org ☎ +19193869900 https://www.youtube.com/watch?v=9XXgW34t40s https://www.youtube.com/watch?v=NLaDpGQuZDA
participants (4)
-
Alex Balashov
-
Anthony Minessale
-
Grant Bagdasarian
-
Michael Jerris