soundcloud/harpoon — pull request #69 by elenadeneva92 (2014-09-23 15:39:28+00:00)
Title: Add host resources

Retrieve host resources

The state machine calculates the host resources on every update. In the beginning when there is no information about the resources and the containers, the resources (cpu and memory) are both set to -1, so that the scheduling algorithm won't choose them. On every (re)connect of the agent the host resources are recalculated and when connection is lost they are set again to -1.

@bernerdschaefer @peterbourgon @jmyounker