govind-menon commented on a change in pull request #3237: STORM-3259: Adds NUMA
awareness to enable worker pinning
URL: https://github.com/apache/storm/pull/3237#discussion_r401225553
##########
File path: storm-client/src/jvm/org/apache/storm/utils/Utils.java
##########
@@ -124,11 +124,47 @@
private static String memoizedLocalHostnameString = null;
public static final Pattern TOPOLOGY_KEY_PATTERN = Pattern.compile("^[\\w
\\t\\._-]+$", Pattern.UNICODE_CHARACTER_CLASS);
+ public static final String NUMA_MEMORY_IN_MB = "numa.memory.mb";
+ public static final String NUMA_CORES = "numa.cores";
+ public static final String NUMA_PORTS = "numa.ports";
+ public static final String NUMA_GENERIC_RESOURCES_MAP =
"numa.generic.resources.map";
+
static {
localConf = readStormConfig();
serializationDelegate = getSerializationDelegate(localConf);
}
+ /**
+ * Return supervisor numa configuration.
+ * @param stormConf stormConf
+ * @return getNumaMap
+ */
+ public static Map<String, Object> getNumaMap(Map<String, Object>
stormConf) {
Review comment:
These are used in the client side to do topology configuration so I think
it's better to keep it here
----------------------------------------------------------------
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