Back

[SOLVED] Have a Question with Data Replication

  • 1
  • Self Hosted
ORIZON
9 Mar, 2023, 06:19

Hi Appwrite Team, I want to setup a Kubernetes cluster for my Website with Appwrite as Backend. I'm Using Kaniko as to Build image to Use.

I will have 2 Clusters So if one fails Another should Act as a Backup. I have a question. Does Appwrite work with Master-Slave data replication?

TL;DR
Appwrite containers are mostly stateless, so they can be scaled as needed. For stateful containers like Redis or MariaDB, they can be scaled normally. To set up a Kubernetes cluster with Appwrite as the backend, you can use Kaniko to build images. If you want to have a backup cluster in case of failure, Appwrite does support master-slave data replication.
joeyouss
9 Mar, 2023, 08:42

Hi there πŸ‘‹ Most of Appwrite containers are stateless. Those that are stateful are well known ones such as Redis or MariaDB. You can scale them as you wouod nornally. To scale Appwrite containers, you simply spin uo multiple and direct traffic between them.

Important to remember Appwrite uses Docker volumes, so make sure you have a solution to share those between your servers. There are many ways around it, such as rsync or network mounts with s3

ORIZON
9 Mar, 2023, 11:19

Thanks for the Reply. Ms πŸ™‚

joeyouss
10 Mar, 2023, 12:26

[SOLVED] Have a Question with Data Replication

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more