OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MapDParameters.h
Go to the documentation of this file.
1 /*
2  * Copyright 2017 MapD Technologies, 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 #ifndef MAPDPARAMETERS_H
25 #define MAPDPARAMETERS_H
26 
27 #include <string>
28 
30  size_t cuda_block_size = 0; // block size for the kernel execution
31  size_t cuda_grid_size = 0; // grid size for the kernel execution
32  size_t calcite_max_mem = 1024; // max memory for calcite jvm in MB
33  int omnisci_server_port = 6274; // default port omnisci_server runs on
34  int calcite_port = 6279; // default port for calcite server to run on
35  std::string ha_group_id; // name of the HA group this server is in
36  std::string ha_unique_server_id; // name of the HA unique id for this server
37  std::string ha_brokers; // name of the HA broker
38  std::string ha_shared_data; // name of shared data directory base
39  bool is_decr_start_epoch; // are we doing a start epoch decrement?
40  size_t cpu_buffer_mem_bytes = 0; // max size of memory reserved for CPU buffers [bytes]
41  size_t gpu_buffer_mem_bytes = 0; // max size of memory reserved for GPU buffers [bytes]
42  double gpu_input_mem_limit = 0.9; // Punt query to CPU if input mem exceeds % GPU mem
43  std::string ssl_cert_file = ""; // file path to server's certified PKI certificate
44  std::string ssl_key_file = ""; // file path to server's' private PKI key
45  std::string ssl_trust_store = ""; // file path to java jks version of ssl_key_fle
46  std::string ssl_trust_password = "";
47  std::string ssl_keystore = "";
48  std::string ssl_keystore_password = ""; // pass phrae for java jks trust store.
49  bool aggregator = false;
51  true; // allow calcite to optimize the relalgebra for a view query
53 };
54 
55 #endif /* MAPDPARAMETERS_H */
bool enable_calcite_view_optimize
std::string ssl_key_file
size_t gpu_buffer_mem_bytes
std::string ssl_trust_store
size_t cuda_block_size
std::string ha_shared_data
std::string ssl_keystore
std::string ssl_keystore_password
size_t cuda_grid_size
std::string ssl_trust_password
std::string ssl_cert_file
bool is_decr_start_epoch
size_t calcite_max_mem
std::string ha_brokers
double gpu_input_mem_limit
size_t cpu_buffer_mem_bytes
std::string ha_group_id
std::string ha_unique_server_id