-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
get the public endpoint running again (use BVG endpoint for now) #29
Comments
Yeah the V2 departures endpoint has been down since sometime yesterday. Looks like an upstream connection is gone? Not clear whether it's this project or the actual underlying API that has the problem. Anything we can do to help? |
I can run this server locally and the departures endpoint seems fine, so that makes me think the problem is not upstream. Maybe just needs restarting?
|
The upstream endpoint has often been down for very brief periods of time in the past days.
I can confirm this. Seems like they have blocked the IP address of my server or something. Will look into it later. |
Any news on this? |
I requested a new IPv4 address for my VPS. Would like to avoid to moving the API over to another VPS. If someone wants to host the endpoint or a fallback, let me know! |
Still waiting for an IP address and currently don't have the time to migrate to a different VPS/VPS provider. Again: If anyone is interested in hosting it, let me know! A really small VPS with nginx and Node.js installed is sufficient. @juliuste are you interested? |
I can do it. |
Endpoint should be up again. |
Closing for now. We should find a long-term solution though for what I think is the cause: The VBB can block the IP address of the API server. |
Thanks for solving this. I'm happy to contribute some € to the running costs. Let me know if that's possible. |
@juliuste Do you have a PayPal/Patreon/OpenCollective/bank/crypto currency account? You can support me on my Patreon page or via SEPA if you want to skip the fees. Keep in mind though:
|
BTW @joecorcoran what are you building with the API? |
Thank you very much, but I'm alright, just support @derhuerst if you want to. 🙂 |
@derhuerst how much traffic would a VPS generate if I'd rent something to be a fallback? |
@rejas Not a lot. For a while I've hosted it on a 3€ Scaleway VPS. It should be around 50k-100k requests per day, but |
Not sure how one would do a fallback for this though without adding too much tooling. Maybe a load balancer that supports an |
I will also investigate if |
I'm building a departure board app, designed for leaving open on a screen. Taking it slowly as I've never used React before. :) |
Have deployed a fallback endpoint at |
Seems like the new endpoint has been blocked as well. @derhuerst we could use a load balancer + different now instances, for example… |
@joecorcoran @rejas @berlincount can you deploy |
|
Didn't get it to work using nginx, trying haproxy now. If someone knows any other simple and efficient load balancing solution, let me know. |
Seems like the vbb endpoint is working now. |
Can't reproduce. 😕 curl 'https://2.vbb.transport.rest/stations/900000013102/departures' |
Hm, it seems like half of the features of the API are working again. |
I just discovered dfb6c4a. Does this mean, we will have a new working endpoint for VBB data? Are the rate-problems with VBB solved? |
As mentioned above, I introduce breaking changes in I've recently released Long story short: |
With the new We can reduce the chance by load-balancing over multiple servers though, so please deploy the latest REST APIs on your servers or cloud services (such as DigitalOcean, Scaleway, AWS, Now or Heroku):
|
Alright, thank you for clarifying. I guess I was a little confused by the 3 in |
Hi, I can offer these for the lb:
The instances run on a bare-metal server located in a data center in Berlin. |
Thank you! 💚
Yes please, it helps me not to misconfigure something by accident. You could adopt the naming scheme of @juliuste and me (Julius will run
All 6 endpoints together get receive ~50-500k requests per day. On my (really cheap) VPS, they usually contribute to a load of about |
@derhuerst ok, I have set these up and also |
We can also define your nodes as fallback, so that they won't receive any requests if |
👍 sounds great! |
@joecorcoran @deg0nz @ferby09 @k-nut @berlincount @timaschew Do you happen to have the knowledge and time to set up mirror/load balancing nodes as well? I would appreciate it. |
Sorry, I don't have capacities for this right now... |
I've set up I'm going to close this issue now, as the VBB admins haven't blocked |
I have opened a thread in the |
I have set up I will keep |
thanks for having a look!
The text was updated successfully, but these errors were encountered: