Skip to content

如何提高单个dataNode的compaction task的并行度? #38830

Discussion options

You must be logged in to vote

尝试调整这几项:
dataCoord.compaction.maxParallelTaskNum 这是一个集群中所能并行的compaction最大任务数
dataCoord.slot.mixCompactionUsage 这是定义单个compaction任务的“工作量”(虚拟)
dataNode.slot.slotCap 这是定义单个datanode执行compaction任务的能力(虚拟)

假设dataNode.slot.slotCap=16, dataCoord.slot.mixCompactionUsage=8,那么每个datanode同一时间里能执行两个compaction任务。但所有datanode上执行的compaction任务数量不会高于dataCoord.compaction.maxParallelTaskNum

dataCoord:
  compaction:
    maxParallelTaskNum: 10
  slot:
    mixCompactionUsage: 8 # slot usage of mix compaction job.

dataNode:
  slot:
    slotCap: 16 # The maximum number of tasks(e.g. compaction, importing) allowed to run concurrently on a datanode

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@yhmo
Comment options

yhmo Dec 30, 2024
Collaborator

@xiaobingxia-at
Comment options

@xiaobingxia-at
Comment options

@yhmo
Comment options

yhmo Dec 30, 2024
Collaborator

Answer selected by xiaobingxia-at
@xiaobingxia-at
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants