the-algorithm/recos-injector/server/src/main/scala/com/twitter/recosinjector/config/StagingConfig.scala
twitter-team ef4c5eb65e Twitter Recommendation Algorithm
Please note we have force-pushed a new initial commit in order to remove some publicly-available Twitter user information. Note that this process may be required in the future.
2023-03-31 17:36:31 -05:00

34 lines
1.1 KiB
Scala

package com.twitter.recosinjector.config
import com.twitter.finagle.mtls.authentication.ServiceIdentifier
import com.twitter.finagle.stats.StatsReceiver
import com.twitter.finagle.thrift.ClientId
import com.twitter.logging.Logger
import com.twitter.recosinjector.decider.RecosInjectorDecider
case class StagingConfig(
override val serviceIdentifier: ServiceIdentifier
)(
implicit val statsReceiver: StatsReceiver)
extends {
// Due to trait initialization logic in Scala, any abstract members declared in Config or
// DeployConfig should be declared in this block. Otherwise the abstract member might initialize
// to null if invoked before before object creation finishing.
val recosInjectorThriftClientId = ClientId("recos-injector.staging")
val outputKafkaTopicPrefix = "staging_recos_injector"
val log = Logger("StagingConfig")
val recosInjectorCoreSvcsCacheDest = "/srv#/test/local/cache/twemcache_recos"
val recosInjectorDecider = RecosInjectorDecider(
isProd = false,
dataCenter = serviceIdentifier.zone
)
val abDeciderLoggerNode = "staging_abdecider_scribe"
} with DeployConfig