Git Product home page Git Product logo

Comments (12)

fooock avatar fooock commented on May 30, 2024 3

@victorb I created a similar tool that makes this, measure gateway latency, status code, etc, you can check it out here https://gateway.ipfs.io/ipfs/QmXHzertynCrRi9A99JH1fbxLATtGCaU4L3gkLo6ov9JEW

from public-gateway-checker.

koalalorenzo avatar koalalorenzo commented on May 30, 2024 1

No it is not correct since :5001 is exposing API. By definition in the settings a writable gateway basically allows POST methods. You should be able to check just that, right?

from public-gateway-checker.

victorb avatar victorb commented on May 30, 2024

Would be a nice attribute to add! So if a gateway is actually online, try writing some content as well to see if it's writable and report back status. Would love to see a PR for adding this :)

from public-gateway-checker.

koalalorenzo avatar koalalorenzo commented on May 30, 2024

@fooock that is amazing. It is weird that it is not considering siderus.io as writable. How do you perform the check?

from public-gateway-checker.

fooock avatar fooock commented on May 30, 2024

@koalalorenzo I make a post request to the gateway domain plus :5001/api/v0/add. For example, in siderus.io, the final post request will be https://siderus.io:5001/api/v0/add, if this request return success, then the node is writable, otherwise isn't. Do you see it correct?

from public-gateway-checker.

fooock avatar fooock commented on May 30, 2024

@koalalorenzo it is fixed now, can you check it and write some feedback in the referenced issue if needed?

from public-gateway-checker.

andrasfuchs avatar andrasfuchs commented on May 30, 2024

@fooock Looks pretty good!

I've found that based on my VPN current exit point I have significantly different latency values. Could you guys perhaps add separate latency columns for US, Europe and Asia for example? Or a dropdown at the top of the page to select the testing location?

I often timeout with the default ipfs.io gateway and it would be great to know what gateways are working fast from where I'm trying to access IPFS from.

Edit:
Latency depending on the exit point while using ipfs.io to open an IPFS vs IPNS link:
US Florida: 511 ms vs 1.02 mins
Switzerland: 368 ms vs 1.01 mins
Japan: 775 ms vs 1.02 mins

So my presumption was wrong, because it was not the VPN's exit point, but the IPNS lookup that timed out my queries. Sorry about that!

from public-gateway-checker.

jamiew avatar jamiew commented on May 30, 2024

@andrasfuchs yeah IPNS is crazy slow

FWIW the gateway checker here: https://ipfs.github.io/public-gateway-checker/ -- runs the checks on your local computer. So those latencies are from your current location and setup (e.g. w/ VPN vs without)

from public-gateway-checker.

andrasfuchs avatar andrasfuchs commented on May 30, 2024

@jamiew Thanks, I didn't know that!

from public-gateway-checker.

jamiew avatar jamiew commented on May 30, 2024

This would be a nice add inside this repository too -- wonder if we could bundle requests more intelligently, so we're not just making 3 requests per server? That's not end of the world

from public-gateway-checker.

jessicaschilling avatar jessicaschilling commented on May 30, 2024

Following up on some stale issues -- @fooock, are you interested in adding your writeable status feature into this repo's codebase?

from public-gateway-checker.

SgtPooki avatar SgtPooki commented on May 30, 2024

Looks like the code for fooock's implementation is in Java: https://github.com/fooock/ipfs-gateway-checker/search?q=writable

we should implement this feature but in js

from public-gateway-checker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.