Skip to content

Commit 5dc7d73

Browse files
committed
Only set workload on EE
1 parent 4e1b30a commit 5dc7d73

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

config/runtime.exs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,13 @@ config :plausible, Plausible.ClickhouseRepo,
641641
max_execution_time: 20
642642
]
643643

644+
ingest_repo_extra_settings =
645+
on_ee do
646+
[workload: "ingestion"]
647+
else
648+
[]
649+
end
650+
644651
config :plausible, Plausible.IngestRepo,
645652
queue_target: 500,
646653
queue_interval: 2000,
@@ -650,8 +657,7 @@ config :plausible, Plausible.IngestRepo,
650657
max_buffer_size: ch_max_buffer_size,
651658
pool_size: ingest_pool_size,
652659
settings: [
653-
materialized_views_ignore_errors: 1,
654-
workload: "ingestion"
660+
materialized_views_ignore_errors: 1 | ingest_repo_extra_settings
655661
],
656662
table_settings: [
657663
storage_policy: get_var_from_path_or_env(config_dir, "CLICKHOUSE_DEFAULT_STORAGE_POLICY")

0 commit comments

Comments
 (0)