Tabnine Logo
FSQueueMetrics.setSchedulingPolicy
Code IndexAdd Tabnine to your IDE (free)

How to use
setSchedulingPolicy
method
in
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSQueueMetrics

Best Java code snippets using org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSQueueMetrics.setSchedulingPolicy (Showing top 2 results out of 315)

origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

/**
 * Test if the metric scheduling policy is set correctly.
 */
@Test
public void testSchedulingPolicy() {
 String queueName = "single";
 FSQueueMetrics metrics = FSQueueMetrics.forQueue(ms, queueName, null, false,
   CONF);
 metrics.setSchedulingPolicy("drf");
 checkSchedulingPolicy(queueName, "drf");
 // test resetting the scheduling policy
 metrics.setSchedulingPolicy("fair");
 checkSchedulingPolicy(queueName, "fair");
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

 /**
  * Initialize a {@link FSQueue} with queue-specific properties and its
  * metrics.
  * @param queue the FSQueue needed to be initialized
  */
 public void initFSQueue(FSQueue queue){
  // Set queue-specific properties.
  String name = queue.getName();
  queue.setWeights(getQueueWeight(name));
  queue.setMinShare(getMinResources(name));
  queue.setMaxShare(getMaxResources(name));
  queue.setMaxRunningApps(getQueueMaxApps(name));
  queue.setMaxAMShare(getQueueMaxAMShare(name));
  queue.setMaxChildQueueResource(getMaxChildResources(name));
  queue.setMaxContainerAllocation(getQueueMaxContainerAllocation(name));

  // Set queue metrics.
  queue.getMetrics().setMinShare(queue.getMinShare());
  queue.getMetrics().setMaxShare(queue.getMaxShare());
  queue.getMetrics().setMaxApps(queue.getMaxRunningApps());
  queue.getMetrics().setSchedulingPolicy(getSchedulingPolicy(name).getName());
 }
}
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fairFSQueueMetricssetSchedulingPolicy

Popular methods of FSQueueMetrics

  • forQueue
    Get the FS queue metric for the given queue. Create one and register it to metrics system if there i
  • getAvailableMB
  • getAvailableVirtualCores
  • <init>
  • getAllocatedMB
  • getAllocatedResources
  • getAllocatedVirtualCores
  • getReservedMB
  • setAvailableResourcesToQueue
  • setFairShare
  • setMaxShare
  • setMinShare
  • setMaxShare,
  • setMinShare,
  • setSteadyFairShare,
  • sourceName,
  • submitApp,
  • submitAppAttempt,
  • tag,
  • getAMResourceUsageMB,
  • getAMResourceUsageVCores,
  • getFairShareMB

Popular in Java

  • Start an intent from android
  • startActivity (Activity)
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now