You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by rmetzger <gi...@git.apache.org> on 2015/04/28 13:57:32 UTC

[GitHub] flink pull request: FLINK-1950: Change heap safety margin computat...

GitHub user rmetzger opened a pull request:

    https://github.com/apache/flink/pull/637

    FLINK-1950: Change heap safety margin computation for YARN containers.

    YARN containers will now remove `yarn.heap-cutoff-ratio`% from the memory, however at least `yarn.heap-cutoff-min`MB.
    The default ratio is 15%, the minimum cutoff is 384MB.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rmetzger/flink flink1950

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/637.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #637
    
----
commit ccaec6e9678c242f97bceb7bff9994cc35868e6f
Author: Robert Metzger <rm...@apache.org>
Date:   2015-04-28T08:55:45Z

    [FLINK-1950] Change safety margin computation for YARN containers

commit 966f918c6ba961b6c1efb4ff8d5900ce35fe2467
Author: Robert Metzger <rm...@apache.org>
Date:   2015-04-28T09:54:05Z

    wip

----


---
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 enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: FLINK-1950: Change heap safety margin computat...

Posted by rmetzger <gi...@git.apache.org>.
Github user rmetzger commented on the pull request:

    https://github.com/apache/flink/pull/637#issuecomment-97102260
  
    Thank you for the feedback. I'm going to merge the PR


---
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 enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: FLINK-1950: Change heap safety margin computat...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/flink/pull/637


---
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 enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: FLINK-1950: Change heap safety margin computat...

Posted by tillrohrmann <gi...@git.apache.org>.
Github user tillrohrmann commented on the pull request:

    https://github.com/apache/flink/pull/637#issuecomment-97079297
  
    Looks good to me. I'm strongly for merging this rather soon, since this will improve the user experience.


---
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 enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: FLINK-1950: Change heap safety margin computat...

Posted by StephanEwen <gi...@git.apache.org>.
Github user StephanEwen commented on the pull request:

    https://github.com/apache/flink/pull/637#issuecomment-97040223
  
    Looks good.
    
    You could follow the style of spaces of the rest of the code, though ;-)


---
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 enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: FLINK-1950: Change heap safety margin computat...

Posted by tillrohrmann <gi...@git.apache.org>.
Github user tillrohrmann commented on a diff in the pull request:

    https://github.com/apache/flink/pull/637#discussion_r29246446
  
    --- Diff: flink-core/src/main/java/org/apache/flink/configuration/ConfigConstants.java ---
    @@ -197,10 +197,19 @@
     	 * Upper bound for heap cutoff on YARN.
     	 * The "yarn.heap-cutoff-ratio" is removing a certain ratio from the heap.
     	 * This value is limiting this cutoff to a absolute value.
    +	 *
    +	 * THE VALUE IS NO LONGER IN USE.
     	 */
    +	@Deprecated
     	public static final String YARN_HEAP_LIMIT_CAP = "yarn.heap-limit-cap";
     
     	/**
    +	 * Minimum amount of memory to remove from the heap space as a safety margin.
    +	 */
    +	public static final String YARN_MIN_HEAP_CUTOFF = "yarn.heap-cutoff-min";
    --- End diff --
    
    Why call it ```yarn.heap-cutoff-min``` and the variable ```YARN_MIN_HEAP_CUTOFF```. Maybe we can make it consistent.


---
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 enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---