nomad icon indicating copy to clipboard operation
nomad copied to clipboard

cli: support pagination on requests within `nomad operator debug`

Open jrasell opened this issue 1 year ago • 2 comments

The nomad operator debug command collects data from a number of Nomad API endpoints and writes this data out to a file on the filesystem where the command is being run. These API calls do not utilise pagination, an API feature that was added after the release of this command which, in large Nomad clusters, can result in additional load on both the machine responding to the request, and the machine where the command is being run from.

The command could optionally support pagination on all API endpoints that support it. This would allow data to be collected in sensible increments. It is worth noting this method would increase execution time of the command and involve a large number of overall API requests. This should be included in documentation so cluster operators can run the command in the correct way for their cluster.

jrasell avatar Dec 06 '22 08:12 jrasell

cc @davemay99

jrasell avatar Dec 06 '22 08:12 jrasell

See also https://github.com/hashicorp/nomad/issues/15565

tgross avatar Dec 16 '22 15:12 tgross