use of org.apache.flink.configuration.MemorySize in project flink by apache.
the class DefaultVertexParallelismDeciderTest method before.
@Before
public void before() throws Exception {
Configuration configuration = new Configuration();
configuration.setInteger(JobManagerOptions.ADAPTIVE_BATCH_SCHEDULER_MAX_PARALLELISM, MAX_PARALLELISM);
configuration.setInteger(JobManagerOptions.ADAPTIVE_BATCH_SCHEDULER_MIN_PARALLELISM, MIN_PARALLELISM);
configuration.set(JobManagerOptions.ADAPTIVE_BATCH_SCHEDULER_DATA_VOLUME_PER_TASK, new MemorySize(DATA_VOLUME_PER_TASK));
configuration.setInteger(JobManagerOptions.ADAPTIVE_BATCH_SCHEDULER_DEFAULT_SOURCE_PARALLELISM, DEFAULT_SOURCE_PARALLELISM);
decider = DefaultVertexParallelismDecider.from(configuration);
}
Aggregations