Comments (9)
This happens when you request too many packets
from a slow target. We use -w 3
flag which sets the "global" command timeout to 3 seconds. In that case, ping
will exit with a non-zero code, and probe:measurement:result
message will not be emitted.
from globalping.
Ok, then I guess we need to scale the global timeout based on packets? Maybe make it equal to packet count?
If we have 15 max packets then that means 15 max seconds.
Or set a static higher limit?
What do you think?
from globalping.
Timeout equal to packets count will make it impossible to ping the high-latency targets even with a smaller amount of packets. In your example, ping with 1 packet will have a 1-second global timeout.
So, I vote for a static but higher timeout. 10-15 seconds?
But we still must think about handling command errors because a higher timeout will only mask the real issue.
from globalping.
Yes, errors are important to be handled correctly, we have a separate issue about that.
Then lets set 15 seconds as new limit to fix this issue
from globalping.
Timeout equal to packets count will make it impossible to ping the high-latency targets even with a smaller amount of packets. In your example, ping with 1 packet will have a 1-second global timeout.
we can always use Math.max() and pick higher value
from globalping.
But max of what values?
from globalping.
Match.max(3, packets).
It just picks the greater value.
3
- the old timeout
packets
- timeout based on packets count, that you proposed
or make it 15s, just for good measure.
from globalping.
Yeah Max wont help with slow servers, it would have to be some a lot more complex algorithm.
So I think the easiest fix is static 15s for now and then monitor and see if it needs something better than that
from globalping.
increased timeout to 15s.
from globalping.
Related Issues (20)
- Setting limit to higher than available probes return data from other regions HOT 8
- Create a lua script to handle measurement result
- Lua in places with multiple parallel redis operations: HOT 2
- Custom resolver not included in error responses HOT 4
- HTTP size handling HOT 3
- Improve HTTP response handling HOT 3
- Add fields to measurement responses
- Missing validation for port params
- Incorrect private IP detection HOT 1
- HTTP2 rawHeaders should not contain pseudo headers HOT 2
- Add truncated: true|false for HTTP tests
- ChatGPT plugin
- Support north instead of just northern HOT 7
- Support non-stop tests
- Update IP limits logic HOT 1
- netbox addon
- Some probes are being selected too often HOT 1
- IP limit log abuse HOT 1
- Update throttling of fetchSockets function HOT 4
- nock package should throw if not mocked HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from globalping.