def define_options(self, option_parser):
opt_group = OptionGroup(option_parser, 'Compaction Setter Options')
opt_group.add_option(
'--dry-run',
action="store_true",
help="If set, will not set any topic configs, but will still run as if it is"
)
opt_group.add_option(
'--config-path',
dest='config_path',
type='str',
default='/nail/srv/configs/data_pipeline_tools.yaml',
help='Config path for CompactionSetter (default: %default)'
)
opt_group.add_option(
'--whitelist-topic',
type='str',
help='A single topic for which log compaction should be turned on'
)
return opt_group
评论列表
文章目录