| Crates.io | near-dyn-configs |
| lib.rs | near-dyn-configs |
| version | 0.34.5 |
| created_at | 2022-11-05 09:10:03.828659+00 |
| updated_at | 2026-01-20 18:55:28.641299+00 |
| description | Dynamic configure helpers for the near codebase |
| homepage | |
| repository | https://github.com/near/nearcore |
| max_upload_size | |
| id | 705691 |
| size | 87,994 |
Dynamic config helpers for the NEAR codebase.
This crate contains utilities that allow to reconfigure the node while it is running.
Logging options are controlled by the rust_log entry in the ${NEAR_HOME}/log_config.json.
The example entry may look like
{
"rust_log": "transaction-generator=info,garbage_collection=trace"
}
where the transaction-generator and garbage_collection are the targets in the tracing calls.
Tracing options are similarly controlled by the opentelemetry field:
"opentelemetry": "client=debug,chain=debug,stateless_validation=debug,info"
Make changes to ${NEAR_HOME}/log_config.json and send SIGHUP signal to the neard process
kill -HUP $(pidof neard)
Makes changes to config.json and send SIGHUP signal to the neard process.
expected_shutdown: the specified block height neard will gracefully shutdown at.config.jsonThe changes to other fields of config.json will be silently ignored as long as
config.json remains a valid json object and passes internal validation.
Please be careful about making changes to config.json because when a node
starts (or restarts), it checks the validity of the config files and crashes if
detects any issues.