Class DecommissionWorkerCommand

  • All Implemented Interfaces:
    alluxio.cli.Command, java.io.Closeable, java.lang.AutoCloseable

    public final class DecommissionWorkerCommand
    extends AbstractFsAdminCommand
    Decommission a specific batch of workers, the decommissioned worker is not automatically shutdown and will not be picked for new I/O requests. The workers still serve concurrent requests and eventually will become idle. This command waits for the workers to be idle. So when this command returns, it will be safe for the admin to kill/restart those workers. See the help message for more details.
    • Constructor Detail

      • DecommissionWorkerCommand

        public DecommissionWorkerCommand​(Context context,
                                         alluxio.conf.AlluxioConfiguration alluxioConf)
        Constructs a new instance to decommission a given batch of workers from Alluxio.
        Parameters:
        context - fsadmin command context
        alluxioConf - Alluxio configuration
    • Method Detail

      • run

        public int run​(org.apache.commons.cli.CommandLine cl)
      • getCommandName

        public java.lang.String getCommandName()
      • getOptions

        public org.apache.commons.cli.Options getOptions()
      • getUsage

        public java.lang.String getUsage()
      • getDescription

        public java.lang.String getDescription()