alluxio icon indicating copy to clipboard operation
alluxio copied to clipboard

Fix job-master leak memory when submitting distributed jobs

Open liiuzq-xiaobai opened this issue 8 months ago • 4 comments

fix:fix job-master leak memory when submitting a large number of distributed jobs(DIST_LOAD/DIST_CP/Persist jobs)

What changes are proposed in this pull request?

Start a periodic thread to clear expired jobs information that cannot be trace by the client in CmdJobTracker.The default retention time is 1day,which is the same configuration as LoadV2.

Why are the changes needed?

When many jobs are submitted,the job master finally will have an oom problem, we can find that the cmdJobTracker retains the residual job information and not cleaned regularly, resulting in memory leaks.

Does this PR introduce any user facing changes?

Please list the user-facing changes introduced by your change, including 1.add Configuration: alluxio.job.master.job.trace.retention.time=xx,the default value is 1d.

Related issue: #18635

liiuzq-xiaobai avatar Jun 27 '24 04:06 liiuzq-xiaobai