# bayard start

## DESCRIPTION

Start index server.

## USAGE

bayard start [OPTIONS] [ID]

## FLAGS

- `-h`, `--help`
  Prints help information.

- `-v`, `--version`
  Prints version information.

## OPTIONS

- `-H`, `--host` `<HOST>`
  Node address. [default: 0.0.0.0]

- `-r`, `--raft-port` `<RAFT_PORT>`
  Raft service port number. [default: 7000]

- `-i`, `--index-port` `<INDEX_PORT>`
  Index service port number [default: 5000]

- `-p`, `--peer-raft-address` `<IP:PORT>`
  Raft address of a peer node running in an existing cluster.

- `-d`, `--data-directory` `<DATA_DIRECTORY>`
  Data directory. Stores index, snapshots, and raft logs. [default: ./data]

- `-s`, `--schema-file` `<SCHEMA_FILE>`
  Schema file. Must specify An existing file name. [default: ./etc/schema.json]

- `-T`, `--tokenizer-file` `<TOKENIZER_FILE>`
  Tokenizer file. Must specify An existing file name. [default: ./etc/tokenizer.json]

- `-t`, `--indexer-threads` `<INDEXER_THREADS>` Number of indexer threads. [default: 7]

- `-m`, `--indexer-memory-size` `<INDEXER_MEMORY_SIZE>`
  Total memory size (in bytes) used by the indexer. [default: 1000000000]

## ARGS

- `<ID>`
  Node ID.

## EXAMPLES

To start a server with default options:

    $ ./bin/bayard start 1

To start a server with options:

    $ ./bin/bayard start \
                   --host=0.0.0.0 \
                   --raft-port=7001 \
                   --index-port=5001 \
                   --data-directory=./data/node1 \
                   --schema-file=./etc/schema.json \
                   --tokenizer-file=./etc/tokenizer.json \
                   1