Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1780 from weaveworks/cache-size
Browse files Browse the repository at this point in the history
Increase memcached memory defaults
  • Loading branch information
stefanprodan authored Feb 28, 2019
2 parents 4c8214f + 81688e2 commit b61519a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions chart/flux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ The following tables lists the configurable parameters of the Weave Flux chart a
| `registry.dockercfg.enabled` | Mount `config.json` via Secret into the Flux Pod, enabling Flux to use a custom docker config file | `false`
| `registry.dockercfg.secretName` | Kubernetes secret with the docker config.json | `None`
| `memcached.verbose` | Enable request logging in memcached | `false`
| `memcached.maxItemSize` | Maximum size for one item | `1m`
| `memcached.maxMemory` | Maximum memory to use, in megabytes | `64`
| `memcached.maxItemSize` | Maximum size for one item | `5m`
| `memcached.maxMemory` | Maximum memory to use, in megabytes | `128`
| `memcached.pullSecret` | Image pull secret | `None`
| `memcached.repository` | Image repository | `memcached`
| `memcached.resources` | CPU/memory resource requests/limits for memcached | `None`
Expand Down
8 changes: 4 additions & 4 deletions chart/flux/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ memcached:
pullSecret:
createClusterIP: true
verbose: false
maxItemSize: 1m
maxMemory: 64
maxItemSize: 5m
maxMemory: 128
nodeSelector: {}
tolerations: []
affinity: {}
Expand All @@ -166,10 +166,10 @@ memcached:
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 70Mi
# memory: 256Mi
# requests:
# cpu: 50m
# memory: 64Mi
# memory: 128Mi

ssh:
# Overrides for git over SSH. If you use your own git server, you
Expand Down
5 changes: 3 additions & 2 deletions deploy/memcache-dep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ spec:
image: memcached:1.4.25
imagePullPolicy: IfNotPresent
args:
- -m 64 # Maximum memory to use, in megabytes. 64MB is default.
- -p 11211 # Default port, but being explicit is nice.
- -m 128 # Maximum memory to use, in megabytes
- -I 5m # Maximum size for one item
- -p 11211 # Default port
# - -vv # Uncomment to get logs of each request and response.
ports:
- name: clients
Expand Down

0 comments on commit b61519a

Please sign in to comment.