Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

Adding New Configuration Parameters

Chen Luo edited this page Sep 13, 2017 · 2 revisions

With new setting manager, you can define new configurations and modify them in src/include/settings/settings.h, using macros SETTINGS_* which is similar to those in gflags.

Define a new configuration

`SETTINGS_int(name, description, default_value, is_mutable, is_persistent)`

`SETTINGS_int(port,
              "Peloton port (default: 15721)",
              15721,
              false, false);`

More details can be found in src/settings/README.md

Clone this wiki locally