Package org.apache.druid.client
Class DruidServerConfig
java.lang.Object
org.apache.druid.client.DruidServerConfig
-
Constructor Summary
ConstructorsConstructorDescriptionDruidServerConfig(RuntimeInfo runtimeInfo, SegmentLoaderConfig segmentLoaderConfig) -
Method Summary
Modifier and TypeMethodDescriptionlongThe maximum size in bytes a data node advertises itself as having available to serve data.intlongPhysical size of the storage locations configured for this server.getTier()
-
Constructor Details
-
DruidServerConfig
-
-
Method Details
-
getMaxSize
public long getMaxSize()The maximum size in bytes a data node advertises itself as having available to serve data. If not set explicitly, this value is computed. By default this value is computed usingSegmentLoaderConfig.getCombinedMaxSize()which is the total physical capacity of the segment storage locations. If the data node is using virtual storage mode, the default is instead computed based on an assumption that ~1G of heap is "plenty" to be able to serve ~50k segments, using ~300M segment size as the conversion to storage space translates to ~15T of segments per 1G of heap -
getStorageSize
public long getStorageSize()Physical size of the storage locations configured for this server. This value is always computed usingSegmentLoaderConfig.getCombinedMaxSize(), and may differ fromgetMaxSize()since the latter can be explicitly set via config, or computed to some very large value whenSegmentLoaderConfig.isVirtualStorage()is true. -
getTier
-
getPriority
public int getPriority() -
getHiddenProperties
-