Github user jinxing64 commented on a diff in the pull request:
https://github.com/apache/spark/pull/18388#discussion_r124510372
--- Diff:
common/network-common/src/main/java/org/apache/spark/network/util/TransportConf.java
---
@@ -257,4 +257,31 @@ public Properties cryptoConf() {
return CryptoUtils.toCryptoConf("spark.network.crypto.config.",
conf.getAll());
}
+ /**
+ * When memory usage of Netty is above this water mark, it's regarded as
memory shortage.
+ */
+ public Long nettyMemWaterMark() {
+ return
JavaUtils.byteStringAsBytes(conf.get("spark.network.netty.memCostWaterMark",
"1g"));
--- End diff --
Yes, I do think it's good to put the config into
`org.apache.spark.internal.config`.
But I found it hard. Since `org.apache.spark.internal.config` in in `core`
module. I didn't find a good way to import it from module `spark-network-yarn`.
Did I miss something ?
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]