embed: add 'enable-pprof' tag for config file

Fix https://github.com/coreos/etcd/issues/8402.

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyu-Ho Lee 2017-08-15 11:22:10 -07:00
parent e197c14847
commit fa0f278783
2 changed files with 18 additions and 15 deletions

View File

@ -109,7 +109,7 @@ type Config struct {
Debug bool `json:"debug"` Debug bool `json:"debug"`
LogPkgLevels string `json:"log-package-levels"` LogPkgLevels string `json:"log-package-levels"`
EnablePprof bool EnablePprof bool `json:"enable-pprof"`
Metrics string `json:"metrics"` Metrics string `json:"metrics"`
// ForceNewCluster starts a new cluster even if previously started; unsafe. // ForceNewCluster starts a new cluster even if previously started; unsafe.

View File

@ -72,6 +72,9 @@ strict-reconfig-check: false
# Accept etcd V2 client requests # Accept etcd V2 client requests
enable-v2: true enable-v2: true
# Enable runtime profiling data via HTTP server
enable-pprof: true
# Valid values include 'on', 'readonly', 'off' # Valid values include 'on', 'readonly', 'off'
proxy: 'off' proxy: 'off'