R
Railway•9mo 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•9mo ago
Project ID: N/A
Slashiy
SlashiyOP•9mo ago
N/A
Brody
Brody•9mo ago
nope
No description
Slashiy
SlashiyOP•9mo ago
Alright thank you, so it just scales with usage then when you go above? As the docs says
Slashiy
SlashiyOP•9mo ago
No description
Brody
Brody•9mo 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
SlashiyOP•9mo 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•9mo 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
SlashiyOP•9mo 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•9mo ago
i would use cloudflare r2 for this, removes the pricing of bandwidth in Railway
Brody
Brody•9mo ago
i could be wrong, but isnt there a balance depending on how much you store, egress vs. volume costs
Slashiy
SlashiyOP•9mo 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•9mo ago
wait, for the database or the images?
Slashiy
SlashiyOP•9mo 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•9mo ago
ah ok didn't read that
Brody
Brody•9mo ago
if you run you database outside of railway then you would be subjecting yourself to extra egress fees
Slashiy
SlashiyOP•9mo ago
though I can configure a S3, R2 or something of the like to be used ah yeah true
ThallesComH
ThallesComH•9mo 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•9mo ago
and cloudflare doesn't charge egrees fees so it would be fine
Slashiy
SlashiyOP•9mo ago
yes that might be the plan
Slashiy
SlashiyOP•9mo 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
SlashiyOP•9mo ago
This is their actual docs for it But yeah its pretty simple
Brody
Brody•9mo ago
yeah ive set directus up with cloudflare r2, very easy
Slashiy
SlashiyOP•9mo ago
do you find it better than storaging locally? since this is only for file uploads and nothing else aka images only
ThallesComH
ThallesComH•9mo 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•9mo ago
well you can't easily backup the railway volumes, and thats why i went with r2
Slashiy
SlashiyOP•9mo 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•9mo ago
nah, get away from GCP
Solution
ThallesComH
ThallesComH•9mo ago
R2 is the easiest and cheaper, it just works
Slashiy
SlashiyOP•9mo 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•9mo ago
we dont close threads 🙂
ThallesComH
ThallesComH•9mo ago
i don't even know if it's possible anymore that discord bot disappeared
Slashiy
SlashiyOP•9mo ago
or sorry
Brody
Brody•9mo ago
no it didnt
Slashiy
SlashiyOP•9mo ago
mark as solved
ThallesComH
ThallesComH•9mo ago
weird, maybe i don't have permission for it? before it appeared in the apps section
Brody
Brody•9mo ago
correct
Slashiy
SlashiyOP•9mo ago
I don't either
Brody
Brody•9mo ago
only mods / admins can mark as solved
Slashiy
SlashiyOP•9mo ago
ah okay!
ThallesComH
ThallesComH•9mo ago
well there it is, just give me admin, problem solved
Want results from more Discord servers?
Add your server