public class DefaultVertexParallelismAndInputInfosDecider extends Object implements VertexParallelismAndInputInfosDecider
VertexParallelismAndInputInfosDecider. This implementation will
decide parallelism and JobVertexInputInfos as follows:
1. For job vertices whose inputs are all ALL_TO_ALL edges, evenly distribute data to downstream subtasks, make different downstream subtasks consume roughly the same amount of data.
2. For other cases, evenly distribute subpartitions to downstream subtasks, make different downstream subtasks consume roughly the same number of subpartitions.
| 限定符和类型 | 方法和说明 |
|---|---|
ParallelismAndInputInfos |
decideParallelismAndInputInfosForVertex(JobVertexID jobVertexId,
List<BlockingResultInfo> consumedResults,
int vertexInitialParallelism,
int vertexMaxParallelism)
Decide the parallelism and
JobVertexInputInfos for this job vertex. |
public ParallelismAndInputInfos decideParallelismAndInputInfosForVertex(JobVertexID jobVertexId, List<BlockingResultInfo> consumedResults, int vertexInitialParallelism, int vertexMaxParallelism)
VertexParallelismAndInputInfosDeciderJobVertexInputInfos for this job vertex.decideParallelismAndInputInfosForVertex 在接口中 VertexParallelismAndInputInfosDeciderjobVertexId - The job vertex idconsumedResults - The information of consumed blocking resultsvertexInitialParallelism - The initial parallelism of the job vertex. If it's a positive
number, it will be respected. If it's not set(equals to ExecutionConfig.PARALLELISM_DEFAULT), a parallelism will be automatically decided for
the vertex.vertexMaxParallelism - The max parallelism of the job vertex.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.