influxdb/services
Edd Robinson 12248b7233 Allow panic recovery to be disabled
This commit adds a new environment variable INFLUXDB_PANIC_CRASH, which
when set to a truthy value, e.g., true, TRUE, 1, will prevent the server
from recovering from a panic.

Recover currently occurs in two places: the HTTP handler and the
QueryExecutor. INFLUXDB_PANIC_CRASH will control both.

Further, this commit adds _internal stats that will monitor the
occurrence of panics all the time (regardless of if INFLUXDB_PANIC_CRASH
has been set to true or not).

The recovered panic frequency can be inspected with the following
queries:

SELECT "recoveredPanics" FROM "_internal"."monitor"."httpd";
SELECT "recoveredPanics" FROM "_internal"."monitor"."queryExecutor";
2017-06-29 19:44:25 +01:00
..
collectd 8426: updated code based on pull-request feedback 2017-06-23 14:59:01 -04:00
continuous_querier update field keys 2017-06-13 13:32:18 +10:00
graphite initial fga work 2017-05-26 13:16:27 -07:00
httpd Allow panic recovery to be disabled 2017-06-29 19:44:25 +01:00
meta Ensure privileges can't be set on non-existent DB 2017-06-26 14:15:52 +01:00
opentsdb initial fga work 2017-05-26 13:16:27 -07:00
precreator Report subset of config values in SHOW DIAGNOSTICS 2017-03-14 11:34:19 -07:00
retention Merge remote-tracking branch 'upstream/master' into tsi 2017-03-15 10:13:32 -06:00
snapshotter Rename zap import back to github.com/uber-go/zap 2017-02-17 17:17:22 -06:00
subscriber Make services/subscriber golintable 2017-04-03 18:32:36 -04:00
udp initial fga work 2017-05-26 13:16:27 -07:00