R
Railwayā€¢6mo ago
nikivi

App is down

please help
Solution:
yeah so that is your bottleneck
Jump to solution
114 Replies
Percy
Percyā€¢6mo ago
Project ID: N/A
Brody
Brodyā€¢6mo ago
please provide more information
nikivi
nikiviOPā€¢6mo ago
i upgraded instance to pro requests failing due to high load
Brody
Brodyā€¢6mo ago
how many connections is "many connections"
nikivi
nikiviOPā€¢6mo ago
100,000 or so not clear
Brody
Brodyā€¢6mo ago
concurrently?
nikivi
nikiviOPā€¢6mo ago
yes what can i do
nikivi
nikiviOPā€¢6mo ago
No description
nikivi
nikiviOPā€¢6mo ago
i see this in memory
nikivi
nikiviOPā€¢6mo ago
No description
nikivi
nikiviOPā€¢6mo ago
can we jump on call @Brody its urgent to fix thank you i can upgrade to any plan, already on pro
Brody
Brodyā€¢6mo ago
i don't work for Railway
nikivi
nikiviOPā€¢6mo ago
oh is there anyone on railway that c help
Brody
Brodyā€¢6mo ago
but I can tell you with absolute certainty that you can not do 100k concurrent requests
nikivi
nikiviOPā€¢6mo ago
ok railway is down nevertheless
Brody
Brodyā€¢6mo ago
railway isn't down, they just aren't allowing you to do 100k concurrent requests
nikivi
nikiviOPā€¢6mo ago
what can i do for them to allow
Brody
Brodyā€¢6mo ago
quick question, are you on the new proxy
nikivi
nikiviOPā€¢6mo ago
dont know
Brody
Brodyā€¢6mo ago
please check
nikivi
nikiviOPā€¢6mo ago
i didnt setup anything how
Brody
Brodyā€¢6mo ago
in the service settings
nikivi
nikiviOPā€¢6mo ago
where
nikivi
nikiviOPā€¢6mo ago
No description
Brody
Brodyā€¢6mo ago
that's your project settings, look in the service settings
nikivi
nikiviOPā€¢6mo ago
No description
nikivi
nikiviOPā€¢6mo ago
ok enabled
Brody
Brodyā€¢6mo ago
is this 100k of legitimate traffic?
nikivi
nikiviOPā€¢6mo ago
yes its real users 100k is estimate
Brody
Brodyā€¢6mo ago
did something go viral?
nikivi
nikiviOPā€¢6mo ago
just link to app was shared in group with around 80k users so yes i thought railway will handle it
Brody
Brodyā€¢6mo ago
in the mean time you can try spinning up more replicas
nikivi
nikiviOPā€¢6mo ago
how
Brody
Brodyā€¢6mo ago
service settings
nikivi
nikiviOPā€¢6mo ago
No description
nikivi
nikiviOPā€¢6mo ago
how to upgrade my instance im confused i press this
nikivi
nikiviOPā€¢6mo ago
No description
nikivi
nikiviOPā€¢6mo ago
No description
nikivi
nikiviOPā€¢6mo ago
it wants me to enter name Nikita?
Brody
Brodyā€¢6mo ago
you are upgraded, you are just selected on the hobby workspace, you need to move your project to the pro workspace
nikivi
nikiviOPā€¢6mo ago
how can i move while keeping same url for deploy
Brody
Brodyā€¢6mo ago
you would have been asked to move projects over upon upgrading, if you closed that you can move a project across workspaces from your project settings but pro users do not get higher request rates
nikivi
nikiviOPā€¢6mo ago
so this won't help?
Brody
Brodyā€¢6mo ago
not for your particular issue since you are not CPU memory bound you need replicas for this
nikivi
nikiviOPā€¢6mo ago
i have 4 is that enough?
Brody
Brodyā€¢6mo ago
when where they added
nikivi
nikiviOPā€¢6mo ago
2 min ago
Brody
Brodyā€¢6mo ago
if I understood mig correctly each replica should be permitted to allow for 1k RPS with 5k burst
nikivi
nikiviOPā€¢6mo ago
5k burst?
Brody
Brodyā€¢6mo ago
yes i don't know what the window for that is though let me know if more replicas make a difference
nikivi
nikiviOPā€¢6mo ago
still failing requests its unclear why its on railway though 100% as I am in close contact with db and all writes go through there
Brody
Brodyā€¢6mo ago
how are requests failing, please be more specific
nikivi
nikiviOPā€¢6mo ago
its infinite loading so requests just stalling for many users
Brody
Brodyā€¢6mo ago
project id please
nikivi
nikiviOPā€¢6mo ago
how to get
nikivi
nikiviOPā€¢6mo ago
No description
Brody
Brodyā€¢6mo ago
from your url I'm sorry but I didn't ask for an invite
nikivi
nikiviOPā€¢6mo ago
Railway
Railway
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
Brody
Brodyā€¢6mo ago
@Mig connections hanging with increased traffic
nikivi
nikiviOPā€¢6mo ago
pls resolve thank you ā¤ļø I can add 20 replicas not 4 i guess but not sure what cost of many replicas is and if thats the issue connections just stalling i need all requests to go through
Brody
Brodyā€¢6mo ago
there is a limit on the total amount of RPS from the host itself, that would be 50k with 500k burst there's no base cost, you pay for the resources used by them
nikivi
nikiviOPā€¢6mo ago
so what can i do to make requests go through im messing around with caching on client now
Brody
Brodyā€¢6mo ago
you can try adding more replicas, but ultimately we will want to hear back from mig
nikivi
nikiviOPā€¢6mo ago
No description
nikivi
nikiviOPā€¢6mo ago
i don't get though why connections stall graphs look fine yet connections stall for many connecting to railway
Brody
Brodyā€¢6mo ago
as I've previously mentioned, you are likely hitting your RPS limit
nikivi
nikiviOPā€¢6mo ago
how to up rps
Brody
Brodyā€¢6mo ago
more replicas
nikivi
nikiviOPā€¢6mo ago
ok 8 replicas
Brody
Brodyā€¢6mo ago
but you could also be hitting the RPS of the host, so we will need to hear back from mig for a definite answer here
nikivi
nikiviOPā€¢6mo ago
requests are stalled again šŸ˜ fk i hoped railway would be ok to host my stuff on if it was personal project i would be fine bu this is client project its not even free plan its crazy that it stalls even on 8 replicas now its ok again
Brody
Brodyā€¢6mo ago
i have asked another team member since mig is offline
nikivi
nikiviOPā€¢6mo ago
i added client side caching at least for users that loaded before they will see things thanks
Brody
Brodyā€¢6mo ago
though its monday so they are likely in meetings
JustJake
JustJakeā€¢6mo ago
Hi! It looks like the drophunt URL is returning quickly here and you were able to bump replicas @nikivi lmk if you still need something here
nikivi
nikiviOPā€¢6mo ago
yes pls i expected railway to support many requests and many users just had stalled requests so client probably won't work with me again but oh well my issue with not understanding railway i guess but i want to make sure this does not happen again I was not on free plan and was in close contact with the db I used so all writes to it went through, all issues were on railway and even now some requests still stall with 8 replicas for some reason I thought railway would not just drop requests on non free plan I guess I should start launches with maybe 20 replicas just in case but that seems like too much I wish I could just scale the load and so that railway won't be dropping a single request would be wonderful I assume railway infra should allow for this
Brody
Brodyā€¢6mo ago
that was 14 separate messages, please try to keep such things contained in as little amount of messages as possible
nikivi
nikiviOPā€¢6mo ago
yea sorry how can I make railway project where I don't have to think about replicas and where railway won't be dropping or stalling requests 100% I am coming to railway from cloudflare workers where thats the default from ux perspective I assumed that would already be the case, and that things like proxy would be on by default
Brody
Brodyā€¢6mo ago
what you switched on was the beta proxy, its not like your app didnt come with a proxy already
nikivi
nikiviOPā€¢6mo ago
so issue is that railway just drops requests if too many requests land to the replica instance, it does not queue them or anything I will always turn on new proxy (it seems to be better, not sure) and ideally I don't want to provision replicas as I don't know load beforehand
Brody
Brodyā€¢6mo ago
yes that is how limits work
nikivi
nikiviOPā€¢6mo ago
can I make railway work with these requirements I did not set any limits
Brody
Brodyā€¢6mo ago
the platform has RPS limits
nikivi
nikiviOPā€¢6mo ago
ok will try move to self hosted solution with no rps limits i do like railway ui though šŸ˜
JustJake
JustJakeā€¢6mo ago
If you're doing self hosted, you're gonna have to manage this Plus a littany of other issues. Can you show me where the requests are being queued? You seem to have more than enough headroom You're running at 700mb
nikivi
nikiviOPā€¢6mo ago
somehow requests were still stalling though i did not get observability into why at least I did not see in railway how
Brody
Brodyā€¢6mo ago
it's also possible that your app just simply wasn't responding fast enough
JustJake
JustJakeā€¢6mo ago
Yup. You've got a lot of headroom so, from what I can tell, it's something at the application level Maybe a downstream service, some errant code, etc
nikivi
nikiviOPā€¢6mo ago
can i cut replicas to 2 at least what is the approximate level of replicas i have to hold for how many concurrent requests i wish i didnt have to think about this šŸ˜¦
Brody
Brodyā€¢6mo ago
we both no longer think this is an issue with railway, after some thinking it's unlikely you are hitting any RPS limit considering 8 replicas did not solve this issue
nikivi
nikiviOPā€¢6mo ago
so with 1 replica if i have 10,000 concurrent requests hypothetically what will railway do
Brody
Brodyā€¢6mo ago
sorry for the confusion, but all signs are pointing to an issue with your application or something your application interacts with
nikivi
nikiviOPā€¢6mo ago
trying this šŸ™
No description
nikivi
nikiviOPā€¢6mo ago
lets see now traffic is lower + i have caching so should be safer
Brody
Brodyā€¢6mo ago
please try to limit the amount of messages you send back to back as I am bombarded with notifications
nebula
nebulaā€¢6mo ago
@nikivi is this open source
nikivi
nikiviOPā€¢6mo ago
GitHub
GitHub - nikitavoloboev/drophunt
Contribute to nikitavoloboev/drophunt development by creating an account on GitHub.
nikivi
nikiviOPā€¢6mo ago
p.s. can I clear logs in dashboard
No description
nebula
nebulaā€¢6mo ago
this is not the whole thing also - what is ronin
nikivi
nikiviOPā€¢6mo ago
nikivi
nikiviOPā€¢6mo ago
my data store its whole thing
Solution
nebula
nebulaā€¢6mo ago
yeah so that is your bottleneck
nikivi
nikiviOPā€¢6mo ago
ronin are not bottleneck as they checked their writes coming through i was on call with them
nebula
nebulaā€¢6mo ago
i would suggest instrumenting your app with something like Opentelemetry and see which call is slow
nebula
nebulaā€¢6mo ago
No description
nikivi
nikiviOPā€¢6mo ago
yea will do
nebula
nebulaā€¢6mo ago
i cant run this locally
nikivi
nikiviOPā€¢6mo ago
yea its bit annoying, will resolve in a bit, ronin uses private packages
nebula
nebulaā€¢6mo ago
well - i can't really help much until then
nikivi
nikiviOPā€¢6mo ago
yea understandable thanks for offer though ā¤ļø
nebula
nebulaā€¢6mo ago
what's your reason for using ronin btw? it seems to just be a database?
nikivi
nikiviOPā€¢6mo ago
yea they provide a nice sdk to query https://github.com/ronin-co/client
GitHub
GitHub - ronin-co/client: Access RONIN via TypeScript.
Access RONIN via TypeScript. Contribute to ronin-co/client development by creating an account on GitHub.
nikivi
nikiviOPā€¢6mo ago
and dashboard
nebula
nebulaā€¢6mo ago
im about 99% sure your issues lie in either the SDK they provide or the service itself i would suggest using a normal database along with something like drizzle-orm railway supports postgres and mysql
Want results from more Discord servers?
Add your server