Package com.linkedin.venice.fastclient
Class ClientConfig<K,V,T extends org.apache.avro.specific.SpecificRecord>
java.lang.Object
com.linkedin.venice.fastclient.ClientConfig<K,V,T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClientConfig.ClientConfigBuilder<K,V, T extends org.apache.avro.specific.SpecificRecord> -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncom.linkedin.d2.balancer.D2ClientdoublelongParsed per-key-count-bucket full-skew thresholds; buckets default to the local batch-get retry range.doubleSettings for the health monitor that each Fast Client creates for itself.longintintlonglongio.tehuti.metrics.MetricsRepositorycom.linkedin.r2.transport.common.ClientdoublegetStats(RequestType requestType) doubledoubleintintbooleanbooleanbooleanbooleanDeprecated.booleanWhether the size-aware thresholds were set explicitly; if not, full skew follows the effective retry policy.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanDeprecated.voidonClusterNameUpdated(String newClusterName) Fans out a cluster-name update to every per-RequestTypeFastClientStats.setProjectionFieldValidationEnabled(boolean projectionFieldValidation) booleanuseGrpc()
-
Field Details
-
LONG_TAIL_RANGE_BASED_RETRY_THRESHOLD_FOR_BATCH_GET_IN_MILLI_SECONDS
- See Also:
-
LONG_TAIL_RANGE_BASED_RETRY_THRESHOLD_FOR_COMPUTE_IN_MILLI_SECONDS
- See Also:
-
-
Method Details
-
getStoreName
-
getR2Client
public com.linkedin.r2.transport.common.Client getR2Client() -
getMetricsRepository
public io.tehuti.metrics.MetricsRepository getMetricsRepository() -
isRouteMetricsDisabled
public boolean isRouteMetricsDisabled() -
getStats
-
onClusterNameUpdated
Fans out a cluster-name update to every per-RequestTypeFastClientStats. Pushed directly fromRequestBasedMetadata.discoverD2Serviceonce cluster discovery resolves (and again on store-migration recovery).The
newClusterNamevalue is the Venice cluster name (e.g.,cluster0), as returned byD2ServiceDiscoveryResponse.getCluster(). -
getSpecificValueClass
-
getDeserializationExecutor
-
getExecutionContextProvider
-
getMetadataRefreshExecutor
-
isDualReadEnabled
public boolean isDualReadEnabled() -
getGenericThinClient
-
getSpecificThinClient
-
getDaVinciClientForMetaStore
-
isMetadataConnWarmupEnabled
public boolean isMetadataConnWarmupEnabled() -
getMetadataRefreshIntervalInSeconds
public long getMetadataRefreshIntervalInSeconds() -
getMetadataConnWarmupTimeoutInSeconds
public long getMetadataConnWarmupTimeoutInSeconds() -
isLongTailRetryEnabledForSingleGet
public boolean isLongTailRetryEnabledForSingleGet() -
getLongTailRetryThresholdForSingleGetInMicroSeconds
public int getLongTailRetryThresholdForSingleGetInMicroSeconds() -
isLongTailRetryEnabledForBatchGet
public boolean isLongTailRetryEnabledForBatchGet() -
getLongTailRetryThresholdForBatchGetInMicroSeconds
public int getLongTailRetryThresholdForBatchGetInMicroSeconds() -
isLongTailRetryEnabledForCompute
public boolean isLongTailRetryEnabledForCompute() -
isVsonStore
Deprecated. -
getClientRoutingStrategyType
-
getClusterStats
-
getStoreMetadataFetchMode
-
getD2Client
public com.linkedin.d2.balancer.D2Client getD2Client() -
getClusterDiscoveryD2Service
-
useGrpc
public boolean useGrpc() -
getGrpcClientConfig
-
isProjectionFieldValidationEnabled
public boolean isProjectionFieldValidationEnabled() -
getLongTailRetryBudgetEnforcementWindowInMs
public long getLongTailRetryBudgetEnforcementWindowInMs() -
getHarClusters
-
setProjectionFieldValidationEnabled
-
getInstanceHealthMonitorConfig
Settings for the health monitor that each Fast Client creates for itself. The monitor is created with the store metadata and closed when the client is closed; it is never shared between clients. -
isRetryBudgetEnabled
public boolean isRetryBudgetEnabled() -
getRetryBudgetPercentage
public double getRetryBudgetPercentage() -
getHelixGroupRoutingStrategyType
-
isEnableLeastLoadedRoutingStrategyForHelixGroupRouting
Deprecated.UsegetHelixGroupRoutingStrategyType(). Kept for compatibility with older callers. -
getHelixGroupSkewRampExponent
public double getHelixGroupSkewRampExponent() -
getHelixGroupSizeAwareThresholds
Parsed per-key-count-bucket full-skew thresholds; buckets default to the local batch-get retry range. -
isHelixGroupSizeAwareThresholdsExplicit
public boolean isHelixGroupSizeAwareThresholdsExplicit()Whether the size-aware thresholds were set explicitly; if not, full skew follows the effective retry policy. -
getHelixGroupEvenUntilFraction
public double getHelixGroupEvenUntilFraction() -
getHelixGroupMinSampleCount
public long getHelixGroupMinSampleCount() -
isStoreLoadControllerEnabled
public boolean isStoreLoadControllerEnabled() -
getStoreLoadControllerWindowSizeInSec
public int getStoreLoadControllerWindowSizeInSec() -
getStoreLoadControllerRejectionRatioUpdateIntervalInSec
public int getStoreLoadControllerRejectionRatioUpdateIntervalInSec() -
getStoreLoadControllerMaxRejectionRatio
public double getStoreLoadControllerMaxRejectionRatio() -
getStoreLoadControllerAcceptMultiplier
public double getStoreLoadControllerAcceptMultiplier() -
getLongTailRangeBasedRetryThresholdForBatchGetInMilliSeconds
-
getLongTailRangeBasedRetryThresholdForComputeInMilliSeconds
-
isBatchGetRetryRangeExplicit
public boolean isBatchGetRetryRangeExplicit() -
isComputeRetryRangeExplicit
public boolean isComputeRetryRangeExplicit() -
getKeySerializerFactory
-
getValueDeserializerFactory
-
getHelixGroupRoutingStrategyType().