Fix start-druid for indexers. (#13891)

There was an unused parameter causing the unpack to fail.
This commit is contained in:
Gian Merlino 2023-03-08 10:32:07 -08:00 committed by GitHub
parent 68db39d08a
commit f0fb094cc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ def build_memory_config(service, allocated_memory):
heap_memory = HEAP_TO_TOTAL_MEM_RATIO.get(service) * allocated_memory
direct_memory = int(allocated_memory - heap_memory)
heap_memory = int(heap_memory)
memory_type, task_count, task_memory = compute_tasks_memory(allocated_memory)
task_count, task_memory = compute_tasks_memory(allocated_memory)
return ['-D{0}={1}'.format(TASK_WORKER_CAPACITY_PROPERTY, task_count),
'-Xms{0}m -Xmx{0}m -XX:MaxDirectMemorySize={1}m'.format(heap_memory, direct_memory)], \
task_memory * task_count