mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-25 00:01:55 +00:00
fix: lower default indexer memory/batch settings to prevent OOM (#8347)
The windmill-indexer pod was crash-looping due to OOMKilled (exit 137) with a 2Gi memory limit. Two concurrent tantivy IndexWriters each allocating 300MB (600MB total), combined with large uncommitted batches of 50K jobs, caused memory exhaustion during indexing. - writer_memory_budget: 300MB → 150MB (2 writers = 300MB total) - commit_job_max_batch_size: 50,000 → 10,000 - commit_log_max_batch_size: 10,000 → 5,000 These can still be overridden via env vars or global settings. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -21,9 +21,9 @@ pub struct TantivyIndexerSettings {
|
||||
impl Default for TantivyIndexerSettings {
|
||||
fn default() -> Self {
|
||||
TantivyIndexerSettings {
|
||||
writer_memory_budget: 300_000_000,
|
||||
commit_job_max_batch_size: 50_000,
|
||||
commit_log_max_batch_size: 10_000,
|
||||
writer_memory_budget: 150_000_000,
|
||||
commit_job_max_batch_size: 10_000,
|
||||
commit_log_max_batch_size: 5_000,
|
||||
refresh_index_period: 300,
|
||||
refresh_log_index_period: 300,
|
||||
max_indexed_job_log_size: 1_000_000,
|
||||
|
||||
Reference in New Issue
Block a user