Code Monkey home page Code Monkey logo

cassette's People

Contributors

dependabot[bot] avatar gammazero avatar masih avatar web-flow avatar web3-bot avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cassette's Issues

Panic receiver hook calls closed channel

Caused by receiver hook registry after configuring receiver to use buffered channel mailbox:

Investigate the following panic:

panic: send on closed channel
goroutine 179 [running]:
github.com/ipni/cassette.(*Cassette).Find.func1.1({0xc002475380, 0x26})
/go/src/cassette/cassette.go:97 +0x236
github.com/ipni/cassette.newReceiver.func1()
/go/src/cassette/receiver.go:69 +0x4c7
created by github.com/ipni/cassette.newReceiver
/go/src/cassette/receiver.go:44

Define deprecation criteria

At what point do we not need this anymore?

we should have an overall metric for the amount of lookups where cassette is able to contribute new information, and set a threshold at which it's not needed.

@TorfinnOlsen maybe is best to identify this, but I'd start with something like 0.5% of overall request impact, confirm with rhea / other stakeholders.

Add batching to broadcast mechanism

Originally posted by @willscott:

I suspect one thing we may want is batching:
we collect the stream of inbound mh queries, and send out wantHave's to peers every 100 or every 100ms or some other batching period, rather than writing a new message for each request

Add metrics to determine content discovery health

Add metrics that aid judge the health of content discovery mechanism offered by Cassette, namely:

  • Bitswap message send errors
  • Provider count found per request
  • Batch sizes being sent
  • In-flight requests

Also, expose pprof metrics to check goroutine count.

periodic reconnect

while reciprocal peering is better then non-reciprocal we still need (maybe you even have already) logic for reattempting connections to peering peers (I can link you to what is done in kubo, but it's nothing super special) since network hiccups or other issues could cause disconnections as well.

the kubo logic lives in https://github.com/ipfs/kubo/tree/master/peering

Add strategy to remove broadcast recipients

When peered nodes churn and/or a node is too unstable during broadcast it should eventually be excluded from the broadcast list.

Broadcast recipients that are offline for longer than some threshold should be removed entirely from the broadcast list.

Add functionality for peer discovery across instances

When cassette is deployed as a fleet of replicas, add functionality for them to gossip about the participants they discover and learn from each other, so that when lookups are load-balanced all replicas are performant.

Long cache timeout

It would be good to add a long cache for found records here - should reduce the need for repeat calls and provide some resilience against flakiness

Observability of contributing providers

we should have some way to see the peers ranked by how many lookups they're contributing through cassette

This way we can have a triaged list of who to track down and convince to announce to DHT / IPNI

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.