DifferentSC commented on a change in pull request #279: [NEMO-420]
OffHeapMemory configuration only supports a single type of executor
URL: https://github.com/apache/incubator-nemo/pull/279#discussion_r366190453
##########
File path:
runtime/master/src/main/java/org/apache/nemo/runtime/master/RuntimeMaster.java
##########
@@ -313,11 +314,15 @@ public void requestContainer(final String
resourceSpecificationString) {
final TreeNode resourceNode = jsonRootNode.get(i);
final String type =
resourceNode.get("type").traverse().nextTextValue();
final int memory =
resourceNode.get("memory_mb").traverse().getIntValue();
+ final double maxOffheapRatio =
+ (resourceNode.path("max_offheap_ratio").traverse().nextToken() ==
JsonToken.VALUE_NUMBER_FLOAT)
+ ?
resourceNode.path("max_offheap_ratio").traverse().getFloatValue() : 0.02;
Review comment:
If this value is not explicitly set, I think it'd be good to set this value
to `0`.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services