Merge lp://staging/~michael.nelson/charms/trusty/squid-reverseproxy/1454485-set-visible-hostname into lp://staging/charms/trusty/squid-reverseproxy

Proposed by Michael Nelson
Status: Merged
Merged at revision: 55
Proposed branch: lp://staging/~michael.nelson/charms/trusty/squid-reverseproxy/1454485-set-visible-hostname
Merge into: lp://staging/charms/trusty/squid-reverseproxy
Diff against target: 20 lines (+2/-0)
2 files modified
hooks/hooks.py (+1/-0)
templates/main_config.template (+1/-0)
To merge this branch: bzr merge lp://staging/~michael.nelson/charms/trusty/squid-reverseproxy/1454485-set-visible-hostname
Reviewer Review Type Date Requested Status
Tim Van Steenburgh (community) Approve
Review via email: mp+258959@code.staging.launchpad.net

Commit message

Add visible_hostname to avoid excessive DNS queries (bug 1454485)

Description of the change

See bug 1454485 for the details.

Tested locally with a (private) deployment upgrade at:
https://code.launchpad.net/~michael.nelson/canonical-mojo-specs/sca-upgrade-squid-visible-hostname/+merge/258956

Before upgrade:

dev-trusty# ~/charms/squid/trusty/squid-reverseproxy
$ juju run --service sca-cache "head /etc/squid3/squid.conf"
http_port 3128 accel vhost
acl PURGE method PURGE
acl CONNECT method CONNECT
...

After upgrade:
dev-trusty# ~/charms/squid/trusty/squid-reverseproxy
$ juju run --service sca-cache "head /etc/squid3/squid.conf"
visible_hostname michael-local-machine-3
http_port 3128 accel vhost
acl PURGE method PURGE
acl CONNECT method CONNECT
...

Locally I don't have any rDNS issues, but I've manually checked on our staging env to verify that adding the generated visible_hostname does stop the log messages (and from the squid code, the excessive DNS queries).

To post a comment you must log in.
Revision history for this message
Tim Van Steenburgh (tvansteenburgh) wrote :

+1, LGTM, thanks Michael!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: