Skip to content

Commit

Permalink
[Fixes #184] Bug: running geonode 4.3.0 changed the default memcached…
Browse files Browse the repository at this point in the history
… backend (#186)
  • Loading branch information
mwallschlaeger authored Jun 29, 2024
1 parent 4d4726e commit c1291dc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/geonode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ Helm Chart for Geonode. Supported versions: Geonode: 4.3.0, Geoserver: 2.24.3-v1
| geonode.uwsgi.processes | int | `128` | Maximum number of workers allowed |
| geonode.uwsgi.reload_on_rss | int | `2048` | Restart workers after this much resident memory |
| geonode.uwsgi.worker_reload_mercy | int | `60` | How long to wait before forcefully killing workers |
| geonode.version | string | `"4.3.0"` | geonode version, used for some distinguassion between version of GeoNode |
| geonodeFixtures | map of fixture files | `{"somefixture.json":"[\n {\n \"pk\": 0,\n \"model\": \"myapp.sample\"\n \"description\": \"nice little content\"\n }\n]\n"}` | Fixture files which shall be made available under /usr/src/geonode/geonode/fixtures (refer to https://docs.djangoproject.com/en/4.2/howto/initial-data/) |
| geoserver.container_name | string | `"geoserver"` | geoserver container name |
| geoserver.force_reinit | bool | `true` | set force reinit true so that changing passwords etc. in Values.yaml will take effect after restarting the pod this on the other hand will increase pod initializing time, only change if you know what you are doing |
Expand Down
4 changes: 4 additions & 0 deletions charts/geonode/templates/geonode/geonode-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ data:
HAYSTACK_SEARCH_RESULTS_PER_PAGE: {{ .Values.geonode.haystack.search_results_per_page | quote }}

MEMCACHED_ENABLED: {{ include "boolean2str" .Values.geonode.memcached.enabled | quote }}
{{ if semverCompare ">=4.3.0" .Values.geonode.version }}
MEMCACHED_BACKEND: django.core.cache.backends.memcached.PyLibMCCache
{{ else }}
MEMCACHED_BACKEND: django.core.cache.backends.memcached.MemcachedCache
{{ end }}
MEMCACHED_LOCATION: {{ .Release.Name }}-memcached
MEMCACHED_LOCK_EXPIRE: {{ .Values.geonode.memcached.lock_expire | quote }}
MEMCACHED_LOCK_TIMEOUT: {{ .Values.geonode.memcached.lock_timeout | quote }}
Expand Down
2 changes: 2 additions & 0 deletions charts/geonode/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ global:

# geonode configuration
geonode:
# -- geonode version, used for some distinguassion between version of GeoNode
version: 4.3.0
# -- container name
container_name: geonode
# -- number of geonode replicas (! not working properly yet)
Expand Down

0 comments on commit c1291dc

Please sign in to comment.