the-algorithm/simclusters-ann/server/src/main/scala/com/twitter/simclustersann/modules/FlagsModule.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

45 lines
1.0 KiB
Scala

package com.twitter.simclustersann.modules
import com.twitter.inject.TwitterModule
import com.twitter.simclustersann.common.FlagNames
object FlagsModule extends TwitterModule {
flag[Int](
name = FlagNames.ServiceTimeout,
default = 40,
help = "The threshold of Request Timeout"
)
flag[String](
name = FlagNames.DarkTrafficFilterDeciderKey,
default = "dark_traffic_filter",
help = "Dark traffic filter decider key"
)
flag[String](
name = FlagNames.CacheDest,
default = "/s/cache/content_recommender_unified_v2",
help = "Path to memcache service. Currently using CR uniform scoring cache"
)
flag[Int](
name = FlagNames.CacheTimeout,
default = 15,
help = "The threshold of MemCache Timeout"
)
flag[Boolean](
name = FlagNames.CacheAsyncUpdate,
default = false,
help = "Whether to enable the async update for the MemCache"
)
flag[Int](
name = FlagNames.MaxTopTweetPerCluster,
default = 200,
help = "Maximum number of tweets to take per each simclusters"
)
}