Skip to content
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

Weird growth of KnowledgeCommunity size to 172 peers #8292

Closed
synctext opened this issue Nov 30, 2024 · 6 comments · Fixed by #8304
Closed

Weird growth of KnowledgeCommunity size to 172 peers #8292

synctext opened this issue Nov 30, 2024 · 6 comments · Fixed by #8304
Assignees
Milestone

Comments

@synctext
Copy link
Member

synctext commented Nov 30, 2024

Yesterday and today I was able to reproduce the following weirdness on latest V8.0 on Ubuntu 20.04 LTS. Use number of peers in 1 trouble community.
Screenshot from 2024-11-30 20-24-32
After a restart of Tribler you can see it slowly climbing (slow .GIF of 70 seconds):
Knowledge_community_growth__Nov2024
Very weird, good luck with this one!

@synctext synctext changed the title Weird growth of KnowledgeCommunity size to 133 peers Weird growth of KnowledgeCommunity size to 172 peers Nov 30, 2024
@synctext
Copy link
Member Author

synctext commented Dec 1, 2024

After a night of running Tribler the yield is 291 peers 😨 :
Screenshot from 2024-12-01 08-38-43

@qstokkink
Copy link
Contributor

The theoretical maximum number of peers that should appear in the KnowledgeCommunity under normal IPv8 operation is 216. So, 291 peers is definitely not normal.

So, either there is a bug in IPv8 or the KnowledgeCommunity is misbehaving.

@qstokkink qstokkink added this to the 8.1.0 milestone Dec 2, 2024
@qstokkink
Copy link
Contributor

First, I verified that IPv8's internal peer walking/dropping was correctly working. There were no errors.

Second, I checked that the KnowledgeCommunity was not receiving messages from unknown peers. I added a check to on_message() and on_request(). The former had no issues. However, the latter (on_request()) receives a lot of messages from unknown peers:

src/tribler/core/knowledge/community.py", line 107, in on_request
    assert peer in self.get_peers()
AssertionError

@qstokkink
Copy link
Contributor

Long story short: the KnowledgeCommunity is too aggressive in sending request-response messages. This keeps the connections to other peers open. To counter this, we'll need a more aggressive peer dropping mechanism.

@synctext
Copy link
Member Author

synctext commented Dec 4, 2024

Can we delete? Given the hopeful on-device GenAI progress.

@qstokkink
Copy link
Contributor

@synctext Probably best to wait until we have RSS feeds again. Otherwise we run the risk of going metadata-poor.

@qstokkink qstokkink modified the milestones: 8.1.0, 8.0.6 Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants