Answer the question
In order to leave comments, you need to log in
How to store images on another server?
The online store has too many pictures, about 180 GB, on the server there is a 220 GB SDD.
There are a couple of ideas for implementation in my head:
Answer the question
In order to leave comments, you need to log in
I usually implement using AWS S3 CDN. Convenient, good API, works fast, does not create a load on disks and the speed of the site itself.
You can raise a subdomain, but you need to read cards from another disk. If they are read from the same disk, then there is no difference whether it is the same or a subdomain.
Lord, there is a much simpler version
of nginx in any of its epistases
1. create a location with statics, as a rule, it already exists in nginx + apache mode, all that remains for you is to specify where they are stored.
2. load balance also nginx
3. do not take a second server, just buy another ssd and make a raid 10 or just a larger
one 4. jpegoptim - one line in the console and the pictures have sharply become 3 times smaller.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question