Project

General

Profile

Actions

Feature #7150

closed

mon: hunt for multiple mons in parallel

Added by Dietmar Maurer over 10 years ago. Updated almost 8 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

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.


Related issues 1 (0 open1 closed)

Is duplicate of Ceph - Feature #16091: Monclient: hunt for mons in parallelResolvedKefu Chai05/31/2016

Actions
Actions #1

Updated by Sage Weil over 8 years ago

  • 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?).

Actions #2

Updated by Kefu Chai almost 8 years ago

  • Assignee set to Kefu Chai

let me give it a try.

Actions #3

Updated by Kefu Chai almost 8 years ago

  • Has duplicate Feature #16091: Monclient: hunt for mons in parallel added
Actions #4

Updated by Kefu Chai almost 8 years ago

  • Has duplicate deleted (Feature #16091: Monclient: hunt for mons in parallel)
Actions #5

Updated by Kefu Chai almost 8 years ago

  • Is duplicate of Feature #16091: Monclient: hunt for mons in parallel added
Actions #6

Updated by Kefu Chai almost 8 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF