Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Snap plugin 'connection is shut down' error message #1448

Closed
nanliu opened this issue Dec 20, 2016 · 1 comment
Closed

Snap plugin 'connection is shut down' error message #1448

nanliu opened this issue Dec 20, 2016 · 1 comment

Comments

@nanliu
Copy link
Contributor

nanliu commented Dec 20, 2016

There's several plugin bugs reporting the error connection is shut down which seems related to the go rpc client. I'm listing them below so we can centrally track them all:

intelsdi-x/snap-plugin-collector-snmp#16
intelsdi-x/snap-plugin-collector-perfevents#24
intelsdi-x/snap-plugin-publisher-opentsdb#28

@nanliu nanliu changed the title Snap plugin connection is shutdown error message Snap plugin 'connection is shut down' error message Dec 20, 2016
@nanliu
Copy link
Contributor Author

nanliu commented Jan 5, 2017

Per update in opentsdb, we were able to reproduce this error by killing the publisher plugin several times. During normal Snap operation, when the plugin health check fails consecutively, it triggers a plugin restart. After the plugin restarts several times, it hits MaxPluginRestartCount and Snap no longer attempts to start the plugin. But if the task is configured with max-failure: 1, the task will continue to collect but does not publish any new data.

The current proposal to resolve this issue:

  1. allow MaxPluginRestartCount be unlimited with -1.
  2. improve logging so we notify users that max plugin restart have been reached.

Maybe we may want to reset the restart counter after successful health checks, so it behaves more like MaxPluginConsecutiveRestartCount.

For now, if you encounter this issue recompile and change the MaxPluginRestartCount to a large number in https://github.com/intelsdi-x/snap/blame/master/control/runner.go#L59 simply update the setting: MaxPluginRestarts per change completed in #1422.

cc: @jtlisi

nanliu added a commit to nanliu/snap that referenced this issue Jan 5, 2017
* support -1 for max_plugin_restarts, so it works better to max-failure:
-1.
* improve logging of MaxPluginRestarts so users are aware why a plugin is
disabled.
* document changes and relationship to max-failure settings.
nanliu added a commit to nanliu/snap that referenced this issue Jan 5, 2017
* support -1 for max_plugin_restarts, so it works better with max-failure:
-1.
* improve logging of MaxPluginRestarts so users are aware why a plugin is
disabled.
* document changes and relationship to max-failure settings.
nanliu added a commit to nanliu/snap that referenced this issue Jan 5, 2017
* support -1 for max_plugin_restarts, so it works better with max-failure:
-1.
* improve logging of MaxPluginRestarts so users are aware why a plugin is
disabled.
* document changes and relationship to max-failure settings.
IRCody added a commit that referenced this issue Jan 6, 2017
(SDI-2393) Fix #1448 log and document maxpluginrestarts
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants