aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.h
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-11-12 21:42:25 +0100
committerGitHub <noreply@github.com>2021-11-12 21:42:25 +0100
commit5cb9b85ffb3ec2a77caaa4ee367ad6435bbf762a (patch)
tree3723c971cf02eadc071c57efd5ac4d13d832220f /searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.h
parent3f54f188382c09c409171145cd246b7730db3c6c (diff)
parente834424c31fd2dc6c3268cf3b374c5731108cd6b (diff)
Merge pull request #19988 from vespa-engine/balder/less-eager-compaction-during-retirementv7.500.40
When node is retired we can relax compaction strategy as we have peaked
Diffstat (limited to 'searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.h')
-rw-r--r--searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.h b/searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.h
index 50e5ffba0e2..7051722f605 100644
--- a/searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.h
+++ b/searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.h
@@ -152,6 +152,8 @@ private:
DocumentMetaStoreFlushTarget::SP _dmsFlushTarget;
std::shared_ptr<ShrinkLidSpaceFlushTarget> _dmsShrinkTarget;
std::shared_ptr<PendingLidTrackerBase> _pendingLidsForCommit;
+ bool _nodeRetired;
+ search::CompactionStrategy _lastConfiguredCompactionStrategy;
IFlushTargetList getFlushTargets() override;
protected:
@@ -180,9 +182,8 @@ protected:
StoreOnlyFeedView::Context getStoreOnlyFeedViewContext(const DocumentDBConfig &configSnapshot);
StoreOnlyFeedView::PersistentParams getFeedViewPersistentParams();
vespalib::string getSubDbName() const;
-
- void reconfigure(const search::LogDocumentStore::Config & protonConfig,
- const AllocStrategy& alloc_strategy);
+ void reconfigure(const search::LogDocumentStore::Config & protonConfig, const AllocStrategy& alloc_strategy);
+ void reconfigureAttributesConsideringNodeState();
public:
StoreOnlyDocSubDB(const Config &cfg, const Context &ctx);
~StoreOnlyDocSubDB() override;
@@ -233,6 +234,9 @@ public:
std::shared_ptr<IDocumentDBReference> getDocumentDBReference() override;
void tearDownReferences(IDocumentDBReferenceResolver &resolver) override;
PendingLidTrackerBase & getUncommittedLidsTracker() override { return *_pendingLidsForCommit; }
+ search::CompactionStrategy computeCompactionStrategy(search::CompactionStrategy strategy) const;
+ bool isNodeRetired() const { return _nodeRetired; }
+
};
}