#Prevent Appwrite from pulling weekly unused runtimes
9 messages · Page 1 of 1 (latest)
Happy to help with this.
The issue is that Appwrite pre-pulls all supported runtime images by default, even ones you never use that's what's ballooning your disk usage.
Are you self-hosting via Docker Compose, or using a managed setup like DigitalOcean App Platform?
Docs are little old on Appwrite website and i am unable to understand, when i create column of type relationship,
Then what goes in that column data like content of relation table’s row or just id?
And i am confused in few aspects of relationship column type like twoWay enabled column also create column with entered name in relation table?
Or Am i thinking too much for relationship and can skip and implement like i do in nosql databases using userID?
Good questions! To clarify:
The relationship column stores document IDs under the hood, but when you query, Appwrite can return the full related document depending on your fetch depth setting.
And yes enabling twoWay automatically creates a corresponding column in the related collection with the name you provide, so both sides can reference each other.
If your data is already structured around IDs like in NoSQL, Appwrite relationships are just a cleaner wrapper around that same pattern worth using if you want Appwrite to handle referential integrity for you.
Hi! Thanks for your reply.
I use docker compose yes.
it is not possible to not pull the images, tho you can reduce the number of download images by removing the number of RUNTIMES in your envs (like do you need nodejs v16 ? if not, just remove it from the appwrite site/functions/compute envs and it shouldn't be downloaded anymore)
The reason you can't disable auto-pull is here : https://github.com/open-runtimes/executor/blob/main/app/http.php (on http start, there is an action that check the network and pull all images)
Great, that makes it straightforward to fix!
With Docker Compose you can restrict Appwrite to only pull the runtimes you actually use by setting the _APP_FUNCTIONS_RUNTIMES environment variable in your .env file so instead of pulling everything, it only keeps node and php.
I can walk you through the exact config change and help clean up the already-pulled images to reclaim that disk space. Would you want me to handle that for you?
In _APP_FUNCTIONS_RUNTIMES I changed the value with node-16.0,php-8.0 by replacing the main container using portainer. But that didnt solve anything so yeah, would be happy to have some help thanks!