public class EnforceParallelismChangeRescalingController extends Object implements RescalingController
| 构造器和说明 |
|---|
EnforceParallelismChangeRescalingController() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
shouldRescale(VertexParallelism currentParallelism,
VertexParallelism newParallelism)
This method gets called whenever new resources or
resource
requirements are available and the scheduler needs to design whether to rescale or not. |
public EnforceParallelismChangeRescalingController()
public boolean shouldRescale(VertexParallelism currentParallelism, VertexParallelism newParallelism)
RescalingControllerresource
requirements are available and the scheduler needs to design whether to rescale or not.shouldRescale 在接口中 RescalingControllercurrentParallelism - parallelism of the currently running job graph.newParallelism - Potential new parallelism with the additional resources.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.