-
-
Heartbeat of this class
-
-
Set a servers failed status to true & set a longer delay before we check for new logs again.
Parameters:
| Name |
Type |
Description |
server |
Object
|
|
-
-
When a request to a server fails, we call this function
After consecutive failed requests, we slow down how often we retry
Parameters:
| Name |
Type |
Description |
server |
Object
|
|
-
-
Get the failed status for a server
Parameters:
| Name |
Type |
Description |
server |
Object
|
|
-
-
Get the log line # of the server
We use this to get the latest lines so we don't start with logs from server boot
Parameters:
| Name |
Type |
Description |
server |
Object
|
|
-
-
Gets the newest log lines for a server
Parameters:
| Name |
Type |
Description |
server |
Object
|
|
-
-
Server is reachable again, set counter & status to 0
Parameters:
| Name |
Type |
Description |
server |
Object
|
|
-
-
After getting new log lines for a server, we set a value in redis with an expire
Use this to check if the timeout to get new logs has passed
Parameters:
| Name |
Type |
Description |
server |
Object
|
|
duration |
Number
|
How many miliseconds between every request. |