I switched a naive p2p implementation with libp2p in a distributed service I’m building. A few hours after the deployment I’m running out of burst credits for my attached AWS volumes. It seems that something uses a lot of IO, I haven’t had the problem before.
To be more specific: The reads are quite high, the writes look normal.
There are 5 nodes, that are connected to each other.
Which parts of libp2p could affect IO performance? Are there any alternatives?
My node config looks like this
const cfg: any = {
peerId,
addresses: {
listen: [`/ip4/0.0.0.0/tcp/${port || 0}`],
},
modules: {
transport: [TCP],
streamMuxer: [Mplex],
connEncryption: [NOISE, SECIO],
dht: KadDHT,
pubsub: Gossipsub,
peerDiscovery: [Bootstrap],
},
config: {
dht: {
enabled: true,
randomWalk: {
enabled: true,
interval: 60e3,
timeout: 10e3,
},
},
peerDiscovery: {
bootstrap: {
interval: 15e3,
enabled: true,
list: [...],
},
},
}
};