question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Retries not effective for Upside Down Push monitor

See original GitHub issue

⚠️ Please verify that this bug has NOT been raised before.

  • I checked and didn’t find similar issue

🛡️ Security Policy

Description

Hi, it looks like there might be a bug regarding upside-down push monitors and the retry functionality. As soon as the monitor receives the push signal, it switches from UP to DOWN immediately. Instead, I would expect it to go into ‘yellow state’, according to the retry settings, the same way that it does for an upside-down ping monitor.

👟 Reproduction steps

I have the following monitor setup:

  • Push, Upside down
  • Interval 600s
  • Retries 144
  • Retry Interval 600s
  • Use case: monitor a server that’s supposed to be sleeping, and notify if it’s up for a long time (144*600s=1 day). Push type instead of ping, because the server wakes up on unicast!

As soon as the heartbeat is sent, the monitor switches to down state.

As a test, a similar ping monitor:

  • Ping, Upside down
  • Interval 30s
  • Retries 4
  • Retry Interval 30s
  • Non-responding IP

The ping monitor is UP, because the fake IP does not respond. When I switch it to a valid IP, it goes down after 4 ‘yellow’ windows, and only then reports that it’s down.

👀 Expected behavior

Only go into down state when the push signal is received for retry_count consequtive windows, similar to the upside-down ping monitor

😓 Actual Behavior

Retry count does not seem to have any effect

🐻 Uptime-Kuma Version

1.17.1

💻 Operating System and Arch

Arch Linux

🌐 Browser

Firefox 101.0.1

🐋 Docker Version

No response

🟩 NodeJS Version

No response

📝 Relevant log output

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ShadowGaming100commented, Jul 13, 2022

But it does not work as intended, correct?

Correct

0reactions
ShadowGaming100commented, Jul 14, 2022

Looks like http operates same as ping

I have tried http and there is no problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

Timeouts, retries and backoff with jitter - AWS
If errors are caused by load, retries can be ineffective if all clients retry at the same time. To avoid this problem, we...
Read more >
Spring Boot Retry Not Working As Expected when using with ...
Actual : The retry is not happening . org.springframework.kafka.KafkaException: Seek to current after exception; nested exception is org.
Read more >
Configure monitor parameters to determine the service health
For example, if you set Retries to 3, alertRetries to 12, and the time interval to 5 seconds, the service is marked DOWN...
Read more >
How do I write a retry logic in script to keep retrying to run it ...
Works in most shells, but not BusyBox sh : for i in {1..5}; do command && break ... If the command is successful,...
Read more >
HTTP Tests - Datadog Docs
Simulate HTTP requests to monitor public and internal API endpoints. ... If a test does not contain an assertion on the response body,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found