# bayard

## DESCRIPTION

Bayard server

## USAGE

bayard [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]

- `-M`, `--metrics-port` `<METRICS_PORT>`
  Metrics service port number [default: 9000]

- `-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. By default indexer uses number of available logical cpu as threads count. [default: 8]

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

- `-w`, `--http-worker-threads` `<HTTP_WORKER_THREADS>`
  Number of HTTP worker threads. By default http server uses number of available logical cpu as threads count. [default: 8]

## ARGS

- `<ID>`
  Node ID.

## EXAMPLES

To start a server with default options:

    $ bayard 1

To start a server with options:

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