diff --git a/cmd/influxd/run/command.go b/cmd/influxd/run/command.go index c065b4eb46..77401806cc 100644 --- a/cmd/influxd/run/command.go +++ b/cmd/influxd/run/command.go @@ -11,6 +11,7 @@ import ( "runtime" "strconv" "strings" + "time" "github.com/BurntSushi/toml" ) @@ -73,6 +74,9 @@ func (cmd *Command) Run(args ...string) error { // Set parallelism. runtime.GOMAXPROCS(runtime.NumCPU()) + // Turn on block profiling to debug stuck databases + runtime.SetBlockProfileRate(int(10 * time.Second)) + // Parse config config, err := cmd.ParseConfig(options.ConfigPath) if err != nil {