diff --git a/modules/learn/pages/buckets-memory-and-storage/storage-engines.adoc b/modules/learn/pages/buckets-memory-and-storage/storage-engines.adoc index 37d47ca109..30ede4fda1 100644 --- a/modules/learn/pages/buckets-memory-and-storage/storage-engines.adoc +++ b/modules/learn/pages/buckets-memory-and-storage/storage-engines.adoc @@ -57,7 +57,7 @@ To learn more about configuring the Writer Thread settings for your Magma bucket Couchstore is the original storage engine for Couchbase Server. It's the only storage engine available in Couchbase Server Community Edition. Couchstore is designed for high performance with datasets that fit in memory. -It has a minimum memory requirement of 100{nbsp}MB per node, and a ecommended minimum memory-to-data ratio of 10%. +It has a minimum memory requirement of 100{nbsp}MB per node, and a minimum memory-to-data ratio of 10%. If you have a small dataset whose working set (frequently accessed data) can fit in memory, then you should consider using Couchstore. == Couchstore verses Magma at a Glance diff --git a/modules/manage/pages/manage-logging/manage-logging.adoc b/modules/manage/pages/manage-logging/manage-logging.adoc index c8113c31bf..936c1907b2 100644 --- a/modules/manage/pages/manage-logging/manage-logging.adoc +++ b/modules/manage/pages/manage-logging/manage-logging.adoc @@ -240,10 +240,20 @@ Couchbase Server rotates log files to prevent them from consuming too much disk It keeps a limited number of past log files in compressed format for reference. Once it reaches the limit on the number of logs files to keep, Couchbase Server deletes the oldest log file. -By default, Couchbase Server rotates the `memcached` log file when it reaches 10{nbsp}MB in size. -In addition to the current uncompressed log file, it keeps 19 past logs. +In Couchbase Server 8.0 and later, Memcached log retention is based on total disk usage (aggregated size) rather than a fixed number of rotated files. +By default, the Memcached log rotates when it reaches ~10 MB. -Couchbase Server rotates other log files automatically when they reach 40{nbsp}MB. +Couchbase Server retains multiple rotated Memcached log files until the combined size of all retained files exceeds a configured aggregate limit. +When you exceed the aggregated size limit, Couchbase Server removes the oldest rotated files as part of the next rotation cycle. +The default aggregate retention cap is 200 MB. + +In addition to size-based rotation, Couchbase Server starts a new Memcached log file when: + +* You restart a Memcached process +* You enable or disable encryption for Memcached logs +* You enable encryption for Memcached logs and a key rotation occurs + +Couchbase Server versions earlier than 8.0 rotates non-Memcached log files automatically when they reach 40{nbsp}MB. It keeps the current version of the log, plus up to 9 compressed past logs. ==== Changing Log Rotation Settings @@ -254,7 +264,9 @@ It does not propagate to other nodes in the cluster. NOTE: Couchbase Server upgrades can overwrite `static_config`, losing any of your modifications. -To change log rotation settings, follow these steps: +In Couchbase 8.0+, Memcached log rotation uses internal configuration and an aggregate‑size retention limit, which you may not be able to configure in all releases. + +To change log rotation settings for non-Memcached logs, follow these steps: . Log into a node as `root` or the user who owns the Couchbase Server files. You can also use `sudo` to gain the necessary permissions.