Hashar has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/358799 )
Change subject: swift: save nscd CPU by using IP address ...................................................................... swift: save nscd CPU by using IP address Some of the Swift process send metrics to statsd and the target host is defined as 'localhost'. I found out on labs that it puts load on nscd since each packet ends up triggering: stat('/etc/resolv.conf') open('/etc/host') fstat(</etc/host>) On a labs instance nscd was at 30% or so CPU. I have disabled statsd entirely there. For production switching to '127.0.0.1' should be slightly faster. Ref: https://phabricator.wikimedia.org/T160990#3345809 Bug: T160990 Change-Id: I50a376d2b1922bf85c8db1520e011a8726771a06 --- M hieradata/common/swift/proxy.yaml M hieradata/common/swift/storage.yaml 2 files changed, 7 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/99/358799/1 diff --git a/hieradata/common/swift/proxy.yaml b/hieradata/common/swift/proxy.yaml index 80a026c..07494c9 100644 --- a/hieradata/common/swift/proxy.yaml +++ b/hieradata/common/swift/proxy.yaml @@ -1,4 +1,7 @@ -swift::proxy::statsd_host: 'localhost' +# Use an IP since nscd is so slow +# https://phabricator.wikimedia.org/T160990#3345809 +swift::proxy::statsd_host: '127.0.0.1' + swift::proxy::backend_url_format: 'sitelang' swift::proxy::rewrite_thumb_server: 'imagescaler-rw.discovery.wmnet' swift::proxy::dispersion_account: 'dispersion' diff --git a/hieradata/common/swift/storage.yaml b/hieradata/common/swift/storage.yaml index 2c6160b..cf3961b 100644 --- a/hieradata/common/swift/storage.yaml +++ b/hieradata/common/swift/storage.yaml @@ -1 +1,3 @@ -swift::storage::statsd_host: 'localhost' +# Use an IP since nscd is so slow +# https://phabricator.wikimedia.org/T160990#3345809 +swift::storage::statsd_host: '127.0.0.1' -- To view, visit https://gerrit.wikimedia.org/r/358799 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I50a376d2b1922bf85c8db1520e011a8726771a06 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Hashar <has...@free.fr> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits