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.

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


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

Reply via email to