-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
agent: prevent very old servers re-joining a cluster with stale data (#…
…17171) * agent: configure server lastseen timestamp Signed-off-by: Dan Bond <[email protected]> * use correct config Signed-off-by: Dan Bond <[email protected]> * add comments Signed-off-by: Dan Bond <[email protected]> * use default age in test golden data Signed-off-by: Dan Bond <[email protected]> * add changelog Signed-off-by: Dan Bond <[email protected]> * fix runtime test Signed-off-by: Dan Bond <[email protected]> * agent: add server_metadata Signed-off-by: Dan Bond <[email protected]> * update comments Signed-off-by: Dan Bond <[email protected]> * correctly check if metadata file does not exist Signed-off-by: Dan Bond <[email protected]> * follow instructions for adding new config Signed-off-by: Dan Bond <[email protected]> * add comments Signed-off-by: Dan Bond <[email protected]> * update comments Signed-off-by: Dan Bond <[email protected]> * Update agent/agent.go Co-authored-by: Dan Upton <[email protected]> * agent/config: add validation for duration with min Signed-off-by: Dan Bond <[email protected]> * docs: add new server_rejoin_age_max config definition Signed-off-by: Dan Bond <[email protected]> * agent: add unit test for checking server last seen Signed-off-by: Dan Bond <[email protected]> * agent: log continually for 60s before erroring Signed-off-by: Dan Bond <[email protected]> * pr comments Signed-off-by: Dan Bond <[email protected]> * remove unneeded todo * agent: fix error message Signed-off-by: Dan Bond <[email protected]> --------- Signed-off-by: Dan Bond <[email protected]> Co-authored-by: Dan Upton <[email protected]>
- Loading branch information
Showing
16 changed files
with
385 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:improvement | ||
agent: add a configurable maximimum age (default: 7 days) to prevent servers re-joining a cluster with stale data | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.