Health Score calculation #75

Open
opened 2021-06-02 16:09:34 +02:00 by Tealk · 12 comments
Tealk commented 2021-06-02 16:09:34 +02:00 (Migrated from github.com)

Hello all

I was wondering how the calculation of the Health Score is done and I found some things in the code, now the question is why I am missing e.g. 10 points.
There are apparently a few possibilities therefore my question: Would it be possible to make the whole thing more transparent so that you see why the points are missing and you can do something about it if necessary?

Hello all I was wondering how the calculation of the Health Score is done and I found some things in the code, now the question is why I am missing e.g. 10 points. There are apparently a few possibilities therefore my question: Would it be possible to make the whole thing more transparent so that you see why the points are missing and you can do something about it if necessary?
MrPetovan commented 2021-06-02 16:35:59 +02:00 (Migrated from github.com)

I explained in natural language how the scoring works in a Friendica forum post I'd be hard-pressed to find again, but the gist is that scoring is dependent of over time effects to limit score drops in case of rare temporary outages.

The scoring was almost entirely lifted from the previous version of the directory that I didn't write, and adding a detailed breakdown would be a significant undertaking I'm not planning on taking on anytime soon.

You should check your score in a week or so to see if it changed or not. Most important criterions are: HTTPS, Friendica code version, server availability, request time. The latter is unfortunately depending on the location of the directory in France, but you shouldn't be unfairly penalized for this in Germany.

I explained in natural language how the scoring works in a Friendica forum post I'd be hard-pressed to find again, but the gist is that scoring is dependent of over time effects to limit score drops in case of rare temporary outages. The scoring was almost entirely lifted from the previous version of the directory that I didn't write, and adding a detailed breakdown would be a significant undertaking I'm not planning on taking on anytime soon. You should check your score in a week or so to see if it changed or not. Most important criterions are: HTTPS, Friendica code version, server availability, request time. The latter is unfortunately depending on the location of the directory in France, but you shouldn't be unfairly penalized for this in Germany.
Tealk commented 2021-06-02 17:02:07 +02:00 (Migrated from github.com)

Thanks again for the explanation, yes I have already discovered a few points in the code but I do not think that everyone understands php hence my intention for the issue

Maybe you could just put this in as a kind of information page, it doesn't have to be programmed.

Thanks again for the explanation, yes I have already discovered a few points in the code but I do not think that everyone understands php hence my intention for the issue Maybe you could just put this in as a kind of information page, it doesn't have to be programmed.
MrPetovan commented 2021-06-02 17:07:30 +02:00 (Migrated from github.com)

Fair enough, thank you for the suggestion!

Fair enough, thank you for the suggestion!
Tealk commented 2021-06-02 17:08:58 +02:00 (Migrated from github.com)

then you don't have to find lost posts again ;)

then you don't have to find lost posts again ;)
MrPetovan commented 2021-06-02 18:19:42 +02:00 (Migrated from github.com)

Found it!

Here's the breakdown of the scoring:

  • Min health: -100.
  • Default max health: 100.
  • New server: 50.
  • Probe status: Success +10, Failure -30.
  • Request time score: <120ms +10, 120-250ms +5, 250-400ms 0, 400-800ms -5 (max health 60), >800ms -10 (max health 40).
  • SSL status: disabled -10, enabled +10.
  • Friendica version: stable 0, RC/dev max health 95, less than stable -10 above 0 health, 3 or less max health 30.

https://friendica.mrpetovan.com/display/735a2029-4660-7312-e23a-b8d188849800

Found it! > Here's the breakdown of the scoring: >- Min health: -100. >- Default max health: 100. >- New server: 50. >- Probe status: Success +10, Failure -30. >- Request time score: <120ms +10, 120-250ms +5, 250-400ms 0, 400-800ms -5 (max health 60), >800ms -10 (max health 40). >- SSL status: disabled -10, enabled +10. >- Friendica version: stable 0, RC/dev max health 95, less than stable -10 above 0 health, 3 or less max health 30. https://friendica.mrpetovan.com/display/735a2029-4660-7312-e23a-b8d188849800
Tealk commented 2021-06-02 18:26:48 +02:00 (Migrated from github.com)

New Server(50) + Probe(10) + time(10) + ssl(10) = 80
isn't that 20 points missing? so if i assume the best case

New Server(50) + Probe(10) + time(10) + ssl(10) = 80 isn't that 20 points missing? so if i assume the best case
MrPetovan commented 2021-06-02 18:28:48 +02:00 (Migrated from github.com)

True, but your node on its new location was found before by the directory, so it's possible you got 10 additional points from my manual poll earlier.

True, but your node on its new location was found before by the directory, so it's possible you got 10 additional points from my manual poll earlier.
Tealk commented 2021-06-02 18:31:33 +02:00 (Migrated from github.com)

then thank you for the 10 points ;)
I think that with repeated positive tests the score continues to rise?

then thank you for the 10 points ;) I think that with repeated positive tests the score continues to rise?
MrPetovan commented 2021-06-02 18:32:12 +02:00 (Migrated from github.com)

It will, until it reaches 100, the current maximum.

It will, until it reaches 100, the current maximum.
Tealk commented 2021-06-02 18:34:00 +02:00 (Migrated from github.com)

oh too bad i thought i would get over 9000 🤣

thank you for the explanation

oh too bad i thought i would get over 9000 🤣 thank you for the explanation

It would be nice to add info on mouse over for health scores below 100. Probably a lot of work and unsure if it is worth the effort, but from a users perspective it is helpful to learn why the score is not 100 for a specific instance.

It would be nice to add info on mouse over for health scores below 100. Probably a lot of work and unsure if it is worth the effort, but from a users perspective it is helpful to learn *why* the score is not 100 for a specific instance.
Owner

Some time ago, I had the idea of adding a server details page that could list the probing history and explicit what came into the health score but it’s a sizable endeavor, not least because we don’t currently save why the score changes on any given probe.

Some time ago, I had the idea of adding a server details page that could list the probing history and explicit what came into the health score but it’s a sizable endeavor, not least because we don’t currently save why the score changes on any given probe.
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
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#75
No description provided.