Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fixes #184] Bug: running geonode 4.3.0 changed the default memcachedbackend #186

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading