lua-resty-balancer
lua-resty-balancer copied to clipboard
Question: How to configure backup node
Hello, nginx has support for configuring upstream as backup which allows to fail over. How can I achieve similar results with resty balancer? Either using weight (1-0) or other flag?
Can I configure weight 1 and 0 where upstream with weight 0 will be only used if upstream with 1 fails?
@rohitjoshi Not yet. You need to write your own Lua code to implement it for now:)
Maybe the resty.balancer can implement it in the future, it's a todo.
any update for backup?
@shenshouer not yet, it's recommended to use implement the backup thing in another upper level.
Any update on the same? or if anyone has implemented backup, please give some pointers.