Tabnine Logo
FSClusterStats.getInServiceXceiverAverage
Code IndexAdd Tabnine to your IDE (free)

How to use
getInServiceXceiverAverage
method
in
org.apache.hadoop.hdfs.server.blockmanagement.FSClusterStats

Best Java code snippets using org.apache.hadoop.hdfs.server.blockmanagement.FSClusterStats.getInServiceXceiverAverage (Showing top 5 results out of 315)

origin: org.apache.hadoop/hadoop-hdfs

/**
 * Determine if a datanode should be chosen based on current workload.
 *
 * @param node The target datanode
 * @return Return true if the datanode should be excluded, otherwise false
 */
boolean excludeNodeByLoad(DatanodeDescriptor node){
 final double maxLoad = considerLoadFactor *
   stats.getInServiceXceiverAverage();
 final int nodeLoad = node.getXceiverCount();
 if ((nodeLoad > maxLoad) && (maxLoad > 0)) {
  logNodeIsNotChosen(node, NodeNotChosenReason.NODE_TOO_BUSY,
    "(load: " + nodeLoad + " > " + maxLoad + ")");
  return true;
 }
 return false;
}
origin: ch.cern.hadoop/hadoop-hdfs

private static double getInServiceXceiverAverage(FSNamesystem fsn) {
 return fsn.getBlockManager().getDatanodeManager().getFSClusterStats()
  .getInServiceXceiverAverage();
}
origin: ch.cern.hadoop/hadoop-hdfs

.getInServiceXceiverAverage(), EPSILON);
.getInServiceXceiverAverage(), EPSILON);
origin: ch.cern.hadoop/hadoop-hdfs

final double maxLoad = 2.0 * stats.getInServiceXceiverAverage();
final int nodeLoad = node.getXceiverCount();
if (nodeLoad > maxLoad) {
origin: io.prestosql.hadoop/hadoop-apache

final double maxLoad = 2.0 * stats.getInServiceXceiverAverage();
final int nodeLoad = node.getXceiverCount();
if (nodeLoad > maxLoad) {
org.apache.hadoop.hdfs.server.blockmanagementFSClusterStatsgetInServiceXceiverAverage

Javadoc

an indication of the average load of non-decommission(ing|ed) nodes eligible for block placement

Popular methods of FSClusterStats

  • isAvoidingStaleDataNodesForWrite
    Indicate whether or not the cluster is now avoiding to use stale DataNodes for writing.
  • getNumDatanodesInService
    Indicates number of datanodes that are in service.

Popular in Java

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • scheduleAtFixedRate (Timer)
  • String (java.lang)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Reference (javax.naming)
  • JTextField (javax.swing)
  • Best plugins for Eclipse
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