installing_apcu_memcache_nextcloud_27_0_ubuntu_22_04
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
installing_apcu_memcache_nextcloud_27_0_ubuntu_22_04 [2023/06/25 06:03] – wikiadmin | installing_apcu_memcache_nextcloud_27_0_ubuntu_22_04 [2023/06/25 06:28] (current) – [Contents of config.sample.php with respect to MemCache Configuration] wikiadmin | ||
---|---|---|---|
Line 186: | Line 186: | ||
Using Redis for local cache on a multi-server setup can cause issues. Also, even on a single-server setup, APCu (see section above) should be faster. | Using Redis for local cache on a multi-server setup can cause issues. Also, even on a single-server setup, APCu (see section above) should be faster. | ||
+ | |||
+ | ===== Contents of config.sample.php with respect to MemCache Configuration===== | ||
+ | |||
+ | < | ||
+ | ** | ||
+ | * Memory caching backend configuration | ||
+ | * | ||
+ | * Available cache backends: | ||
+ | * | ||
+ | * * ``\OC\Memcache\APCu`` | ||
+ | * * ``\OC\Memcache\ArrayCache`` In-memory array-based backend (not recommended) | ||
+ | * * ``\OC\Memcache\Memcached`` | ||
+ | * * ``\OC\Memcache\Redis`` | ||
+ | * | ||
+ | * Advice on choosing between the various backends: | ||
+ | * | ||
+ | * * APCu should be easiest to install. Almost all distributions have packages. | ||
+ | | ||
+ | * * Use Redis or Memcached for distributed environments. | ||
+ | | ||
+ | */ | ||
+ | |||
+ | /** | ||
+ | * Memory caching backend for locally stored data | ||
+ | * | ||
+ | * * Used for host-specific data, e.g. file paths | ||
+ | * | ||
+ | * Defaults to ``none`` | ||
+ | */ | ||
+ | ' | ||
+ | |||
+ | /** | ||
+ | * Memory caching backend for distributed data | ||
+ | * | ||
+ | * * Used for installation-specific data, e.g. database caching | ||
+ | * * If unset, defaults to the value of memcache.local | ||
+ | * | ||
+ | * Defaults to ``none`` | ||
+ | */ | ||
+ | ' | ||
+ | |||
+ | /** | ||
+ | * Connection details for redis to use for memory caching in a single server configuration. | ||
+ | * | ||
+ | * For enhanced security it is recommended to configure Redis | ||
+ | * to require a password. See http:// | ||
+ | * for more information. | ||
+ | * | ||
+ | * We also support redis SSL/TLS encryption as of version 6. | ||
+ | * See https:// | ||
+ | */ | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | // If redis in-transit encryption is enabled, provide certificates | ||
+ | // SSL context https:// | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ] | ||
+ | ], | ||
+ | |||
+ | /** | ||
+ | * Connection details for a Redis Cluster. | ||
+ | * | ||
+ | * Redis Cluster support requires the php module phpredis in version 3.0.0 or | ||
+ | * higher. | ||
+ | * | ||
+ | * Available failover modes: | ||
+ | | ||
+ | | ||
+ | | ||
+ | * | ||
+ | * WARNING: FAILOVER_DISTRIBUTE is a not recommended setting, and we strongly | ||
+ | * suggest to not use it if you use Redis for file locking. Due to the way Redis | ||
+ | * is synchronized it could happen, that the read for an existing lock is | ||
+ | * scheduled to a slave that is not fully synchronized with the connected master | ||
+ | * which then causes a FileLocked exception. | ||
+ | * | ||
+ | * See https:// | ||
+ | * | ||
+ | * Authentication works with phpredis version 4.2.1+. See | ||
+ | * https:// | ||
+ | */ | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ], | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | // If redis in-transit encryption is enabled, provide certificates | ||
+ | // SSL context https:// | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ] | ||
+ | ], | ||
+ | |||
+ | |||
+ | /** | ||
+ | * Server details for one or more memcached servers to use for memory caching. | ||
+ | */ | ||
+ | ' | ||
+ | // hostname, port and optional weight | ||
+ | // or path and port 0 for unix socket. Also see: | ||
+ | // https:// | ||
+ | // https:// | ||
+ | [' | ||
+ | // | ||
+ | ], | ||
+ | |||
+ | /** | ||
+ | * Connection options for memcached | ||
+ | */ | ||
+ | ' | ||
+ | // Set timeouts to 50ms | ||
+ | \Memcached:: | ||
+ | \Memcached:: | ||
+ | \Memcached:: | ||
+ | \Memcached:: | ||
+ | \Memcached:: | ||
+ | |||
+ | // Enable compression | ||
+ | \Memcached:: | ||
+ | |||
+ | // Turn on consistent hashing | ||
+ | \Memcached:: | ||
+ | |||
+ | // Enable Binary Protocol | ||
+ | \Memcached:: | ||
+ | |||
+ | // Binary serializer vill be enabled if the igbinary PECL module is available | ||
+ | // | ||
+ | ], | ||
+ | |||
+ | |||
+ | /** | ||
+ | * Location of the cache folder, defaults to ``data/ | ||
+ | * ``$user`` is the current user. When specified, the format will change to | ||
+ | * ``$cache_path/ | ||
+ | * and ``$user`` is the user. | ||
+ | * | ||
+ | * Defaults to ``'' | ||
+ | */ | ||
+ | ' | ||
+ | |||
+ | /** | ||
+ | * TTL of chunks located in the cache folder before they' | ||
+ | * garbage collection (in seconds). Increase this value if users have | ||
+ | * issues uploading very large files via the Nextcloud Client as upload isn't | ||
+ | * completed within one day. | ||
+ | * | ||
+ | * Defaults to ``60*60*24`` (1 day) | ||
+ | */ | ||
+ | ' | ||
+ | |||
+ | |||
+ | </ | ||
+ | | ||
installing_apcu_memcache_nextcloud_27_0_ubuntu_22_04.1687673013.txt.gz · Last modified: 2023/06/25 06:03 by wikiadmin