-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Elastic Agent] Prevent a second agent from starting. #18243
Comments
Pinging @elastic/ingest-management (Team:Ingest Management) |
cc @EricDavisX |
what is the actual desired behavior if / when this is attempted? Perhaps the behavior should be to un-install the existing agent and then install the new / current agent? I don't know ramifications. |
@blakerouse I think we might need mot than that, I was considering adding an flock on the data folder to make sure only one process can read the file in it. This would prever two agents running on different port accessing the same files. |
@ph okay I can work on adding the flock |
Is a |
Seems |
@blakerouse sound good., I believe we use it for the exact same thing or even the persisted queue. |
Prevent a second instance of the Agent from running to reduce the problems of collision in the configuration or race in the configuration on disk
The text was updated successfully, but these errors were encountered: