mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
If we get a SIGINT or SIGTERM or are deleted from the OSDMap, do a fast shutdown by exiting immediately. This has a few important benefits: - We immediately stop responding (binding) to any sockets, which means other OSDs will immediately decide we are down (and dead!). This minimizes IO interruption. - We avoid the complex "clean" shutdown process, which is historically a source of bugs. In reality, the only purpose of the "clean" shutdown is to try to tear down everything in memory so we can do memory leak checking with valgrind. Set this option to false for valgrind QA runs so we can still do that. Not that with the new read leases in octopus, we rely on the default behavior that a ECONNREFUSED is taken to mean that the OSD is fully dead, so that we don't have to wait for any leases to time out. This works in sane environments with normal IP networks, but that behavior could conceivably be a bad idea if there are some weird network shenanigans going on. If osd_fast_fail_on_connection_refused were disabled, then this fast shutdown procedure might be *worse* than the clean shutdown because we would have to wait for the heartbeat timeout. Signed-off-by: Sage Weil <sage@redhat.com>
30 lines
861 B
YAML
30 lines
861 B
YAML
# see http://tracker.ceph.com/issues/20360 and http://tracker.ceph.com/issues/18126
|
|
os_type: centos
|
|
|
|
overrides:
|
|
install:
|
|
ceph:
|
|
flavor: notcmalloc
|
|
debuginfo: true
|
|
ceph:
|
|
conf:
|
|
global:
|
|
osd heartbeat grace: 40
|
|
debug refs: 5
|
|
mon:
|
|
mon osd crush smoke test: false
|
|
osd:
|
|
osd fast shutdown: false
|
|
log-whitelist:
|
|
- overall HEALTH_
|
|
# valgrind is slow.. we might get PGs stuck peering etc
|
|
- \(PG_
|
|
# mons sometimes are left off of initial quorum due to valgrind slowness. ok to whitelist here because we'll still catch an actual crash due to the core
|
|
- \(MON_DOWN\)
|
|
valgrind:
|
|
mon: [--tool=memcheck, --leak-check=full, --show-reachable=yes]
|
|
osd: [--tool=memcheck]
|
|
mds: [--tool=memcheck]
|
|
# https://tracker.ceph.com/issues/38621
|
|
# mgr: [--tool=memcheck]
|