linux - Scaling filesystem on centos whm and nginx webservers -


we have built marketplace our clients, have hundreds thousands of companies in our database , add products many files (images,videos etc.). , individual users able send photos.

we using centos +whm (nginx+cassandra+mysql+redis+nodejs+php+java) different parts of project according different content.

for main software using mysql , cassandra database servers, there restful java webservices between php7 code , database servers (which scaled).nodejs+redis+cassandra (for chat)

we have no problems scaling information, have decide how scale objects. company work supplies 10tb bandwidth each server get. if consider work amazon or other cloud services, 10tb bandwidth charge lot, on other hand in case have server used other issues well. seems better have servers instead of cloud storage.

now question how should go ahead statics files ? best solution this.

creating nodes subdomains static1.domain.com, static2.domain.com each new server. , add image location database show location of image. in case upload need change target mounted disk after each server full. use cdn decrease loads on servers.

what best architecture our situation ? thanks

there 1 option in amazon web services (s3). not file system can store static files in s3 bucket. auto increase/decrease storage size based on data size , data 99.99999999999% availability.

fyr, aws-s3


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -