Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-4380

adjusting logging needs improvement

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Test Blocker
    • None
    • None
    • None

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              amarantha.kulkarni Amarantha Kulkarni (Inactive)
              ingenthr Matt Ingenthron
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty