Project

General

Profile

Actions

Feature #5984

closed

mon: probe monitors to check on their status regardless of quorum

Added by Joao Eduardo Luis over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Normal
Category:
Monitor
Target version:
-
% Done:

0%

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

Description

This could be used to figure out if a monitor is up, and if it is what's its excuse for not being in the quorum.

We could either try to reuse the same mechanism used for 'mon_status' as is used by the admin socket. If we want something rather more specific, we could simply add a new message with the purpose of acting as a heartbeat sort of mechanism between clients and monitors, but for this particular case we probably don't need such approach.

We should assess what are the proper requisites for this and decide upon what we would like to obtain from such mechanism.

how about:

- new librados call ping_mon(...) that takes a timeout
- use aio completion api? or make it synchronous? aio is better i think.
- monclient needs new ping method
- track outstanding pings internally
- use separate msgr from the main session to avoid fighting with session hunting
- send MPing
- json in reply payload
- monitor
- reply to MPing with another MPing with _mon_status json in the data payload

Actions #1

Updated by Dan Mick over 10 years ago

  • Status changed from New to 12
  • Assignee set to Joao Eduardo Luis
Actions #2

Updated by Sage Weil over 10 years ago

  • Description updated (diff)
Actions #3

Updated by Ian Colle over 10 years ago

  • Project changed from Ceph to 16
  • Category deleted (Monitor)
Actions #4

Updated by Ian Colle over 10 years ago

  • Target version set to v.14
Actions #5

Updated by Sage Weil over 10 years ago

After a bit more thought I think we should make the mon_command() more robust and put this there. the fact that mon_status does not require quorum is just a convenient detail for this particular use-case; all of the mon_command stuff has the same issues that a special-purpose mon_ping would have.

Actions #6

Updated by Sage Weil over 10 years ago

  • Project changed from 16 to Ceph
  • Target version deleted (v.14)
  • Source changed from other to Development
Actions #7

Updated by Joao Eduardo Luis over 10 years ago

  • Status changed from 12 to Resolved
Actions

Also available in: Atom PDF