Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monitor Network Latency #1286

Open
haricnugraha opened this issue May 7, 2024 · 2 comments
Open

Monitor Network Latency #1286

haricnugraha opened this issue May 7, 2024 · 2 comments
Labels
RFC Request for Comments

Comments

@haricnugraha
Copy link
Contributor

Summary

Monika monitors the target server by sending requests. When Monika sends many requests and encounters network congestion, users may find it challenging to differentiate if the problem lies with the target server or Monika's network.

Proposal

To determine if Monika is experiencing network issues, it will periodically send pings (every 5 seconds) to public servers such as 1.1.1.1 (Cloudflare) or 8.8.8.8 (Google) in standalone mode, and to the Symon server in Symon mode. After each ping, Monika will print the response time in standalone mode and store and send the response time to Symon in Symon mode.

The benefit of sending pings to the Symon server is that if the Symon server experiences issues, all Monika instances will have poor ping results. It helps to monitor the Symon server. However, this approach may burden the Symon server.

In cases where the ping exceeds a certain threshold (e.g., > 250ms), Monika will stop probing until the ping stabilizes.

Definition of Success

User will be able to access information on Monika's current and historical latency.

@haricnugraha haricnugraha added the RFC Request for Comments label May 7, 2024
@syamsudotdev
Copy link
Contributor

Another thing to consider is if Monika is running behind proxy or in VPN which may block ICMP for ping requests.

@sapiderman
Copy link
Contributor

sapiderman commented Oct 18, 2024

Support this! Another condition is that probably need more than one server to ping off from as traffic and congestion may differ. Also how did we come up with 5 seconds? Is it too fast? Not fast enough? Can that depend on some conditions, if so which.

Also might be beneficial to compare the ping from Monika to some public server vs Monika to Symon server. If the Symon server latency is too high, maybe stop reporting to Symon first to prevent it from adding more load to poor Symon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC Request for Comments
Projects
None yet
Development

No branches or pull requests

3 participants