Contents

Method

FindBestPkgCache

ModuleNomad
Library1E
Action

Find the device that has the greatest percentage of the specified content in its Nomad cache.

ParametersContentId (string): The ID of the content to search for.
Return values

MachineName (string): The hostname (not FQDN) of the device that has the most content, or one such device if more than one have the maximum available content.

Percent (float): The percentage of the content cached on the named device.

ContentVersion (int): The version of the content on the named device.

Example

What device, if any, has the greatest percentage of content "Content_7f368e5f-4dbe-4027-ba81-c5463e372a0c"?

Nomad.FindBestPkgCache(ContentId : "Content_7f368e5f-4dbe-4027-ba81-c5463e372a0c");
Platforms
  • Windows
Notes

Available from Tachyon v3.2.

No data is returned if no device has the requested content.

"Pkg" appears in the method name for historical reasons - the method works for any content in a Nomad cache.