Skip to content

Commit 709999e

Browse files
committed
Enable setting output limit for TAP capabilities per environment
1 parent 850bae7 commit 709999e

File tree

6 files changed

+34
-0
lines changed

6 files changed

+34
-0
lines changed

applications/tap/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ IVOA TAP service
1212
| Key | Type | Default | Description |
1313
|-----|------|---------|-------------|
1414
| cadc-tap.config.backend | string | `"qserv"` | What type of backend? |
15+
| cadc-tap.config.outputLimit | string | `"3221225472"` | 3GB byte limit for Qserv |
16+
| cadc-tap.config.outputLimitUnit | string | `"byte"` | |
1517
| cadc-tap.config.sentryEnabled | bool | `false` | Whether Sentry is enabled in this environment |
1618
| cadc-tap.config.serviceName | string | `"tap"` | Name of the service from Gafaelfawr's perspective |
1719
| cadc-tap.config.vaultSecretName | string | `"tap"` | Vault secret name: the final key in the vault path |

applications/tap/values-idfdev.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
cadc-tap:
22
config:
3+
qserv:
4+
image:
5+
tag: "tickets-DM-54497"
6+
pullPolicy: "Always"
37
kafka:
48
enabled: true
59

applications/tap/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ cadc-tap:
1616
# -- Whether Sentry is enabled in this environment
1717
sentryEnabled: false
1818

19+
# -- 3GB byte limit for Qserv
20+
outputLimit: "3221225472"
21+
outputLimitUnit: "byte"
22+
1923
serviceAccount:
2024
# -- Name of the Kubernetes `ServiceAccount`, used for CloudSQL access
2125
name: "tap"

charts/cadc-tap/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ IVOA TAP service
4242
| config.kafka.topics.jobDelete | string | `"lsst.tap.job-delete"` | Job Delete topic |
4343
| config.kafka.topics.jobRun | string | `"lsst.tap.job-run"` | Job Run topic |
4444
| config.kafka.topics.jobStatus | string | `"lsst.tap.job-status"` | Job Status topic |
45+
| config.maxRec | string | `""` | Maximum row limit (MAXREC) enforced server-side. Leave empty to use the default (100000000). |
46+
| config.outputLimit | string | `""` | Output limit value for TAP queries advertised in capabilities. Leave empty to use the default (100000000). |
47+
| config.outputLimitUnit | string | `""` | Unit for the output limit: "byte" or "row". Leave empty to use the default ("row"). |
4548
| config.pg.database | string | None, must be set if backend is `pg` | Database to connect to |
4649
| config.pg.host | string | None, must be set if backend is `pg` | Host to connect to |
4750
| config.pg.image.pullPolicy | string | `"IfNotPresent"` | Pull policy for the TAP image |

charts/cadc-tap/templates/tap-deployment.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,15 @@ spec:
182182
-Dkafka.status.topic={{ .Values.config.kafka.topics.jobStatus }}
183183
-Dkafka.delete.topic={{ .Values.config.kafka.topics.jobDelete }}
184184
{{- end }}
185+
{{- if .Values.config.outputLimit }}
186+
-Dtap.outputLimit={{ .Values.config.outputLimit }}
187+
{{- end }}
188+
{{- if .Values.config.outputLimitUnit }}
189+
-Dtap.outputLimitUnit={{ .Values.config.outputLimitUnit }}
190+
{{- end }}
191+
{{- if .Values.config.maxRec }}
192+
-Dtap.maxRec={{ .Values.config.maxRec }}
193+
{{- end }}
185194
-Dbase_url={{ .Values.global.baseUrl }}
186195
-Dpath_prefix=/api/{{ .Values.ingress.path }}
187196
-Dca.nrc.cadc.util.PropertiesReader.dir=/config/

charts/cadc-tap/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,18 @@ config:
183183
# -- Whether kafka is enabled
184184
enabled: false
185185

186+
# -- Output limit value for TAP queries advertised in capabilities.
187+
# Leave empty to use the default (100000000).
188+
outputLimit: ""
189+
190+
# -- Unit for the output limit: "byte" or "row".
191+
# Leave empty to use the default ("row").
192+
outputLimitUnit: ""
193+
194+
# -- Maximum row limit (MAXREC) enforced server-side.
195+
# Leave empty to use the default (100000000).
196+
maxRec: ""
197+
186198
# -- Rules for renaming Columns
187199
urlRewrite:
188200

0 commit comments

Comments
 (0)