mirror of https://github.com/waku-org/nwaku.git
Add basic docs for cluster fleet (#340)
* Add basic docs for cluster fleet * Add more cluster notes for viewing logs * Add note on submodules
This commit is contained in:
parent
37a3a4fadd
commit
39d08ce930
|
@ -3,6 +3,7 @@
|
|||
## Next version
|
||||
|
||||
- Refactor: Split out `waku_types` types into right place; create utils folder.
|
||||
- Docs: Add information on how to query Status test fleet for node addresses; how to view logs and how to update submodules.
|
||||
|
||||
## 2021-01-05 v0.2
|
||||
|
||||
|
|
|
@ -7,3 +7,5 @@ Example resources:
|
|||
|
||||
- How to do releases
|
||||
- Viewing and modifying metrics dashboard
|
||||
- Continuous integration process
|
||||
- How to view Status cluster logs
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
# Cluster node logs
|
||||
|
||||
These can be found in [Kibana](https://kibana.status.im/app/kibana#/discover?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:'2020-09-09T20:21:49.910Z',to:now))&_a=(columns:!(message,severity_name),filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:d6db7610-60fd-11e9-98fa-2f101d13f938,key:program.keyword,negate:!f,params:(query:docker%2Fnim-waku-node),type:phrase),query:(match_phrase:(program.keyword:docker%2Fnim-waku-node))),('$state':(store:appState),meta:(alias:!n,disabled:!f,index:d6db7610-60fd-11e9-98fa-2f101d13f938,key:fleet.keyword,negate:!f,params:(query:wakuv2.test),type:phrase),query:(match_phrase:(fleet.keyword:wakuv2.test)))),index:d6db7610-60fd-11e9-98fa-2f101d13f938,interval:auto,query:(language:kuery,query:Listening),sort:!())).
|
||||
|
||||
Login with Github. For access issues, contact devops.
|
||||
|
||||
Modify search field and time window as appropriate.
|
||||
|
||||
Notice that there are two clusters, test and production. There is also a Waku v1 cluster.
|
||||
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
# Submodules
|
||||
|
||||
We use Git submodules in the `vendor` directory to track internal Nim
|
||||
dependencies. We want to update submodules all at once to avoid issues.
|
||||
|
||||
```
|
||||
git submodule foreach --recursive git submodule update --init
|
||||
git submodule update --remote
|
||||
```
|
||||
|
25
docs/faq.md
25
docs/faq.md
|
@ -1,19 +1,24 @@
|
|||
# FAQ
|
||||
|
||||
## Where do I find cluster node logs? (internal)
|
||||
|
||||
At [Kibana](https://kibana.status.im/app/kibana#/discover?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:'2020-09-09T20:21:49.910Z',to:now))&_a=(columns:!(message,severity_name),filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:d6db7610-60fd-11e9-98fa-2f101d13f938,key:program.keyword,negate:!f,params:(query:docker%2Fnim-waku-node),type:phrase),query:(match_phrase:(program.keyword:docker%2Fnim-waku-node))),('$state':(store:appState),meta:(alias:!n,disabled:!f,index:d6db7610-60fd-11e9-98fa-2f101d13f938,key:fleet.keyword,negate:!f,params:(query:wakuv2.test),type:phrase),query:(match_phrase:(fleet.keyword:wakuv2.test)))),index:d6db7610-60fd-11e9-98fa-2f101d13f938,interval:auto,query:(language:kuery,query:Listening),sort:!()))
|
||||
|
||||
Login with Github. For access issues, contact devops.
|
||||
|
||||
Modify search field and time window as appropriate.
|
||||
|
||||
## How do I see what address a node is listening for?
|
||||
|
||||
Grep for "Listening on". It should be printed at INFO level at the beginning. E.g. from Kibana:
|
||||
|
||||
`Oct 7, 2020 @ 23:17:00.383INF 2020-10-07 23:17:00.375+00:00 Listening on topics="wakunode" tid=1 file=wakunode2.nim:140 full=/ip4/0.0.0.0/tcp/60000/p2p/16Uiu2HAmJb2e28qLXxT5kZxVUUoJt72EMzNGXB47Rxx5hw3q4YjS`
|
||||
|
||||
## How do I update all submodules at once?
|
||||
## How do I find out node addresses at the test cluster?
|
||||
|
||||
`git submodule foreach --recursive git submodule update --init`
|
||||
The easiest way is to use `jq` and query the fleets registry that Status operates:
|
||||
|
||||
```
|
||||
curl -s https://fleets.status.im | jq '.fleets["wakuv2.test"]'
|
||||
|
||||
# Output
|
||||
{
|
||||
"waku": {
|
||||
"node-01.ac-cn-hongkong-c.wakuv2.test": "/ip4/0.0.0.0/tcp/30303/p2p/16Uiu2HAmSyrYVycqBCWcHyNVQS6zYQcdQbwyov1CDijboVRsQS37",
|
||||
"node-01.do-ams3.wakuv2.test": "/ip4/0.0.0.0/tcp/30303/p2p/16Uiu2HAmPLe7Mzm8TsYUubgCAW1aJoeFScxrLj8ppHFivPo97bUZ",
|
||||
"node-01.gc-us-central1-a.wakuv2.test": "/ip4/0.0.0.0/tcp/30303/p2p/16Uiu2HAmPLe7Mzm8TsYUubgCAW1aJoeFScxrLj8ppHFivPo97bUZ"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# Dingpu testnet
|
||||
|
||||
*NOTE: Some of these addresses might change. To get the latest, please see `curl -s https://fleets.status.im | jq '.fleets["wakuv2.test"]'`*
|
||||
|
||||
## Basic chat usage
|
||||
|
||||
> If historical messaging is desired, the chat app requires that the remote peer specified in `storenode` option supports the WakuStore protocol. For the current cluster node deployed as part of Dingpu this is already the case.
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
## chat2 is an example of usage of Waku v2. For suggested usage options, please
|
||||
## see dingpu tutorial in docs folder.
|
||||
|
||||
when not(compileOption("threads")):
|
||||
{.fatal: "Please, compile this program with the --threads:on option!".}
|
||||
|
||||
|
|
Loading…
Reference in New Issue