lana-shanghai 4a008e51e3
[WIP] Documentation re-org (#2694)
* Reorganized docs

* Fixed internal links in basic usage

* fixed the docker-compose command and volume for docs

* fixed docs tests

* fix travis docs test

* tox ini file

* fixed readme localhost links

* edited tox and test docs to previous state

* Fix tests errors related to docs reorganization

Signed-off-by: David Dashyan <mail@davie.li>

* Added ansible script installation option

Signed-off-by: Lana Ivina <lana@ipdb.io>

* Added ansible script to network setup guide

Signed-off-by: Lana Ivina <lana@ipdb.io>

* Hid the non-working button for now. 

Signed-off: Lana Ivina <lana@ipdb.io>

* Try now button

Co-authored-by: David Dashyan <mail@davie.li>
2020-05-18 20:22:26 +07:00

2.0 KiB

Logging and Log Rotation

Each BigchainDB node runs:

  • MongoDB
  • BigchainDB Server
  • Tendermint

When running a BigchainDB node for long periods of time, we need to consider doing log rotation, i.e. we do not want the logs taking up large amounts of storage and making the node unresponsive or getting it into a bad state.

MongoDB Logging and Log Rotation

See the MongoDB docs about logging and log rotation.

BigchainDB Server Logging and Log Rotation

BigchainDB Server writes its logs to two files: normal logs and error logs. The names of those files, and their locations, are set as part of the BigchainDB configuration settings. The default names and locations are:

  • ~/bigchaindb.log
  • ~/bigchaindb-errors.log

Log rotation is baked into BigchainDB Server using Python's logging module. The logs for BigchainDB Server are rotated when any of the above mentioned files exceeds 209715200 bytes (i.e. approximately 209 MB).

For more information, see the docs about the BigchainDB Server configuration settings related to logging.

Tendermint Logging and Log Rotation

Tendermint writes its logs to the files:

  • tendermint.out.log
  • tendermint.err.log

If you started BigchainDB Server and Tendermint using Monit, as suggested by our guide on How to Set Up a BigchainDB Network, then the logs will be written to $HOME/.bigchaindb-monit/logs/.

Moreover, if you started BigchainDB Server and Tendermint using Monit, then Monit monitors the Tendermint log files. Tendermint logs are rotated if any of the above mentioned log files exceeds 200 MB.