R
Railway•13mo ago
blackswan

Is MongoDB disk pricing different?

I've noticed that the new mongodb deploys come with a disk, the old ones (above) look different without a mounted drive. Is the pricing different? I noticed I am paying quite a lot on the first mongodb service, it's billing it with the storage size in RAM
No description
47 Replies
Percy
Percy•13mo ago
Project ID: b5c2da31-6490-410f-9a6b-6fafa1ef1379
blackswan
blackswan•13mo ago
b5c2da31-6490-410f-9a6b-6fafa1ef1379
Brody
Brody•13mo ago
with the new databases (database services) you are still billed for cpu and mem but also billed for the storage used in the volume, since the old database plugins had an invisible 32gb volume that you weren't charged for
blackswan
blackswan•13mo ago
Where can I find some more info about this pricing change?
blackswan
blackswan•13mo ago
In the old databases - I am being billed for memory that is equal to the database size?
No description
Brody
Brody•13mo ago
that's just how much memory the database uses, it does not incorporate the invisible volume
blackswan
blackswan•13mo ago
I guess my question is - on MongoDB (for example a 20gb database) is it cheaper to use the new databases?
Brody
Brody•13mo ago
a 20gb database? oh 20gb of ram
blackswan
blackswan•13mo ago
no 20gb of data the database itself is inactive even...
blackswan
blackswan•13mo ago
See this is my confusion
No description
No description
Brody
Brody•13mo ago
how do you know you are using 20gb of storage on the old database plugin?
blackswan
blackswan•13mo ago
the database is not really active but the storage is about 20gb which is being billed as RAM
blackswan
blackswan•13mo ago
which ends up being a lot
No description
blackswan
blackswan•13mo ago
way more expensive than digitalocean where I migrated from
Brody
Brody•13mo ago
side note, you are pro right?
blackswan
blackswan•13mo ago
yeah I think the storage should not be billed as RAM disk storage is just database size but it's not truely using that in RAM idt look at the graphs
Brody
Brody•13mo ago
I don't think it is, I think that's just how much memory the plugin is using
blackswan
blackswan•13mo ago
wild I'm gonna try to migrate the data over to the new database and see if there's a difference
blackswan
blackswan•13mo ago
see in the new database
No description
blackswan
blackswan•13mo ago
I assume the data goes into the mounted disk hence I get billed for persistent storage not RAM which is 0.25 /gb
Brody
Brody•13mo ago
correct, and same for the old plugin, it's just the volume is invisible storage is not billed as ram with the old plugins
blackswan
blackswan•13mo ago
That appears to be incorrect?
No description
blackswan
blackswan•13mo ago
I get billed 0 for disk all in ram but disk is not 0
Brody
Brody•13mo ago
as I've said, the volume is invisible, you are billed for that much ram because that's how much ram is in use
blackswan
blackswan•13mo ago
okay gotcha... I just don't see how my application can be using that much ram 😓
Brody
Brody•13mo ago
it only shows disk because of a UI oversight that's mongo for you with the new database as services you have so much more control, if you don't like your data being cached into memory by mongo itself, you can just disable it with a flag or maybe an environment variable
blackswan
blackswan•13mo ago
alright - I'm gonna try moving to a new database just so i can see the difference otherwise I'll likely have to migrate back to digitalocean, this pricing ended up way more
Brody
Brody•13mo ago
if you dont like the outcome, its your database and you can do all the tuneing you want!
blackswan
blackswan•13mo ago
So FYI - migrating to the new database version made a big difference, the memory usage seems more natural now & is down about 50%
No description
blackswan
blackswan•13mo ago
I'm still trying to figure out how to lower the data being cached by mongo service itself any ideas?
Medim
Medim•13mo ago
tbh, mongodb is well know for all that caching if u still managed to lower it, ur good unless someone here has some unknow knowledge on how to lower it even more
Brody
Brody•13mo ago
I'm sure there's some flags or something you could play with that would get mongo to stop catching as much data into memory. fwiw the old plugin used mongo 4.4 and the new mongo service uses 7.0
blackswan
blackswan•13mo ago
So after running it for a while, I'm running into this issue: ERROR(4850900): pthread_create failed Thread creation failed Unable to schedule a new loop for the session workflow Connection ended Connection accepted pthread_create failed Thread creation failed ERROR(4850900): pthread_create failed Connection ended Connection accepted pthread_create failed ERROR(4850900): pthread_create failed Thread creation failed Unable to schedule a new loop for the session workflow Connection ended Connection accepted pthread_create failed ERROR(4850900): pthread_create failed Looks identical to this: https://www.answeroverflow.com/m/1161445811943649372
Answer Overflow
MongoDB failing to write - Railway
I'm getting the error `Connection accepted pthread_create failed ERROR(4850900): pthread_create failed Thread creation failed Unable to schedule a new loop for...
blackswan
blackswan•13mo ago
gonna try to redeploy...
Brody
Brody•13mo ago
I'll extend the same offer to you, need a way to reliability trigger this error in mongo for me to do any kind of useful debugging
blackswan
blackswan•13mo ago
I'll let you know if it starts giving me that error again! and won't redeploy so you can debug also - noticed that I can't deploy replicate sets, any eta on when this becomes available?
Brody
Brody•13mo ago
I can't debug anything like that, I don't work for railway why can't you, though I will note railway replicas don't have anything to do with mongo replicas
blackswan
blackswan•13mo ago
Oh gotcha... well here's the error again
No description
blackswan
blackswan•13mo ago
any advice?
Brody
Brody•13mo ago
that makes 3 people
blackswan
blackswan•13mo ago
Setting this number to anything other than 1 results in the deployment failing to build and an error
No description
blackswan
blackswan•13mo ago
others having same issue with mongodb and that pthread issue>?
Brody
Brody•13mo ago
correct like mentioned, railway replicas have nothing to do with a mongo replica set, that is not what that setting does
blackswan
blackswan•13mo ago
Separate issue. My redis deployment used alongside that database (same project) is not responsive. Error says too many clients when I try to output message
No description
blackswan
blackswan•13mo ago
restarting fixes it temporaily
Brody
Brody•13mo ago
assuming these are databases as services. these arent managed by railway, you manage your own database, you are free to increase the connection limit on them as you see fit
Want results from more Discord servers?
Add your server