<div dir="ltr"><div>I am trying to configure fastrouter through environment variable and running into trouble.</div><div><br></div><div>1.  A blank loop still seems to run.. expect that no subscription would take place?</div><div><br></div><div>[uwsgi]</div><div>...</div><div>fastrouter_keys=</div><div>fastrouter_ip=</div><div>fastrouter_port=</div><div><br></div><div># Subscribe this instance to a fastrouter</div><div>for=%(fastrouter_keys)</div><div>subscribe-to=%(fastrouter_ip):%(fastrouter_port):%(_)</div><div>endfor=</div><div><br></div><div>and the log ...</div><div><br></div><div>subscribing to ::</div><div>send_subscription()/sendto(): Invalid argument [core/subscription.c line 665]</div><div>send_subscription()/sendto(): Invalid argument [core/subscription.c line 665]</div><div>send_subscription()/sendto(): Invalid argument [core/subscription.c line 665]</div><div><br></div><div><br></div><div><br></div><div>2.  A list of values is treated single?</div><div><br></div><div>export FASTROUTER_KEYS="a b c"</div><div><br></div><div>[uwsgi]</div><div>fastrouter_keys=$(FASTROUTER_KEYS)</div><div>fastrouter_ip=...</div><div>fastrouter_port=...</div><div><br></div><div># Subscribe this instance to a fastrouter</div><div>for=%(fastrouter_keys)</div><div>subscribe-to=%(fastrouter_ip):%(fastrouter_port):%(_)</div><div>endfor=</div><div><br></div><div>And logs on fastrouter </div><div><br></div><div>[uwsgi-subscription for pid 5] new pool: a b c (hash key: 3007)</div><div>fastrouter_1 | [uwsgi-subscription for pid 5] a b c => new node: <a href="http://172.17.1.37:56481">172.17.1.37:56481</a></div><div><br></div><div>I was expecting to see three separate subscribes.</div><div><br></div><div><br></div><div>Any help appreciated.</div></div>