Hosting single ghost site on multiple servers

I would like to make my blog highly available. My plan is to install the blog on multiple host, and put a load balancer in front of it. The thing I am worried about is my theming and its static files. From what I understand the theme is installed on the server which receives the request of the theme upload. Is there a way I can upload the theme by accessing the server through SSH. If so would I just have to put it in <ghost_installation_base_path>/content/themes/. or do need to change anything else.

Ghost is highly available all by itself and does not support clustering. If you’re concerned about performance under load then straightforward caching is the answer.

This is sad :frowning_face:. Load balancing is not just for load aspect but what if for some reason if there is a hardware failure.

Also BTW which cache would you recommend

all things with CND and cache is high available…but not by itself.

I was interested in running Ghost for personal projects but
the documentation says under Hosting a Ghost publication - Fully-managed PaaS & self-hosted
Clustering or sharding is not supported in any way.

You say:

Ghost is highly available all by itself and does not support clustering.

Yeah I will see the high availability when I shutdown the VM, container or k8s pod running Ghost or just do some basic maintenance…

Is this still really the state Ghost is in? Running everything on one machine? Is ghost really not stateless and does not store state in DB and Redis?
Happy to hear if things have changed, and I could run it as a normal stateless fault tolerant redundant web application. :grinning:

Hint: Ops guy/Architect speaking :grinning:

1 Like

Any news about this? Wanted to know if i can use multiple replicas of ghost. With separated a mysql db ofc.

Hi @beny1700!
(In case you are asking if you can install multiple copies of Ghost:) You can install Ghost for as many sites as you like. It’s open source software. You can also run multiple instances of Ghost (serving different sites) on the same server, each using a different database.

If this is a replication question/sharding/clustering question, which the original (five year old) thread was: You can put your DB server on a different machine/container than your Ghost install. You can put a CDN in front of your self-hosted site, to reduce load on it, and you can aggressively cache the parts that don’t change. You can generate static versions of your site and stick a load balancer in front of them, rebuilding only when there’s new content to trigger the rebuild. But Ghost doesn’t have built-in clustering support, no.

1 Like