OmniSciDB
0264ff685a
|
#include <CommandLineOptions.h>
Public Member Functions | |
CommandLineOptions (char const *argv0, bool dist_v5_=false) | |
void | fillOptions () |
void | fillAdvancedOptions () |
std::string | getNodeIds () |
std::vector< std::string > | getNodeIdsArray () |
boost::optional< int > | parse_command_line (int argc, char const *const *argv, const bool should_init_logging=false) |
void | validate () |
void | validate_base_path () |
void | init_logging () |
Static Public Attributes | |
static const std::string | nodeIds_token = {"node_id"} |
Definition at line 39 of file CommandLineOptions.h.
|
inline |
Definition at line 41 of file CommandLineOptions.h.
References fillAdvancedOptions(), and fillOptions().
void CommandLineOptions::fillAdvancedOptions | ( | ) |
Definition at line 396 of file CommandLineOptions.cpp.
References g_approx_quantile_buffer, g_approx_quantile_centroids, g_bitmap_memory_limit, g_enable_bump_allocator, g_enable_calcite_ddl_parser, g_enable_columnar_output, g_enable_direct_columnarization, g_enable_filter_function, g_enable_seconds_refresh, g_enable_smem_group_by, g_enable_smem_grouped_non_count_agg, g_enable_smem_non_grouped_agg, g_enable_table_functions, g_enable_window_functions, g_fraction_code_cache_to_evict, g_gpu_smem_threshold, g_large_ndv_multiplier, g_large_ndv_threshold, g_max_memory_allocation_size, g_min_memory_allocation_size, g_skip_intermediate_count, g_strip_join_covered_quals, g_use_table_device_offset, and g_use_tbb_pool.
Referenced by CommandLineOptions().
void CommandLineOptions::fillOptions | ( | ) |
Definition at line 67 of file CommandLineOptions.cpp.
References g_allow_cpu_retry, g_bigint_count, g_cache_string_hash, g_enable_debug_timer, g_enable_experimental_string_functions, g_enable_filter_push_down, g_enable_fsi, g_enable_hashjoin_many_to_many, g_enable_interop, g_enable_overlaps_hashjoin, g_enable_stringdict_parallel, g_enable_thrift_logs, g_enable_union, g_filter_push_down_high_frac, g_filter_push_down_low_frac, g_filter_push_down_passing_row_ubound, g_from_table_reordering, g_hll_precision_bits, g_inner_join_fragment_skipping, Catalog_Namespace::g_log_user_id, g_max_import_threads, g_null_div_by_zero, g_overlaps_max_table_size_bytes, g_trivial_loop_join_threshold, and run_benchmark_import::required.
Referenced by CommandLineOptions().
std::string CommandLineOptions::getNodeIds | ( | ) |
std::vector<std::string> CommandLineOptions::getNodeIdsArray | ( | ) |
void CommandLineOptions::init_logging | ( | ) |
Definition at line 58 of file CommandLineOptions.cpp.
References logger::DEBUG1, and logger::init().
boost::optional< int > CommandLineOptions::parse_command_line | ( | int | argc, |
char const *const * | argv, | ||
const bool | should_init_logging = false |
||
) |
Definition at line 860 of file CommandLineOptions.cpp.
References logger::ERROR, g_dynamic_watchdog_time_limit, g_enable_dynamic_watchdog, g_enable_filter_push_down, g_enable_runtime_query_interrupt, g_enable_watchdog, g_from_table_reordering, g_max_import_threads, g_pending_query_interrupt_freq, g_running_query_interrupt_freq, g_use_estimator_result_cache, logger::INFO, LOG, MAPD_RELEASE, run, anonymous_namespace{CommandLineOptions.cpp}::sanitize_config_file(), and anonymous_namespace{CommandLineOptions.cpp}::trim_and_check_file_exists().
Referenced by main().
void CommandLineOptions::validate | ( | ) |
Definition at line 721 of file CommandLineOptions.cpp.
References anonymous_namespace{CommandLineOptions.cpp}::addOptionalFileToBlacklist(), ddl_utils::FilePathBlacklist::addToBlacklist(), all, omnisci::close(), fsi, g_enable_debug_timer, g_enable_fsi, g_enable_s3_fsi, Catalog_Namespace::g_log_user_id, logger::INFO, ddl_utils::FilePathWhitelist::initializeFromConfigFile(), LOG, non_fsi, none, OMNISCI_SYSTEM_CATALOG, omnisci::open(), to_string(), and File_Namespace::write().
Referenced by main().
void CommandLineOptions::validate_base_path | ( | ) |
Definition at line 714 of file CommandLineOptions.cpp.
Referenced by main().
bool CommandLineOptions::allow_loop_joins = false |
Definition at line 60 of file CommandLineOptions.h.
Referenced by startMapdServer().
bool CommandLineOptions::allow_multifrag = true |
Definition at line 58 of file CommandLineOptions.h.
Referenced by startMapdServer().
AuthMetadata CommandLineOptions::authMetadata |
Definition at line 63 of file CommandLineOptions.h.
Referenced by startMapdServer().
std::string CommandLineOptions::base_path |
Definition at line 48 of file CommandLineOptions.h.
Referenced by startMapdServer().
std::string CommandLineOptions::cluster_file = {"cluster.conf"} |
Definition at line 50 of file CommandLineOptions.h.
std::string CommandLineOptions::cluster_topology_file = {"cluster_topology.conf"} |
Definition at line 51 of file CommandLineOptions.h.
std::string CommandLineOptions::clusterIds_arg |
Definition at line 134 of file CommandLineOptions.h.
std::string CommandLineOptions::compressor = std::string(BLOSC_LZ4HC_COMPNAME) |
Definition at line 123 of file CommandLineOptions.h.
bool CommandLineOptions::cpu_only = false |
Definition at line 54 of file CommandLineOptions.h.
Referenced by startMapdServer().
std::vector<LeafHostInfo> CommandLineOptions::db_leaves |
Definition at line 131 of file CommandLineOptions.h.
Referenced by startMapdServer().
std::string CommandLineOptions::db_query_file = {""} |
path to file containing warmup queries list
Definition at line 98 of file CommandLineOptions.h.
Referenced by startMapdServer().
po::options_description CommandLineOptions::developer_desc |
Definition at line 126 of file CommandLineOptions.h.
DiskCacheConfig CommandLineOptions::disk_cache_config |
Definition at line 49 of file CommandLineOptions.h.
Referenced by startMapdServer().
std::string CommandLineOptions::disk_cache_level = "" |
Definition at line 83 of file CommandLineOptions.h.
const bool CommandLineOptions::dist_v5_ |
Definition at line 146 of file CommandLineOptions.h.
unsigned CommandLineOptions::dynamic_watchdog_time_limit = 10000 |
Definition at line 82 of file CommandLineOptions.h.
bool CommandLineOptions::enable_auto_clear_render_mem = false |
Definition at line 67 of file CommandLineOptions.h.
Referenced by startMapdServer().
bool CommandLineOptions::enable_dynamic_watchdog = false |
Definition at line 77 of file CommandLineOptions.h.
bool CommandLineOptions::enable_legacy_syntax = true |
Definition at line 61 of file CommandLineOptions.h.
Referenced by startMapdServer().
bool CommandLineOptions::enable_rendering = false |
Definition at line 66 of file CommandLineOptions.h.
Referenced by startMapdServer().
bool CommandLineOptions::enable_runtime_query_interrupt = false |
Definition at line 78 of file CommandLineOptions.h.
bool CommandLineOptions::enable_runtime_udf = false |
Definition at line 74 of file CommandLineOptions.h.
Referenced by startMapdServer().
bool CommandLineOptions::enable_watchdog = true |
Definition at line 76 of file CommandLineOptions.h.
std::string CommandLineOptions::encryption_key_store_path = {} |
Definition at line 53 of file CommandLineOptions.h.
bool CommandLineOptions::exit_after_warmup = false |
exit after warmup
Definition at line 102 of file CommandLineOptions.h.
Referenced by startMapdServer().
po::options_description CommandLineOptions::help_desc |
Definition at line 125 of file CommandLineOptions.h.
int CommandLineOptions::http_port = 6278 |
Definition at line 46 of file CommandLineOptions.h.
Referenced by startMapdServer().
int CommandLineOptions::idle_session_duration = kMinsPerHour |
Inactive session tolerance in mins (60 mins)
Definition at line 106 of file CommandLineOptions.h.
Referenced by startMapdServer().
bool CommandLineOptions::intel_jit_profile = false |
Definition at line 57 of file CommandLineOptions.h.
Referenced by startMapdServer().
bool CommandLineOptions::jit_debug = false |
Definition at line 56 of file CommandLineOptions.h.
Referenced by startMapdServer().
std::string CommandLineOptions::license_path = {""} |
Definition at line 52 of file CommandLineOptions.h.
logger::LogOptions CommandLineOptions::log_options_ |
Definition at line 127 of file CommandLineOptions.h.
bool CommandLineOptions::log_user_origin = true |
Definition at line 62 of file CommandLineOptions.h.
Referenced by startMapdServer().
size_t CommandLineOptions::max_concurrent_render_sessions = 500 |
Definition at line 70 of file CommandLineOptions.h.
Referenced by startMapdServer().
int CommandLineOptions::max_session_duration = kMinsPerMonth |
Maximum session life in mins (43,200 mins == 30 Days) (https://pages.nist.gov/800-63-3/sp800-63b.html#aal3reauth)
Definition at line 111 of file CommandLineOptions.h.
Referenced by startMapdServer().
|
static |
Definition at line 138 of file CommandLineOptions.h.
int CommandLineOptions::num_gpus = -1 |
Can be used to override the number of gpus detected on the system -1 means do not override
Definition at line 89 of file CommandLineOptions.h.
Referenced by startMapdServer().
size_t CommandLineOptions::num_reader_threads = 0 |
Number of threads used when loading data
Definition at line 94 of file CommandLineOptions.h.
Referenced by startMapdServer().
unsigned CommandLineOptions::pending_query_interrupt_freq = 1000 |
Definition at line 81 of file CommandLineOptions.h.
po::positional_options_description CommandLineOptions::positional_options |
Definition at line 128 of file CommandLineOptions.h.
bool CommandLineOptions::read_only = false |
Definition at line 59 of file CommandLineOptions.h.
Referenced by startMapdServer().
bool CommandLineOptions::render_compositor_use_last_gpu = true |
Definition at line 71 of file CommandLineOptions.h.
Referenced by startMapdServer().
size_t CommandLineOptions::render_mem_bytes = 1000000000 |
Definition at line 69 of file CommandLineOptions.h.
Referenced by startMapdServer().
int CommandLineOptions::render_oom_retry_threshold = 0 |
Definition at line 68 of file CommandLineOptions.h.
Referenced by startMapdServer().
bool CommandLineOptions::renderer_use_vulkan_driver = false |
Definition at line 72 of file CommandLineOptions.h.
Referenced by startMapdServer().
size_t CommandLineOptions::reserved_gpu_mem = 384 * 1024 * 1024 |
Definition at line 47 of file CommandLineOptions.h.
Referenced by startMapdServer().
double CommandLineOptions::running_query_interrupt_freq = 0.5 |
Definition at line 80 of file CommandLineOptions.h.
int CommandLineOptions::start_gpu = 0 |
Definition at line 90 of file CommandLineOptions.h.
Referenced by startMapdServer().
std::vector<LeafHostInfo> CommandLineOptions::string_leaves |
Definition at line 132 of file CommandLineOptions.h.
Referenced by startMapdServer().
SystemParameters CommandLineOptions::system_parameters |
Definition at line 65 of file CommandLineOptions.h.
Referenced by startMapdServer().
std::vector<std::string> CommandLineOptions::udf_compiler_options |
Definition at line 114 of file CommandLineOptions.h.
Referenced by startMapdServer().
std::string CommandLineOptions::udf_compiler_path = {""} |
Definition at line 113 of file CommandLineOptions.h.
Referenced by startMapdServer().
std::string CommandLineOptions::udf_file_name = {""} |
Definition at line 112 of file CommandLineOptions.h.
Referenced by startMapdServer().
bool CommandLineOptions::use_estimator_result_cache = true |
Definition at line 79 of file CommandLineOptions.h.
bool CommandLineOptions::verbose_logging = false |
Definition at line 55 of file CommandLineOptions.h.
po::variables_map CommandLineOptions::vm |
Definition at line 133 of file CommandLineOptions.h.