in src/main/scala/com/twitter/iago/launcher/AuroraMode.scala [73:124]
def auroraModeFlags: List[Flag[_]] = localFlags.getAll().toList
// These are the flags that are required for any command.
val auroraRequiredFlags: List[Flag[_]] = List(
cluster,
role,
env,
jobNameF
)
// These are the flags that are required for the launch command.
val auroraRequiredFlagsForLaunch: List[Flag[_]] = auroraRequiredFlags ::: List(
auroraConfig,
maxPerHost,
numInstancesF,
serverNumCpus,
serverRamInBytes,
serverDiskInBytes,
feederNumInstances,
feederNumCpus,
feederRamInBytes,
feederDiskInBytes,
jvmCmd
)
// These are the flags that are required for the adjust command.
val auroraRequiredFlagsForAdjust: List[Flag[_]] = auroraRequiredFlags ::: List(
requestRateF,
jvmCmd
)
// These are the flags passed to the Aurora configuration via --bind.
val auroraConfigBindingFlags: List[Flag[_]] = List(
cluster,
role,
env,
jobNameF,
maxPerHost,
numInstancesF,
serverNumCpus,
serverRamInBytes,
serverDiskInBytes,
feederNumInstances,
feederNumCpus,
feederRamInBytes,
feederDiskInBytes
)
def auroraConfigFlagMap: Map[String, String] =
flagsToFlagMap(auroraConfigBindingFlags).map {
case (name, value) => (name.stripPrefix("env.aurora."), value)
}