Config parsing (fastouter)

I am trying to configure fastrouter through environment variable and
running into trouble.

  1. A blank loop still seems to run… expect that no subscription would
    take place?

[uwsgi]

fastrouter_keys=
fastrouter_ip=
fastrouter_port=

Subscribe this instance to a fastrouter

for=%(fastrouter_keys)
subscribe-to=%(fastrouter_ip):%(fastrouter_port):%(_)
endfor=

and the log …

subscribing to ::
send_subscription()/sendto(): Invalid argument [core/subscription.c line
665]
send_subscription()/sendto(): Invalid argument [core/subscription.c line
665]
send_subscription()/sendto(): Invalid argument [core/subscription.c line
665]

  1. A list of values is treated single?

export FASTROUTER_KEYS=“a b c”

[uwsgi]
fastrouter_keys=$(FASTROUTER_KEYS)
fastrouter_ip=…
fastrouter_port=…

Subscribe this instance to a fastrouter

for=%(fastrouter_keys)
subscribe-to=%(fastrouter_ip):%(fastrouter_port):%(_)
endfor=

And logs on fastrouter

[uwsgi-subscription for pid 5] new pool: a b c (hash key: 3007)
fastrouter_1 | [uwsgi-subscription for pid 5] a b c => new node:
172.17.1.37:56481

I was expecting to see three separate subscribes.

Any help appreciated.

Hello!

On Fri, Jun 12, 2015 at 12:28:33PM -0700, kristian kvilekval wrote:

fastrouter_port=
[…]

This looks unrelated to nginx. You may have better luck asking in
uWSGI mailing lists instead.


Maxim D.
http://nginx.org/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs