Skip to main content

Snapshot Configuration Properties

Key configurations for Ozone snapshots.

These parameters, defined in ozone-site.xml, control how Ozone manages snapshots.

General Snapshot Management

PropertyDefault ValueDescription
ozone.om.fs.snapshot.max.limit10000Max snapshots per bucket. Safety limit.
ozone.om.ratis.snapshot.dirratis-snapshot under OM DB dirThe directory where OM Ratis snapshots are stored.
ozone.om.ratis.snapshot.max.total.sst.size100000000The maximum total size of SST files to be included in a Ratis snapshot.
ozone.om.snapshot.load.native.libtrueUse native RocksDB library for snapshot operations. Set to false as a workaround for native library issues.
ozone.om.snapshot.checkpoint.dir.creation.poll.timeout20sTimeout for polling the creation of the snapshot checkpoint directory.

SnapshotDiff Service

PropertyDefault ValueDescription
ozone.om.snapshot.diff.db.dirOM metadata dirDirectory for SnapshotDiff job data. Use a spacious location for large diffs.
ozone.om.snapshot.force.full.difffalseForce a full diff for all snapshot diff jobs.
ozone.om.snapshot.diff.disable.native.libsfalseDisable native libraries for snapshot diff.
ozone.om.snapshot.diff.max.page.size1000Maximum page size for snapshot diff.
ozone.om.snapshot.diff.thread.pool.size10Thread pool size for snapshot diff.
ozone.om.snapshot.diff.job.default.wait.time1mDefault wait time for a snapshot diff job.
ozone.om.snapshot.diff.max.allowed.keys.changed.per.job10000000Maximum number of keys allowed to be changed per snapshot diff job.

Snapshot Compaction and Cleanup

PropertyDefault ValueDescription
ozone.snapshot.key.deleting.limit.per.task20000The maximum number of keys scanned by the snapshot deleting service in a single run.
ozone.om.snapshot.compact.non.snapshot.diff.tablesfalseWhen enabled, allows compaction of tables not tracked by snapshot diffs after snapshots are evicted from the cache.
ozone.om.snapshot.compaction.dag.max.time.allowed30 daysWindow for efficient SnapshotDiff. Older diffs may be slower.
ozone.om.snapshot.prune.compaction.backup.batch.size2000Batch size for pruning compaction backups.
ozone.om.snapshot.compaction.dag.prune.daemon.run.interval10mInterval for the compaction DAG pruning daemon.
ozone.om.snapshot.diff.max.jobs.purge.per.task100Maximum number of snapshot diff jobs to purge per task.
ozone.om.snapshot.diff.job.report.persistent.time7dPersistence time for snapshot diff job reports.
ozone.om.snapshot.diff.cleanup.service.run.interval1mInterval for the snapshot diff cleanup service.
ozone.om.snapshot.diff.cleanup.service.timeout5mTimeout for the snapshot diff cleanup service.
ozone.om.snapshot.cache.cleanup.service.run.interval1mInterval for the snapshot cache cleanup service.
ozone.snapshot.filtering.limit.per.task2The maximum number of snapshots to be filtered in a single run of the snapshot filtering service.
ozone.snapshot.deleting.limit.per.task10The maximum number of snapshots to be deleted in a single run of the snapshot deleting service.
ozone.snapshot.filtering.service.interval60sInterval for the snapshot filtering service.
ozone.snapshot.deleting.service.timeout300sTimeout for the snapshot deleting service.
ozone.snapshot.deleting.service.interval30sInterval for the snapshot deleting service.
ozone.snapshot.deep.cleaning.enabledfalseEnable deep cleaning of snapshots.

Performance and Resource Management

PropertyDefault ValueDescription
ozone.om.snapshot.rocksdb.metrics.enabledfalseEnable detailed RocksDB metrics for snapshots. Use for debugging/monitoring.
ozone.om.snapshot.cache.max.size10Maximum size of the snapshot cache soft limit.
ozone.om.snapshot.db.max.open.files100Maximum number of open files for the snapshot database.

Snapshot Provider (Internal)

PropertyDefault ValueDescription
ozone.om.snapshot.provider.socket.timeout5000sSocket timeout for the snapshot provider.
ozone.om.snapshot.provider.connection.timeout5000sConnection timeout for the snapshot provider.
ozone.om.snapshot.provider.request.timeout5mRequest timeout for the snapshot provider.

Recon-Specific Settings

These settings, defined in ozone-default.xml, apply specifically to Recon.

PropertyDefault ValueDescription
ozone.recon.om.snapshot.task.initial.delay1mInitial delay for the OM snapshot task in Recon.
ozone.recon.om.snapshot.task.interval.delay5sInterval for the OM snapshot task in Recon.
ozone.recon.om.snapshot.task.flush.paramfalseFlush parameter for the OM snapshot task in Recon.