lua-resty-balancer icon indicating copy to clipboard operation
lua-resty-balancer copied to clipboard

Question: How to configure backup node

Open rohitjoshi opened this issue 9 years ago • 4 comments

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 avatar Sep 06 '16 04:09 rohitjoshi

@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.

doujiang24 avatar Sep 07 '16 13:09 doujiang24

any update for backup?

shenshouer avatar Jul 01 '19 07:07 shenshouer

@shenshouer not yet, it's recommended to use implement the backup thing in another upper level.

doujiang24 avatar Jul 07 '19 07:07 doujiang24

Any update on the same? or if anyone has implemented backup, please give some pointers.

praddy26 avatar Mar 26 '20 13:03 praddy26