golemfactory / clay

Golem is creating a global market for computing power.
https://golem.network
GNU General Public License v3.0
2.91k stars 284 forks source link

Configure round-robin DNS entry for seed nodes #2170

Closed ktomala closed 6 years ago

ktomala commented 6 years ago

Currently seed nodes IP addresses are hard-coded in Golem. This is quite limiting in terms of scalability, node discovery and servers management including future scaling.

I'd like to propose to create seeds.golem.network DNS entry with round-robin A records that will return all current seed node addresses. What this will achieve is:

This can be implemented with two phases:

  1. Create a RR DNS entry and add another SEEDS entry for seeds.golem.network in golem/network/p2p/p2pservice.py
  2. If everything works correctly, we could possibly get rid of IP addresses from SEEDS entry altogether and leave only seeds.golem.network entry.

Further improvements in the future:

m-cameron commented 6 years ago

I support the further improvement. Golem can use the free IP2Location LITE to geolocate the client location and server location to decide the nearest connections.

ktomala commented 6 years ago

seeds.golem.network was implemented in RR fashion for mainnet seed nodes some time ago. This task can be considered completed.