Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

health: stop retrying for N minutes after X failures in a row #616

Open
adamdecaf opened this issue Nov 6, 2020 · 0 comments
Open

health: stop retrying for N minutes after X failures in a row #616

adamdecaf opened this issue Nov 6, 2020 · 0 comments
Labels
bug Something isn't working enhancement New feature or request
Milestone

Comments

@adamdecaf
Copy link
Member

PayGate Version: v0.9.0-dev

Health checks in PayGate are often called on an interval by deployment services. For example Kubernetes has liveness probes that monitor an endpoint on the application. (e.g. GET /live) This endpoint could be called frequently (every 60s for example) so bad connections or problems are discovered quickly.

This causes a problem where SFTP servers have lockout rules when invalid account credentials are tried repeatedly inside of an interval. An example could be 5 failures in 30 minutes, which we could run into easily.

Currently PayGate will attempt to reconnect (e.g. login again) if it does not have a valid connection. This would be the case if the previous attempt failed to authenticate.

What did you expect to see?
PayGate should be more aware of trying to prevent lockouts of remote accounts. These can sometimes be difficult to unlock and cause interruptions of service.

@adamdecaf adamdecaf added bug Something isn't working enhancement New feature or request labels Nov 6, 2020
@adamdecaf adamdecaf added this to the v0.10.0 milestone Nov 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant