Closed oparoz closed 8 years ago
Here is a script that you can use togehter with PHP 7: https://github.com/enoch85/ownCloud-VM/blob/master/production/install-redis-php-7.sh
Thanks @enoch85
Redis +1 Have used it on my BerryCloud project and it works flawless imo (with scripts from enoch85)
I did some tests a while ago on raspbian jessie on a RPi 2 (nginx, php5-fpm, maria-db, redis, system+db on sd card, storage on external usb stick): I found the i/o-performance to be the bottle neck especially caused by the database. File-locking should be done by redis (or disabled).
I also disabled journaling for ext4 which increased the performance. I'm not sure if this is a good idea in general, perhaps we could put the database on a separate partition with journaling turned off (regular backups should be run).
I even tried to put the database on tmpfs but there was no major improvement on the upload of a large number of files (I didn't focus on the response of the web-interface): https://github.com/owncloud/core/issues/20967 That is the reason, I didn't pursue this any further, suitable backup & restore mechanism would be necessary.
To increase the available RAM, I reduced the shared GPU memory to 16M by adding this to boot.txt:
gpu_mem=16
Perhaps something similar is possible in ubuntu snappy.
To increase the available RAM, I reduced the shared GPU memory to 16M by adding this to boot.txt:
I was just reading about that... 1GB is really low for ownCloud, so the more we can free the better.
Does HDMI output still work with 16MB?
Does HDMI output still work with 16MB?
Yes. But I don't use a desktop environment.
Does HDMI output still work with 16MB?
Yes. But I don't use a desktop environment.
Yeah, it's just so that people can still access the device for emergency work or to get their IP address if they don't want to use the command line.
I also created an issue for the 16MB video memory thing: https://github.com/kyrofa/owncloud-snap/issues/18
Redis will be used for both file-locking and caching.
After having witnessed the load placed on MySQL, I'm hoping it can be reduced via caching.
I'm voting to use Redis as it can be used for file locking as well.
Here are some numbers, courtesy of @Niluge-KiWi
memcache.local
APCu +memcache.locking
Redis:memcache.local
Redis +memcache.locking
Redis:memcache.local
none +memcache.locking
Redis:memcache.local
none +memcache.locking
none:memcache.local
none +memcache.locking
none:Lines to add to config.php