GithubHelp home page GithubHelp logo

Comments (12)

Kilo59 avatar Kilo59 commented on June 14, 2024 2

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.

carlshan avatar carlshan commented on June 14, 2024

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.

web-sys1 avatar web-sys1 commented on June 14, 2024

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.

carlshan avatar carlshan commented on June 14, 2024

Thanks @Kilo59.

from coronavirus-tracker-api.

Kilo59 avatar Kilo59 commented on June 14, 2024

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.

marianopeck avatar marianopeck commented on June 14, 2024

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.

Kilo59 avatar Kilo59 commented on June 14, 2024

@marianopeck what routes are you hitting?

from coronavirus-tracker-api.

marianopeck avatar marianopeck commented on June 14, 2024

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:

  1. 500 Internal Server Error response
  2. 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.

Kilo59 avatar Kilo59 commented on June 14, 2024

@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.

marianopeck avatar marianopeck commented on June 14, 2024

@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.

Kilo59 avatar Kilo59 commented on June 14, 2024

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.

marianopeck avatar marianopeck commented on June 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.