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

🐞 [Bug]: verify the behavior of Farmer-bot opening 6~8 connections per instance #1303

Open
sameh-farouk opened this issue Jan 8, 2025 · 0 comments
Milestone

Comments

@sameh-farouk
Copy link
Member

What happened?

I noticed this

https://github.com/threefoldtech/tfgrid-sdk-go/blob/76ac3fea5e67f47b95ab727d4412fc21fe103dc3/farmerbot/internal/farmerbot.go#L234C16-L242C3

Correct me if I'm wrong, but I understand this would result in three additional connections: one chain RPC connection and two (in most cases) to the Rmb-relays, which would not be used afterward.

I also checked with @hossnys and we found that our farmer-bot instance on the mainnet established these connections.

root@mainnet-farmerbot-freefarm:~# ss --processes | grep farmerbot
tcp   ESTAB  0      0      [2a10:b600:0:a:9865:7bff:fecd:9303]:58328                    [2a01:4f8:e0:1f52::2]:https   users:(("farmerbot",pid=145324,fd=9))                                                                                  
tcp   ESTAB  0      0      [2a10:b600:0:a:9865:7bff:fecd:9303]:33482                    [2a01:4f8:e0:1f52::2]:https   users:(("farmerbot",pid=145324,fd=12))                                                                                 
tcp   ESTAB  0      0      [2a10:b600:0:a:9865:7bff:fecd:9303]:33002                    [2a01:4f8:e0:1f52::2]:https   users:(("farmerbot",pid=145324,fd=13))                                                                                 
tcp   ESTAB  0      0      [2a10:b600:0:a:9865:7bff:fecd:9303]:33460                    [2a01:4f8:e0:1f52::2]:https   users:(("farmerbot",pid=145324,fd=7))                                                                                  
tcp   ESTAB  0      0      [2a10:b600:0:a:9865:7bff:fecd:9303]:46008                    [2a01:4f8:212:fa6::2]:https   users:(("farmerbot",pid=145324,fd=11))                                                                                 
tcp   ESTAB  0      0      [2a10:b600:0:a:9865:7bff:fecd:9303]:33492                    [2a01:4f8:e0:1f52::2]:https   users:(("farmerbot",pid=145324,fd=14))                                                                                 
tcp   ESTAB  0      0      [2a10:b600:0:a:9865:7bff:fecd:9303]:33470                    [2a01:4f8:e0:1f52::2]:https   users:(("farmerbot",pid=145324,fd=10))                                                                                 
tcp   ESTAB  0      0      [2a10:b600:0:a:9865:7bff:fecd:9303]:48746                   [2a01:4f8:221:1e0b::2]:https   users:(("farmerbot",pid=145324,fd=8))

6 are to 2a01:4f8:e0:1f52::2 which is one of our grid stacks
and 2 to 2a01:4f8:221:1e0b::2 which we are not sure relates to which service

Is the number of connections expected? If not, what is the anticipated number?

which network/s did you face the problem on?

Main

Twin ID/s

No response

Version

No response

Node ID/s

No response

Farm ID/s

No response

Contract ID/s

No response

Relevant log output

NA
@sameh-farouk sameh-farouk added the type_bug Something isn't working label Jan 8, 2025
@rawdaGastan rawdaGastan added this to the v0.17.x milestone Jan 9, 2025
@rawdaGastan rawdaGastan removed the type_bug Something isn't working label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants