Add /servers/surprise endpoint #15

Closed
opened 2018-11-20 07:33:47 +01:00 by MrPetovan · 5 comments
MrPetovan commented 2018-11-20 07:33:47 +01:00 (Migrated from github.com)

This path redirect to a random server registration page.

Current criterion:

  • More than 5 known users in the directory
  • Health score greater than 20
  • REGISTER_OPEN
  • SSL enabled
  • Among the top 10 according to this sorting criterion: ((KnownUsers / 100) + 10) * HealthScore
This path redirect to a random server registration page. Current criterion: - More than 5 known users in the directory - Health score greater than 20 - REGISTER_OPEN - SSL enabled - Among the top 10 according to this sorting criterion: `((KnownUsers / 100) + 10) * HealthScore`
annando commented 2018-11-20 10:04:57 +01:00 (Migrated from github.com)

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

Possibly there should also be some load balancing so that top one is never chosen?
MrPetovan commented 2018-11-20 14:17:40 +01:00 (Migrated from github.com)

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.

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 2019-02-03 15:33:27 +01:00 (Migrated from github.com)

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.

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 2019-02-03 15:33:54 +01:00 (Migrated from github.com)

Implemented in d0102327c0

Implemented in https://github.com/friendica/friendica-directory/commit/d0102327c08d36107f8047062c89963f12088910
MrPetovan commented 2019-02-03 15:37:33 +01:00 (Migrated from github.com)

Closed by 1bbe4d3289

Closed by https://github.com/friendica/friendica-directory/commit/1bbe4d328995bffe3c005277c9cc3256e4bdb944
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: friendica/friendica-directory#15
No description provided.