R
Railway•8mo ago
Slashiy

Storage question

I'm unsure if this is the correct place, but I had a question. When I see the usage dashboard, it says there is 100GB Shared Disk storage, if I upgrade to Pro plan would this number increase?
Solution:
R2 is the easiest and cheaper, it just works
Jump to solution
41 Replies
Percy
Percy•8mo ago
Project ID: N/A
Slashiy
Slashiy•8mo ago
N/A
Brody
Brody•8mo ago
nope
No description
Slashiy
Slashiy•8mo ago
Alright thank you, so it just scales with usage then when you go above? As the docs says
Slashiy
Slashiy•8mo ago
No description
Brody
Brody•8mo ago
its a soft limit yes, meaning you going above the shared disk limit means the sales guy will likely be in your inbox, but are you sure you arent interested in volumes? https://docs.railway.app/reference/volumes
Slashiy
Slashiy•8mo ago
Oh perfect! Was just doing some research as I'm considering moving some infrastructure I have on a VPS over as I want to possibly deploy it in a different region than its current location
Brody
Brody•8mo ago
sounds good, if what you are storing is temporary in nature, then the shared disk is what you would use, if what you are storing requires persistence, you would need to use a volume (50gb per service for pro)
Slashiy
Slashiy•8mo ago
Alright sounds good Well it will be a storage bucket for images that varies in sizes and a database on the side also but the database is not a must to be in the same region anyways since its mostly for storing reference things
ThallesComH
ThallesComH•8mo ago
i would use cloudflare r2 for this, removes the pricing of bandwidth in Railway
Brody
Brody•8mo ago
i could be wrong, but isnt there a balance depending on how much you store, egress vs. volume costs
Slashiy
Slashiy•8mo ago
the images has a variance in size(mb) and its not a lot we are talking about but yes the egress pricing could be a problem long term, though there is a redis cache that sits in between
ThallesComH
ThallesComH•8mo ago
wait, for the database or the images?
Slashiy
Slashiy•8mo ago
database can sit externally outside of Railway the images are gonna be sitting in a storage bucket of sorts that Directus uses internally
ThallesComH
ThallesComH•8mo ago
ah ok didn't read that
Brody
Brody•8mo ago
if you run you database outside of railway then you would be subjecting yourself to extra egress fees
Slashiy
Slashiy•8mo ago
though I can configure a S3, R2 or something of the like to be used ah yeah true
ThallesComH
ThallesComH•8mo ago
as i suggested, can't you just use cloudflare r2? configuration is really simple https://www.restack.io/docs/directus-knowledge-directus-aws-s3-integration
Directus AWS S3 Integration Guide
Explore how to configure and use AWS S3 with Directus for scalable digital asset management.
ThallesComH
ThallesComH•8mo ago
and cloudflare doesn't charge egrees fees so it would be fine
Slashiy
Slashiy•8mo ago
yes that might be the plan
Slashiy
Slashiy•8mo ago
Configuration Options | Directus Docs
Environment variables are used for all configuration within a Directus project. These variables can be defined in a number of ways, which we cover below.
Slashiy
Slashiy•8mo ago
This is their actual docs for it But yeah its pretty simple
Brody
Brody•8mo ago
yeah ive set directus up with cloudflare r2, very easy
Slashiy
Slashiy•8mo ago
do you find it better than storaging locally? since this is only for file uploads and nothing else aka images only
ThallesComH
ThallesComH•8mo ago
cloudflare's CDN is extremely useful and i would use it just by the pricing + you wouldn't worry about reaching Railway's volume limit and pricing is way cheaper
Brody
Brody•8mo ago
well you can't easily backup the railway volumes, and thats why i went with r2
Slashiy
Slashiy•8mo ago
ah alright then I might as well choose that I did also look at GCP, but they are somewhat pricey and I don't want to go AWS so I'll probably just do R2
ThallesComH
ThallesComH•8mo ago
nah, get away from GCP
Solution
ThallesComH
ThallesComH•8mo ago
R2 is the easiest and cheaper, it just works
Slashiy
Slashiy•8mo ago
yeah and I get the benefit of Cloudflares CDN Alright perfect! Thank you! Still can't close this myself for some odd reason, so someone please do it 😂
Brody
Brody•8mo ago
we dont close threads 🙂
ThallesComH
ThallesComH•8mo ago
i don't even know if it's possible anymore that discord bot disappeared
Slashiy
Slashiy•8mo ago
or sorry
Brody
Brody•8mo ago
no it didnt
Slashiy
Slashiy•8mo ago
mark as solved
ThallesComH
ThallesComH•8mo ago
weird, maybe i don't have permission for it? before it appeared in the apps section
Brody
Brody•8mo ago
correct
Slashiy
Slashiy•8mo ago
I don't either
Brody
Brody•8mo ago
only mods / admins can mark as solved
Slashiy
Slashiy•8mo ago
ah okay!
ThallesComH
ThallesComH•8mo ago
well there it is, just give me admin, problem solved
Want results from more Discord servers?
Add your server