R
Railway•12mo ago
bharadwaj

How does pro plan upgrade works for application? particularly Spring boot app...

Hi all, I find it difficult to understand how pro plan upgrade works. I upgraded my Spring boot app from hobby plan to pro, and the response times of the requests are still the same. It looks like the deployement did not happen on 32vCPU machine, someone please help me understand what am I missing please! Thank you so much! 😄 project id: c1f08a11-d87a-4728-ad7f-08846fb099c2
105 Replies
Percy
Percy•12mo ago
Project ID: c1f08a11-d87a-4728-ad7f-08846fb099c2
Brody
Brody•12mo ago
^
bharadwaj
bharadwaj•12mo ago
c1f08a11-d87a-4728-ad7f-08846fb099c2
Brody
Brody•12mo ago
have you changed the region your service is in to one that is closer to you or your database?
bharadwaj
bharadwaj•12mo ago
From my home computer when I submit the request I am able to get a response in 3 seconds tops, whereas the railway app is taking 20 seconds 😦 using the same database for both home pc and railway app
Brody
Brody•12mo ago
oh well pro isn't gonna help with code issues
bharadwaj
bharadwaj•12mo ago
will the deployment happen on 32 Core machine? I think the problem I am facing is because of low end infrastructure
Brody
Brody•12mo ago
if you moved your project over to the pro region of the dashboard and redeployed, yes the hobby plan had 8gb of ram and 8 vcpu, where you maxing those resources out previously?
bharadwaj
bharadwaj•12mo ago
I was not maxing out the resources there, the cpu usage was low. but the requests serving are taking a lot of time on 1-2 vcPU running apache tomcat, Java Spring Boot api application
Brody
Brody•12mo ago
then pro isn't gonna help you, that's like having a 10 amp charger and plugging in a phone that only takes 2 amps to charge, your phone will not charge any faster the hobby and the pro plan both use the same cpu type, just the pro plan has more of them if you weren't utilizing all the resources on the hobby plan, having more resources won't speed anything up
bharadwaj
bharadwaj•12mo ago
I understand the logic. But the same code is running very fast on my 16 core machine
Brody
Brody•12mo ago
unfortunately that does not rule out a code issue
bharadwaj
bharadwaj•12mo ago
sometimes I hit the peak of 7 vCPU usage
Brody
Brody•12mo ago
I'd recommend time logging different functions of your request to see what is taking 20 seconds but have you dragged the project over to the pro region of the dashboard?
bharadwaj
bharadwaj•12mo ago
No description
Want results from more Discord servers?
Add your server