[GitHub] flink pull request: [FLINK-3020][streaming] set number of task slo...

2015-11-23 Thread asfgit
Github user asfgit closed the pull request at: https://github.com/apache/flink/pull/1360 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is

[GitHub] flink pull request: [FLINK-3020][streaming] set number of task slo...

2015-11-20 Thread mxm
Github user mxm commented on the pull request: https://github.com/apache/flink/pull/1360#issuecomment-158334929 I think we agree that we want to set the number of task slots to the maximum parallelism instead of the default one. I'll merge this later on. --- If your project is set

[GitHub] flink pull request: [FLINK-3020][streaming] set number of task slo...

2015-11-19 Thread mxm
Github user mxm commented on the pull request: https://github.com/apache/flink/pull/1360#issuecomment-158020011 I would also be in favor of changing the local execution to always use the maximum specified parallelism as the number of task slots. IMHO the current behavior is not

[GitHub] flink pull request: [FLINK-3020][streaming] set number of task slo...

2015-11-19 Thread mxm
Github user mxm commented on the pull request: https://github.com/apache/flink/pull/1360#issuecomment-158009498 True. That's how it is handled on the batch side. Not sure about this behavior though. If a user sets a default parallelism but uses operators with `parallelism >

[GitHub] flink pull request: [FLINK-3020][streaming] set number of task slo...

2015-11-19 Thread tillrohrmann
Github user tillrohrmann commented on a diff in the pull request: https://github.com/apache/flink/pull/1360#discussion_r45327211 --- Diff: flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/LocalStreamEnvironment.java --- @@ -91,7 +91,11 @@ public

[GitHub] flink pull request: [FLINK-3020][streaming] set number of task slo...

2015-11-19 Thread mxm
Github user mxm commented on the pull request: https://github.com/apache/flink/pull/1360#issuecomment-158024467 Alright. I will push the original pull request version again which uses the max parallelism of all operators. Further, I will open a separate JIRA for the batch side

[GitHub] flink pull request: [FLINK-3020][streaming] set number of task slo...

2015-11-19 Thread tillrohrmann
Github user tillrohrmann commented on the pull request: https://github.com/apache/flink/pull/1360#issuecomment-158047994 But this is only true if the `taskManagerNumSlots` in `LocalExecutor` are left untouched. Currently, this is the case but this is not enforced. --- If your

[GitHub] flink pull request: [FLINK-3020][streaming] set number of task slo...

2015-11-19 Thread StephanEwen
Github user StephanEwen commented on a diff in the pull request: https://github.com/apache/flink/pull/1360#discussion_r45326391 --- Diff: flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/LocalStreamEnvironment.java --- @@ -91,7 +91,11 @@ public

[GitHub] flink pull request: [FLINK-3020][streaming] set number of task slo...

2015-11-19 Thread mxm
Github user mxm commented on the pull request: https://github.com/apache/flink/pull/1360#issuecomment-158032582 Just checked. The batch side always uses the maximum parallelism as the number of task slots (if they are not set explicitly). Till and me actually thought differently. So

[GitHub] flink pull request: [FLINK-3020][streaming] set number of task slo...

2015-11-19 Thread tillrohrmann
Github user tillrohrmann commented on the pull request: https://github.com/apache/flink/pull/1360#issuecomment-158019230 Yes, in such a case it would fail. Thinking about it, you're right that it would give a better user experience if the maximum degree of the job is taken instead of

[GitHub] flink pull request: [FLINK-3020][streaming] set number of task slo...

2015-11-19 Thread StephanEwen
Github user StephanEwen commented on the pull request: https://github.com/apache/flink/pull/1360#issuecomment-158022328 +1 for taking the max parallelism of all operators --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well.

[GitHub] flink pull request: [FLINK-3020][streaming] set number of task slo...

2015-11-19 Thread tillrohrmann
Github user tillrohrmann commented on the pull request: https://github.com/apache/flink/pull/1360#issuecomment-158052735 Yes I think so. I guess it's due to the difference that batch programs are executed using a `PlanExecutor` whereas streaming programs are directly executed by the

[GitHub] flink pull request: [FLINK-3020][streaming] set number of task slo...

2015-11-19 Thread mxm
Github user mxm commented on the pull request: https://github.com/apache/flink/pull/1360#issuecomment-158049463 Exactly. But that makes sense, right? If the users explicitly sets the number of task slots, we shouldn't change the number of task slots automatically. --- If your

[GitHub] flink pull request: [FLINK-3020][streaming] set number of task slo...

2015-11-18 Thread tillrohrmann
Github user tillrohrmann commented on the pull request: https://github.com/apache/flink/pull/1360#issuecomment-157766781 I think the maximum parallelism of the job should be taken if the user has not specified a different parallelism than the default one (`-1`). I think that's also