Well, at the time I developed the feature, that was the feeling in do it - probably the idea of the difference between UDP and TCP is too deep in my brain.

On the other hand, it make sense what you also say. If you open a bug report for this, we might be able to pack it as fix for 3.0.

Regards

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Summit 2019
  https://www.opensips.org/events/Summit-2019Amsterdam/

On 04/25/2019 08:31 PM, Dan Pascu wrote:
On 25 Apr 2019, at 19:32, Bogdan-Andrei Iancu wrote:

Dan,

It seems to be a documentation error. The udp_workers param do not support the 
"use_auto_scaling" option, as for UDP you can define the profile per listener. 
I will fix the doc.
It would make sense to be able to specify them in a similar manner. Either 
through xxx_worker or listen or both.
I'd like to keep my configuration organized. Right now I can only specify it 
through tcp_workers for tcp and listen for udp. Why is there this limitation 
that udp_workers doesn't accept the syntax and listen only accepts it for udp?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Summit 2019
  https://www.opensips.org/events/Summit-2019Amsterdam/

On 04/25/2019 06:31 PM, Dan Pascu wrote:
If I try to define udp_workers with autoscaling I get a syntax error. It works 
fine for tcp_workers though:

Apr 25 18:28:24 [24311] Traceback (last included file at the bottom):
Apr 25 18:28:24 [24311]  0. o.cfg
Apr 25 18:28:24 [24311] CRITICAL:core:yyerror: parse error in o.cfg:33:16-42: 
syntax error
Apr 25 18:28:24 [24311]
Apr 25 18:28:24 [24311] tcp_workers = 5 use_auto_scaling_profile SIP_WORKERS
Apr 25 18:28:24 [24311] udp_workers = 5 use_auto_scaling_profile SIP_WORKERS
Apr 25 18:28:24 [24311] ^~~~~~~~~~~~~~~~~~~~~~~~~~~
Apr 25 18:28:24 [24311]

Profile is the same for both:

auto_scaling_profile = SIP_WORKERS
      scale up to 10 on 80% for 4 cycles within 5
      scale down to 5 on 20% for 10 cycles

tcp_workers = 5 use_auto_scaling_profile SIP_WORKERS
udp_workers = 5 use_auto_scaling_profile SIP_WORKERS

--
Dan





_______________________________________________
Devel mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

--
Dan






_______________________________________________
Devel mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to