Dear thinkers,
I wanted to ask how to deal with scaling up my application. I’ve dockerized everything and right now I’m just running one instance.
Later, I wanna run multiple ones.
How do I make the different servers and Docker containers statless, so they all have access to the same uploaded images? Basically, I want any instance to serve the same content without depending on a single container’s storage.
Any tips or best practises would be awesome!
I can't say this is the proper way of doing it, but this is how I would do it:
get a NAS storage server, set up all the servers to mount the NAS, then use the NAS file system for all docker containers and servers. I hope that helps.
get a NAS storage server, set up all the servers to mount the NAS, then use the NAS file system for all docker containers and servers. I hope that helps.
well it really depends on what you need, talking about storing images with easy access the solution will probably be s3(super cheap and good for simple file storage).
if you want to have multiple instances running there are some levels of solutions get a few machines(means vm/lxc/container) running(can be ran on the cloud or with kubernetes or whatever) and just load balance it
if you really wanna take it next level work with kubernetes or docker swarm, and give a try to terraform all of those might be an overkill but nice to know and have.
if you explain more on what you want to scale and what your problems are i can give you pin pointed solutions
if you want to have multiple instances running there are some levels of solutions get a few machines(means vm/lxc/container) running(can be ran on the cloud or with kubernetes or whatever) and just load balance it
if you really wanna take it next level work with kubernetes or docker swarm, and give a try to terraform all of those might be an overkill but nice to know and have.
if you explain more on what you want to scale and what your problems are i can give you pin pointed solutions
if any i will suggest a good mini pc, 64 gb ram, 8/16 cores, install proxmox, have fun. can keep it in a fucking closet and can run tons of containers ( i myself run 20+ containers with multiple services)
No like just like tforum, how is tforum managing it. I want it simple, secure and fast.
there are a lot of stuff that can be addressed in different ways, you need to be more specific