Skip to content

Commit

Permalink
Add HouseKeeper configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
sdauhuchytsrf committed Sep 30, 2024
1 parent 811c31c commit da902a3
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/faceapi/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: v2
name: faceapi
home: https://faceapi.regulaforensics.com/
version: 1.5.5
version: 1.5.6
appVersion: nightly
description: Face Recognition Service. On-premise and cloud integration
icon: https://secure.gravatar.com/avatar/71a5efd69d82e444129ad18f51224bbb.jpg
Expand Down
13 changes: 13 additions & 0 deletions charts/faceapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,19 @@ The command removes all the Kubernetes components associated with the chart and
| `config.service.liveness.sessions.persistence.existingClaim` | Name of the existing Persistent Volume Claim | `""` |


## HouseKeeper parameters

| Parameter | Description | Default |
|-----------------------------------------------|--------------------------------------------------------------------|------------|
| `config.service.houseKeeper.enabled` | Whether to enable HouseKeeper | `true` |
| `config.service.houseKeeper.beatCadence` | HouseKeeper beat cadence in seconds | `10` |
| `config.service.houseKeeper.keepFor` | Time for keeping houseKeeper statistics in the database in seconds | `14400` |
| `config.service.houseKeeper.liveness.enabled` | Whether to enable clearing data for liveness | `false` |
| `config.service.houseKeeper.liveness.keepFor` | Time for keeping data for liveness in seconds | `31536000` |
| `config.service.houseKeeper.search.enabled` | Whether to enable clearing data for search | `false` |
| `config.service.houseKeeper.search.keepFor` | Time for keeping data for search in seconds | `31536000` |


## Search parameters

| Parameter | Description | Default |
Expand Down
13 changes: 13 additions & 0 deletions charts/faceapi/templates/config.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,19 @@ service:
{{- else }}
{{- end }}

houseKeeper:
enabled: {{ .Values.config.service.houseKeeper.enabled }}
{{- if .Values.config.service.houseKeeper.enabled }}
beatCadence: {{ .Values.config.service.houseKeeper.beatCadence }}
keepFor: {{ .Values.config.service.houseKeeper.keepFor }}
liveness:
enabled: {{ .Values.config.service.houseKeeper.liveness.enabled }}
keepFor: {{ .Values.config.service.houseKeeper.liveness.keepFor | int64 }}
search:
enabled: {{ .Values.config.service.houseKeeper.search.enabled }}
keepFor: {{ .Values.config.service.houseKeeper.search.keepFor | int64 }}
{{- end }}

search:
enabled: {{ .Values.config.service.search.enabled }}
{{- if .Values.config.service.search.enabled }}
Expand Down
14 changes: 14 additions & 0 deletions charts/faceapi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,20 @@ config:
# If defined, PVC must be created manually before volume will be bound
existingClaim: ~

# Housekeeper configuration, for the cases when needs to have automatic cleanup of the data
# The housekeeper is responsible for cleaning up the data in the storage and database
# By default housekeeper is enabled, but clearing data for search and liveness is disabled
houseKeeper:
enabled: true
beatCadence: 10
keepFor: 14400 # 4 hours, time for keeping houseKeeper statistics in the database
liveness:
enabled: false
keepFor: 31536000 # 1 year
search:
enabled: false
keepFor: 31536000 # 1 year

search:
enabled: false
persons:
Expand Down

0 comments on commit da902a3

Please sign in to comment.