Skip to content
Permalink
Browse files
DRILL-6513: Max query memory per node set to Drillbit's maximum direc…
…t memory

closes #1329
  • Loading branch information
sachouche authored and vdiravka committed Jun 22, 2018
1 parent 9c7e557 commit 6823a8f241a58a4ae1dc1c6e84ba6a9920cc1643
Showing 1 changed file with 2 additions and 1 deletion.
@@ -17,6 +17,7 @@
*/
package org.apache.drill.exec;

import org.apache.drill.common.config.DrillConfig;
import org.apache.drill.exec.physical.impl.common.HashTable;
import org.apache.drill.exec.rpc.user.InboundImpersonationManager;
import org.apache.drill.exec.server.options.OptionValidator;
@@ -440,7 +441,7 @@ private ExecConstants() {
* DEFAULT: 2048 MB
*/
public static final String MAX_QUERY_MEMORY_PER_NODE_KEY = "planner.memory.max_query_memory_per_node";
public static final LongValidator MAX_QUERY_MEMORY_PER_NODE = new RangeLongValidator(MAX_QUERY_MEMORY_PER_NODE_KEY, 1024 * 1024, Long.MAX_VALUE);
public static final LongValidator MAX_QUERY_MEMORY_PER_NODE = new RangeLongValidator(MAX_QUERY_MEMORY_PER_NODE_KEY, 1024 * 1024, DrillConfig.getMaxDirectMemory());

/**
* Alternative way to compute per-query-per-node memory as a percent

0 comments on commit 6823a8f

Please sign in to comment.