Welcome! Log In Create A New Profile

Advanced

config parsing (fastouter)

kristian kvilekval
June 12, 2015 03:30PM
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]



2. 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.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

config parsing (fastouter)

kristian kvilekval June 12, 2015 03:30PM

Re: config parsing (fastouter)

Maxim Dounin June 15, 2015 10:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 262
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready