mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Address comments I
- Rephrase log rotation to imply monit is not default - Add statement to explain where bigchaindb log files are created - Fix HTML comment - Add log rotation to index
This commit is contained in:
parent
ac24801713
commit
439d0c45c4
@ -17,3 +17,4 @@ Appendices
|
|||||||
ntp-notes
|
ntp-notes
|
||||||
licenses
|
licenses
|
||||||
all-in-one-bigchaindb
|
all-in-one-bigchaindb
|
||||||
|
log-rotation
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
<!---
|
||||||
Copyright BigchainDB GmbH and BigchainDB contributors
|
Copyright BigchainDB GmbH and BigchainDB contributors
|
||||||
SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
|
SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
|
||||||
Code is Apache-2.0 and docs are CC-BY-4.0
|
Code is Apache-2.0 and docs are CC-BY-4.0
|
||||||
@ -26,14 +27,14 @@ Log rotation is baked into BigchainDB server using the `logging` module. If you
|
|||||||
- `bigchaindb-errors.log`
|
- `bigchaindb-errors.log`
|
||||||
- `bigchaindb-benchmark.log`
|
- `bigchaindb-benchmark.log`
|
||||||
|
|
||||||
Default location for these log files is: `$HOME/.bigchaindb-monit/logs`
|
These log files are created by default in the directory from you run `bigchaindb start`, if you are using `monit` the default directory is: `$HOME/.bigchaindb-monit/logs`
|
||||||
|
|
||||||
The logs for BigchainDB server are rotated when any of the above mentioned file exceeds `209715200 bytes`.
|
The logs for BigchainDB server are rotated when any of the above mentioned file exceeds `209715200 bytes (i.e. approximately 209 MB).`.
|
||||||
|
|
||||||
|
|
||||||
## Log rotation for Tendermint
|
## Log rotation for Tendermint
|
||||||
|
|
||||||
Log rotation for Tendermint is handled by [Monit]( https://www.mmonit.com/monit). When we start BigchainDB and Tendermint using [How to Set Up a BigchainDB Network](../simple-deployment-template/network-setup.md) guide.
|
In order to set up log rotation of Tendermint, you will need to use the [Monit]( https://www.mmonit.com/monit) scripts provided by us. Covered in the [How to Set Up a BigchainDB Network](../simple-deployment-template/network-setup.md) guide.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ monit -d 1
|
$ monit -d 1
|
||||||
|
|||||||
@ -135,10 +135,10 @@ cat >${monit_script_path}_logrotate <<EOF
|
|||||||
case \$1 in
|
case \$1 in
|
||||||
|
|
||||||
rotate_tendermint_logs)
|
rotate_tendermint_logs)
|
||||||
/bin/mv \$2 \$2.\$(date +%y-%m-%d)
|
/bin/cp \$2 \$2.\$(date +%y-%m-%d)
|
||||||
/bin/tar -cvf \$2.\$(date +%Y%m%d_%H%M%S).tar.gz \$2.\$(date +%y-%m-%d)
|
/bin/tar -cvf \$2.\$(date +%Y%m%d_%H%M%S).tar.gz \$2.\$(date +%y-%m-%d)
|
||||||
/bin/rm \$2.\$(date +%y-%m-%d)
|
/bin/rm \$2.\$(date +%y-%m-%d)
|
||||||
/bin/kill -2 \$(cat \$3)
|
/bin/cp /dev/null \$2
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user