Page 1 of 1

Stats API

Posted: Thu Mar 12, 2020 10:41 pm
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

Re: Stats API

Posted: Fri Mar 13, 2020 3:53 am
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.)

Re: Stats API

Posted: Fri Mar 13, 2020 4:41 am
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

Re: Stats API

Posted: Fri Mar 13, 2020 1:33 pm
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.

Re: Stats API

Posted: Fri Mar 13, 2020 4:46 pm
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:

Re: Stats API

Posted: Tue Mar 24, 2020 8:46 pm
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.