Merge lp:~michael.nelson/charms/trusty/squid-reverseproxy/add-max-obj-size-mem into lp:charms/trusty/squid-reverseproxy

Proposed by Michael Nelson
Status: Merged
Merged at revision: 56
Proposed branch: lp:~michael.nelson/charms/trusty/squid-reverseproxy/add-max-obj-size-mem
Merge into: lp:charms/trusty/squid-reverseproxy
Diff against target: 26 lines (+5/-0)
2 files modified
config.yaml (+4/-0)
templates/main_config.template (+1/-0)
To merge this branch: bzr merge lp:~michael.nelson/charms/trusty/squid-reverseproxy/add-max-obj-size-mem
Reviewer Review Type Date Requested Status
Charles Butler (community) Approve
Review via email: mp+264664@code.launchpad.net

Commit message

Add max_obj_size_in_mem_kb option. Bug 1474176

Description of the change

Tested locally with:

$ juju ssh sca-cache/0 "sudo cat /etc/squid3/squid.conf | grep maximum_object"
maximum_object_size 8192 KB

$ make manifests/upgrade-deployment
...
########################
# Succesfully verified #
########################
########################
# Nagios Checks Passed #
########################

$ juju ssh sca-cache/0 "sudo cat /etc/squid3/squid.conf | grep maximum_object"
maximum_object_size 8192 KB
maximum_object_size_in_memory 512 KB

To post a comment you must log in.
Revision history for this message
Charles Butler (lazypower) wrote :

+1 LGTM. Thank you for taking the time to submit this fix for the charm store. We appreciate your work. I've merged this branch and it should be available in the charm store after the next ingestion.

If you have any questions/comments/concerns about the review contact us in #juju on irc.freenode.net or email the mailing list <email address hidden>, or ask a question tagged with "juju" on http://askubuntu.com.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'config.yaml'
--- config.yaml 2014-05-02 15:23:33 +0000
+++ config.yaml 2015-07-14 03:05:30 +0000
@@ -73,6 +73,10 @@
73 type: int73 type: int
74 default: 819274 default: 8192
75 description: Maximum size of an object to be cached (KB).75 description: Maximum size of an object to be cached (KB).
76 max_obj_size_in_mem_kb:
77 type: int
78 default: 512
79 description: Maximum size of an object to be cached in memory (KB).
76 snmp_community:80 snmp_community:
77 type: string81 type: string
78 default: ''82 default: ''
7983
=== modified file 'templates/main_config.template'
--- templates/main_config.template 2015-05-13 04:42:30 +0000
+++ templates/main_config.template 2015-07-14 03:05:30 +0000
@@ -35,6 +35,7 @@
3535
36coredump_dir {{ config.cache_dir }}36coredump_dir {{ config.cache_dir }}
37maximum_object_size {{ config.max_obj_size_kb }} KB37maximum_object_size {{ config.max_obj_size_kb }} KB
38maximum_object_size_in_memory {{ config.max_obj_size_in_mem_kb }} KB
3839
39{% if config.cache_size_mb > 0 -%}40{% if config.cache_size_mb > 0 -%}
40cache_dir aufs {{ config.cache_dir }} {{ config.cache_size_mb }} {{ config.cache_l1 }} {{ config.cache_l2 }}41cache_dir aufs {{ config.cache_dir }} {{ config.cache_size_mb }} {{ config.cache_l1 }} {{ config.cache_l2 }}

Subscribers

People subscribed via source and target branches

to all changes: