Browse Source

docs re-orgnization

pull/1918/head
Zach Ramsay 6 years ago
parent
commit
e54c0f804f
27 changed files with 202 additions and 14 deletions
  1. +0
    -1
      .gitignore
  2. +4
    -7
      docs/README.md
  3. +0
    -0
      docs/app-dev/abci-cli.md
  4. +0
    -0
      docs/app-dev/abci-spec.md
  5. +0
    -0
      docs/app-dev/app-architecture.md
  6. +0
    -0
      docs/app-dev/app-development.md
  7. +0
    -0
      docs/app-dev/ecosystem.md
  8. +0
    -0
      docs/app-dev/getting-started.md
  9. +0
    -0
      docs/app-dev/indexing-transactions.md
  10. +0
    -0
      docs/app-dev/subscribing-to-events-via-websocket.md
  11. BIN
      docs/images/tmint-logo-blue.png
  12. +0
    -0
      docs/introduction/install.md
  13. +0
    -0
      docs/introduction/introduction.md
  14. +5
    -6
      docs/introduction/quick-start.md
  15. +0
    -0
      docs/networks/deploy-testnets.md
  16. +0
    -0
      docs/networks/terraform-and-ansible.md
  17. +0
    -0
      docs/research/determinism.md
  18. +0
    -0
      docs/research/transactional-semantics.md
  19. +0
    -0
      docs/tendermint-core/configuration.md
  20. +0
    -0
      docs/tendermint-core/how-to-read-logs.md
  21. +0
    -0
      docs/tendermint-core/metrics.md
  22. +0
    -0
      docs/tendermint-core/rpc.md
  23. +0
    -0
      docs/tendermint-core/running-in-production.md
  24. +0
    -0
      docs/tendermint-core/using-tendermint.md
  25. +49
    -0
      docs/tools/benchmarking.md
  26. +67
    -0
      docs/tools/docker.md
  27. +77
    -0
      docs/tools/monitoring.md

+ 0
- 1
.gitignore View File

@ -14,7 +14,6 @@ test/p2p/data/
test/logs
coverage.txt
docs/_build
docs/tools
*.log
abci-cli
abci/types/types.pb.go


+ 4
- 7
docs/README.md View File

@ -1,7 +1,5 @@
# Tendermint
TEST!
Welcome to the Tendermint Core documentation! The introduction below provides
an overview to help you navigate to your area of interest.
@ -13,18 +11,17 @@ replicates it on many machines. In other words, a blockchain.
Tendermint requires an application running over the Application Blockchain
Interface (ABCI) - and comes packaged with an example application to do so.
Follow the [installation instructions](./install) to get up and running
quickly. For more details on [using tendermint](./using-tendermint) see that
Follow the [installation instructions](./introduction/install) to get up and running
quickly. For more details on [using tendermint](./tendermint-core/using-tendermint) see that
and the following sections.
## Networks
Testnets can be setup manually on one or more machines, or automatically on one
or more machine, using a variety of methods described in the [deploy testnets
section](./deploy-testnets). For more information (and to join) about the
Cosmos Network testnets, see [here](/getting-started/full-node.md).
section](./networks/deploy-testnets).
## Application Development
The first step to building application on Tendermint is to [install
ABCI-CLI](./getting-started) and play with the example applications.
ABCI-CLI](./app-dev/getting-started) and play with the example applications.

docs/abci-cli.md → docs/app-dev/abci-cli.md View File


docs/abci-spec.md → docs/app-dev/abci-spec.md View File


docs/app-architecture.md → docs/app-dev/app-architecture.md View File


docs/app-development.md → docs/app-dev/app-development.md View File


docs/ecosystem.md → docs/app-dev/ecosystem.md View File


docs/getting-started.md → docs/app-dev/getting-started.md View File


docs/indexing-transactions.md → docs/app-dev/indexing-transactions.md View File


docs/subscribing-to-events-via-websocket.md → docs/app-dev/subscribing-to-events-via-websocket.md View File


BIN
docs/images/tmint-logo-blue.png View File

Before After
Width: 2048  |  Height: 2048  |  Size: 52 KiB

docs/install.md → docs/introduction/install.md View File


docs/introduction.md → docs/introduction/introduction.md View File


docs/quick-start.md → docs/introduction/quick-start.md View File


docs/deploy-testnets.md → docs/networks/deploy-testnets.md View File


docs/terraform-and-ansible.md → docs/networks/terraform-and-ansible.md View File


docs/determinism.md → docs/research/determinism.md View File


docs/transactional-semantics.md → docs/research/transactional-semantics.md View File


docs/specification/configuration.md → docs/tendermint-core/configuration.md View File


docs/how-to-read-logs.md → docs/tendermint-core/how-to-read-logs.md View File


docs/metrics.md → docs/tendermint-core/metrics.md View File


docs/specification/rpc.md → docs/tendermint-core/rpc.md View File


docs/running-in-production.md → docs/tendermint-core/running-in-production.md View File


docs/using-tendermint.md → docs/tendermint-core/using-tendermint.md View File


+ 49
- 0
docs/tools/benchmarking.md View File

@ -0,0 +1,49 @@
# tm-bench
Tendermint blockchain benchmarking tool:
- https://github.com/tendermint/tools/tree/master/tm-bench
For example, the following:
tm-bench -T 10 -r 1000 localhost:46657
will output:
Stats Avg Stdev Max
Block latency 6.18ms 3.19ms 14ms
Blocks/sec 0.828 0.378 1
Txs/sec 963 493 1811
## Quick Start
[Install Tendermint](https://github.com/tendermint/tendermint#install)
then run:
tendermint init
tendermint node --proxy_app=kvstore
tm-bench localhost:46657
with the last command being in a seperate window.
## Usage
tm-bench [-c 1] [-T 10] [-r 1000] [endpoints]
Examples:
tm-bench localhost:46657
Flags:
-T int
Exit after the specified amount of time in seconds (default 10)
-c int
Connections to keep open per endpoint (default 1)
-r int
Txs per second to send in a connection (default 1000)
-v Verbose output
## Development
make get_vendor_deps
make test

+ 67
- 0
docs/tools/docker.md View File

@ -0,0 +1,67 @@
# Docker
## Supported tags and respective `Dockerfile` links
- `0.17.1`, `latest` [(Dockerfile)](https://github.com/tendermint/tendermint/blob/208ac32fa266657bd6c304e84ec828aa252bb0b8/DOCKER/Dockerfile)
- `0.15.0` [(Dockerfile)](https://github.com/tendermint/tendermint/blob/170777300ea92dc21a8aec1abc16cb51812513a4/DOCKER/Dockerfile)
- `0.13.0` [(Dockerfile)](https://github.com/tendermint/tendermint/blob/a28b3fff49dce2fb31f90abb2fc693834e0029c2/DOCKER/Dockerfile)
- `0.12.1` [(Dockerfile)](https://github.com/tendermint/tendermint/blob/457c688346b565e90735431619ca3ca597ef9007/DOCKER/Dockerfile)
- `0.12.0` [(Dockerfile)](https://github.com/tendermint/tendermint/blob/70d8afa6e952e24c573ece345560a5971bf2cc0e/DOCKER/Dockerfile)
- `0.11.0` [(Dockerfile)](https://github.com/tendermint/tendermint/blob/9177cc1f64ca88a4a0243c5d1773d10fba67e201/DOCKER/Dockerfile)
- `0.10.0` [(Dockerfile)](https://github.com/tendermint/tendermint/blob/e5342f4054ab784b2cd6150e14f01053d7c8deb2/DOCKER/Dockerfile)
- `0.9.1`, `0.9`, [(Dockerfile)](https://github.com/tendermint/tendermint/blob/809e0e8c5933604ba8b2d096803ada7c5ec4dfd3/DOCKER/Dockerfile)
- `0.9.0` [(Dockerfile)](https://github.com/tendermint/tendermint/blob/d474baeeea6c22b289e7402449572f7c89ee21da/DOCKER/Dockerfile)
- `0.8.0`, `0.8` [(Dockerfile)](https://github.com/tendermint/tendermint/blob/bf64dd21fdb193e54d8addaaaa2ecf7ac371de8c/DOCKER/Dockerfile)
- `develop` [(Dockerfile)](https://github.com/tendermint/tendermint/blob/master/DOCKER/Dockerfile.develop)
`develop` tag points to the [develop](https://github.com/tendermint/tendermint/tree/develop) branch.
## Quick reference
- **Where to get help:**
https://cosmos.network/community
- **Where to file issues:**
https://github.com/tendermint/tendermint/issues
- **Supported Docker versions:**
[the latest release](https://github.com/moby/moby/releases) (down to 1.6 on a best-effort basis)
## Tendermint
Tendermint Core is Byzantine Fault Tolerant (BFT) middleware that takes a state transition machine, written in any programming language, and securely replicates it on many machines.
For more background, see the [introduction](https://tendermint.readthedocs.io/en/master/introduction.html).
To get started developing applications, see the [application developers guide](https://tendermint.readthedocs.io/en/master/getting-started.html).
## How to use this image
### Start one instance of the Tendermint core with the `kvstore` app
A quick example of a built-in app and Tendermint core in one container.
```
docker run -it --rm -v "/tmp:/tendermint" tendermint/tendermint init
docker run -it --rm -v "/tmp:/tendermint" tendermint/tendermint node --proxy_app=kvstore
```
## Local cluster
To run a 4-node network, see the `Makefile` in the root of [the repo](https://github.com/tendermint/tendermint/master/Makefile) and run:
```
make build-linux
make build-docker-localnode
make localnet-start
```
Note that this will build and use a different image than the ones provided here.
## License
- Tendermint's license is [Apache 2.0](https://github.com/tendermint/tendermint/master/LICENSE).
## Contributing
Contributions are most welcome! See the [contributing file](https://github.com/tendermint/tendermint/blob/master/CONTRIBUTING.md) for more information.

+ 77
- 0
docs/tools/monitoring.md View File

@ -0,0 +1,77 @@
# tm-monitor
Tendermint blockchain monitoring tool; watches over one or more nodes,
collecting and providing various statistics to the user:
- https://github.com/tendermint/tools/tree/master/tm-monitor
## Quick Start
### Docker
Assuming your application is running in another container with the name
`app`:
docker run -it --rm -v "/tmp:/tendermint" tendermint/tendermint init
docker run -it --rm -v "/tmp:/tendermint" -p "46657:46657" --name=tm --link=app tendermint/tendermint node --proxy_app=tcp://app:46658
docker run -it --rm -p "46670:46670" --link=tm tendermint/monitor tm:46657
If you don't have an application yet, but still want to try monitor out,
use `kvstore`:
docker run -it --rm -v "/tmp:/tendermint" tendermint/tendermint init
docker run -it --rm -v "/tmp:/tendermint" -p "46657:46657" --name=tm tendermint/tendermint node --proxy_app=kvstore
docker run -it --rm -p "46670:46670" --link=tm tendermint/monitor tm:46657
### Using Binaries
[Install Tendermint](https://github.com/tendermint/tendermint#install)
then run:
tendermint init
tendermint node --proxy_app=kvstore
tm-monitor localhost:46657
with the last command being in a seperate window.
## Usage
tm-monitor [-v] [-no-ton] [-listen-addr="tcp://0.0.0.0:46670"] [endpoints]
Examples:
# monitor single instance
tm-monitor localhost:46657
# monitor a few instances by providing comma-separated list of RPC endpoints
tm-monitor host1:46657,host2:46657
Flags:
-listen-addr string
HTTP and Websocket server listen address (default "tcp://0.0.0.0:46670")
-no-ton
Do not show ton (table of nodes)
-v verbose logging
### RPC UI
Run `tm-monitor` and visit http://localhost:46670 You should see the
list of the available RPC endpoints:
http://localhost:46670/status
http://localhost:46670/status/network
http://localhost:46670/monitor?endpoint=_
http://localhost:46670/status/node?name=_
http://localhost:46670/unmonitor?endpoint=_
The API is available as GET requests with URI encoded parameters, or as
JSONRPC POST requests. The JSONRPC methods are also exposed over
websocket.
## Development
make get_tools
make get_vendor_deps
make test

Loading…
Cancel
Save