firstbatchxyz / dkn-compute-node

Compute Node of Dria Knowledge Network.
Apache License 2.0
76 stars 33 forks source link

bug: low peer count within Docker vs. normal run #99

Closed erhant closed 1 month ago

erhant commented 2 months ago

The Docker networking somehow causes peer discovery to be affected, although messaging works fine the peer count is very low.

erhant commented 2 months ago

time to add metrics maybe?

https://github.com/libp2p/rust-libp2p/tree/master/examples/metrics

erhant commented 2 months ago

When network_mode: "host" is not used, the peer count is really good within Docker e.g. 17 peers with 15mins using host network, and 96 peers in a minute without it

erhant commented 2 months ago

https://huzaima.io/blog/connect-localhost-docker

erhant commented 2 months ago

tried all methods on ubuntu, cant get it to work for the local Ollama service (not Docker)

right now the easiest solution I can think of is to take an env variable that decides network mode, which is host on linux and bridge on others

erhant commented 1 month ago

No longer an issue with v0.2 as we use cross-platform builds instead of Docker