Skip to content
This repository was 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

Description

@adamdecaf

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions