title: spring-cloud-vault: min-renewal vs. expiry-threshold
body: <p>The spring-cloud-vault <a href="https://cloud.spring.io/spring-cloud-vault/multi/multi_vault-lease-renewal.html" rel="nofollow noreferrer">Lease lifecycle management (renewal and revocation)</a> documentation states that:</p>
  <blockquote>
  <p><strong>spring.cloud.vault.config.lifecycle.min-renewal:</strong> sets the duration that is at least required before renewing a lease. This setting prevents renewals from happening too often.</p>
  <p><strong>spring.cloud.vault.config.lifecycle.expiry-threshold:</strong> sets the expiry theshold. A lease is renewed the configured period of time before it expires.</p>
  </blockquote>
  <p>I'm having a hard time understanding the difference between these two configuration options. It would be helpful to be given an example of how each of these parameters affects the lease renewal lifecycle. For example: it seems pretty clear to me that if the lease TTL is 10 minutes, and if the expiry-threshold is set to 1 minute, then 9 minutes after the lease is acquired spring-cloud-vault would renew the lease. But if that it true what is the purpose for the <strong>min-renewal</strong> configuration parameter?</p>