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

Request : Reconnect upon "connection reset by peer" condition #544

Open
bfurey opened this issue Jan 15, 2018 · 0 comments
Open

Request : Reconnect upon "connection reset by peer" condition #544

bfurey opened this issue Jan 15, 2018 · 0 comments

Comments

@bfurey
Copy link

bfurey commented Jan 15, 2018

I am running the meetme plugin for Redis within a docker container running in Kubernetes

Am running the plugin via : newrelic-plugin-agent -c /etc/newrelic/newrelic-plugin-agent.cfg

During the running of the plugin, we encountered a 'Connection reset by peer' condition and the plugin did not recover.

i.e.

tail -n 200 /var/tmp/newrelic-plugin-agent.errors
------------------------------------------------------------------------ [START]
/usr/bin/newrelic-plugin-agent Exception [2018-01-14T01:23:37.211820]
------------------------------------------------------------------------- [INFO]
Interpreter: /usr/bin/python2
CLI arguments: /usr/bin/newrelic-plugin-agent -c /etc/newrelic/newrelic-plugin-agent.cfg
Exception: [Errno 104] Connection reset by peer
Traceback:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/helper/unix.py", line 92, in start
    self.controller.start()
  File "/usr/lib/python2.7/site-packages/helper/controller.py", line 266, in start
    self.run()
  File "/usr/lib/python2.7/site-packages/helper/controller.py", line 257, in run
    signal.pause()
  File "/usr/lib/python2.7/site-packages/helper/controller.py", line 428, in _wake
    self.process()
  File "/usr/lib/python2.7/site-packages/newrelic_plugin_agent/agent.py", line 118, in process
    self.start_plugin_polling()
  File "/usr/lib/python2.7/site-packages/newrelic_plugin_agent/agent.py", line 280, in start_plugin_polling
    self.config.application.get(plugin))
  File "/usr/lib/python2.7/site-packages/newrelic_plugin_agent/agent.py", line 108, in poll_plugin
    thread.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.7/site-packages/newrelic_plugin_agent/agent.py", line 308, in thread_process
    obj.poll()
  File "/usr/lib/python2.7/site-packages/newrelic_plugin_agent/plugins/base.py", line 281, in poll
    connection = self.connect()
  File "/usr/lib/python2.7/site-packages/newrelic_plugin_agent/plugins/redis.py", line 116, in connect
    buffer_value = connection.recv(self.SOCKET_RECV_MAX)
error: [Errno 104] Connection reset by peer
-------------------------------------------------------------------------- [END]

Plugin will stop and will not recover, until such point as it is manually restarted.

Request to build in a reconnect logic to be built into the plugin

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

1 participant