Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If the loader is disabled and no plugins are running HS should exit #23

Open
trink opened this issue Oct 23, 2015 · 2 comments
Open

If the loader is disabled and no plugins are running HS should exit #23

trink opened this issue Oct 23, 2015 · 2 comments

Comments

@trink
Copy link
Contributor

trink commented Oct 23, 2015

Edge case from the discussion in #21

@deric
Copy link

deric commented Nov 25, 2016

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.

@bbinet
Copy link
Contributor

bbinet commented Nov 25, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants