-
-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API is down #264
Comments
This works flawlessly https://github.com/ExpDev07/coronavirus-tracker-api#running--development And seriously, this API service has been reaching it's capacity, so using your localhost endpoint for unit testing is more than just nice towards the others. |
I was testing out my API wrapper and since that it uses the API using it for tests is inevitable |
yes, it's down... but why so? |
down for me as well during my webinar XD |
Anyone has any idea is this going to solved ? Since i had a demo to my manager on this scheduled this Friday |
I think the problem is the app on Dyno (instances heroku). I runned without problems locally. |
https://www.heroku.com/pricing Unfortunately scaling up on Heroku isn't cheap but here are some of the options that can be considered. I think the best option for now is running it locally |
Maybe crowdfunding? |
I have another version of it hosted in the US that doesn't get nearly as much traffic. |
Could some sort of load-balancing scheme be implemented that directs traffic to multiple free instances? |
I'm still trying to get a node working on a Ubuntu server 'cause then I can spin up some droplets and put a load balancer in front. |
What do you mean run locally, can you please help on this. currently i am just using the heroko api and getting the response in json format which i am doing in Rest message in javascript |
@azeezgaa actually it's pretty simple, just follow the instruction that mentioned in Readme file.
Checkout installation section: https://github.com/ExpDev07/coronavirus-tracker-api#installation |
But this will work onlly in my pc not in other pc's right and it wont work on mobile devices am i right |
@azeezgaa Yes, your right, but for development & testing purposes, running locally is more reliable way. |
It didn't work quite so well for me the first time around when I tried with Debian 10 and Ubuntu 19.10, Ubuntu 18.04.3 did though. Should have looked at the files earlier, then I would have seen the docker-compose.yml xD Now making an Ansible playbook to deploy those. |
Many platforms supports COVID-19 projects with enterprise accounts for free during pandemic. Maybe this could push the project to get on landingpage. |
I've setup two small droplets running the API behind a load balancer, feel free to use them as long as they can handle the load: https://cvtapi.nl |
The API is back up. |
That is from my load balancer which is experiencing hardly any load. Ignore the range 12PM-6PM in first half as I was still doing some setup on the nodes. Makes me wonder if the API has memory leaks or a similar issue which could explain the outage. Can you check logs on heroku? Maybe the API crashed after a while of timing out (i.e. the average request duration growing too high). Just had a quick look at the logs of the Docker container on one node, not much to see there but something that might give a hint:
In the beginning I see those every now and then. and I see
in regular intervals, but after a while these happened twice per interval instead of once. And the warnings started changing, with gradually more warnings printed at the same time. By now the warnings look like this:
I'll keep an eye on this to see if the trend continues. |
@toxyl no I can't go back and look at the logs more that far back. I've also seen those log messages, but I don't know enough about that section to know if that's concerning. If it's not actually a problem I do think we should change the log level for that message because it does imply that there's a problem. In regards to a possible memory leak being the cause. Not saying that's not possible, but if you look at the screenshot at the time of the outage, you'll also notice that it recovers on its own, not because of a redeployment. I need to spend more time looking over the code, but the only clue I have is that we cache our source data results for an hour and the outage lasted for about an hour. Going to close this issue since the API has been back up for days at this point, but I will open another issue to continue this investigation. Edit:That purple dot on the graphs indicates a deployment. It didn't resolve the issue either, so IMO that means it probably wasn't the cache 🙄 . |
I don't know how you've set up the server. The way I would set it up it would restart the API when it crashes, which would happen after a while of timeouts, so it would appear unreachable for a while before coming back. If it was a memory leak the API would crash after all memory has been consumed which does not imply that it's reachable until then. But yeah, I might be way off with that, it's just a hunch. |
The API service was looking for a country code in the COUNTRY_NAME__COUNTRY_CODE dictionary using Among other reasons, the warnings appear, if the JHU CSEE misspells or abbreviates a country name or uses some non ISO standard country name in their csv files. In this situation a new alias must be added to the dictionary, programmatically correcting such a mistake. The case of |
That wasn't the point. The point being that they appear multiple times in one update, indicating that there is more than one update happening. |
@toxyl @Bost I believe the number of workers (if not set) is determined by the number of cores on the host machine. Let's continue this here #270 |
So I was doing some unit tests for my project when I saw that they failed and I checked out the API to see if everything is working but it seems that it's down
The text was updated successfully, but these errors were encountered: