diff options
| author | Dan Engelbrecht <[email protected]> | 2023-11-21 16:58:43 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-21 16:58:43 +0100 |
| commit | 669a8869b5414c0e8708dd90b1f4aa297d091887 (patch) | |
| tree | c81c309cf3013e3129caeefb5c3eaba2aaed6967 /src/zenstore/compactcas.cpp | |
| parent | fixed paths in ue_build_linux/README.md (diff) | |
| download | zen-669a8869b5414c0e8708dd90b1f4aa297d091887.tar.xz zen-669a8869b5414c0e8708dd90b1f4aa297d091887.zip | |
add command line options for compact block threshold and gc verbose (#557)
- Feature: Added new options to zenserver for GC V2
- `--gc-compactblock-threshold` GCV2 - how much of a compact block should be used to skip compacting the block, default is 90%
- `--gc-verbose` GCV2 - enable more verbose output when running a GC pass
- Feature: Added new options to `zen gc` command for GC V2
- `--compactblockthreshold` GCV2 - how much of a compact block should be used to skip compacting the block, default is 90%
- `--verbose` GCV2 - enable more verbose output when running a GC pass
- Feature: Added new parameters for endpoint `admin/gc` (PUT)
- `compactblockthreshold` GCV2 - how much of a compact block should be used to skip compacting the block, default is 90%
- `verbose` GCV2 - enable more verbose output when running a GC pass
Diffstat (limited to 'src/zenstore/compactcas.cpp')
| -rw-r--r-- | src/zenstore/compactcas.cpp | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/zenstore/compactcas.cpp b/src/zenstore/compactcas.cpp index 7b8e930b3..1d608be8d 100644 --- a/src/zenstore/compactcas.cpp +++ b/src/zenstore/compactcas.cpp @@ -621,9 +621,12 @@ public: if (Ctx.Settings.IsDeleteMode) { - ZEN_DEBUG("GCV2: compactcas [COMPACT] '{}': compacting {} blocks", - m_CasContainerStrategy.m_RootDirectory / m_CasContainerStrategy.m_ContainerBaseName, - BlocksToCompact.size()); + if (Ctx.Settings.Verbose) + { + ZEN_INFO("GCV2: compactcas [COMPACT] '{}': compacting {} blocks", + m_CasContainerStrategy.m_RootDirectory / m_CasContainerStrategy.m_ContainerBaseName, + BlocksToCompact.size()); + } m_CasContainerStrategy.m_BlockStore.CompactBlocks( BlockCompactState, @@ -660,9 +663,12 @@ public: } else { - ZEN_DEBUG("GCV2: compactcas [COMPACT] '{}': skipped compacting of {} eligible blocks", - m_CasContainerStrategy.m_RootDirectory / m_CasContainerStrategy.m_ContainerBaseName, - BlocksToCompact.size()); + if (Ctx.Settings.Verbose) + { + ZEN_INFO("GCV2: compactcas [COMPACT] '{}': skipped compacting of {} eligible blocks", + m_CasContainerStrategy.m_RootDirectory / m_CasContainerStrategy.m_ContainerBaseName, + BlocksToCompact.size()); + } } } } @@ -763,7 +769,7 @@ CasContainerStrategy::CreateReferencePruner(GcCtx& Ctx, GcReferenceStoreStats&) { return; } - ZEN_INFO("GCV2: compactcas [CREATE PRUNERS] '{}' in {}", + ZEN_INFO("GCV2: compactcas [CREATE PRUNER] '{}' in {}", m_RootDirectory / m_ContainerBaseName, NiceTimeSpanMs(Timer.GetElapsedTimeMs())); }); |