----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/51021/ -----------------------------------------------------------
(Updated Sept. 5, 2016, 2:38 p.m.) Review request for mesos and Vinod Kone. Changes ------- Simplify GC scheme. Bugs: MESOS-5965 https://issues.apache.org/jira/browse/MESOS-5965 Repository: mesos Description ------- Information about agents that have been marked unreachable is stored in the registry. Since the number of unreachable agents can grow without bound, this commit implements a garbage collection scheme. The current leading master will periodically examine the registry and discard information about unreachable agents according to two criteria: `registry_max_agent_age` and `registry_max_agent_count`. The frequency with which the master examines the registry is controlled by a third parameter, `registry_gc_interval`. Diffs (updated) ----- src/master/constants.hpp cd80dace80968a1f67a8de5b2c112fb1396e26aa src/master/flags.hpp c6e85303f60387f42b5e187eaedb6a01000f948f src/master/flags.cpp 19ae6c1c30a1054b64a9585f325bd0bf943af218 src/master/master.hpp c32c7e9d859ef73216354e2c03ecc07d0009b12f src/master/master.cpp b2a19a645528e8fc1fd48f5ac9929d38c9a76b49 src/master/registry.proto 03c896c39458b54b3966ce32c45eaa33c890ed28 src/tests/partition_tests.cpp f3142ad8d50daafcdb70ad9dbb2772f8ba30db00 src/tests/registrar_tests.cpp b04fc92c66449f1094212a534899e16d5f6f01bd Diff: https://reviews.apache.org/r/51021/diff/ Testing ------- make check Thanks, Neil Conway