Skip to content

Commit

Permalink
Merge pull request #8597 from hashicorp/b-vault-revoke-log-line
Browse files Browse the repository at this point in the history
vault: log once per interval if batching revocation
  • Loading branch information
schmichael authored Aug 6, 2020
2 parents 46d6f68 + e992785 commit 713b5f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nomad/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -1303,6 +1303,9 @@ func (v *vaultClient) revokeDaemon() {
// Build the list of accessors that need to be revoked while pruning any TTL'd checks
toRevoke := len(v.revoking)
if toRevoke > v.maxRevokeBatchSize {
v.logger.Info("batching tokens to be revoked",
"to_revoke", toRevoke, "batch_size", v.maxRevokeBatchSize,
"batch_interval", v.revocationIntv)
toRevoke = v.maxRevokeBatchSize
}
revoking := make([]*structs.VaultAccessor, 0, toRevoke)
Expand Down

0 comments on commit 713b5f5

Please sign in to comment.