@@ -12,8 +12,8 @@ For information on catalog configuration properties, see :doc:`Connectors </conn
12
12
13
13
For information on Presto C++ session properties, see :doc: `properties-session `.
14
14
15
- NOTE: While some of the configuration properties below with "-gb" in their names
16
- show gigabytes (gB; 1 gB equals 1000000000 B), it is actually
15
+ NOTE: While some of the configuration properties below with "-gb" in their names
16
+ show gigabytes (gB; 1 gB equals 1000000000 B), it is actually
17
17
gibibytes (GiB; 1 GiB equals 1073741824 B).
18
18
19
19
.. contents ::
@@ -137,8 +137,8 @@ The configuration properties of Presto C++ workers are described here, in alphab
137
137
1) Memory used by the queries as specified in ``query-memory-gb ``; 2) Memory used by the
138
138
system, such as disk spilling and cache prefetch.
139
139
140
- Set ``system-memory-gb `` to about 90% of available machine memory of the deployment.
141
- This allows some buffer room to handle unaccounted memory in order to prevent out-of-memory conditions.
140
+ Set ``system-memory-gb `` to about 90% of available machine memory of the deployment.
141
+ This allows some buffer room to handle unaccounted memory in order to prevent out-of-memory conditions.
142
142
The default value of 57 gb is calculated based on available machine memory of 64 gb.
143
143
144
144
@@ -162,6 +162,51 @@ The configuration properties of Presto C++ workers are described here, in alphab
162
162
storage used for spilling. If it is zero, then there is no limit and spilling
163
163
might exhaust the storage or takes too long to run.
164
164
165
+
166
+ ``spill-enabled ``
167
+ ^^^^^^^^^^^^^^^^^
168
+
169
+ * **Type: ** ``boolean ``
170
+ * **Default value: ** ``false ``
171
+
172
+ Try spilling memory to disk to avoid exceeding memory limits for the query.
173
+
174
+ Spilling works by offloading memory to disk. This process can allow a query with a large memory
175
+ footprint to pass at the cost of slower execution times. Currently, spilling is supported only for
176
+ aggregations and joins (inner and outer), so this property will not reduce memory usage required for
177
+ window functions, sorting and other join types.
178
+
179
+
180
+ ``join-spill-enabled ``
181
+ ^^^^^^^^^^^^^^^^^^^^^^
182
+
183
+ * **Type: ** ``boolean ``
184
+ * **Default value: ** ``true ``
185
+
186
+ When ``spill_enabled `` is ``true ``, this determines whether Presto will try spilling memory to disk for joins to
187
+ avoid exceeding memory limits for the query.
188
+
189
+
190
+ ``aggregation-spill-enabled ``
191
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
192
+
193
+ * **Type: ** ``boolean ``
194
+ * **Default value: ** ``true ``
195
+
196
+ When ``spill_enabled `` is ``true ``, this determines whether Presto will try spilling memory to disk for aggregations to
197
+ avoid exceeding memory limits for the query.
198
+
199
+
200
+ ``order-by-spill-enabled ``
201
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
202
+
203
+ * **Type: ** ``boolean ``
204
+ * **Default value: ** ``true ``
205
+
206
+ When ``spill_enabled `` is ``true ``, this determines whether Presto will try spilling memory to disk for order by to
207
+ avoid exceeding memory limits for the query.
208
+
209
+
165
210
``shared-arbitrator.reserved-capacity ``
166
211
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
167
212
@@ -390,32 +435,32 @@ The configuration properties of AsyncDataCache and SSD cache are described here.
390
435
^^^^^^^^^^^^^^^^^^^^^^^^
391
436
* **Type: ** ``string ``
392
437
* **Default value: ** ``/mnt/flash/async_cache. ``
393
-
438
+
394
439
The path of the directory that is mounted onto the SSD.
395
440
396
441
``async-cache-max-ssd-write-ratio ``
397
442
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
398
443
* **Type: ** ``double ``
399
444
* **Default value: ** ``0.7 ``
400
-
401
- The maximum ratio of the number of in-memory cache entries written to the SSD cache
402
- over the total number of cache entries. Use this to control SSD cache write rate,
445
+
446
+ The maximum ratio of the number of in-memory cache entries written to the SSD cache
447
+ over the total number of cache entries. Use this to control SSD cache write rate,
403
448
once the ratio exceeds this threshold then we stop writing to the SSD cache.
404
449
405
450
``async-cache-ssd-savable-ratio ``
406
451
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
407
452
* **Type: ** ``double ``
408
453
* **Default value: ** ``0.125 ``
409
-
454
+
410
455
The min ratio of SSD savable (in-memory) cache space over the total cache space.
411
- Once the ratio exceeds this limit, we start writing SSD savable cache entries
456
+ Once the ratio exceeds this limit, we start writing SSD savable cache entries
412
457
into SSD cache.
413
458
414
459
``async-cache-min-ssd-savable-bytes ``
415
460
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
416
461
* **Type: ** ``integer ``
417
462
* **Default value: ** ``16777216 ``
418
-
463
+
419
464
Min SSD savable (in-memory) cache space to start writing SSD savable cache entries into SSD cache.
420
465
421
466
The default value ``16777216 `` is 16 MB.
@@ -427,61 +472,61 @@ The configuration properties of AsyncDataCache and SSD cache are described here.
427
472
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
428
473
* **Type: ** ``string ``
429
474
* **Default value: ** ``0s ``
430
-
475
+
431
476
The interval for persisting in-memory cache to SSD. Set this configuration to a non-zero value to
432
477
activate periodic cache persistence.
433
-
434
- The following time units are supported:
435
-
478
+
479
+ The following time units are supported:
480
+
436
481
ns, us, ms, s, m, h, d
437
482
438
483
``async-cache-ssd-disable-file-cow ``
439
484
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
440
485
* **Type: ** ``bool ``
441
486
* **Default value: ** ``false ``
442
-
487
+
443
488
In file systems such as btrfs that support cow (copy on write), the SSD cache can use all of the SSD
444
489
space and stop working. To prevent that, use this option to disable cow for cache files.
445
490
446
491
``ssd-cache-checksum-enabled ``
447
492
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
448
493
* **Type: ** ``bool ``
449
494
* **Default value: ** ``false ``
450
-
451
- When enabled, a CRC-based checksum is calculated for each cache entry written to SSD.
495
+
496
+ When enabled, a CRC-based checksum is calculated for each cache entry written to SSD.
452
497
The checksum is stored in the next checkpoint file.
453
498
454
499
``ssd-cache-read-verification-enabled ``
455
500
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
456
501
* **Type: ** ``bool ``
457
502
* **Default value: ** ``false ``
458
-
459
- When enabled, the checksum is recalculated and verified against the stored value when
503
+
504
+ When enabled, the checksum is recalculated and verified against the stored value when
460
505
cache data is loaded from the SSD.
461
506
462
507
``cache.velox.ttl-enabled ``
463
508
^^^^^^^^^^^^^^^^^^^^^^^^^^^
464
509
* **Type: ** ``bool ``
465
510
* **Default value: ** ``false ``
466
-
511
+
467
512
Enable TTL for AsyncDataCache and SSD cache.
468
513
469
514
``cache.velox.ttl-threshold ``
470
515
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
471
516
* **Type: ** ``string ``
472
517
* **Default value: ** ``2d ``
473
-
518
+
474
519
TTL duration for AsyncDataCache and SSD cache entries.
475
-
520
+
476
521
The following time units are supported:
477
-
522
+
478
523
ns, us, ms, s, m, h, d
479
524
480
525
``cache.velox.ttl-check-interval ``
481
526
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
482
527
* **Type: ** ``string ``
483
528
* **Default value: ** ``1h ``
484
-
529
+
485
530
The periodic duration to apply cache TTL and evict AsyncDataCache and SSD cache entries.
486
531
487
532
Memory Checker Properties
@@ -508,9 +553,9 @@ server is under low memory pressure.
508
553
509
554
Specifies the system memory limit that triggers the memory pushback or heap dump if
510
555
the server memory usage is beyond this limit. A value of zero means no limit is set.
511
- This only applies if ``system-mem-pushback-enabled `` is ``true ``.
512
- Set ``system-mem-limit-gb `` to be greater than or equal to system-memory-gb but not
513
- higher than the available machine memory of the deployment.
556
+ This only applies if ``system-mem-pushback-enabled `` is ``true ``.
557
+ Set ``system-mem-limit-gb `` to be greater than or equal to system-memory-gb but not
558
+ higher than the available machine memory of the deployment.
514
559
The default value of 60 gb is calculated based on available machine memory of 64 gb.
515
560
516
561
``system-mem-shrink-gb ``
0 commit comments