alexbalandi
Private Templates - current state?
The topic has been broached a few times here. I understand that there's public API that lets us do deployments, but is it possible to just use the UI for creating private templates for team and letting team use them for internal deployments? If not possible, is it planned?
12 replies
TCP connection via private railway network times out
48f3719a-323b-4609-812c-5b818714b649 deployment id, 2d76fc7b-e09c-410f-b7e3-117dfccc41bf project id.
I have a service with private networking on that should be available on
personalized_assistant_core.railway.internal
My other deployed service can't seem to connect to it over internal netwok, neither by internal url : Could not connect to personalized_assistant_core.railway.internal:8786. Error: Timed out trying to connect to tcp://personalized_assistant_core.railway.internal:8786 after 30 s
nor by the resolved url : OSError: Timed out trying to connect to tcp://[fd12:ce2b:d076:0:4000:4:e7f5:36d8]:8786 after 30 s
I deploy using dockerfile FROM python:3.10
, I tried setting env var ENABLE_ALPINE_PRIVATE_NETWORKING=true
.
What could be the root of the problem? personalized_assistant_core.railway.internal
does have one port exposed to the web, but i'm connecting to the other port, can that be an issue?7 replies
Setting region doesn't work
project: 5908e018-e6a0-42ee-b4f6-04dab8bbe6fb
Trying to set region to a service in any of the forked enviornments (which are test and staging) doesn't work 😦 I switch from US to EU, it schedules redeploy, but auto goes back to US in settings. I am able to do it fine it main env (and did it) but not in forked ones.
19 replies
What is the best practice to handle my own load balancing for replicas on railway?
Coming after having read the blogpost : https://blog.railway.app/p/launch-week-01-horizontal-scaling
My current setup looks like this : a "front" server serving static content and sending requests to "back" server, each request includes
session_id
which is also tied to user_id
. I need to make sure that once the user makes the first hit and has "active" session, their subsequent requests hits the same "back" server replicas (because well, they're not exactly REST-ful as you might've guessed, and I really do need to keep it that way).
Again, for various reasons, keeping all session's data in some db and switching to REST-ful approach is not ideal for me in the long run, but I could see myself spinning a db to "remember" the replica for user id / session id.
How would you set such thing up? Open to suggestions, would also like the feedback on, well, the easiest way to "plug in" into the railway load balancing ie how would I efficiently do this : "One important note: If you don’t like this random load balancing, you can stick your own NGINX/HAProxy middle-proxy (using our DNS to discover backends) and load balance with any algorithm you like." Not quite sure about the "using our DNS to discover backends" and the exact way I'd do it 😅
I guess with the db to store "metadata" I could use it to always direct user to correct replica, but agian, I'd need pointers to how I'd populate db with correct routes ho hit in, say, internal railway network with multiple replicas.54 replies
Forking environment with PostgressSQL template on hobby plan leading to all sorts of issues
At first the container just didn't deploy, but then when i tried manually removing/creating it, my "production" environment got messed up and container there got disabled.
Steps to replicate would be creating env with postgress template, deployin it and then forking it
109 replies
Listen on udp workaround?
I understand that railway doesn't support it out of the box, but what could be the workaround? I have tinkered with this repo quite a bit : https://github.com/mmmaxwwwell/space-engineers-dedicated-docker-linux
The only thing stopping it from actually working on railway rn (aside from 5 gb limit on volume, which would need to be 10 gb for it to run on my personal hobby plan and not as one of team projects, lol) is well, the fact, that server needs to support udp 😦
I think someone mentioned using proxy for that?
40 replies
Writing files with no volume attached and billing
I'm curious how it's handled internally. I have some logs being written by default this way. As i understand, running docker container should have a special writable layer, space for which is somehow provided by you 😅
How does it get billed and what is the current limit for different plans?
How does it get billed and what is the current limit for different plans?
5 replies