OmniSciDB  d2f719934e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SystemParameters.h
Go to the documentation of this file.
1 /*
2  * Copyright 2020 OmniSci, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 /*
18  * File: parameters.h
19  * Author: michael
20  *
21  * Created on January 19, 2017, 4:31 PM
22  */
23 
24 #pragma once
25 
26 #include <string>
27 
29  bool cpu_only = false; // cpu-only execution
30  int num_gpus = -1; // number of gpus to use
31  int start_gpu = 0; // first gpu to use
32  size_t cuda_block_size = 0; // block size for the kernel execution
33  size_t cuda_grid_size = 0; // grid size for the kernel execution
34  size_t calcite_max_mem = 1024; // max memory for calcite jvm in MB
35  int omnisci_server_port = 6274; // default port omnisci_server runs on
36  int calcite_port = 6279; // default port for calcite server to run on
37  std::string ha_group_id; // name of the HA group this server is in
38  std::string ha_unique_server_id; // name of the HA unique id for this server
39  std::string ha_brokers; // name of the HA broker
40  std::string ha_shared_data; // name of shared data directory base
41  std::string master_address; // address the RW master node is located
42  int master_port = 6274; // port the RW master node is listening on
43  bool is_decr_start_epoch; // are we doing a start epoch decrement?
44  size_t cpu_buffer_mem_bytes = 0; // max size of memory reserved for CPU buffers [bytes]
45  size_t gpu_buffer_mem_bytes = 0; // max size of memory reserved for GPU buffers [bytes]
47  size_t(1)
48  << 28; // min size of CPU buffer pool memory allocations [bytes], default=256MB
50  size_t(1)
51  << 28; // min size of GPU buffer pool memory allocations [bytes], default=256MB
53  size_t(1)
54  << 32; // max size of CPU buffer pool memory allocations [bytes], default=4GB
56  size_t(1)
57  << 32; // max size of CPU buffer pool memory allocations [bytes], default=4GB
58  double gpu_input_mem_limit = 0.9; // Punt query to CPU if input mem exceeds % GPU mem
59  std::string config_file = "";
60  std::string ssl_cert_file = ""; // file path to server's certified PKI certificate
61  std::string ssl_key_file = ""; // file path to server's' private PKI key
62  std::string ssl_trust_store = ""; // file path to java jks version of ssl_key_fle
63  std::string ssl_trust_password = "";
64  std::string ssl_keystore = "";
65  std::string ssl_keystore_password = ""; // pass phrae for java jks trust store.
66  std::string ssl_trust_ca_file = "";
68  bool aggregator = false;
70  true; // allow calcite to optimize the relalgebra for a view query
71  size_t calcite_timeout = 5000; // calcite connect/send/receive timeout
72  size_t calcite_keepalive = false; // calcite keepalive connection
73  int num_executors = 2;
74  int num_sessions = -1; // maximum number of user sessions
75 
77 };
std::string ha_shared_data
bool enable_calcite_view_optimize
std::string config_file
std::string ha_brokers
std::string ssl_trust_ca_file
std::string ssl_trust_store
std::string ha_unique_server_id
std::string ssl_key_file
std::string ssl_keystore_password
std::string ssl_trust_password
std::string ssl_keystore
std::string ha_group_id
std::string master_address
std::string ssl_cert_file