----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/67561/ -----------------------------------------------------------
(Updated June 13, 2018, 4:36 p.m.) Review request for mesos, Gastón Kleiman, Greg Mann, Kapil Arya, and Till Toenshoff. Changes ------- Updated summary. Added benchmark result. Summary (updated) ----------------- Refactored `struct Slave` in the allocator for better performance. Bugs: MESOS-8986 https://issues.apache.org/jira/browse/MESOS-8986 Repository: mesos Description ------- This patch refactors the `struct Slave` in the allocator. In particular, it addresses the slowness of computing agent's available resources. Instead of calculating it every time on the fly, this patch "denormalizes" the agent available resources by updating and persisting the field each time when agent's allocated or total resources change. Diffs (updated) ----- src/master/allocator/mesos/hierarchical.hpp e9d1742bb35004735e3cb357286b4e5b17436a5c src/master/allocator/mesos/hierarchical.cpp b558228290e5ae6dbcc1b8a6e1fe69db9fd5874c Diff: https://reviews.apache.org/r/67561/diff/2/ Changes: https://reviews.apache.org/r/67561/diff/1-2/ Testing (updated) ------- make check In our simulation environment, we observed 16% allocator performance improvment without quota, and 32% improvment when quota is used. Thanks, Meng Zhu