Bug #2151

mon: pg creation retry is slow

Added by Sage Weil about 1 year ago. Updated 9 months ago.

Status:ResolvedStart date:03/07/2012
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:MonitorSpent time:-
Target version:-
Source:Development Severity:
Backport: Reviewed:
Tags:

Description

right now if you are creating a pg and the osd crashes, the monitor will retry every once in a while, but that retry is not informed by, say, the osd restarting immediately. that can lead to long lags even if ceph-osd restarts quickly.

Associated revisions

Revision f59f55da
Added by Sage Weil 10 months ago

osd/mon: subscribe (onetime) to pg creations on connect

Ask the monitor for pending pg creations each time we connect.

Normally, this is a freebie check. If there are pending creations, though,
it ensures that the OSD finds out about them even if the original lame
broadcast didn't reach it. Specifically:

- osd is hunting for a monitor, but isn't yet connected
- new pgs are created
- send_pg_creates() sends out create messages, but osd does get it
- osd finally connects to a mon

Fixes: #2151 (tho the bug description is bad)
Signed-off-by: Sage Weil <>

Revision e56ec53c
Added by Sage Weil 10 months ago

osd/mon: subscribe (onetime) to pg creations on connect

Ask the monitor for pending pg creations each time we connect.

Normally, this is a freebie check. If there are pending creations, though,
it ensures that the OSD finds out about them even if the original lame
broadcast didn't reach it. Specifically:

- osd is hunting for a monitor, but isn't yet connected
- new pgs are created
- send_pg_creates() sends out create messages, but osd does get it
- osd finally connects to a mon

Fixes: #2151 (tho the bug description is bad)
Signed-off-by: Sage Weil <>
Reviewed-by: Samuel Just <>

Revision dec93692
Added by Sage Weil 10 months ago

osd/mon: subscribe (onetime) to pg creations on connect

Ask the monitor for pending pg creations each time we connect.

Normally, this is a freebie check. If there are pending creations, though,
it ensures that the OSD finds out about them even if the original lame
broadcast didn't reach it. Specifically:

- osd is hunting for a monitor, but isn't yet connected
- new pgs are created
- send_pg_creates() sends out create messages, but osd does get it
- osd finally connects to a mon

Fixes: #2151 (tho the bug description is bad)
Signed-off-by: Sage Weil <>
Reviewed-by: Samuel Just <>

Revision dec93692
Added by Sage Weil 10 months ago

osd/mon: subscribe (onetime) to pg creations on connect

Ask the monitor for pending pg creations each time we connect.

Normally, this is a freebie check. If there are pending creations, though,
it ensures that the OSD finds out about them even if the original lame
broadcast didn't reach it. Specifically:

- osd is hunting for a monitor, but isn't yet connected
- new pgs are created
- send_pg_creates() sends out create messages, but osd does get it
- osd finally connects to a mon

Fixes: #2151 (tho the bug description is bad)
Signed-off-by: Sage Weil <>
Reviewed-by: Samuel Just <>

History

#1 Updated by Sage Weil about 1 year ago

  • Target version set to v0.48

#2 Updated by Sage Weil 11 months ago

  • Target version deleted (v0.48)

#3 Updated by Sage Weil 9 months ago

  • Status changed from New to Resolved

Also available in: Atom PDF