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 #222] Bug: running into sorry, too many clients already when using geonode api intense #232

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
8 changes: 6 additions & 2 deletions charts/geonode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ Helm Chart for Geonode. Supported versions: Geonode: 4.4.0, Geoserver: 2.24.4-v1
| geonode.resources.limits.memory | string | `"2Gi"` | limits memory as in resource.limits.memory (https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) |
| geonode.resources.requests.cpu | int | `1` | requested cpu as in resource.requests.cpu (https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) |
| geonode.resources.requests.memory | string | `"1Gi"` | requested memory as in resource.requests.memory (https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) |
| geonode.secret.bing.apiKey | string | `""` | |
| geonode.secret.django.secretKey | string | `"myv-y4#7j-d*p-__@j#*3z@!y24fz8%^z2v6atuy4bo9vqr1_a"` | |
| geonode.secret.existingSecretName | string | `""` | name of an existing Secret to use. Set, if you want to separately maintain the Secret. |
| geonode.secret.ldap.bind_password | string | `"password"` | ldap password |
| geonode.secret.mail.from | string | `"[email protected]"` | define from mail-addr |
Expand All @@ -122,8 +124,6 @@ Helm Chart for Geonode. Supported versions: Geonode: 4.4.0, Geoserver: 2.24.4-v1
| geonode.secret.superUser.email | string | `"[email protected]"` | admin user password |
| geonode.secret.superUser.password | string | `"geonode"` | admin panel password |
| geonode.secret.superUser.username | string | `"admin"` | admin username |
| geonode.secret.bing.apiKey | string | `""` | API Key for Bing Maps. |
| geonode.secret.django.secretKey | string | `"!^gs*4^y81)#qt1n8!#3hzd221boe3_2x+s%t9buh#qwm)q)cb"` | Django SECRET_KEY setting. It is recommended to change it prior production use. |
| geonode.sentry.build_number | int | `0` | sentry build number |
| geonode.sentry.dsn | string | `""` | sentry dsn url |
| geonode.sentry.enabled | bool | `false` | enable sentry integration for geonode |
Expand Down Expand Up @@ -157,6 +157,7 @@ Helm Chart for Geonode. Supported versions: Geonode: 4.4.0, Geoserver: 2.24.4-v1
| geoserver.imagePullPolicy | string | `"IfNotPresent"` | geoserver image pull policy |
| geoserver.imagePullSecret | string | `""` | pull secret to use for geoserver image |
| geoserver.port | int | `8080` | geoserver port |
| geoserver.printing.extraHosts | string | `""` | |
| geoserver.resources.limits.cpu | int | `2` | limit cpu as in resource.requests.cpu (https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) |
| geoserver.resources.limits.memory | string | `"4Gi"` | limits memory as in resource.limits.memory (https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) |
| geoserver.resources.requests.cpu | int | `1` | requested cpu as in resource.requests.cpu (https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) |
Expand Down Expand Up @@ -203,6 +204,9 @@ Helm Chart for Geonode. Supported versions: Geonode: 4.4.0, Geoserver: 2.24.4-v1
| postgres.geodata_databasename_and_username | string | `"geodata"` | geoserver database name and username |
| postgres.geonode_databasename_and_username | string | `"geonode"` | geonode database name and username |
| postgres.operator.numberOfInstances | int | `1` | number of database instances |
| postgres.operator.parameters.max_connections | int | `200` | |
| postgres.operator.parameters.shared_buffers | string | `"1Gb"` | |
| postgres.operator.parameters.work_mem | string | `"64Mb"` | |
| postgres.operator.pod_name | string | `"postgresql"` | pod name for postgres containers == teamID for mainifest |
| postgres.operator.postgres_version | int | `15` | postgres version |
| postgres.operator.storageSize | string | `"3Gi"` | Database storage size |
Expand Down
4 changes: 4 additions & 0 deletions charts/geonode/templates/postgres/postgresql-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,9 @@ spec:
pg_partman: {{ .Values.postgres.schema }}
postgis: {{ .Values.postgres.schema }}
postgresql:
parameters:
max_connections: {{ .Values.postgres.operator.parameters.max_connections }}
shared_buffers: {{ .Values.postgres.operator.parameters.shared_buffers }}
work_mem: {{ .Values.postgres.operator.parameters.work_mem }}
version: {{ .Values.postgres.operator.postgres_version | quote }}
{{ end }}
11 changes: 7 additions & 4 deletions charts/geonode/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,9 @@ geoserver:
port: 8080
printing:
extraHosts: |
# - !dnsMatch
# host: data.geopf.fr
# port: 80
# - !dnsMatch
# host: data.geopf.fr
# port: 80

secret:
# -- name of an existing Secret to use. Set, if you want to separately maintain the Secret.
Expand Down Expand Up @@ -686,7 +686,10 @@ postgres:
# database passwords are set randomly
# infos @ https://postgres-operator.readthedocs.io/en/refactoring-sidecars/user/
# get password after creation via: kubectl get secret {{ .Release.name }}.{{ .Release.name }}-{{ container_name }}.credentials -o 'jsonpath={.data.password}' | base64 -d

parameters:
max_connections: 200
shared_buffers: 1Gb
work_mem: 64Mb
external:
hostname: my-external-postgres.com
port: 5432
Expand Down