If the loader is disabled and no plugins are running HS should exit
trink opened this issue · comments
Mike Trinkala commented
Edge case from the discussion in #21
Tomas Barton commented
Would it be possible to configure hindsight to exit when any error occurs? e.g.:
1480069029397683273 [error] output.es ...box/sandboxes/heka/output/elasticsearch_bulk_api.lua:46: module 'encoders.elasticsearch.mozlog' not found:
no file '/usr/lib/luasandbox/modules/encoders/elasticsearch/mozlog.lua'
no file '/usr/lib/luasandbox/io_modules/encoders/elasticsearch/mozlog.l
1480069029397865693 [error] output_plugins output.es lsb_heka_create_output failed
1480069029397871525 [error] output_plugins output.es create_output_plugin failed
In this case input plugin works but it doesn't make much sense to process a message when it can't be stored to ES.
Bruno Binet commented
You can use shutdown_on_terminate = true
in your plugin configuration.
See: https://github.com/mozilla-services/hindsight/blob/master/docs/configuration.md#hindsight-sandbox-configuration