@@ -67,6 +67,7 @@ func NewKafkaFillCommand(dep fx.Option, options *core.KafkaCommand) *cobra.Comma
67
67
cmd .Flags ().Uint16VarP (& options .Port , "port" , "P" , 9092 , "the port of kafka server" )
68
68
cmd .Flags ().StringVarP (& options .Username , "username" , "u" , "" , "the username of kafka client" )
69
69
cmd .Flags ().StringVarP (& options .Password , "password" , "p" , "" , "the password of kafka client" )
70
+ cmd .Flags ().StringVarP (& options .AuthMechanism , "auth-mechanism" , "a" , "sasl/plain" , "the authentication mechanism of kafka, supported value: sasl/plain, sasl/scram-sha-256, sasl/scram-sha-512" )
70
71
cmd .Flags ().UintVarP (& options .MessageSize , "size" , "s" , 4 * 1024 , "the size of each message" )
71
72
cmd .Flags ().Uint64VarP (& options .MaxBytes , "max-bytes" , "m" , 1 << 34 , "the max bytes to fill" )
72
73
cmd .Flags ().StringVarP (& options .ReloadCommand , "reload-cmd" , "r" , "" , "the command to reload kafka config" )
@@ -87,6 +88,7 @@ func NewKafkaFloodCommand(dep fx.Option, options *core.KafkaCommand) *cobra.Comm
87
88
cmd .Flags ().Uint16VarP (& options .Port , "port" , "P" , 9092 , "the port of kafka server" )
88
89
cmd .Flags ().StringVarP (& options .Username , "username" , "u" , "" , "the username of kafka client" )
89
90
cmd .Flags ().StringVarP (& options .Password , "password" , "p" , "" , "the password of kafka client" )
91
+ cmd .Flags ().StringVarP (& options .AuthMechanism , "auth-mechanism" , "a" , "sasl/plain" , "the authentication mechanism of kafka, supported value: sasl/plain, sasl/scram-sha-256, sasl/scram-sha-512" )
90
92
cmd .Flags ().UintVarP (& options .MessageSize , "size" , "s" , 1024 , "the size of each message" )
91
93
cmd .Flags ().UintVarP (& options .Threads , "threads" , "t" , 100 , "the numbers of worker threads" )
92
94
return cmd
@@ -107,6 +109,7 @@ func NewKafkaIOCommand(dep fx.Option, options *core.KafkaCommand) *cobra.Command
107
109
cmd .Flags ().Uint16VarP (& options .Port , "port" , "P" , 9092 , "the port of kafka server" )
108
110
cmd .Flags ().StringVarP (& options .Username , "username" , "u" , "" , "the username of kafka client" )
109
111
cmd .Flags ().StringVarP (& options .Password , "password" , "p" , "" , "the password of kafka client" )
112
+ cmd .Flags ().StringVarP (& options .AuthMechanism , "auth-mechanism" , "a" , "sasl/plain" , "the authentication mechanism of kafka, supported value: sasl/plain, sasl/scram-sha-256, sasl/scram-sha-512" )
110
113
cmd .Flags ().StringVarP (& options .ConfigFile , "config" , "c" , "/etc/kafka/server.properties" , "the path of server config" )
111
114
cmd .Flags ().BoolVarP (& options .NonReadable , "non-readable" , "r" , false , "make kafka cluster non-readable" )
112
115
cmd .Flags ().BoolVarP (& options .NonWritable , "non-writable" , "w" , false , "make kafka cluster non-writable" )
0 commit comments