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
Are only arm computers supported?
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.
Oh alright I will do another aprouch anyways: Google buckets
It's Vue's VitePress with some custom-made components https://vitepress.dev/
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.
ehm?
am I missing something
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.
Yeah was already trying that, but thanks
hope it will work now
Now it goes to this chaching folder
Is the caching folder exists?
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.
Ah alright will do that soon. (gotta go for a few min)
Recommended threads
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Different appwrite IDs are getting expos...
File_URL_FORMAT= https://cloud.appwrite.io/v1/storage/buckets/[BUCKET_ID]/files/[FILE_ID]/preview?project=[PROJECT_ID] I'm trying to access files in my web app...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...