Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnsurePoolHealthy = &subcommands.Command{
	UsageLine: "ensure-pool-healthy [-dryrun] [-spare SPARE] TARGET [MODEL ...]",
	ShortDesc: "ensure DUT pool is healthy",
	LongDesc: `
Ensure that the TARGET pool is healthy for the given MODELs.  If
needed, unhealthy DUTs in the TARGET pool are swapped with healthy
DUTs from the SPARE pool.

You usually do not need to run this command, as pools are balanced by
a cron job.

To change the number of DUTs in a pool, use resize-pool.`,
	CommandRun: func() subcommands.CommandRun {
		c := &ensurePoolHealthyRun{}
		c.authFlags.Register(&c.Flags, site.DefaultAuthOptions)
		c.envFlags.Register(&c.Flags)

		c.Flags.BoolVar(&c.dryrun, "dryrun", false, "Dry run.  Inventory changes are not committed.")
		c.Flags.StringVar(&c.spare, "spare", "DUT_POOL_QUOTA", "Spare pool to use.")
		return c
	},
}

    EnsurePoolHealthy subcommand: Balance DUT pools

    View Source
    var ResizePool = &subcommands.Command{
    	UsageLine: "resize-pool [-spare SPARE] TARGET MODEL SIZE",
    	ShortDesc: "change DUT pool allocations",
    	LongDesc: `
    Change the number of DUTs in the TARGET pool for MODEL to SIZE.
    
    Any DUTs that need to be added or removed from the TARGET pool will be
    taken from or returned to the SPARE pool.`,
    	CommandRun: func() subcommands.CommandRun {
    		c := &resizePoolRun{}
    		c.authFlags.Register(&c.Flags, site.DefaultAuthOptions)
    		c.envFlags.Register(&c.Flags)
    
    		c.Flags.StringVar(&c.spare, "spare", "DUT_POOL_QUOTA", "Spare pool to use.")
    		return c
    	},
    }

      ResizePool subcommand: Resize DUT pools

      Functions

      This section is empty.

      Types

      This section is empty.