Feature #7150
closed
mon: hunt for multiple mons in parallel
Added by Dietmar Maurer over 10 years ago.
Updated almost 8 years ago.
Description
I use a few helper scripts to automate things, and those scripts
call ‘ceph’ command multiple times, like
------------
#/bin/sh
ceph do something
…
ceph do something else
…
---------------
I get a delay when one monitor is down, until a working mon is found.
That is OK so far.
But I get that delay each times when I run a ‘ceph’ command. It would be great
if ceph remembers the last successful mon connection, so that such delays are avoided.
- Subject changed from avoid cli delay when one mon is down to mon: hunt for multiple mons in parallel
When the MonClient is in "hunting" mode, we should open connections to multiple random monitors at once, and then use whichever responds first, and close the other connection.
This will require some refactoring in MonClient (probably moving the session-related state into a separate class/struct so that there can be multiple sessions doing an initial handshake in parallel?).
- Assignee set to Kefu Chai
- Has duplicate Feature #16091: Monclient: hunt for mons in parallel added
- Has duplicate deleted (Feature #16091: Monclient: hunt for mons in parallel)
- Is duplicate of Feature #16091: Monclient: hunt for mons in parallel added
- Status changed from New to Duplicate
Also available in: Atom
PDF