配置屬性Presto(Java)- 協調器和工作節點
您可以透過API自訂協調器和工作器配置屬性Presto(Java)。
| 內容名稱 | 類型 | 新增了驗證 |
|---|---|---|
experimental.optimized-repartitioning |
布林 | True 或 False |
experimental.reserved-pool-enabled |
布林 | True 或 False |
fragment-result-cache.enabled |
布林 | True 或 False |
fragment-result-cache.max-cached-entries |
整數 | 1000000 |
fragment-result-cache.base-directory |
字串 | 文件:///mnt/tmpfs/fragment |
fragment-result-cache.cache-ttl |
字串 | 24h |
heap_dump_on_exceeded_memory_limit.enabled |
布林 | True 或 False |
heap_dump_on_exceeded_memory_limit.file_directory |
字串 | 任意字串 |
heap_dump_on_exceeded_memory_limit.max.number |
整數 | 限制{1, 1000} |
heap_dump_on_exceeded_memory_limit.max.size |
整數 | 限制{1, 1000} |
memory.heap-headroom-per-node |
字串 | 限制{1, 1e9} ;支援的值為有或沒有單位 TB、MB、GB、B、KB 的數字 |
node-scheduler.include-coordinator |
布林 | True 或 False |
query.execution-policy |
字串 | 任意字串 |
query.low-memory-killer.policy |
字串 | 任意字串 |
query.max-memory |
字串 | 限制{1, 1e13} ;支援的值為有或沒有單位 TB、MB、GB、B、KB 的數字 |
query.max-memory-per-node |
字串 | 限制{1, 1e13} ;支援的值為有或沒有單位 TB、MB、GB、B、KB 的數字 |
query.max-stage-count |
整數 | 限制{1, 1000} |
query.max-total-memory-per-node |
字串 | 限制{1, 1e13} ;支援的值為有或沒有單位 TB、MB、GB、B、KB 的數字 |
query.min-expire-age |
字串 | 限制{1, 1e13} ;支援的值是帶或不帶單位 m、s、ms、h 的數字 |
query.stage-count-warning-threshold |
整數 | 限制{1, 1000} |
task.concurrency |
整數 | 限制{1, 1000} |
task.max-drivers-per-task |
整數 | 限制{1, 100} |
join-distribution-type |
字串 | 值應該是自動的、廣播的或分區的 |
exchange.client-threads |
整數 | 限制{1, 1000} |
exchange.http-client.max-connections |
整數 | 限制{1, 10000} |
exchange.http-client.max-connections-per-server |
整數 | 限制{1, 100000} |
http-server.log.max-size |
字串 | 限制{1, 1e13} ;支援的值為有或沒有單位 TB、MB、GB、B、KB 的數字 |
http-server.log.max-history |
整數 | 限制{1, 100} |
http-server.threads.max |
整數 | 限制{1, 1000} |
join-max-broadcast-table-size |
字串 | 限制{1, 1e13} ;支援的值為有或沒有單位 TB、MB、GB、B、KB 的數字 |
log.max-history |
整數 | 限制{1, 100} |
log.max-size |
字串 | 限制{1, 1e13} ;支援的值為有或沒有單位 TB、MB、GB、B、KB 的數字 |
node-scheduler.max-pending-splits-per-task |
整數 | 限制{1, 3000} |
node-scheduler.max-splits-per-node |
整數 | 限制{1, 3000} |
optimize-nulls-in-join |
布林 | True 或 False |
optimizer.default-filter-factor-enabled |
布林 | True 或 False |
optimizer.exploit-constraints |
布林 | True 或 False |
optimizer.prefer-partial-aggregation |
布林 | True 或 False |
query.client.timeout |
字串 | 限制{1, 1e13} ;支援的值是帶或不帶單位 m、s、ms、h 的數字 |
query.max-execution-time |
字串 | 限制{1, 1e13} ;支援的值是帶或不帶單位 m、s、ms、h 的數字 |
query.max-history |
整數 | 限制{1, 100} |
query.max-total-memory |
字串 | 限制{1, 1e13} ;支援的值為有或沒有單位 TB、MB、GB 的數字 |
query.min-schedule-split-batch-size |
字串 | 限制{1, 1e13} ;支援的值為有或沒有單位 TB、MB、GB、B、KB 的數字 |
query.max-length |
整數 | 限制{1, 1000000} |
scale-writers |
布林 | True 或 False |
shutdown.grace-period |
字串 | 限制{1, 1e13} ;支援的值是帶或不帶單位 m、s、ms、h 的數字 |
sink.max-buffer-size |
字串 | 限制{1, 1e13} ;支援的值為有或沒有單位 TB、MB、GB、B、KB 的數字 |
experimental.max-revocable-memory-per-node |
字串 | 限制{1, 1e13} ;支援的值為有或沒有單位 TB、MB、GB、B、KB 的數字 |
experimental.max-spill-per-node |
字串 | 限制{1, 1e13} ;支援的值為有或沒有單位 TB、MB、GB、B、KB 的數字 |
experimental.pushdown-dereference-enabled |
布林 | True 或 False |
experimental.pushdown-subfields-enabled |
布林 | True 或 False |
experimental.query-max-spill-per-node |
字串 | 限制{1, 1e13} ;支援的值為有或沒有單位 TB、MB、GB、B、KB 的數字 |
experimental.spiller-max-used-space-threshold |
浮點數 | 浮法 64 |
experimental.spiller-spill-path |
字串 | 任意字串 |
http-server.max-request-header-size |
字串 | 限制 {1, 1e13} ;支援的值為有或沒有單位 TB、MB、GB、B、kB 的數字 |
http-server.max-response-header-size |
字串 | 限制 {1, 1e13} ;支援的值為有或沒有單位 TB、MB、GB、B、kB 的數字 |
experimental.internal-communication.max-task-update-size |
字串 | 限制{1, 1e13} ;支援的值為有或沒有單位 TB、MB、GB、B、KB 的數字 |
offset-clause-enabled |
布林 | True 或 False |
若要啟用片段緩存,您必須設定啟用快取的環境。 要進行設置,請將以下屬性修補到 /opt/presto/etc/config.properties 中。
fragment-result-cache.enabled: true
fragment-result-cache.base-directory: file:///mnt/tmpfs/fragment
fragment-result-cache.max-cached-entries: 1000000
fragment-result-cache.cache-ttl: 24h
預設情況下,安裝路徑 /mnt/tmpfs/fragment 在啟用快取的環境中可用,且系統磁碟區安裝在該環境上。