Skip to content

Commit

Permalink
Update docs for adaptive task sizing of FTE
Browse files Browse the repository at this point in the history
  • Loading branch information
linzebing committed Apr 24, 2023
1 parent 0d6a3c7 commit 51d0dfe
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ public int getFaultTolerantExecutionArbitraryDistributionComputeTaskTargetSizeGr
}

@Config("fault-tolerant-execution-arbitrary-distribution-compute-task-target-size-growth-period")
@ConfigDescription("The number of tasks we create for given non-writer stage of arbitrary distribution before we increase task size")
@ConfigDescription("The number of tasks created for any given non-writer stage of arbitrary distribution before task size is increased")
public QueryManagerConfig setFaultTolerantExecutionArbitraryDistributionComputeTaskTargetSizeGrowthPeriod(int faultTolerantExecutionArbitraryDistributionComputeTaskTargetSizeGrowthPeriod)
{
this.faultTolerantExecutionArbitraryDistributionComputeTaskTargetSizeGrowthPeriod = faultTolerantExecutionArbitraryDistributionComputeTaskTargetSizeGrowthPeriod;
Expand Down Expand Up @@ -760,7 +760,7 @@ public int getFaultTolerantExecutionArbitraryDistributionWriteTaskTargetSizeGrow
}

@Config("fault-tolerant-execution-arbitrary-distribution-write-task-target-size-growth-period")
@ConfigDescription("The number of tasks we create for given writer stage of arbitrary distribution before we increase task size")
@ConfigDescription("The number of tasks created for any given writer stage of arbitrary distribution before task size is increased")
public QueryManagerConfig setFaultTolerantExecutionArbitraryDistributionWriteTaskTargetSizeGrowthPeriod(int faultTolerantExecutionArbitraryDistributionWriteTaskTargetSizeGrowthPeriod)
{
this.faultTolerantExecutionArbitraryDistributionWriteTaskTargetSizeGrowthPeriod = faultTolerantExecutionArbitraryDistributionWriteTaskTargetSizeGrowthPeriod;
Expand Down
74 changes: 56 additions & 18 deletions docs/src/main/sphinx/admin/fault-tolerant-execution.rst
Original file line number Diff line number Diff line change
Expand Up @@ -227,27 +227,17 @@ properties only apply to a ``TASK`` retry policy.
* - Property name
- Description
- Default value
* - ``fault-tolerant-execution-target-task-input-size``
- Target size in bytes of all task inputs for a single fault-tolerant task.
Applies to tasks that read input from spooled data written by other
tasks.
* - ``fault-tolerant-execution-standard-split-size``
- Standard :ref:`split <trino-concept-splits>` size processed by tasks that
read data from source tables. Value is interpreted with split weight
taken into account. If the weight of splits produced by a catalog denotes
that they are lighter or heavier than "standard" split, then the number
of splits processed by a single task is adjusted accordingly.

May be overridden for the current session with the
``fault_tolerant_execution_target_task_input_size``
``fault_tolerant_execution_standard_split_size``
:ref:`session property <session-properties-definition>`.
- ``4GB``
* - ``fault-tolerant-execution-target-task-split-count``
- Target number of standard :ref:`splits <trino-concept-splits>` processed
by a single task that reads data from source tables. Value is interpreted
with split weight taken into account. If the weight of splits produced by
a catalog denotes that they are lighter or heavier than "standard" split,
then the number of splits processed by single task is adjusted
accordingly.

May be overridden for the current session with the
``fault_tolerant_execution_target_task_split_count``
:ref:`session property <session-properties-definition>`.
- ``64``
- ``64MB``
* - ``fault-tolerant-execution-max-task-split-count``
- Maximum number of :ref:`splits <trino-concept-splits>` processed by a
single task. This value is not split weight-adjusted and serves as
Expand All @@ -258,6 +248,54 @@ properties only apply to a ``TASK`` retry policy.
``fault_tolerant_execution_max_task_split_count``
:ref:`session property <session-properties-definition>`.
- ``256``
* - ``fault-tolerant-execution-arbitrary-distribution-compute-task-target-size-growth-period``
- The number of tasks created for any given non-writer stage of arbitrary
distribution before task size is increased.
- ``64``
* - ``fault-tolerant-execution-arbitrary-distribution-compute-task-target-size-growth-factor``
- Growth factor for adaptive sizing of non-writer tasks of arbitrary
distribution for fault-tolerant execution. Lower bound is 1.0. For every
task size increase, new task target size is old task target size
multiplied by this growth factor.
- ``1.2``
* - ``fault-tolerant-execution-arbitrary-distribution-compute-task-target-size-min``
- Initial/minimum target input size for non-writer tasks of arbitrary
distribution of fault-tolerant execution.
- ``512MB``
* - ``fault-tolerant-execution-arbitrary-distribution-compute-task-target-size-max``
- Maximum target input size for each non-writer task of arbitrary
distribution of fault-tolerant execution.
- ``50GB``
* - ``fault-tolerant-execution-arbitrary-distribution-write-task-target-size-growth-period``
- The number of tasks created for any given writer stage of arbitrary
distribution before task size is increased.
- ``64``
* - ``fault-tolerant-execution-arbitrary-distribution-write-task-target-size-growth-factor``
- Growth factor for adaptive sizing of writer tasks of arbitrary
distribution for fault-tolerant execution. Lower bound is 1.0. For every
task size increase, new task target size is old task target size
multiplied by this growth factor.
- ``1.2``
* - ``fault-tolerant-execution-arbitrary-distribution-write-task-target-size-min``
- Initial/minimum target input size for writer tasks of arbitrary
distribution of fault-tolerant execution.
- ``4GB``
* - ``fault-tolerant-execution-arbitrary-distribution-write-task-target-size-max``
- Maximum target input size for writer tasks of arbitrary distribution
of fault-tolerant execution.
- ``50GB``
* - ``fault-tolerant-execution-hash-distribution-compute-task-target-size``
- Target input size for non-writer tasks of hash distribution of
fault-tolerant execution.
- ``512MB``
* - ``fault-tolerant-execution-hash-distribution-write-task-target-size``
- Target input size of writer tasks of hash distribution of fault-tolerant
execution.
- ``4GB``
* - ``fault-tolerant-execution-hash-distribution-write-task-target-max-count``
- Soft upper bound on number of writer tasks in a stage of hash
distribution of fault-tolerant execution.
- ``2000``

Node allocation
^^^^^^^^^^^^^^^
Expand Down

0 comments on commit 51d0dfe

Please sign in to comment.