Cluster and Session
When configuring your SQreamDB environment, you have the option to use flags that apply to either the entire cluster or a specific session. Cluster configuration involve metadata and is persistent. Persistent modifications refer to changes made to a system or component that are saved and retained even after the system is restarted or shut down, allowing the modifications to persist over time. Session flags only apply to a specific session and are not persistent. Changes made using session flags are not visible to other users, and once the session ends, the flags return to their default values.
Setting the flags
Syntax
You may set both cluster and session flags using the following syntax on SQreamDB Acceleration Studio and Console:
Cluster flag syntax:
ALTER SYSTEM SET <flagName>
Session flag syntax:
SET <flagName>
Configuration file
You may set session flags within your Legacy Configuration File.
Flag List
Flag Name |
Who May Configure |
Cluster / Session |
Description |
Data Type |
Default Value and Value Range |
---|---|---|---|---|---|
|
SUPERUSER |
Session |
Sets the custom bin size in the cache to enable high granularity bin control. |
string |
|
|
SUPERUSER |
Session |
Disables the creation of new tables, views, external tables containing Varchar columns, and the creation of user-defined functions with Varchar arguments or a Varchar return value. |
boolean |
|
|
Anyone |
Session |
Sets the ondisk directory location for the spool to save files on. Allowed values: Any legal string. |
bigint |
Any legal string |
|
Anyone |
Session |
Sets the amount of memory (GB) to be used by Spool on the disk. Allowed values: 0-4000000000. |
bigint |
|
|
Anyone |
Session |
Sets how long the cache stores contents before being flushed. Allowed values: 1-4000000000. |
bigint |
|
|
Anyone |
Session |
Sets the number of partitions that the cache is split into. Allowed values: 1-4000000000. |
bigint |
|
|
Anyone |
Session |
Sets the persistent directory location for the spool to save files on. Allowed values: Any legal string. |
string |
|
|
Anyone |
Session |
Sets the amount of data (GB) for the cache to store persistently. Allowed values: 0-4000000000. |
bigint |
|
|
Anyone |
Session |
Sets the amount of memory (GB) to be used by Spool InMemory. Allowed values: 0-4000000000. |
bigint |
|
|
SUPERUSER |
Session |
Sets the pad device memory allocations with safety buffers to catch out-of-bounds writes. |
boolean |
|
|
SUPERUSER |
Session |
Sets the runtime to pass only utility functions names to the compiler. |
boolean |
|
|
Anyone |
Cluster |
Reconnection time out for the system in seconds. |
Integer |
|
|
SUPERUSER |
Session |
Sets the custom bin size in the cache to enable high granularity bin control. |
boolean |
|
|
SUPERUSER |
Cluster |
Sets the maximum supported CSV row length. Allowed values: 1-4000000000 |
uint |
|
|
SUPERUSER |
Session |
Sets the chunk size for copying from CPU to GPU. If set to 0, do not divide. |
uint |
|
|
SUPERUSER |
Session |
Indicates if copying from/to GPU is synchronous. |
boolean |
|
|
SUPERUSER |
Cluster |
Used for setting the amount of time to pass before SQream performs a graceful server shutdown. Allowed values - 1-4000000000. Related flags: |
bigint |
|
|
SUPERUSER |
Session |
Enables modifying R&D flags. |
boolean |
|
|
SUPERUSER |
Session |
Checks for CUDA errors after producing each chunk. |
boolean |
|
|
SUPERUSER |
Session |
Enables creating and logging in the clientLogger_debug file. |
boolean |
|
|
SUPERUSER |
Session |
Activates the Nvidia profiler (nvprof) markers. |
boolean |
|
|
SUPERUSER |
Session |
Appends a string at the end of every log line. |
string |
|
|
SUPERUSER |
Cluster |
Sets the minimum size in mebibytes of extents for table bulk data. |
uint |
|
|
Anyone |
Session |
Reorders join to force equijoins and/or equijoins sorted by table size. |
boolean |
|
|
SUPERUSER |
Session |
Monitors all pinned allocations and all memcopies to/from device, and prints a report of pinned allocations that were not memcopied to/from the device using the |
boolean |
|
|
SUPERUSER |
Session |
Increases the chunk size to reduce query speed. |
boolean |
|
|
SUPERUSER |
Session |
Adds rechunker before expensive chunk producer. |
boolean |
|
|
SUPERUSER |
Session |
Sets the buffer size. |
uint |
|
|
SUPERUSER |
Cluster |
Used to control which log level should appear in the logs. Value range: |
int |
Default value:
|
|
SUPERUSER |
Cluster |
Specifies when the system begins writing to a new log file. SQreamDB recommends using the |
string |
|
|
SUPERUSER |
Cluster |
Specifies when the system begins writing to a new log file. When configured with the |
int |
|
|
Anyone |
Session |
Determines the client log level: 0 - L_SYSTEM, 1 - L_FATAL, 2 - L_ERROR, 3 - L_WARN, 4 - L_INFO, 5 - L_DEBUG, 6 - L_TRACE |
uint |
|
|
Anyone |
Session |
Sets the CPU to compress columns with size above (flag’s value) * (row count). |
uint |
|
|
SUPERUSER |
Session |
Sets the size of memory used during a query to trigger aborting the server. |
uint |
|
|
SUPERUSER |
Session |
Splits large reads to multiple smaller ones and executes them concurrently. |
boolean |
|
|
SUPERUSER |
Session |
Sets the number of workers to handle smaller concurrent reads. |
uint |
|
|
SUPERUSER |
Session |
Sets the implicit cast in orc files, such as int to tinyint and vice versa. |
boolean |
|
|
Anyone |
Session |
Terminates queries that have exceeded a predefined execution time limit, ranging from |
integer |
|
|
Anyone |
Session |
Sets the name of the session tag. Allowed values: Any legal string. |
string |
Any legal string |
|
Anyone |
Session |
Sets the amount of memory (GB) to be used by the server for spooling. |
uint |
|
|
SUPERUSER |
Session |
Sets the timeout (seconds) for acquiring object locks before executing statements. |
uint |
|
|
SUPERUSER |
Session |
Interprets decimal literals as Double instead of Numeric. Used to preserve legacy behavior in existing customers. |
boolean |
|
|
SUPERUSER |
Session |
Sets the hash table size of the CpuReduce. |
uint |
|
|
? |
Session |
? |
? |
? |
|
SUPERUSER |
Session |
Sets the maximum percentage CPU RAM that pinned memory can use. |
uint |
|
|
SUPERUSER |
Session |
Sets the size of memory used during a query to trigger aborting the server. |
uint |
|
|
Anyone |
Session |
Terminates queries that have exceeded a predefined time limit in the queue. |
integer |
Default value: 0. Minimum values: 1 minute. Maximum value: 4320 minutes (72 hours) |