Skip to content

Commit 45a4b9b

Browse files
committed
Updated values.schema.json
1 parent 543276a commit 45a4b9b

File tree

3 files changed

+78
-2
lines changed

3 files changed

+78
-2
lines changed

charts/eoapi/values.schema.json

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,82 @@
272272
"resources": {
273273
"type": "object",
274274
"description": "Resource requirements"
275+
},
276+
"pgstacSettings": {
277+
"type": "object",
278+
"description": "PgSTAC database configuration settings",
279+
"properties": {
280+
"queue_timeout": {
281+
"type": "string",
282+
"default": "10 minutes",
283+
"description": "Timeout for queued queries (PostgreSQL interval format)"
284+
},
285+
"use_queue": {
286+
"type": "string",
287+
"enum": ["true", "false"],
288+
"default": "true",
289+
"description": "Enable/disable query queue mechanism"
290+
},
291+
"update_collection_extent": {
292+
"type": "string",
293+
"enum": ["true", "false"],
294+
"default": "false",
295+
"description": "Auto-update collection extents when items are added/modified"
296+
},
297+
"context": {
298+
"type": "string",
299+
"enum": ["on", "off", "auto"],
300+
"default": "auto",
301+
"description": "Context mode for search results"
302+
},
303+
"context_estimated_count": {
304+
"type": "string",
305+
"default": "100000",
306+
"description": "Row threshold for using estimates instead of exact counts"
307+
},
308+
"context_estimated_cost": {
309+
"type": "string",
310+
"default": "100000",
311+
"description": "Query cost threshold for using estimates"
312+
},
313+
"context_stats_ttl": {
314+
"type": "string",
315+
"default": "1 day",
316+
"description": "Cache duration for context statistics (PostgreSQL interval)"
317+
}
318+
}
319+
},
320+
"queueProcessor": {
321+
"type": "object",
322+
"description": "Queue processor CronJob configuration (active when use_queue is true)",
323+
"properties": {
324+
"schedule": {
325+
"type": "string",
326+
"default": "0 * * * *",
327+
"description": "Cron schedule for processing queued queries"
328+
},
329+
"command": {
330+
"type": "string",
331+
"default": "RUN run_queued_queries();",
332+
"description": "SQL command to process queue"
333+
}
334+
}
335+
},
336+
"extentUpdater": {
337+
"type": "object",
338+
"description": "Extent updater CronJob configuration (active when update_collection_extent is false)",
339+
"properties": {
340+
"schedule": {
341+
"type": "string",
342+
"default": "0 2 * * *",
343+
"description": "Cron schedule for updating collection extents"
344+
},
345+
"command": {
346+
"type": "string",
347+
"default": "SELECT update_collection_extents();",
348+
"description": "SQL command to update extents"
349+
}
350+
}
275351
}
276352
}
277353
}

charts/eoapi/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ pgstacBootstrap:
196196
# Queue processing configuration (only used when use_queue is "true")
197197
queueProcessor:
198198
schedule: "0 * * * *" # Run every hour
199-
command: "SELECT run_queued_queries();"
199+
command: "RUN run_queued_queries();"
200200

201201
# Extent updater configuration (only used when update_collection_extent is "false")
202202
extentUpdater:

docs/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Two CronJobs are conditionally created based on PgSTAC settings:
108108

109109
**Queue Processor** (when `use_queue: "true"`):
110110
- `queueProcessor.schedule`: "0 * * * *" (hourly)
111-
- `queueProcessor.command`: "SELECT run_queued_queries();"
111+
- `queueProcessor.command`: "RUN run_queued_queries();"
112112

113113
**Extent Updater** (when `update_collection_extent: "false"`):
114114
- `extentUpdater.schedule`: "0 2 * * *" (daily at 2 AM)

0 commit comments

Comments
 (0)