update loggregator emitter lib

* lib fixes DNS resolution with multiple ips for a given hostname
bump loggregator emitter gem

* properly handle empty host names

Signed-off-by: Casey McTaggart <cmctaggart@pivotallabs.com>
fix off by one error in resource availability

[finishes #61320078]
allow custom buildpack urls with special characters

previously, these weren't escaped, so the download would fail.
Remove dead code

Signed-off-by: Phan Le <ple@pivotallabs.com>
DEA supports deterministic evacuation [#58745916]
change DEA evacuation bail out time to 6 minutes
remove legacy directory server

[finishes #61846108]

Signed-off-by: Ruth Byers <rbyers@pivotallabs.com>
added integration test for deterministic evacuation
Register with the router while the instance is evacuating
bump evacuation timeout to 10 minutes
Ensure %CPU is available when disk quota disabled

The stat_collector task coded with the expectation that disk statistics
would always be available but when disk quotas are not enabled for
warden, the statistics are not populated and the collector would take an
exception dereferencing the nil message.  That exception would prevent
cpu statistics code from executing resulting in cpu data always
returning 0%.

This adds a check for nil on the disk usage assignment.
Merge pull request #87 from sykesm/cpu-not-reported

Ensure %CPU is available when disk quota disabled
Consistently use bytes for memory statistics

For some reason, stat_collector assumed rss was reported in kilobytes
instead of bytes and multiplied it by 1024.  The rest of the code then
started to divide the 'used_memory_in_bytes' by 1024 to really get bytes
back.  Very odd.

This change simply removes the hacks that multiply and divide to get
expected data.
enforce schema in dea.advertise message
Consistently use bytes for memory statistics

For some reason, stat_collector assumed rss was reported in kilobytes
instead of bytes and multiplied it by 1024.  The rest of the code then
started to divide the 'used_memory_in_bytes' by 1024 to really get bytes
back.  Very odd.

This change simply removes the hacks that multiply and divide to get
expected data.
Make memory reported match cgroup usage data

The DEA was reporting 'used_memory_in_bytes' as the RSS returned from
warden.  RSS, however, is not what cgroup uses when checking container
memory limits so it's inappropriate memory statistic to report to end
users via cf stats.

The Linux cgroup implementation reports container memory usage in
memory/memory.usage_in_bytes and calculates this by adding
memory/memory.stat:cache and memory/memory.stat:rss so this change will
introduce the same logic to the DEA.  Instead of using cache and rss,
however, total_rss and total_cache will be used as it accounts for child
containers when present.
Bump loggregator_emitter gem to 3.0

Signed-off-by: John Tuley <jtuley@pivotallabs.com>
Add CPU limit for staging task and running instance

[#62173454]

Signed-off-by: Eric Malm <emalm@pivotallabs.com>
Merge pull request #92 from cloudfoundry/remove_src_type

Bump loggregator_emitter gem to 3.0