-
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
Cherry-pick #18483 to 7.x: Add a file lock to the data directory on startup to prevent multiple agents. #18529
Conversation
…agents. (elastic#18483) * Add a file lock to the data directory on startup to prevent multiple agents. * Add export comments to AppLocker. * Fix periodic to not block startup. (cherry picked from commit e1a4741)
Pinging @elastic/ingest-management (Team:Ingest Management) |
💔 Build FailedExpand to view the summary
Build stats
Steps errorsExpand to view the steps failures
Log outputExpand to view the last 100 lines of log output
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Cherry-pick of PR #18483 to 7.x branch. Original message:
What does this PR do?
Adds an
agent.lock
to thepath.data
directory.Why is it important?
Prevents the ability to run multiple agents on the same host.
Checklist
[ ] I have made corresponding changes to the documentation[ ] I have made corresponding change to the default configuration filesAuthor's Checklist
How to test this PR locally
Try to start two
elastic-agent
at the same time on the same host and see that the second one started errors out withanother elastic-agent is already running
.Related issues