d8307d
commit d34d4c80226b3f5a1b51a8e5b005a52fba07d7ba
d8307d
Author: Carlos O'Donell <carlos@redhat.com>
d8307d
Date:   Wed Mar 20 22:11:32 2019 -0400
d8307d
d8307d
    nscd: Improve nscd.conf comments.
d8307d
    
d8307d
    This change adds a warning to nscd.conf about running multiple caching
d8307d
    services together and that it may lead to unexpected behaviours. Also we
d8307d
    add a note that enabling the 'shared' option will cause cache hit rates
d8307d
    to be misreported (a side effect of the implementation).
d8307d
    
d8307d
    v2
d8307d
    - Rewrite comment to avoid implementation details.
d8307d
d8307d
diff --git a/nscd/nscd.conf b/nscd/nscd.conf
d8307d
index 39b875912d..487ffe461d 100644
d8307d
--- a/nscd/nscd.conf
d8307d
+++ b/nscd/nscd.conf
d8307d
@@ -3,6 +3,9 @@
d8307d
 #
d8307d
 # An example Name Service Cache config file.  This file is needed by nscd.
d8307d
 #
d8307d
+# WARNING: Running nscd with a secondary caching service like sssd may lead to
d8307d
+#          unexpected behaviour, especially with how long entries are cached.
d8307d
+#
d8307d
 # Legal entries are:
d8307d
 #
d8307d
 #	logfile			<file>
d8307d
@@ -23,6 +26,9 @@
d8307d
 #	check-files		<service> <yes|no>
d8307d
 #	persistent		<service> <yes|no>
d8307d
 #	shared			<service> <yes|no>
d8307d
+#	NOTE: Setting 'shared' to a value of 'yes' will accelerate the lookup,
d8307d
+#	      but those lookups will not be counted as cache hits
d8307d
+#	      i.e. 'nscd -g' may show '0%'.
d8307d
 #	max-db-size		<service> <number bytes>
d8307d
 #	auto-propagate		<service> <yes|no>
d8307d
 #