Usage Memory Spikes

See attached image. I have 2 containers which together rarely exceed 800mb, but I'm seeing spikes to 2.8gb and 5+gb on the usage graph (presumably effecting the billing?). Can you help me understand how this is calculated?
22 Replies
JustJake
JustJake3y ago
Can't really tell sadly. We just run the code you give us. We have a ticket to at some point add "hit rates"
nootrality
nootralityOP3y ago
But this is >> the sum of the mem utilization you report I.e. what's the discrepancy?
JustJake
JustJake3y ago
ProjectID? Could be multiple environments etc
nootrality
nootralityOP3y ago
Railway
Railway
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
nootrality
nootralityOP3y ago
One environment, two apps
JustJake
JustJake3y ago
When did this get deployed? 22nd looks like
JustJake
JustJake3y ago
JustJake
JustJake3y ago
Interesting. I do see your point...
nootrality
nootralityOP3y ago
My only thought is it's either builds or simultaneous deployments. But having 5x seems crazy.
JustJake
JustJake3y ago
Could be simultaneous deployments
nootrality
nootralityOP3y ago
What drives billing?
JustJake
JustJake3y ago
You like, index something off the rip? (When you start your app)
nootrality
nootralityOP3y ago
Nah these are simple webapps
JustJake
JustJake3y ago
Or do some sort of startup operation? Sum of all deployed instances
nootrality
nootralityOP3y ago
Is that what's being reported on the usage page?
JustJake
JustJake3y ago
Ye Need to make it more clear Give you a lil drillable breakdown
nootrality
nootralityOP3y ago
If so would be great to have visibility to the delta Yeah perfect Completely immaterial ATM but when we're running a few grand on you guys soon it'll be more important
JustJake
JustJake3y ago
Yea for sure Lemme bang drum about this at our triage meeting Which, was Friday but got moved to Monday. So, i'll raise it internally Will also dig in a bit and see if I can get an answer for you sooner
nootrality
nootralityOP3y ago
No rush, thanks
JustJake
JustJake3y ago
Roger and welcome!
angelo
angelo3y ago
Hey @nootrality - spent some time digging deeper as to why you are seeing that. Two parallel but related threads going on. 1) So, for some reason your CPU and memory are reporting for a tiny spike in usage wayyyyy above normal. This looks very shocking in the usage graph but balances out in the cost department when we normalize the usage data. (For the record, we log at 5 minute intervals and average out the usage.) When looking at the cost calculation, nothing out of the normal appears, the $2 of usage so far seems correct. 2) The UX of the usage graph is confusing. I think we can do some color coding there to show which deployment is causing what cost. In the Project page we do have a per service breakdown but I think we can do better on the graphs to make that grokkable https://railway.app/project/2db6fbc5-2ff6-48d5-b635-66e792767de5/settings/usage I have spun up an escalation for 1) and 2) internally. We can't get to this immediately but I appreciate you giving us the information that you have Let us know if there is anything else we can answer for you on the platform
nootrality
nootralityOP3y ago
this is great, thanks angelo!
Want results from more Discord servers?
Add your server