-
Notifications
You must be signed in to change notification settings - Fork 103
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
Log-courier upgrade affects logstash boot time #30
Comments
Hi Sorry you are having issues. I caught this once before during testing but thought I had fixed it. Can you share your config for logstash? Thanks Jason |
Hey Jason, I've setup log-courier on my logstash instance with the following setup. I've installed logstash from the debian repository. I've copied the libzmq & libsodium libraries into /usr/local/lib:
Then, applied the ldconfig
I've then installed/upgraded the log-courier via:
Here are my configuration files for logstash: 00_input.conf
10_output.conf
And when I try to stop the logstash service, it seems that the logstash process is still running:
|
Btw, by applying the same setup/configuration on another fresh logstash node I can't seem to start the logstash service and I've got the following error if I try to start it manually:
|
Hi @deviantony Looks like you are using ZMQ 3.x according to those library version numbers. That will not allow use of CURVE_SECRET_KEY - it requires ZMQ 4.x libraries. I will check docs to make sure this is clear. Basically the "plainzmq" transport is ZMQ 3.x, and "zmq" is ZMQ 4.x as its only since 4.x that an encrypted and authenticated connection is possible using ZMQ (without rolling owns crypto library). That could explain the first issue with the looping etc. if the library kept erroring I will try to reproduce and maybe I need to put a version check into the library so it complains nicely. Regarding the last issue, that could be related to current path. A lot of plugins in Logstash use relative path for library access and you need to run logstash from the "/opt/logstash" folder or it will fail to load those libraries. Can you give that a try? I'll put it on my list to use a more solid path if I can. Jason |
Just to confirm - that first issue with the spam - that's a bug and I suggest to kill logstash if that occurs! It essentially means the ZMQ stuff hit a loop. |
Hey, I just seen I made an error in my setup:
Is not a good value. I've updated my procedure using the following GEM_HOME:
So I've reinstalled both nodes, the fresh node is now working fine but I still have those log messages in my updated instance when I stop (not at startup) the logstash service. About the ZMQ libraries, the name seems to be misleading. I've built the libraries this way:
And I can see the following in my folder:
Plus, it's working on my fresh node setup. |
Ah OK. So the ZMQ spam you get when you try to stop the service? I'm aware that logstash will not shut down gracefully when using log-courier as the shutdown signal is lost - which I'm aiming to fix for next version (I've been doing lots of work on the log-courier binary itself lately.) This will then allow it to gracefully shutdown. I'll take a look and see if I can reproduce this. Previously it would be caused during timeouts sometimes, so I stripped that. It seemed raising an exception during the zmq_receive would possibly corrupt the ZMQ library status. I'll look further - maybe the shutdown exception is causing the same thing. Jason |
After upgrading from 0.11 to 0.12, my logstash indexer takes like 5sec to boot and the logstash log file is spammed with the following lines:
The text was updated successfully, but these errors were encountered: