iotdb icon indicating copy to clipboard operation
iotdb copied to clipboard

Refactor the Server Command-Lines for Config-Node, Data-Node and the upcoming AI-Node

Open chrisdutz opened this issue 1 year ago • 1 comments

Currently the server CLI implementation of the existing nodes lacks clarity and needs a major cleaning up.

  • Use Apache Commons CLI to implement the general command-line functionality
  • Refactor the ConfigNode, DataNode and AiNode CLI parts

The syntax of the commandline issues will change to the follwing format:

{NodeCli} <options> <command>

The commands will be:

  • start
  • remove

The options will be:

  • for the remove command
    • nodeId {some node id}

To be discussed:

  • Should it be possible to remove multiple nodes, by passing in a list of ids?
  • Should it be possible to remove the current node, by omitting the nodeId parameter?

chrisdutz avatar Aug 14 '24 08:08 chrisdutz

Should it be possible to remove multiple nodes, by passing in a list of ids?

+1 for removing one node per operation

Should it be possible to remove the current node, by omitting the nodeId parameter?

+1 for doing this

OneSizeFitsQuorum avatar Aug 15 '24 02:08 OneSizeFitsQuorum