Rank 3: Container
I was wondering if it would be possible to cluster multiple instances of Appwrite and load balancing them and having the SQL/Database itself on one of those cluster so there is 1 database but multiple instances of appwrite
Votes
1
Replies
24
Participants
Unknown
Messages
25
Rank 3: Container
I was wondering if it would be possible to cluster multiple instances of Appwrite and load balancing them and having the SQL/Database itself on one of those cluster so there is 1 database but multiple instances of appwrite
Yes you can
This called decentralization and I'm planning to write about it here https://appwrite.bool-code.org/guide/decentralization
For now you'll need the way to go is to create one master node (with the DB) and in all other nodes put that server IP as the databases (mariadb, influxdb, redis) endpoint.
Also, you'll need to mount the storage as bind and let other nodes access it using ssh, for example
appwrite-uploads: driver: local driver_opts: o: "bind" device: "/nfs/appwrite-uploads"You might also want to look at https://discord.com/channels/564160730845151244/870536298220367902/1128565809824923709
Rank 3: Container
Are only arm computers supported?
Rank 3: Container
Rank 3: Container
Because my whole cluster runs on Ryzen and Intel...
@Binyamin are you using docusaurus for creating that Appwrite book ?
or something else?
From what I know the ARM is only necessary to br able to follow the tutorial.
Rank 3: Container
Oh alright I will do another aprouch anyways: Google buckets
It's Vue's VitePress with some custom-made components
https://vitepress.dev/
Rank 3: Container
so we can have multiple managers in our cluster and so if 1 is down then it will still operate as normal
Yes.
And the swarm will keep run as long as you have a running manager.
But if you nees to roll an update you need to have the majority.
Rank 3: Container
ehm?
Rank 3: Container
am I missing something
Rank 3: Container
Rank 3: Container
ah forgot the .env file but now i get this issue
Remove all the x-logging part
From the beginning of the file and inside each service.
Rank 3: Container
Yeah was already trying that, but thanks
Rank 3: Container
hope it will work now
Rank 3: Container
Now it goes to this chaching folder
Is the caching folder exists?
Rank 3: Container
Rank 3: Container
Also, I'll write it like so
appwrite-cache: driver: local driver_opts: o: "bind" device: "/root/mount-folder/appwrite/cache"You can try it.
Rank 3: Container
Ah alright will do that soon. (gotta go for a few min)