Package com.linkedin.davinci.config
Class VeniceClusterConfig
java.lang.Object
com.linkedin.davinci.config.VeniceClusterConfig
- Direct Known Subclasses:
VeniceServerConfig
class that maintains config very specific to a Venice cluster
-
Constructor Summary
ConstructorDescriptionVeniceClusterConfig
(VeniceProperties clusterProps, Map<String, Map<String, String>> kafkaClusterMap) -
Method Summary
Modifier and TypeMethodDescriptionint
getEquivalentKafkaClusterIdForSepTopic
(int clusterId) For the separate incremental push topic feature, we need to resolve the cluster id to the original one for monitoring purposes as the incremental push topic essentially uses the same pubsub clusters as the regular push topic, though it appears to have a different cluster idit.unimi.dsi.fastutil.objects.Object2IntMap<String>
it.unimi.dsi.fastutil.ints.Int2ObjectMap<String>
it.unimi.dsi.fastutil.ints.Int2ObjectMap<String>
Used to convert from an alternative Kafka URL to the one used in this server instance.it.unimi.dsi.fastutil.objects.Object2IntMap<String>
long
long
long
long
long
long
long
long
long
long
long
getKafkaSecurityProtocol
(String kafkaBootstrapUrl) int
long
-
Constructor Details
-
VeniceClusterConfig
public VeniceClusterConfig(VeniceProperties clusterProps, Map<String, Map<String, throws ConfigurationExceptionString>> kafkaClusterMap) - Throws:
ConfigurationException
-
-
Method Details
-
getClusterName
-
getZookeeperAddress
-
getPersistenceType
-
getKafkaBootstrapServers
-
getKafkaSecurityProtocol
-
getSslConfig
-
getRefreshIntervalForZkReconnectInMs
public long getRefreshIntervalForZkReconnectInMs() -
getRefreshAttemptsForZkReconnect
public int getRefreshAttemptsForZkReconnect() -
getKafkaReadCycleDelayMs
public long getKafkaReadCycleDelayMs() -
getKafkaEmptyPollSleepMs
public long getKafkaEmptyPollSleepMs() -
getKafkaFetchMinSizePerSecond
public long getKafkaFetchMinSizePerSecond() -
getKafkaFetchMaxSizePerSecond
public long getKafkaFetchMaxSizePerSecond() -
getKafkaFetchMaxTimeMS
public long getKafkaFetchMaxTimeMS() -
getKafkaFetchPartitionMaxSizePerSecond
public long getKafkaFetchPartitionMaxSizePerSecond() -
getKafkaFetchQuotaTimeWindow
public long getKafkaFetchQuotaTimeWindow() -
getKafkaFetchQuotaBytesPerSecond
public long getKafkaFetchQuotaBytesPerSecond() -
getKafkaFetchQuotaRecordPerSecond
public long getKafkaFetchQuotaRecordPerSecond() -
getKafkaFetchQuotaUnorderedBytesPerSecond
public long getKafkaFetchQuotaUnorderedBytesPerSecond() -
getKafkaFetchQuotaUnorderedRecordPerSecond
public long getKafkaFetchQuotaUnorderedRecordPerSecond() -
getRegionName
-
getKafkaClusterIdToUrlMap
-
getKafkaClusterUrlToIdMap
-
getKafkaClusterIdToAliasMap
-
getKafkaClusterAliasToIdMap
-
getKafkaClusterUrlToAliasMap
-
getKafkaClusterUrlResolver
Used to convert from an alternative Kafka URL to the one used in this server instance. For example, can be used in case of a URL migration, or a security protocol migration (e.g. from PLAINTEXT to SSL). -
getRegionNames
-
getClusterProperties
-
getKafkaClusterMap
-
getEquivalentKafkaClusterIdForSepTopic
public int getEquivalentKafkaClusterIdForSepTopic(int clusterId) For the separate incremental push topic feature, we need to resolve the cluster id to the original one for monitoring purposes as the incremental push topic essentially uses the same pubsub clusters as the regular push topic, though it appears to have a different cluster id- Parameters:
clusterId
-- Returns:
-