Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions presto-native-execution/presto_cpp/main/common/Configs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,18 @@ void ConfigBase::checkRegisteredProperties(
SystemConfig::SystemConfig() {
registeredProps_ =
std::unordered_map<std::string, folly::Optional<std::string>>{
STR_PROP(kMutableConfig, "false"),
BOOL_PROP(kMutableConfig, false),
NONE_PROP(kPrestoVersion),
NONE_PROP(kHttpServerHttpPort),
STR_PROP(kHttpServerReusePort, "false"),
BOOL_PROP(kHttpServerBindToNodeInternalAddressOnlyEnabled, "false"),
BOOL_PROP(kHttpServerReusePort, false),
BOOL_PROP(kHttpServerBindToNodeInternalAddressOnlyEnabled, false),
NONE_PROP(kDiscoveryUri),
NUM_PROP(kMaxDriversPerTask, 16),
NUM_PROP(kConcurrentLifespansPerTask, 1),
NUM_PROP(kHttpServerNumIoThreadsHwMultiplier, 1.0),
NUM_PROP(kHttpServerNumCpuThreadsHwMultiplier, 1.0),
NONE_PROP(kHttpServerHttpsPort),
STR_PROP(kHttpServerHttpsEnabled, "false"),
BOOL_PROP(kHttpServerHttpsEnabled, false),
STR_PROP(
kHttpsSupportedCiphers,
"ECDHE-ECDSA-AES256-GCM-SHA384,AES256-GCM-SHA384"),
Expand All @@ -162,38 +162,38 @@ SystemConfig::SystemConfig() {
NONE_PROP(kSpillerSpillPath),
NUM_PROP(kShutdownOnsetSec, 10),
NUM_PROP(kSystemMemoryGb, 40),
STR_PROP(kSystemMemPushbackEnabled, "false"),
BOOL_PROP(kSystemMemPushbackEnabled, false),
NUM_PROP(kSystemMemLimitGb, 55),
NUM_PROP(kSystemMemShrinkGb, 8),
STR_PROP(kMallocMemHeapDumpEnabled, "false"),
BOOL_PROP(kMallocMemHeapDumpEnabled, false),
NUM_PROP(kMallocHeapDumpThresholdGb, 20),
NUM_PROP(kMallocMemMinHeapDumpInterval, 10),
NUM_PROP(kMallocMemMaxHeapDumpFiles, 5),
STR_PROP(kAsyncDataCacheEnabled, "true"),
BOOL_PROP(kAsyncDataCacheEnabled, true),
NUM_PROP(kAsyncCacheSsdGb, 0),
NUM_PROP(kAsyncCacheSsdCheckpointGb, 0),
STR_PROP(kAsyncCacheSsdPath, "/mnt/flash/async_cache."),
STR_PROP(kAsyncCacheSsdDisableFileCow, "false"),
STR_PROP(kEnableSerializedPageChecksum, "true"),
STR_PROP(kUseMmapAllocator, "true"),
BOOL_PROP(kAsyncCacheSsdDisableFileCow, false),
BOOL_PROP(kEnableSerializedPageChecksum, true),
BOOL_PROP(kUseMmapAllocator, true),
STR_PROP(kMemoryArbitratorKind, ""),
NUM_PROP(kQueryMemoryGb, 38),
STR_PROP(kEnableVeloxTaskLogging, "false"),
STR_PROP(kEnableVeloxExprSetLogging, "false"),
BOOL_PROP(kEnableVeloxTaskLogging, false),
BOOL_PROP(kEnableVeloxExprSetLogging, false),
NUM_PROP(kLocalShuffleMaxPartitionBytes, 268435456),
STR_PROP(kShuffleName, ""),
STR_PROP(kRemoteFunctionServerCatalogName, ""),
STR_PROP(kRemoteFunctionServerSerde, "presto_page"),
STR_PROP(kHttpEnableAccessLog, "false"),
STR_PROP(kHttpEnableStatsFilter, "false"),
STR_PROP(kHttpEnableEndpointLatencyFilter, "false"),
STR_PROP(kRegisterTestFunctions, "false"),
BOOL_PROP(kHttpEnableAccessLog, false),
BOOL_PROP(kHttpEnableStatsFilter, false),
BOOL_PROP(kHttpEnableEndpointLatencyFilter, false),
BOOL_PROP(kRegisterTestFunctions, false),
NUM_PROP(kHttpMaxAllocateBytes, 65536),
STR_PROP(kQueryMaxMemoryPerNode, "4GB"),
STR_PROP(kEnableMemoryLeakCheck, "true"),
BOOL_PROP(kEnableMemoryLeakCheck, true),
NONE_PROP(kRemoteFunctionServerThriftPort),
STR_PROP(kSkipRuntimeStatsInRunningTaskInfo, "true"),
STR_PROP(kLogZombieTaskInfo, "false"),
BOOL_PROP(kSkipRuntimeStatsInRunningTaskInfo, true),
BOOL_PROP(kLogZombieTaskInfo, false),
NUM_PROP(kLogNumZombieTasks, 20),
NUM_PROP(kAnnouncementMaxFrequencyMs, 30'000), // 30s
NUM_PROP(kHeartbeatFrequencyMs, 0),
Expand All @@ -206,7 +206,7 @@ SystemConfig::SystemConfig() {
BOOL_PROP(kIncludeNodeInSpillPath, false),
NUM_PROP(kOldTaskCleanUpMs, 60'000),
BOOL_PROP(kEnableOldTaskCleanUp, true),
STR_PROP(kInternalCommunicationJwtEnabled, "false"),
BOOL_PROP(kInternalCommunicationJwtEnabled, false),
STR_PROP(kInternalCommunicationSharedSecret, ""),
NUM_PROP(kInternalCommunicationJwtExpirationSeconds, 300),
BOOL_PROP(kUseLegacyArrayAgg, false),
Expand Down Expand Up @@ -658,7 +658,7 @@ BaseVeloxQueryConfig::BaseVeloxQueryConfig() {
using namespace velox::core;
registeredProps_ =
std::unordered_map<std::string, folly::Optional<std::string>>{
STR_PROP(kMutableConfig, "false"),
BOOL_PROP(kMutableConfig, false),
BOOL_PROP(QueryConfig::kCodegenEnabled, c.codegenEnabled()),
STR_PROP(
QueryConfig::kCodegenConfigurationFilePath,
Expand Down