Details
-
Bug
-
Resolution: Won't Fix
-
Test Blocker
-
None
-
None
-
None
-
*Location*: https://docs.couchbase.com/server/6.0/manage/manage-logging/manage-logging.html
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
*Screen Resolution*: 1920 x 1080
Description
My use case: I have some slow operations, so I want to see what is logged at the cluster. After searching a bit, I find this page. It does identify "slow operations" going to the memcached.log.
After looking at the memcached.log, I don't see the slow operations in there. I don't know what the thresholds are for logging.
Looking at how to adjust the logging, I'm told to look at etc/couchbase/static_config.
This file contains a set of Erlang terms:
{error_logger_mf_dir, "/opt/couchbase/var/lib/couchbase/logs"}.
|
{path_config_bindir, "/opt/couchbase/bin"}.
|
{path_config_etcdir, "/opt/couchbase/etc/couchbase"}.
|
{path_config_libdir, "/opt/couchbase/lib"}.
|
{path_config_datadir, "/opt/couchbase/var/lib/couchbase"}.
|
{path_config_tmpdir, "/opt/couchbase/var/lib/couchbase/tmp"}.
|
{path_config_secdir, "/opt/couchbase/etc/security"}.
|
|
{nodefile, "/opt/couchbase/var/lib/couchbase/couchbase-server.node"}.
|
|
{loglevel_default, debug}.
|
{loglevel_couchdb, info}.
|
{loglevel_ns_server, debug}.
|
{loglevel_error_logger, debug}.
|
{loglevel_user, debug}.
|
{loglevel_menelaus, debug}.
|
{loglevel_ns_doctor, debug}.
|
{loglevel_stats, debug}.
|
{loglevel_rebalance, debug}.
|
{loglevel_cluster, debug}.
|
{loglevel_views, debug}.
|
{loglevel_mapreduce_errors, debug}.
|
{loglevel_xdcr, debug}.
|
{loglevel_access, info}.
|
|
{disk_sink_opts,
|
[{rotation, [{compress, true},
|
{size, 41943040},
|
{num_files, 10},
|
{buffer_size_max, 52428800}]}]}.
|
|
{disk_sink_opts_json_rpc,
|
[{rotation, [{compress, true},
|
{size, 41943040},
|
{num_files, 2},
|
{buffer_size_max, 52428800}]}]}.
|
|
{net_kernel_verbosity, 10}.
|
{ipv6, false}.
|
Problem: For the average user, this will not end well. This is not a file with simple thresholds to adjust, and I cannot see any documentation beyond this.
Personally speaking, I can/have written erlang code and I actually know what our config is, but I'd have to dive into source code to know what erlang terms to put in here. The word memcached does not appear here. I suspect I need to adjust arguments to it, but the method of doing that is not well described.
Suggested Solution: Add documentation on how to handle this.
Attachments
Issue Links
- relates to
-
MB-31913 add some clues for adjusting logging to static_config
- Open