Skip to content

Commit

Permalink
YARN-11632. [Doc] Add allow-partial-result description to Yarn Federa…
Browse files Browse the repository at this point in the history
…tion documentation. (apache#6340) Contributed by Shilun Fan.

Reviewed-by: Inigo Goiri <[email protected]>
Signed-off-by: Shilun Fan <[email protected]>
  • Loading branch information
slfan1989 authored and jiajunmao committed Feb 6, 2024
1 parent 7bde67e commit ded5602
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,18 @@ We allow the Router to initiate a separate thread for periodically monitoring th

**Note** We don't need to configure the subCluster deregister checking threads for all Routers; using 1-2 Routers for checking is sufficient.

#### How to configure allow partial result

The Router is used to connect multiple YARN SubClusters and plays a role in merging the returned results from multiple subClusters for certain interfaces. However, if a subcluster undergoes RM upgrade or encounters RM failure, calling that particular RM will not return the correct results.
To address this issue, the Router provides configuration that allows returning partial results. When we configure the relevant parameters, the Router will skip the failed subClusters and only return results from the other subClusters.
This ensures that we can obtain at least some correct results.

| Property | Example | Description |
|:------------------------------------------------------|:--------|:----------------------------------------------|
| `yarn.router.interceptor.allow-partial-result.enable` | `false` | Whether to support returning partial results. |

**Note** It is important to note that even if we configure the parameters, if all sub-clusters return failures, the Router will still throw an exception. This is because there are no available results to return, making it impossible to provide a valid response.

#### How to use Router Command Line

##### Cmd1: deregisterSubCluster
Expand Down

0 comments on commit ded5602

Please sign in to comment.