Configuration #
Pizza supports several methods to overwrite the default configuration.
Command lines #
➜ ./bin/pizza --help
A Distributed Real-Time Search & AI-Native Innovation Engine.
Usage: pizza [OPTIONS] [COMMAND]
Commands:
service Builtin service management (install, uninstall, start, stop)
help Print this message or the help of the given subcommand(s)
Options:
-l, --log <LEVEL> Set the logging level, options: trace,debug,info,warn,error
--debug Run in debug mode, panic immediately with full stack trace
-c, --config <FILE>
-p, --pid <FILE> Place pid to this file
-E, --override <KEY=VALUE>
-h, --help Print help
-V, --version Print version
Configuration file #
You can fully customize Pizza by utilizing the pizza.yaml
configuration
file:
# ======================== INFINI Pizza Configuration ==========================
# -------------------------------- Log -----------------------------------------
log:
level: info
# -------------------------------- API -----------------------------------------
gateway:
network:
binding: 127.0.0.1:9100
skip_occupied_port: true
# -------------------------------- Cluster -------------------------------------
cluster:
name: pizza
node:
name: my_node_1
network:
binding: 127.0.0.1:8100
skip_occupied_port: true
# -------------------------------- Storage -------------------------------------
storage:
compression: ZSTD
# -------------------------------- MemTable ------------------------------------
memtable:
threshold: 1k
max_num_of_instance: 2
allow_multi_instance: true
Override configuration #
You can tweak the configuration by passing the command line option -E
with KEY=VALUE
style during Pizza start:
./bin/pizza -E log.level=trace -E gateway.network.binding=127.0.0.1:12200