mirror of
https://github.com/XTXMarkets/ternfs.git
synced 2026-01-05 18:40:16 -06:00
24 lines
751 B
C++
24 lines
751 B
C++
#pragma once
|
|
|
|
#include "Env.hpp"
|
|
#include "Shard.hpp"
|
|
#include "Time.hpp"
|
|
|
|
struct CDCOptions {
|
|
LogLevel logLevel = LogLevel::LOG_INFO;
|
|
std::string logFile = ""; // if empty, stdout
|
|
uint16_t port = 0; // chosen randomly and recorded in shuckle
|
|
std::string shuckleHost = "";
|
|
uint16_t shucklePort = 0;
|
|
// The second will be used if the ip is non-null
|
|
std::array<IpPort, 2> ipPorts = {IpPort(0, 0), IpPort(0, 0)};
|
|
bool syslog = false;
|
|
Duration shardTimeout = 100_ms;
|
|
bool xmon = false;
|
|
bool xmonProd = false;
|
|
// at 1ms per request it's 10 seconds worth of requests.
|
|
uint64_t maximumEnqueuedRequests = 10000;
|
|
bool metrics = false;
|
|
};
|
|
|
|
void runCDC(const std::string& dbDir, const CDCOptions& options); |