kelemensanyi commented on a change in pull request #44:
URL:
https://github.com/apache/flink-kubernetes-operator/pull/44#discussion_r827496583
##########
File path:
flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/FlinkOperator.java
##########
@@ -74,12 +88,43 @@ public static void main(String... args) {
reconcilerFactory,
observerFactory);
- FlinkControllerConfig controllerConfig = new
FlinkControllerConfig(controller);
+ controllerConfig = new FlinkControllerConfig(controller);
controller.setControllerConfig(controllerConfig);
controllerConfig.setConfigurationService(configurationService);
+ }
+ public void run() {
operator.register(controller, controllerConfig);
operator.installShutdownHook();
operator.start();
}
+
+ protected ConfigurationService getConfigurationService() {
+ return new
ConfigurationServiceDecorator(DefaultConfigurationService.instance()) {
+ @Override
+ public ExecutorService getExecutorService() {
+ int maxPoolSize = getReconciliationMaxPoolSize();
+ return new ThreadPoolExecutor(
+ 0, maxPoolSize, 60L, TimeUnit.SECONDS, new
SynchronousQueue<>());
+ }
+
+ private int getReconciliationMaxPoolSize() {
+ int value =
+ EnvUtils.getPositiveOrMinusOneInt(
+ EnvUtils.ENV_RECONCILIATION_MAX_PARALLELISM,
+ Integer.MAX_VALUE,
+ "Specify a positive number or -1 for infinite
parallelism.");
Review comment:
No worries. :) Fixed now, please have another look.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]