Bug 2240819
Summary: | post upgrade to 4.10, osd daemons flapping due to snaptrimming | ||
---|---|---|---|
Product: | [Red Hat Storage] Red Hat OpenShift Data Foundation | Reporter: | George Law <glaw> |
Component: | ceph | Assignee: | Prashant Dhange <pdhange> |
ceph sub component: | RADOS | QA Contact: | Elad <ebenahar> |
Status: | CLOSED NOTABUG | Docs Contact: | |
Severity: | high | ||
Priority: | high | CC: | akupczyk, assingh, bhubbard, bniver, ksachdev, linuxkidd, mbreizma, muagarwa, nojha, pdhange, sbaldwin, smykhail, sostapov, vadeshpa |
Version: | 4.10 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-10-20 19:09:09 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
George Law
2023-09-26 18:39:50 UTC
> Also, what could be possible reason for large omap for snap objects ?
The DB could grow very significantly if one does snapshot & overwrites on objects that have large OMAP data.
BlueStore is COPYING OMAP data when Bluestore::clone() in done on object, there is no COW here.
I think the best we can do to help SnapMapper trim is to periodically inject "compact" command.
The problem with RocksDB & deletion & slow iterators is that deletion is very compact operation,
and default triggers for auto compaction are relying on L0 sst tables size.
It is possible to accumulate significant amount of key remove operation and not trigger compaction,
but be significantly burdened with iterating over deleted keys.
It can be done by either admin command "compact"
#ceph tell osd.0 compact
If OSD suicides before finishing compaction, one can take it offline and apply:
#ceph-kvstore-tool ./bin/ceph-kvstore-tool bluestore-kv path-to-data compact
or just compact omap:
#ceph-kvstore-tool ./bin/ceph-kvstore-tool bluestore-kv path-to-data compact-prefix p
I think as SnapMapper deletion progresses, it might be required to retrigger compaction multiple times.
|