![SWC-DB logo](logo.svg) |
SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
|
Go to the documentation of this file.
6 #ifndef swcdb_broker_Settings_h
7 #define swcdb_broker_Settings_h
17 namespace SWC {
namespace Config {
24 settings->file_desc.add_options()
25 (
"swc.bkr.cfg",
str(),
"Specific cfg-file for Broker")
26 (
"swc.bkr.cfg.dyn",
strs(),
"Specific dyn. cfg-file for Broker")
28 (
"swc.bkr.concurrency.relative",
boo(
true),
29 "Determined ratio by HW-Concurrency")
30 (
"swc.bkr.reactors",
i32(4),
31 "Number of Communication Reactors or HW-Concurrency a Reactor")
32 (
"swc.bkr.workers",
i32(16),
33 "Number of Workers a Reactor")
34 (
"swc.bkr.handlers",
i32(2),
35 "Number or HW-Concurrency base of App Handlers")
36 (
"swc.bkr.clients.handlers",
i32(2),
37 "Number or HW-Concurrency base of DB-Client Handlers")
39 (
"swc.bkr.comm.encoder",
45 "The encoding to use in communication, options PLAIN/ZSTD/SNAPPY/ZLIB")
47 (
"swc.bkr.ram.allowed.percent",
g_i32(33),
48 "Memory RSS % allowed without freeing/releasing")
49 (
"swc.bkr.ram.reserved.percent",
g_i32(33),
50 "Memory Total % reserved, threshold of low-memory enter state")
51 (
"swc.bkr.ram.release.rate",
g_i32(100),
52 "Memory release-rate (malloc dependable)")
54 (
"swc.bkr.metrics.enabled",
boo(
true),
55 "Enable or Disable Metrics Monitoring")
57 (
"swc.bkr.metrics.report.interval",
g_i32(300),
58 "Metrics Reporting Interval in Seconds")
65 #endif // swcdb_broker_Settings_h
Property::Value_int32::Ptr i32(const int32_t &v)
Property::Value_int32_g::Ptr g_i32(const int32_t &v)
Property::Value_enum_g::Ptr g_enum(const int32_t &v, Property::Value_enum_g::OnChg_t &&cb, Property::Value_enum_g::FromString_t &&from_string, Property::Value_enum_g::Repr_t &&repr)
void init_app_options(Settings *settings)
SWC_CAN_INLINE int from_string_encoding(const std::string &typ) noexcept
Property::Value_bool::Ptr boo(const bool &v)
void init_client_options(Settings *settings)
#define SWC_DEFAULT_COMM_ENCODER
void init_comm_options(Settings *settings)
The SWC-DB C++ namespace 'SWC'.
Property::Value_strings::Ptr strs(Strings &&v)
Property::Value_string::Ptr str(std::string &&v)
SWC_CAN_INLINE std::string repr_encoding(int typ)