aurora-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kai Huang <>
Subject Re: Review Request 59699: Improve task history pruning by batch deleting tasks
Date Thu, 01 Jun 2017 22:41:51 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated June 1, 2017, 10:41 p.m.)

Review request for Aurora, David McLaughlin and Santhosh Kumar.


- 1. Refactored the deletTasks code to post a single event for all task deletions.

- 2. Upload benchmark result for task history pruning.

Bugs: AURORA-1929

Repository: aurora


Improve task history pruning by batch deleting tasks.

The `'aurora_admin prune_tasks'` endpoint seems to be very slow when the cluster has a large
number of inactive tasks.

This CR batches all removeTasks operations and execute them all at once to avoid additional
cost of coalescing. The fix will also benefit implicit task history pruning since it has similar
underlying implementation. See for more
information and details.

Diffs (updated)

  src/main/java/org/apache/aurora/scheduler/state/ 73878210f9028901fda3b08e66c6a63c24260d35



Testing (updated)



No unit tests were created for this patch since it does not add new functionalities or alter
the interface, but improves the efficiency of the existing code.

__e2e tests:__

Attached was a screenshot of the task history pruning benchmark obtained from a scale test
in Twitter's test cluster.

- Before applying this patch, the task history pruning takes ~30 minutes on 130K tasks.

- After applying the patch, the pruning takes ~1 minute.

File Attachments (updated)



Kai Huang

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message