| /** |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * <p/> |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * <p/> |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| */ |
| package org.apache.myriad.executor; |
| |
| /** |
| * Myriad's Executor Defaults |
| */ |
| public class MyriadExecutorDefaults { |
| public static final String ENV_YARN_NODEMANAGER_OPTS = "YARN_NODEMANAGER_OPTS"; |
| |
| /** |
| * YARN container executor class. |
| */ |
| public static final String KEY_YARN_NM_CONTAINER_EXECUTOR_CLASS = "yarn.nodemanager.container-executor.class"; |
| |
| public static final String VAL_YARN_NM_CONTAINER_EXECUTOR_CLASS = |
| "org.apache.hadoop.yarn.server.nodemanager.LinuxContainerExecutor"; |
| |
| public static final String DEFAULT_YARN_NM_CONTAINER_EXECUTOR_CLASS = |
| "org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor"; |
| |
| /** |
| * Allot 10% more memory to account for JVM overhead. |
| */ |
| public static final double JVM_OVERHEAD = 0.1; |
| |
| /** |
| * Default -Xmx for executor JVM. |
| */ |
| |
| public static final double DEFAULT_JVM_MAX_MEMORY_MB = 256; |
| /** |
| * Default CPU cores for executor JVM. |
| */ |
| public static final double DEFAULT_CPUS = 0.2; |
| } |