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