Skip to content
Merged
2 changes: 1 addition & 1 deletion tools/deployment/package-helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: "v2"
name: "clp"
version: "0.1.2-dev.11"
version: "0.1.2-dev.14"
description: "A Helm chart for CLP's (Compressed Log Processor) package deployment"
type: "application"
appVersion: "0.7.1-dev"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ spec:
value: "/opt/clp/lib/python3/site-packages"
volumeMounts:
- {{- include "clp.logsInputVolumeMount" . | nindent 14 }}
- name: "config"
mountPath: "/etc/clp-config.yaml"
subPath: "clp-config.yaml"
readOnly: true
- name: {{ include "clp.volumeName" (dict
"component_category" "compression-scheduler"
"name" "logs"
Expand All @@ -81,6 +77,10 @@ spec:
"name" "user-logs"
) | quote }}
mountPath: "/var/log/user"
- name: "config"
mountPath: "/etc/clp-config.yaml"
subPath: "clp-config.yaml"
readOnly: true
command: [
"python3", "-u",
"-m", "job_orchestration.scheduler.compress.compression_scheduler",
Expand Down
28 changes: 14 additions & 14 deletions tools/deployment/package-helm/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
data:
clp-config.yaml: |
archive_output:
compression_level: {{ .Values.clpConfig.archive_output.compression_level }}
compression_level: {{ .Values.clpConfig.archive_output.compression_level | int }}
storage:
directory: "/var/data/archives"
type: "fs"
Expand All @@ -27,7 +27,7 @@ data:
jobs_poll_delay: {{ .Values.clpConfig.compression_scheduler.jobs_poll_delay }}
logging_level: {{ .Values.clpConfig.compression_scheduler.logging_level | quote }}
max_concurrent_tasks_per_job: {{
.Values.clpConfig.compression_scheduler.max_concurrent_tasks_per_job }}
.Values.clpConfig.compression_scheduler.max_concurrent_tasks_per_job | int }}
compression_worker:
logging_level: {{ .Values.clpConfig.compression_worker.logging_level | quote }}
data_directory: "/var/data"
Expand All @@ -39,7 +39,7 @@ data:
database:
auto_commit: false
compress: true
host: {{ include "clp.fullname" . }}-database
host: "{{ include "clp.fullname" . }}-database"
names:
clp: {{ .Values.clpConfig.database.names.clp | quote }}
port: 3306
Expand All @@ -53,30 +53,30 @@ data:
query_engine: {{ .Values.clpConfig.package.query_engine | quote }}
storage_engine: {{ .Values.clpConfig.package.storage_engine | quote }}
query_scheduler:
host: {{ include "clp.fullname" . }}-query-scheduler
host: "{{ include "clp.fullname" . }}-query-scheduler"
jobs_poll_delay: {{ .Values.clpConfig.query_scheduler.jobs_poll_delay }}
logging_level: {{ .Values.clpConfig.query_scheduler.logging_level | quote }}
num_archives_to_search_per_sub_job: {{
.Values.clpConfig.query_scheduler.num_archives_to_search_per_sub_job }}
.Values.clpConfig.query_scheduler.num_archives_to_search_per_sub_job | int }}
port: 7000
query_worker:
logging_level: {{ .Values.clpConfig.query_worker.logging_level | quote }}
queue:
host: {{ include "clp.fullname" . }}-queue
host: "{{ include "clp.fullname" . }}-queue"
port: 5672
redis:
compression_backend_database: {{ .Values.clpConfig.redis.compression_backend_database }}
host: {{ include "clp.fullname" . }}-redis
compression_backend_database: {{ .Values.clpConfig.redis.compression_backend_database | int }}
host: "{{ include "clp.fullname" . }}-redis"
port: 6379
query_backend_database: {{ .Values.clpConfig.redis.query_backend_database }}
query_backend_database: {{ .Values.clpConfig.redis.query_backend_database | int }}
reducer:
base_port: 14009
host: {{ include "clp.fullname" . }}-reducer
host: "{{ include "clp.fullname" . }}-reducer"
logging_level: {{ .Values.clpConfig.reducer.logging_level | quote }}
upsert_interval: {{ .Values.clpConfig.reducer.upsert_interval }}
upsert_interval: {{ .Values.clpConfig.reducer.upsert_interval | int }}
results_cache:
db_name: {{ .Values.clpConfig.results_cache.db_name | quote }}
host: {{ include "clp.fullname" . }}-results-cache
host: "{{ include "clp.fullname" . }}-results-cache"
port: 27017
{{- if .Values.clpConfig.results_cache.retention_period }}
retention_period: {{ .Values.clpConfig.results_cache.retention_period | int }}
Expand All @@ -93,7 +93,7 @@ data:
webui:
host: "localhost"
port: 4000
rate_limit: {{ .Values.clpConfig.webui.rate_limit }}
rate_limit: {{ .Values.clpConfig.webui.rate_limit | int }}
results_metadata_collection_name: {{ .Values.clpConfig.webui.results_metadata_collection_name
| quote }}

Expand Down Expand Up @@ -163,7 +163,7 @@ data:
"StreamFilesS3Region": null,
"StreamFilesS3PathPrefix": null,
"StreamFilesS3Profile": null,
"ArchiveOutputCompressionLevel": {{ .Values.clpConfig.archive_output.compression_level }},
"ArchiveOutputCompressionLevel": {{ .Values.clpConfig.archive_output.compression_level | int }},
"ArchiveOutputTargetArchiveSize":
{{ .Values.clpConfig.archive_output.target_archive_size | int }},
"ArchiveOutputTargetDictionariesSize":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ spec:
- name: "database"
containerPort: 3306
volumeMounts:
- name: "config"
mountPath: "/etc/mysql/conf.d/logging.cnf"
subPath: "mysql-logging.cnf"
readOnly: true
- name: {{ include "clp.volumeName" (dict
"component_category" "database"
"name" "data"
Expand All @@ -67,6 +63,10 @@ spec:
"name" "logs"
) | quote }}
mountPath: "/var/log/mysql"
- name: "config"
mountPath: "/etc/mysql/conf.d/logging.cnf"
subPath: "mysql-logging.cnf"
readOnly: true
readinessProbe:
{{- include "clp.readinessProbeTimings" . | nindent 12 }}
exec: &database-health-check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,6 @@ spec:
- name: "PYTHONPATH"
value: "/opt/clp/lib/python3/site-packages"
volumeMounts:
- name: "config"
mountPath: "/etc/clp-config.yaml"
subPath: "clp-config.yaml"
readOnly: true
- name: "tmp"
mountPath: "/var/log"
- name: {{ include "clp.volumeName" (dict
"component_category" "garbage-collector"
"name" "logs"
Expand All @@ -80,6 +74,12 @@ spec:
"name" "streams"
) | quote }}
mountPath: "/var/data/streams"
- name: "config"
mountPath: "/etc/clp-config.yaml"
subPath: "clp-config.yaml"
readOnly: true
- name: "tmp"
mountPath: "/var/log"
command: [
"python3", "-u",
"-m", "job_orchestration.garbage_collector.garbage_collector",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,28 +70,28 @@ spec:
ports:
- name: "query-scheduler"
containerPort: 7000
readinessProbe:
{{- include "clp.readinessProbeTimings" . | nindent 12 }}
tcpSocket: &query-scheduler-health-check
port: 7000
livenessProbe:
{{- include "clp.livenessProbeTimings" . | nindent 12 }}
tcpSocket: *query-scheduler-health-check
volumeMounts:
- name: "config"
mountPath: "/etc/clp-config.yaml"
subPath: "clp-config.yaml"
readOnly: true
- name: {{ include "clp.volumeName" (dict
"component_category" "query-scheduler"
"name" "logs"
) | quote }}
mountPath: "/var/log/query_scheduler"
- name: "config"
mountPath: "/etc/clp-config.yaml"
subPath: "clp-config.yaml"
readOnly: true
command: [
"python3", "-u",
"-m", "job_orchestration.scheduler.query.query_scheduler",
"--config", "/etc/clp-config.yaml"
]
readinessProbe:
{{- include "clp.readinessProbeTimings" . | nindent 12 }}
tcpSocket: &query-scheduler-health-check
port: "query-scheduler"
livenessProbe:
{{- include "clp.livenessProbeTimings" . | nindent 12 }}
tcpSocket: *query-scheduler-health-check
volumes:
- {{- include "clp.pvcVolume" (dict
"root" .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ spec:
- name: "PYTHONPATH"
value: "/opt/clp/lib/python3/site-packages"
volumeMounts:
- name: "config"
mountPath: "/etc/clp-config.yaml"
subPath: "clp-config.yaml"
readOnly: true
- name: {{ include "clp.volumeName" (dict
"component_category" "query-worker"
"name" "logs"
Expand All @@ -64,6 +60,10 @@ spec:
"name" "streams"
) | quote }}
mountPath: "/var/data/streams"
- name: "config"
mountPath: "/etc/clp-config.yaml"
subPath: "clp-config.yaml"
readOnly: true
command: [
"python3", "-u",
"/opt/clp/lib/python3/site-packages/bin/celery",
Expand Down
18 changes: 9 additions & 9 deletions tools/deployment/package-helm/templates/redis-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ spec:
- name: "redis"
image: "redis:7.2.4"
imagePullPolicy: "Always"
command: [
"redis-server",
"/etc/redis/redis.conf",
"--requirepass", "$(REDIS_PASSWORD)"
]
env:
- name: "REDIS_PASSWORD"
valueFrom:
Expand All @@ -41,10 +36,6 @@ spec:
- name: "redis"
containerPort: 6379
volumeMounts:
- name: "config"
mountPath: "/etc/redis/redis.conf"
subPath: "redis.conf"
readOnly: true
- name: {{ include "clp.volumeName" (dict
"component_category" "redis"
"name" "data"
Expand All @@ -55,6 +46,15 @@ spec:
"name" "logs"
) | quote }}
mountPath: "/var/log/redis"
- name: "config"
mountPath: "/etc/redis/redis.conf"
subPath: "redis.conf"
readOnly: true
command: [
"redis-server",
"/etc/redis/redis.conf",
"--requirepass", "$(REDIS_PASSWORD)"
]
readinessProbe:
{{- include "clp.readinessProbeTimings" . | nindent 12 }}
exec: &redis-health-check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ spec:
- name: "PYTHONPATH"
value: "/opt/clp/lib/python3/site-packages"
volumeMounts:
- name: "config"
mountPath: "/etc/clp-config.yaml"
subPath: "clp-config.yaml"
readOnly: true
- name: {{ include "clp.volumeName" (dict
"component_category" "reducer"
"name" "logs"
) | quote }}
mountPath: "/var/log/reducer"
- name: "config"
mountPath: "/etc/clp-config.yaml"
subPath: "clp-config.yaml"
readOnly: true
command: [
"python3", "-u",
"-m", "job_orchestration.reducer.reducer",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,10 @@ spec:
- name: "results-cache"
image: "mongo:7.0.1"
imagePullPolicy: "Always"
args: [
"--config", "/etc/mongo/mongod.conf",
"--bind_ip", "0.0.0.0"
]
ports:
- name: "results-cache"
containerPort: 27017
volumeMounts:
- name: "config"
mountPath: "/etc/mongo/mongod.conf"
subPath: "mongod.conf"
readOnly: true
- name: {{ include "clp.volumeName" (dict
"component_category" "results-cache"
"name" "data"
Expand All @@ -48,6 +40,14 @@ spec:
"name" "logs"
) | quote }}
mountPath: "/var/log/mongodb"
- name: "config"
mountPath: "/etc/mongo/mongod.conf"
subPath: "mongod.conf"
readOnly: true
args: [
"--config", "/etc/mongo/mongod.conf",
"--bind_ip", "0.0.0.0"
]
readinessProbe:
{{- include "clp.readinessProbeTimings" . | nindent 12 }}
exec: &results-cache-health-check
Expand Down
12 changes: 6 additions & 6 deletions tools/deployment/package-helm/templates/webui-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ spec:
containerPort: 4000
volumeMounts:
- {{- include "clp.logsInputVolumeMount" . | nindent 14 }}
- name: {{ include "clp.volumeName" (dict
"component_category" "shared-data"
"name" "streams"
) | quote }}
mountPath: "/var/data/streams"
- name: "client-settings"
mountPath: "/opt/clp/var/www/webui/client/settings.json"
subPath: "webui-client-settings.json"
Expand All @@ -72,19 +77,14 @@ spec:
mountPath: "/opt/clp/var/www/webui/server/dist/settings.json"
subPath: "webui-server-settings.json"
readOnly: true
- name: {{ include "clp.volumeName" (dict
"component_category" "shared-data"
"name" "streams"
) | quote }}
mountPath: "/var/data/streams"
command: [
"/opt/clp/bin/node-22",
"/opt/clp/var/www/webui/server/dist/src/main.js"
]
readinessProbe:
{{- include "clp.readinessProbeTimings" . | nindent 12 }}
tcpSocket: &webui-health-check
port: 4000
port: "webui"
livenessProbe:
{{- include "clp.livenessProbeTimings" . | nindent 12 }}
tcpSocket: *webui-health-check
Expand Down
Loading