Re: Runner's /varz endpoint - how "available_disk_ratio" is computed?
CF Runtime
Hi Rafal
Available disk ratio is computed by the formula 1 - (reserved_disk / disk_capacity) https://github.com/cloudfoundry/dea_ng/blob/5381c9561137258d7a97fdc488a90aa0d25a527d/lib/dea/resource_manager.rb#L53 disk_capacity is indeed calculated from the disk_mb and multiplied by the disk_overcommit_factor https://github.com/cloudfoundry/dea_ng/blob/5381c9561137258d7a97fdc488a90aa0d25a527d/lib/dea/resource_manager.rb#L15 If you set your disk_mb value to be exactly the size of the disk on the runner vm you are using with an overcommit factor of 1 the /varz reported available_disk_ration should exactly track how much available disk you have on each runner. This is not recommended, however, as you may want to increase your overcommit factor in order to most efficiently use the disk space on your runner VMs. Instead, you can use `bosh vms --vitals` to get system level information about disk usage of each available VM. Best, Zak Auerbach CF Release Integration On Thu, Oct 8, 2015 at 2:45 AM, Rafal Radecki <radecki.rafal(a)gmail.com> wrote: Hi :) |
|