-
Notifications
You must be signed in to change notification settings - Fork 0
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
Improved Performance in go-libp2p-kad-dht: New Feature Reduces PUT/Provide Latencies to <1s #1
Comments
very good |
Hi @dennis-tra, We have noticed that dht has affected our performance, We have been trying to use the index provider recently |
Hi @cachalots, great that you want to try this new Optimistic Provide approach! Let me know how that goes and what your experiences are. If you have the time, I'd love to know more information about how the DHT has affected your performance and why the indexers don't integrate well with Kubo |
Hi @dennis-tra,
|
cid.contact has supported $ curl -s https://cid.contact/routing/v1/providers/bafkreid2afmtbcfjioljdxwxd5zccg3d5dpr76zaksqfhuyff5oebw4osi | jq
{
"Providers": [
{
"Protocol": "transport-bitswap",
"Schema": "bitswap",
"ID": "QmQzqxhK82kAmKvARFZSkUVS6fo9sySaiogAnx5EnZ6ZmC",
"Addrs": [
"/dns4/elastic.dag.house/tcp/443/wss"
],
"Metadata": "gBI="
},
{
"Protocol": "unknown",
"Schema": "unknown",
"ID": "QmUA9D3H7HeCYsirB3KmPSvZh3dNXMZas6Lwgr4fv1HTTp",
"Addrs": [
"/dns4/dag.w3s.link/tcp/443/https"
]
}
]
} The above covers lookup through cid.contact. As for providing records to it, have you tried this? |
@masih Of course, I modified the code of Kubo and passed my httpRouter to ProvideRouter for testing. From the index provider log, it can be seen that the index provider received my provide request and published it a few minutes later. From my understanding of index provider, it is to publish records to other nodes through a scheduled task to the |
Folks are happy to help debug this. Ping us at #ipni on FileCoin Slack. |
Thanks, when we refocus on this part, I will go to Slack for help. |
@masih Hello, I don't have a email related to Filecoin Slack. Can you send me an invitation? |
Have you tried https://filecoin.io/slack ? |
Hi 4everland Devs,
This is Dennis from Protocol Labs. I wanted to inform you about an exciting update regarding the
go-libp2p-kad-dht
implementation, which I believe you are currently using. As part of our continuous efforts to enhance performance, we have introduced a new experimental feature that significantly improves the PUT/Provide latencies.Previously, the DHT's PUT performance was known to be rather sluggish, often taking more than 10 seconds or even minutes. However, with the latest release of
go-libp2p-kad-dht
>v0.23.0, we have introduced a feature called "Optimistic Provide." This feature has demonstrated great results, bringing the latencies down to less than 1 second in the 50th percentile and less than 1.4 seconds in the 90th percentile.While I'm unaware of the specific requirements of your use case or whether the previous latencies posed any challenges for you, I wanted to ensure that you are aware of this improvement.
If you have any questions or would like more information about this new feature, please don't hesitate to reach out.
Cheers,
Dennis
The text was updated successfully, but these errors were encountered: