mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-28 05:31:20 +00:00
how to read logs
This commit is contained in:
parent
20e1eadcf1
commit
b429d65f9f
@ -1,13 +1,9 @@
|
|||||||
How to read logs
|
# How to read logs
|
||||||
================
|
|
||||||
|
|
||||||
Walk through example
|
## Walkabout example
|
||||||
--------------------
|
|
||||||
|
|
||||||
We first create three connections (mempool, consensus and query) to the
|
We first create three connections (mempool, consensus and query) to the
|
||||||
application (running ``kvstore`` locally in this case).
|
application (running `kvstore` locally in this case).
|
||||||
|
|
||||||
::
|
|
||||||
|
|
||||||
I[10-04|13:54:27.364] Starting multiAppConn module=proxy impl=multiAppConn
|
I[10-04|13:54:27.364] Starting multiAppConn module=proxy impl=multiAppConn
|
||||||
I[10-04|13:54:27.366] Starting localClient module=abci-client connection=query impl=localClient
|
I[10-04|13:54:27.366] Starting localClient module=abci-client connection=query impl=localClient
|
||||||
@ -16,16 +12,12 @@ application (running ``kvstore`` locally in this case).
|
|||||||
|
|
||||||
Then Tendermint Core and the application perform a handshake.
|
Then Tendermint Core and the application perform a handshake.
|
||||||
|
|
||||||
::
|
|
||||||
|
|
||||||
I[10-04|13:54:27.367] ABCI Handshake module=consensus appHeight=90 appHash=E0FBAFBF6FCED8B9786DDFEB1A0D4FA2501BADAD
|
I[10-04|13:54:27.367] ABCI Handshake module=consensus appHeight=90 appHash=E0FBAFBF6FCED8B9786DDFEB1A0D4FA2501BADAD
|
||||||
I[10-04|13:54:27.368] ABCI Replay Blocks module=consensus appHeight=90 storeHeight=90 stateHeight=90
|
I[10-04|13:54:27.368] ABCI Replay Blocks module=consensus appHeight=90 storeHeight=90 stateHeight=90
|
||||||
I[10-04|13:54:27.368] Completed ABCI Handshake - Tendermint and App are synced module=consensus appHeight=90 appHash=E0FBAFBF6FCED8B9786DDFEB1A0D4FA2501BADAD
|
I[10-04|13:54:27.368] Completed ABCI Handshake - Tendermint and App are synced module=consensus appHeight=90 appHash=E0FBAFBF6FCED8B9786DDFEB1A0D4FA2501BADAD
|
||||||
|
|
||||||
After that, we start a few more things like the event switch, reactors, and
|
After that, we start a few more things like the event switch, reactors,
|
||||||
perform UPNP discover in order to detect the IP address.
|
and perform UPNP discover in order to detect the IP address.
|
||||||
|
|
||||||
::
|
|
||||||
|
|
||||||
I[10-04|13:54:27.374] Starting EventSwitch module=types impl=EventSwitch
|
I[10-04|13:54:27.374] Starting EventSwitch module=types impl=EventSwitch
|
||||||
I[10-04|13:54:27.375] This node is a validator module=consensus
|
I[10-04|13:54:27.375] This node is a validator module=consensus
|
||||||
@ -48,28 +40,21 @@ validator". It also could be just an observer (regular node).
|
|||||||
|
|
||||||
Next we replay all the messages from the WAL.
|
Next we replay all the messages from the WAL.
|
||||||
|
|
||||||
::
|
|
||||||
|
|
||||||
I[10-04|13:54:30.390] Catchup by replaying consensus messages module=consensus height=91
|
I[10-04|13:54:30.390] Catchup by replaying consensus messages module=consensus height=91
|
||||||
I[10-04|13:54:30.390] Replay: New Step module=consensus height=91 round=0 step=RoundStepNewHeight
|
I[10-04|13:54:30.390] Replay: New Step module=consensus height=91 round=0 step=RoundStepNewHeight
|
||||||
I[10-04|13:54:30.390] Replay: Done module=consensus
|
I[10-04|13:54:30.390] Replay: Done module=consensus
|
||||||
|
|
||||||
"Started node" message signals that everything is ready for work.
|
"Started node" message signals that everything is ready for work.
|
||||||
|
|
||||||
::
|
|
||||||
|
|
||||||
I[10-04|13:54:30.391] Starting RPC HTTP server on tcp socket 0.0.0.0:46657 module=rpc-server
|
I[10-04|13:54:30.391] Starting RPC HTTP server on tcp socket 0.0.0.0:46657 module=rpc-server
|
||||||
I[10-04|13:54:30.392] Started node module=main nodeInfo="NodeInfo{id: DF22D7C92C91082324A1312F092AA1DA197FA598DBBFB6526E, moniker: anonymous, network: test-chain-3MNw2N [remote , listen 10.0.2.15:46656], version: 0.11.0-10f361fc ([wire_version=0.6.2 p2p_version=0.5.0 consensus_version=v1/0.2.2 rpc_version=0.7.0/3 tx_index=on rpc_addr=tcp://0.0.0.0:46657])}"
|
I[10-04|13:54:30.392] Started node module=main nodeInfo="NodeInfo{id: DF22D7C92C91082324A1312F092AA1DA197FA598DBBFB6526E, moniker: anonymous, network: test-chain-3MNw2N [remote , listen 10.0.2.15:46656], version: 0.11.0-10f361fc ([wire_version=0.6.2 p2p_version=0.5.0 consensus_version=v1/0.2.2 rpc_version=0.7.0/3 tx_index=on rpc_addr=tcp://0.0.0.0:46657])}"
|
||||||
|
|
||||||
Next follows a standard block creation cycle, where we enter a new round,
|
Next follows a standard block creation cycle, where we enter a new
|
||||||
propose a block, receive more than 2/3 of prevotes, then precommits and finally
|
round, propose a block, receive more than 2/3 of prevotes, then
|
||||||
have a chance to commit a block. For details, please refer to `Consensus
|
precommits and finally have a chance to commit a block. For details,
|
||||||
Overview
|
please refer to [Consensus
|
||||||
<introduction.html#consensus-overview>`__
|
Overview](introduction.html#consensus-overview) or [Byzantine Consensus
|
||||||
or `Byzantine Consensus Algorithm
|
Algorithm](specification.html).
|
||||||
<specification.html>`__.
|
|
||||||
|
|
||||||
::
|
|
||||||
|
|
||||||
I[10-04|13:54:30.393] enterNewRound(91/0). Current: 91/0/RoundStepNewHeight module=consensus
|
I[10-04|13:54:30.393] enterNewRound(91/0). Current: 91/0/RoundStepNewHeight module=consensus
|
||||||
I[10-04|13:54:30.393] enterPropose(91/0). Current: 91/0/RoundStepNewRound module=consensus
|
I[10-04|13:54:30.393] enterPropose(91/0). Current: 91/0/RoundStepNewRound module=consensus
|
||||||
@ -110,56 +95,36 @@ or `Byzantine Consensus Algorithm
|
|||||||
I[10-04|13:54:30.410] Committed state module=state height=91 txs=0 hash=E0FBAFBF6FCED8B9786DDFEB1A0D4FA2501BADAD
|
I[10-04|13:54:30.410] Committed state module=state height=91 txs=0 hash=E0FBAFBF6FCED8B9786DDFEB1A0D4FA2501BADAD
|
||||||
I[10-04|13:54:30.410] Recheck txs module=mempool numtxs=0 height=91
|
I[10-04|13:54:30.410] Recheck txs module=mempool numtxs=0 height=91
|
||||||
|
|
||||||
List of modules
|
## List of modules
|
||||||
---------------
|
|
||||||
|
|
||||||
Here is the list of modules you may encounter in Tendermint's log and a little
|
Here is the list of modules you may encounter in Tendermint's log and a
|
||||||
overview what they do.
|
little overview what they do.
|
||||||
|
|
||||||
- ``abci-client`` As mentioned in `Application Development Guide
|
- `abci-client` As mentioned in [Application Development Guide](app-development.md#abci-design), Tendermint acts as an ABCI
|
||||||
<app-development.html#abci-design>`__,
|
client with respect to the application and maintains 3 connections:
|
||||||
Tendermint acts as an ABCI client with respect to the application and
|
mempool, consensus and query. The code used by Tendermint Core can
|
||||||
maintains 3 connections: mempool, consensus and query. The code used by
|
be found [here](https://github.com/tendermint/abci/tree/master/client).
|
||||||
Tendermint Core can be found `here
|
- `blockchain` Provides storage, pool (a group of peers), and reactor
|
||||||
<https://github.com/tendermint/abci/tree/master/client>`__.
|
for both storing and exchanging blocks between peers.
|
||||||
|
- `consensus` The heart of Tendermint core, which is the
|
||||||
- ``blockchain``
|
implementation of the consensus algorithm. Includes two
|
||||||
Provides storage, pool (a group of peers), and reactor for both storing and
|
"submodules": `wal` (write-ahead logging) for ensuring data
|
||||||
exchanging blocks between peers.
|
integrity and `replay` to replay blocks and messages on recovery
|
||||||
|
from a crash.
|
||||||
- ``consensus``
|
- `events` Simple event notification system. The list of events can be
|
||||||
The heart of Tendermint core, which is the implementation of the consensus
|
found
|
||||||
algorithm. Includes two "submodules": ``wal`` (write-ahead logging) for
|
[here](https://github.com/tendermint/tendermint/blob/master/types/events.go).
|
||||||
ensuring data integrity and ``replay`` to replay blocks and messages on
|
You can subscribe to them by calling `subscribe` RPC method. Refer
|
||||||
recovery from a crash.
|
to [RPC docs](specification/rpc.html) for additional information.
|
||||||
|
- `mempool` Mempool module handles all incoming transactions, whenever
|
||||||
- ``events``
|
they are coming from peers or the application.
|
||||||
Simple event notification system. The list of events can be found
|
- `p2p` Provides an abstraction around peer-to-peer communication. For
|
||||||
`here
|
more details, please check out the
|
||||||
<https://github.com/tendermint/tendermint/blob/master/types/events.go>`__.
|
[README](https://github.com/tendermint/tendermint/blob/master/p2p/README.md).
|
||||||
You can subscribe to them by calling ``subscribe`` RPC method.
|
- `rpc` [Tendermint's RPC](specification/rpc.html).
|
||||||
Refer to `RPC docs
|
- `rpc-server` RPC server. For implementation details, please read the
|
||||||
<specification/rpc.html>`__
|
[README](https://github.com/tendermint/tendermint/blob/master/rpc/lib/README.md).
|
||||||
for additional information.
|
- `state` Represents the latest state and execution submodule, which
|
||||||
|
executes blocks against the application.
|
||||||
- ``mempool``
|
- `types` A collection of the publicly exposed types and methods to
|
||||||
Mempool module handles all incoming transactions, whenever they are
|
work with them.
|
||||||
coming from peers or the application.
|
|
||||||
|
|
||||||
- ``p2p``
|
|
||||||
Provides an abstraction around peer-to-peer communication. For more details,
|
|
||||||
please check out the `README
|
|
||||||
<https://github.com/tendermint/tendermint/blob/56c60fba2381e4ac41d2ae38a1eb6569acfbc095/p2p/README.md>`__.
|
|
||||||
|
|
||||||
- ``rpc``
|
|
||||||
`Tendermint's RPC <specification/rpc.html>`__.
|
|
||||||
|
|
||||||
- ``rpc-server``
|
|
||||||
RPC server. For implementation details, please read the `README <https://github.com/tendermint/tendermint/blob/master/rpc/lib/README.md>`__.
|
|
||||||
|
|
||||||
- ``state``
|
|
||||||
Represents the latest state and execution submodule, which executes
|
|
||||||
blocks against the application.
|
|
||||||
|
|
||||||
- ``types``
|
|
||||||
A collection of the publicly exposed types and methods to work with them.
|
|
@ -41,9 +41,8 @@ Tendermint Tools
|
|||||||
|
|
||||||
deploy-testnets.md
|
deploy-testnets.md
|
||||||
terraform-and-ansible.md
|
terraform-and-ansible.md
|
||||||
tools/docker.rst
|
tools/benchmarking.md
|
||||||
tools/benchmarking.rst
|
tools/monitoring.md
|
||||||
tools/monitoring.rst
|
|
||||||
|
|
||||||
.. TODO fix tools
|
.. TODO fix tools
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user