Skip to content

Excessive ChannelUpdateReceived messages #864

@n1bor

Description

@n1bor

This is more of a general scaling issue that a specific Eclair one.

I have metrics on and I get about 1 channel update per second. There are 25k channels and each has 2 sides to this is about 2-4 updates per channel per day. This seems reasonable number.

However the router gets many of these from every peer we are connected to! So since I have about 150 peers this means that we receive about 100 times every update. So getting over 100 updates a second.

The current algorithm of just batching into 1 min chucks does not seem to be smart enough to scale - especially as this is an O(2) issue in that if the network doubles in size you will end up with 2x more peers each sending you 2x more data so 4x more...

Just a place for people to make any comments..

19:37:57.133 INFO   fr.acinq.eclair.metrics - type=METER, name=eventstream.ChannelUpdateReceived, count=157676, mean_rate=1.0015846067128484, m1=0.875834680682182, m5=2.463041605474114, m15=2.607360069071711, rate_unit=events/second
...
19:37:57.135 INFO   fr.acinq.eclair.metrics - type=METER, name=router.updates.in, count=18514908, mean_rate=117.60911848352433, m1=28.57854678346341, m5=103.17746415287304, m15=219.90509295098488, rate_unit=events/second
...
19:37:57.135 INFO   fr.acinq.eclair.metrics - type=GAUGE, name=stats.localchannels, value=261

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions