Skip to content

Commit 683f4a3

Browse files
committed
Disable activity log for self-managed
1 parent ef6628f commit 683f4a3

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

misc/helm-charts/operator/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ spec:
4040
- "--cloud-provider={{ .Values.operator.cloudProvider.type }}"
4141
- "--region={{ .Values.operator.cloudProvider.region }}"
4242
- "--secrets-controller={{ .Values.operator.secretsController }}"
43+
- "--disable-statement-logging"
4344
{{- range $key, $value := include "materialize-operator.selectorLabels" . | fromYaml }}
4445
- "--orchestratord-pod-selector-labels={{ $key }}={{ $value }}"
4546
{{- end }}

src/orchestratord/src/controller/materialize.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ pub struct MaterializeControllerArgs {
7676
enable_security_context: bool,
7777
#[clap(long)]
7878
enable_internal_statement_logging: bool,
79+
#[clap(long)]
80+
disable_statement_logging: bool,
7981

8082
#[clap(long)]
8183
orchestratord_pod_selector_labels: Vec<KeyValueArg<String, String>>,

src/orchestratord/src/controller/materialize/environmentd.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,11 @@ fn create_environmentd_statefulset_object(
893893
if config.enable_internal_statement_logging {
894894
args.push("--system-parameter-default=enable_internal_statement_logging=true".into());
895895
}
896+
897+
if config.disable_statement_logging {
898+
args.push("--system-parameter-default=statement_logging_max_sample_rate=0".into());
899+
}
900+
896901
if config.disable_authentication {
897902
args.push("--system-parameter-default=enable_rbac_checks=false".into());
898903
}

0 commit comments

Comments
 (0)