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

Crawler mode speed #17

Open
Zibri opened this issue Jan 10, 2017 · 13 comments
Open

Crawler mode speed #17

Zibri opened this issue Jan 10, 2017 · 13 comments

Comments

@Zibri
Copy link

Zibri commented Jan 10, 2017

Even increasing the connection limits I notice that in crawler mode it gets only 60 peers/minute.
Is there a setting to increase the speed?
With another crawler I have I can get 100000/hour!

@shiyanhui
Copy link
Owner

Did you run it in local network? This crawler can't run behind NAT now.

@Zibri
Copy link
Author

Zibri commented Jan 11, 2017 via email

@shiyanhui
Copy link
Owner

shiyanhui commented Jan 11, 2017

Is it the sample that you are running?

  • There are two kind of peers message in dht protocol, get_peers and announce_peer. get_peers messages are far more than announce_peer. Only announce_peer is what we want. The example will only print successful BT seed. I don't know what p2pspider print.
  • We got announce_peer message, and then we fetch the BT seed. If it fails, the ip:port will be put in blacklist, and DHT crawler will not fetch it until sometime in the future.

@Zibri
Copy link
Author

Zibri commented Jan 12, 2017 via email

@shiyanhui
Copy link
Owner

OK, I'll figure it out.

@ilcn
Copy link

ilcn commented Feb 14, 2017

I have the same question as Zibri. Intrinsically golang should go faster than nodejs, and I am listening for annouce peer right now. But please let us know if what in the config we can tweek to make the spider mode go faster.
Thanks

@fanpei91
Copy link

fanpei91 commented Dec 13, 2017

I have rewritten p2pspider from node to golang recently. Same efficiency as before, but higher performance. @Zibri

@Zibri
Copy link
Author

Zibri commented Dec 13, 2017 via email

@fanpei91
Copy link

simdht for golang is here godht

I don't think so c is the way. You need to learn golang 1.9 runtime's performance.

@Zibri
Copy link
Author

Zibri commented Jan 5, 2018 via email

@Zibri
Copy link
Author

Zibri commented Jan 5, 2018 via email

@Zibri
Copy link
Author

Zibri commented Jan 5, 2018 via email

@Zibri
Copy link
Author

Zibri commented Jan 5, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants