2 years ago
Hello, my server has been acting weird for the last week or so. The server times out randomly and I have to manually restart it to fix it from hanging. I've gotten customer complaints related to hanging loads and both times the fix was to restart the server. I don't have any logs, as no error is thrown.
33 Replies
2 years ago
the project id is very much applicable, along with a service id and environment name
2 years ago
what region does the supabase database reside in?
2 years ago
... are you aware your region in railway is us-west?
2 years ago
absolutely, distance really matters for latency, though i am just assuming here because you dont have any tracing
2 years ago
i assume you live somewhere close to the supabase region?
2 years ago
yeah, change it to east, and then change your supabase region to east as well
Additionally, though latency may be a factor, majority of the time the requests go on pretty fine. Does this really affect why the request lag from time to time?
2 years ago
it looks pretty constantly slow to me?
2 years ago

2 years ago
/api/generator/photosheet was 78 seconds
2 years ago
what are you using to generate?
The python server handles the generation, it takes time depending on the size of the upload, so this is expected. But the lags we face occurred initially with only 3 photos, which never take that long
2 years ago
so you do generation on the cpu?
2 years ago
doesnt look like whatever you are doing is even using the cpu

2 years ago
we dont have gpus incase you where wondering
The generations just take a bunch of photos and add them to a doc, so I don't think it takes too much compute
2 years ago
try on metal east and supabase east, then we can go from there
2 years ago
you've already moved supabase?
2 years ago
no worries