Package alluxio.cli.fsadmin.command
Class DecommissionWorkerCommand
- java.lang.Object
-
- alluxio.cli.fsadmin.command.AbstractFsAdminCommand
-
- alluxio.cli.fsadmin.command.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDecommissionWorkerCommand.ReturnCodeA set of return codes.static classDecommissionWorkerCommand.WorkerStatusA wrapper managing worker activeness status and deciding whether the worker can be safely killed.
-
Field Summary
-
Fields inherited from class alluxio.cli.fsadmin.command.AbstractFsAdminCommand
mBlockClient, mFsClient, mJobMasterClient, mJobMasterJournalMasterClient, mMasterJournalMasterClient, mMetaClient, mMetaConfigClient, mMetricsClient, mPrintStream
-
-
Constructor Summary
Constructors Constructor Description DecommissionWorkerCommand(Context context, alluxio.conf.AlluxioConfiguration alluxioConf)Constructs a new instance to decommission a given batch of workers from Alluxio.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCommandName()java.lang.StringgetDescription()org.apache.commons.cli.OptionsgetOptions()java.lang.StringgetUsage()intrun(org.apache.commons.cli.CommandLine cl)
-
-
-
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 contextalluxioConf- Alluxio configuration
-
-