Configuring SQream Using the Previous Configuration Method
The Configuring SQream Using the Previous Configuration Method page describes SQream’s previous method for configuring your instance of SQream, and includes the following topics:
By default, configuration files are stored in /etc/sqream
.
A very minimal configuration file looks like this:
{
"compileFlags": {
},
"runtimeFlags": {
},
"runtimeGlobalFlags": {
},
"server": {
"gpu": 0,
"port": 5000,
"cluster": "/home/sqream/sqream_storage",
"licensePath": "/etc/sqream/license.enc"
}
}
Each SQream DB worker (
sqreamd
) has a dedicated configuration file.The configuration file contains four distinct sections,
compileFlags
,runtimeFlags
,runtimeGlobalFlags
, andserver
.
In the example above, the worker will start on port 5000, and will use GPU #0.
Frequently Set Parameters
Name |
Section |
Description |
Default |
Value range |
Example |
---|---|---|---|---|---|
|
|
Controls the GPU ordinal to use |
✗ |
0 to (number of GPUs in the machine -1). Check with |
|
|
|
Controls the TCP port to listen on |
✗ |
1024 to 65535 |
|
|
|
Controls the SSL TCP port to listen on. Must be different from |
✗ |
1024 to 65535 |
|
|
|
Specifies the cluster path root |
✗ |
Valid local system path |
|
|
|
Specifies the license file for this worker |
✗ |
Valid local system path to license file |
|
Name |
Section |
Description |
Default |
Value range |
Example |
---|---|---|---|---|---|
|
|
Modifies RAM allocated for the worker for intermediate results. Statements that use more memory than this setting will spool to disk, which could degrade performance. We recommend not to exceed the amount of RAM in the machine. This setting must be set lower than the |
|
1 to maximum available RAM in gigabytes. |
|
|
|
Modifies the maximum amount of RAM allocated for a query. The recommended value for this is |
|
|
|
|
|
Modifies the maximum amount of GPU RAM allocated for a worker. The recommended value is 99% for a GPU with a single worker, or 49% for a GPU with two workers. |
|
|
|
|
|
Shows complete error message with debug information. Use this for debugging. |
|
|
|
|
|
Comma separated list of service queues that the worker is subscribed to |
|
Comma separated list of service names, with no spaces. Services that don’t exist will be created. |
|
|
|
Used to control which log level should appear in the logs |
|
|
|
|
|
Sets an interval for automatically logging long-running statements’ SHOW_NODE_INFO output. Output is written as a message type |
|
Positive whole number >=1. |
|
|
|
Defines whether SQream logs should be cycled when they reach |
|
|
|
|
|
Sets the size threshold in megabytes after which a new log file will be opened. |
|
|
|
|
|
Control frequency of log rotation |
|
|
|
|
|
Specifies if this worker connects to a cluster ( |
|
|
|
|
|
Specifies the hostname or IP of the metadata server, when |
|
A valid IP or hostname |
|
|
|
Specifies if the metadata should use a pre-determined hostname or IP to refer to this worker. If set to |
|
|
|
|
|
Specifies the worker’s external IP or hostname, when used from a remote network. |
No default |
A valid IP or hostname |
|
|
|
Specifies an override for the temporary file path on the local machine. Set this to a local path to improve performance for spooling. |
Defaults to the central storage’s built-in temporary folder |
A valid path to a folder on the local machine |
|
Name |
Section |
Description |
Default |
Value range |
Example |
---|---|---|---|---|---|
|
|
Sets the number of CSV parsing threads launched during bulk load |
4 |
1 to 32 |
|
|
|
Sets the number of compressor threads launched during bulk load |
4 |
1 to 32 |
|
|
|
Sets the delay in seconds before SQream DB will stop waiting for a lock and return an error |
3 |
>=1 |
|
Warning
JSON files can’t contain any comments.
Recommended Configuration File
{
"compileFlags":{
},
"runtimeFlags":{
"insertParsers": 16,
"insertCompressors": 8
},
"runtimeGlobalFlags":{
"limitQueryMemoryGB" : 121,
"spoolMemoryGB" : 108,
"cudaMemQuota": 90,
"initialSubscribedServices" : "sqream",
"useMetadataServer": true,
"metadataServerIp": "127.0.0.1",
"useConfigIP": true,
"machineIP": "127.0.0.1"
},
"server":{
"gpu":0,
"port":5000,
"ssl_port": 5100,
"cluster":"/home/sqream/sqream_storage",
"licensePath":"/etc/sqream/license.enc"
}
}