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