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

Is there a reason why Influxd doesn't remove its PID file when it stops #8983

Closed
thibodux opened this issue Oct 19, 2017 · 5 comments
Closed
Assignees
Labels

Comments

@thibodux
Copy link

While digging into influxdata/chronograf#2075 over in Chronograf, I realized that neither Influxd or Kapactiord do anything to remove their respective PID files when the daemons go down. They do not monitor the PID file as a shutdown control either, i.e., deleting the PID file would kill the daemon.

Is there a reason for these omissions?

Telegraf does remove its PID file when the process terminates, but it does not monitor the PID file as a shutdown indicator.

@jsternberg
Copy link
Contributor

I don't think there's any program that monitors the pid file as a shutdown indicator. Can you give me an example of that?

I'll look to make sure the PID file is getting deleted correctly on shutdown though.

@thibodux
Copy link
Author

Don't have any off the top of my head (been a while since I dealt with it), but I feel like that is a feature of some. Regardless, that is unimportant relative to the clean-up of the pid file. That is really the main feature request. Applies to Kapacitor too.

@jsternberg
Copy link
Contributor

I've merged a fix for InfluxDB and submitted a fix for Kapacitor. You say that Telegraf does this correctly and Chronograf doesn't appear to have a PID writing feature from what I can find. The Kapacitor fix will be handled in the Kapacitor repository in the linked issue.

@thibodux
Copy link
Author

Thanks for the changes @jsternberg. There is an issue in Chronograf for this request: influxdata/chronograf#2075. Would be good to have. As that issue says, Telegraf has this, but the code is completely different. Might be worth cleaning up the Telegraf code to reuse the code here and in Kapacitor.

@melroy89
Copy link

@ jsternberg Yes Monit will use the pid file as indicator: https://mmonit.com/monit/documentation/#PID-TEST

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

No branches or pull requests

3 participants