Stats API

If you're new to FAH and need help getting started or you have very basic questions, start here.

Moderators: Site Moderators, FAHC Science Team

Post Reply
aaronbrighton
Posts: 20
Joined: Thu Mar 12, 2020 10:35 pm

Stats API

Post by aaronbrighton »

Greetings,

I've noticed the past few days (since I started assisting this project with Folding), that the stats API is extremely unreliable.

[*]Seems to take quite a while to load most of the time
[*]Good portion of the time fails altogether with 504 Gateway Time-out.
[*]Stats don't seem to be updated, or at least, I haven't been able to find the results for my team or donor name on the stats API (been running for nearly 24 hours and completed many WUs).
[*]Tried generating a passkey here, however email never came through not even to Spam folder (where the forum emails end up): https://apps.foldingathome.org/getpasskey

I know almost nothing about the science behind folding or the loads being thrown to the GPUs. However, I do have quite a bit of experience with web applications, cloud technologies, CDN's/cacheing, and email.

[*]Might we worth generating a cached copy of the stats API hourly and using a CDN to serve it up.
[*]With regards to email deliver-ability, might be worth relaying the email through more reliable email services and using DMARC/DKIM/SPF to try to improve inbox deliverability?

I'm assuming the above processes aren't already in place -- based on observed behavior of the API and the emails I've received. But if they are in-place and other issues are the cause or unknown at this time, I wouldn't mind helping out to improve systems for new comers :)

Aaron
bruce
Posts: 20824
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: Stats API

Post by bruce »

In attempting to open other FAH apps, I was getting 502 Bad Gateway mose of this afternoon. Development rewrote some code on the gateway apparently curing my problem. Try it again and see if your problem was gixed. (I don't know if our Gateway problems share common hardware/software.)
aaronbrighton
Posts: 20
Joined: Thu Mar 12, 2020 10:35 pm

Re: Stats API

Post by aaronbrighton »

Seems to be responding now :)!

Still takes a long while to return the results, I'm sure some caching could help with that in case any one from the back-end team lurks around here to notice. Also having issues with connectivity to one of the WorkServers: viewtopic.php?f=61&t=32324
JimTheoHome
Posts: 5
Joined: Fri Mar 13, 2020 1:29 pm

Re: Stats API

Post by JimTheoHome »

If anyone needs to know, "bad Gateway" seems to an issue only on my Win10 machine when trying to access the team stats , but working properly on my Mac 10.6 box.
MacGyver
Posts: 24
Joined: Sat Jan 04, 2020 10:50 am

Re: Stats API

Post by MacGyver »

JimTheoHome wrote:If anyone needs to know, "bad Gateway" seems to an issue only on my Win10 machine when trying to access the team stats , but working properly on my Mac 10.6 box.
I get bad gateway all the time, on Windows 8.1, Windows 10 and my iPhone with iOS (obviously). Seems to be server-based. Just tried it 5 seconds ago, still there :wink:
bruce
Posts: 20824
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: Stats API

Post by bruce »

"Bad Gateway" indicates resources are overloaded.

Too many people trying to do database searches at the same time.

Same answer with other FAH resource limitations.
Post Reply