Skip to content

Commit

Permalink
main: add cmd arg advertise-addr (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
djshow832 authored Apr 5, 2024
1 parent b543b47 commit 1a2c0c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/tiproxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func main() {
rootCmd.PersistentFlags().StringVar(&sctx.ConfigFile, "config", "", "proxy config file path")
rootCmd.PersistentFlags().StringVar(&sctx.Overlay.Log.Encoder, "log_encoder", "", "log in format of tidb, console, or json")
rootCmd.PersistentFlags().StringVar(&sctx.Overlay.Log.Level, "log_level", "", "log level")
rootCmd.PersistentFlags().StringVar(&sctx.Overlay.Proxy.AdvertiseAddr, "advertise-addr", "", "advertise address")

metrics.MaxProcsGauge.Set(float64(runtime.GOMAXPROCS(0)))

Expand Down

0 comments on commit 1a2c0c8

Please sign in to comment.