Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 16 additions & 4 deletions modules/manage/pages/manage-logging/manage-logging.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down