friendica / friendica-directory

Global directory for the Friendica project. The repository has moved to git.friendi.ca/friendica/friendica-directory
GNU Affero General Public License v3.0
19 stars 11 forks source link

Add /servers/surprise endpoint #15

Closed MrPetovan closed 5 years ago

MrPetovan commented 5 years ago

This path redirect to a random server registration page.

Current criterion:

annando commented 5 years ago

Possibly there should also be some load balancing so that top one is never chosen?

MrPetovan commented 5 years ago

The rules are pretty complicated as it is, but we can exclude the first server from the ten relevant servers before the actual random part happens.

MrPetovan commented 5 years ago

I ended up choosing a server at random among the highest scoring servers with open registration and above 75 health. I forgot about this issue so I didn't incorporate the SSL bit nor the number of known users.

MrPetovan commented 5 years ago

Implemented in https://github.com/friendica/friendica-directory/commit/d0102327c08d36107f8047062c89963f12088910

MrPetovan commented 5 years ago

Closed by https://github.com/friendica/friendica-directory/commit/1bbe4d328995bffe3c005277c9cc3256e4bdb944