Page 1 of 1
client-kill enhancement to tell the client to try next remote
Posted: Sun May 31, 2020 10:24 am
by aivanise
As far as I can tell from the source (someone please tell me otherwise), it is not possible in the management interface to tell the client what to do after it receives client-kill
I would like to be able send the same parameter that the sever sends to all clients when it restarts and explicit-exit-notify is set, but to individual clients, i.e.
client-kill id RESTART [P] - reconnect to the same server
client-kill id RESTART [N] - reconnect to the next server
that way I can manually rebalance my servers and/or keep clients away from expensive lines (e.g. backup metered LTE) without having to restart the server (thus kicking out everyone) or firewalling off the IPs (cumbersome and error prone, bad UX as client still tries dead IPs and waits).
thank you
Re: client-kill enhancement to tell the client to try next remote
Posted: Sun May 31, 2020 7:10 pm
by TinCanTech
aivanise wrote: ↑Sun May 31, 2020 10:24 am
I would like to be able send the same parameter that the sever sends to all clients when it restarts and explicit-exit-notify is set, but to individual clients, i.e.
client-kill id RESTART [P] - reconnect to the same server
client-kill id RESTART [N] - reconnect to the next server
Would you be prepared to code this ?
Re: client-kill enhancement to tell the client to try next remote
Posted: Mon Jun 01, 2020 10:03 am
by aivanise
I can certainly try, but given the fact that I've been an admin and haven't coded anything substantial in the last couple of decades, I can't really guarantee the quality

Re: client-kill enhancement to tell the client to try next remote
Posted: Mon Jun 01, 2020 10:22 am
by TinCanTech
If you can spare the time and really want to see this then I recommend you discuss it with the developers first.
Join their IRC channel and talk it through.
Re: client-kill enhancement to tell the client to try next remote
Posted: Mon Jun 01, 2020 2:25 pm
by aivanise
Heh, started looking into it and discovered that it is already possible, I just didn't get the syntax right, so I'm happy
the correct syntax is comma delimited, no spaces
client-kill id RESTART,[N]
I can submit the documentation enhancement if you want
Re: client-kill enhancement to tell the client to try next remote
Posted: Mon Jun 01, 2020 2:36 pm
by TinCanTech
Excellent. Yes, all documentation improvements are welcome

Re: client-kill enhancement to tell the client to try next remote
Posted: Wed Nov 11, 2020 4:40 am
by Eric22
I have exactly the same problem. Anyone got a suggestion? This is quiet a common issue , please suggest me if you find any solution for it .
Re: client-kill enhancement to tell the client to try next remote
Posted: Wed Nov 11, 2020 4:01 pm
by TinCanTech
Eric22 wrote: ↑Wed Nov 11, 2020 4:40 am
I have exactly the same problem.
What problem ?
Eric22 wrote: ↑Wed Nov 11, 2020 4:40 am
Anyone got a suggestion?
Read the manual.