#Prevent Appwrite from pulling weekly unused runtimes

9 messages · Page 1 of 1 (latest)

wintry arch
#

Hi,

I only use node/php runtimes for functions and static-1/node for site. However, appwrite keeps pulling gigabytes of runtimes. It makes my VM backup unnecessary big. How can I prevent appwrite from pulling those?

Thanks for helping!

thorn flicker
grave zodiac
#

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?

thorn flicker
#

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.

wintry arch
pallid peak
#

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)

thorn flicker
# wintry arch Hi! Thanks for your reply. I use docker compose yes.

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?

wintry arch
#

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!