Comments (12)
Sorry guys.
I made some experimental changes to the US version of the site awhile ago to try to reduce memory usage but it seems to have had the opposite effect and so it is now much more unstable than the EU version and goes down several times a day.
This all despite the fact that it gets a lot less traffic 😬.
Thanks for the details, I'll either fix it or revert the changes within the week.
from coronavirus-tracker-api.
Update: literally 15 minutes after I posted the bug above, the API came back up. I'm leaving the Issue open for now so that it flags this issue for a maintainer to see, and perhaps inform prioritization against whether to do anything to prevent future downtime.
from coronavirus-tracker-api.
Duplicate issue [BUG] Unable to access the site. Error 503 (Service Unavailable) (note that the #332 issue was originally opened in Octomber after #331 in September last year).
from coronavirus-tracker-api.
Thanks @Kilo59.
from coronavirus-tracker-api.
I've reverted the US mirror to use the same code as the EU one.
LMK if it seems to behave better or worse over the next few days.
I still need to find a memory profiler that works with FastAPI/Starlette, and then I can fix or rate-limit the problematic endpoints.
from coronavirus-tracker-api.
Could someone please tell me the existing mirrors so that I can try which one seems more stable? Because neither https://covid-tracker-us.herokuapp.com or https://coronavirus-tracker-api.herokuapp.com seem stable to me. I am getting 50x errors on both
from coronavirus-tracker-api.
@marianopeck what routes are you hitting?
from coronavirus-tracker-api.
Hi @Kilo59 I hitting once https://coronavirus-tracker-api.herokuapp.com/v2/locations?source=jhu&timelines=false and then, once per location, I hit 'https://coronavirus-tracker-api.herokuapp.com/v2/locations/{1}?source=jhu&timelines=false' .
My problem is always with the latter. And there are 2 situations I get:
- 500 Internal Server Error response
- 200 OK but with empty contents!
With the US version (same URLs as above but US flavor) I was getting an "Application Error" HTML response
Any idea?
from coronavirus-tracker-api.
@marianopeck I would bet the first request is actually the one that causes the memory issue on the tiny heruko instances.
And your subsequent requests are hitting just as the application is trying to recover.
But that's just a guess before I've had a chance to do some memory profiling.
from coronavirus-tracker-api.
@Kilo59 thanks for the insights. Do you know if there are other bigger heroku instances without this issue? I am asking because my usage of this is for a online demo/presentation and I fear it would fail during it...
If I can be of any help with this let me know..all I can offer is to run my script and keep you posted.
from coronavirus-tracker-api.
There was someone awhile ago that was ruining it on some more robust infrastructure awhile ago (I think maybe Digital Ocean).
I can't look it up easily from my phone.
If you are concerned about a failure during a demo I would recommend you run it locally. Either directly or using Docker.
from coronavirus-tracker-api.
Thanks @Kilo59 for the ideas. Yeah, I thought about running locally with Docker. I will see how far can I get with that one.
Also, if by any chance, whenever you are back with the computer, you find that other digital ocean server, please let me know!
from coronavirus-tracker-api.
Related Issues (20)
- [UPDATE ISSUE] HOT 1
- [BUG] API goes down many times a day HOT 2
- Access to application HOT 5
- [BUG]nyt source does not seem to work. HOT 3
- Handle Timeout errors better HOT 1
- Application Error HOT 5
- [BUG] HOT 4
- [DOWN] API down HOT 2
- [BUG] "/v2/sources" API endpoint returns 503 http status code HOT 3
- [BUG] Unable to access the site. Error 503 (Service Unavailable) HOT 3
- https://coronavirus-tracker-api.herokuapp.com is down with Internal Server Error HOT 1
- Help needed for V3? HOT 1
- Unable to run the program from a Windows machine HOT 8
- Errors: 503: Service Unavailable, 404 Not Found HOT 4
- Coronavirus data missing for Finland HOT 1
- [BUG]Death data missing from countries id266 onwards as from 23/08/22 HOT 12
- Application error
- Access to coronavirus-tracer-api not available[BUG]
- [BUG] The API is down
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coronavirus-tracker-api.