mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
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:
parent
e197c14847
commit
fa0f278783
@ -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.
|
||||||
|
@ -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'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user