blob: d25707ff51ed99fa2b4de464c1f9b6964771963f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <memory>
namespace proton {
class DocumentDBConfig;
/**
* Class to create adjusted document db config that minimizes the number of
* proton restarts needed due to config changes. Grab the portions from
* live (supposedly future) config that is safe to apply early during
* initialization and replay.
*/
class DocumentDBConfigScout
{
public:
static std::shared_ptr<DocumentDBConfig>
scout(const std::shared_ptr<DocumentDBConfig> &config, const DocumentDBConfig &liveConfig);
};
}
|