Re: Reload does not honour changes in config file (weight of real servers)
Alexey Andriyanov <[email protected]>
| Newsgroups | gmane.linux.keepalived.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, Bernd. Thank you for reporting this issue. I believe the problem is that if weight is changed for a real server, it is completely removed from the ipvs and then re-created with a new weight. If the VS also has the "alpha" configuration directive, the real server that has changed its weight would be re-added after next successful check, after the "delay_loop" timer expires. This surely is not the best behavior we could expect. I'll try to submit a patch soon. But the case you described is different, you experience RS changes weight from 1 to 0, but not from 0 to 1. Could you please provide your configuration and logfile? 19.06.2015 13:06, Bernd wrote: > Hi, > > I'm running keepalived-1.2.16-5.x86_64 (self-built via rpmbuild from > your sources) on 3.10.0-229.4.2.el7.x86_64 (CentOS 7). > > Recently, I discovered that > > i) one can set weight of a real server to '0' in config file, issue > 'systemctl reload keepalived' -> server is taken out of loadbalancing > (weight = 0) > > ii) one can not set weight back to '1', reload, and take the server back > into server (weight stays '0') > > Is that behaviour intended? > > Best, > > Bernd > > > ------------------------------------------------------------------------------ > _______________________________________________ > Keepalived-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/keepalived-devel > -- Best regards, Alexey ------------------------------------------------------------------------------