Skip to content

Commit 9d89fdc

Browse files
pixelplexFull-Hat
andauthored
Mytonctrl installer (#733)
* Add information about disabling storing archive blocks * Add explanation to mytonctrl installer section --------- Co-authored-by: Full-Hat <nikita3131228@gmail.com>
1 parent a09ed51 commit 9d89fdc

File tree

3 files changed

+37
-10
lines changed

3 files changed

+37
-10
lines changed

docs/participate/run-nodes/archive-node.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,16 @@ Have question or need help? Please ask in the [TON dev chat](https://t.me/tondev
202202
:::
203203

204204

205+
## Tips & Tricks
206+
207+
### Force archive node not to store blocks
208+
209+
To force node not to store archive blocks use the value 86400. Check [set_node_argument section](/participate/run-nodes/mytonctrl#set_node_argument) for more.
210+
211+
```bash
212+
installer set_node_argument --archive-ttl 86400
213+
```
214+
205215
## See Also
206216

207217
* [TON Node Types](/participate/nodes/node-types)

docs/participate/run-nodes/mytonctrl.mdx

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ No args, exit from console.
2727
Update mytonctrl. Param combinations:
2828

2929
| Format name | Format | Example | Description |
30-
|:-----------------------|:---------------------------------------------------------------------------|:----------------------------------------------------------------------|-------------------------------------------------------------------------|
30+
|:-----------------------|:---------------------------------------------------------------------------|:----------------------------------------------------------------------|-------------------------------------------------------------------------|
3131
| No args | `update` | `update` | Update from current repo |
3232
| URL format | `update [https://github.com/author/repo/tree/branch]` | `update https://github.com/ton-blockchain/mytonctrl/tree/test` | Update from specified URL |
3333
| Branch Only format | `update [BRANCH]` | `update test` | Update from specified branch of current repo |
@@ -507,6 +507,23 @@ Descriptions for each parameter:
507507
508508
## Installer
509509
510+
This section describes `installer` sub-console, that can be opened by command
511+
512+
```bash
513+
MyTonCtrl> installer
514+
```
515+
516+
Example:
517+
518+
![img.png](/img/docs/mytonctrl/installer.png)
519+
520+
All commands can be called directly from MyTonCtrl console
521+
522+
```bash
523+
MyTonCtrl> installer [command] [args]
524+
```
525+
526+
510527
### help
511528
512529
prints all available commands
@@ -532,15 +549,15 @@ prints Services status (of Full node, Mytoncore, V.console, Liteserver) and node
532549
533550
Possible arguments:
534551
535-
| Node argument name | Description | Default value |
536-
|--------------------|-----------------------------------------|-------------------------------------------------------------------------------------|
537-
| `threads` | count of threads | `cpus count - 1` |
538-
| `daemonize` | | No value |
539-
| `global-config` | path to global config | `/usr/bin/ton/global.config.json` |
540-
| `db` | path to database | `/var/ton-work/db/` |
541-
| `logname` | path to logs | `/var/ton-work/log` |
542-
| `state-ttl` | ttl of blockchain states that node keep | 3600 |
543-
| `archive-ttl` | ttl of blocks node stores | 2592000 if liteserver mode was enabled during installation process, otherwise 86400 |
552+
| Node argument name | Description | Default value |
553+
|--------------------|----------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------|
554+
| `threads` | count of threads | `cpus count - 1` |
555+
| `daemonize` | | No value |
556+
| `global-config` | path to global config | `/usr/bin/ton/global.config.json` |
557+
| `db` | path to database | `/var/ton-work/db/` |
558+
| `logname` | path to logs | `/var/ton-work/log` |
559+
| `state-ttl` | ttl of blockchain states that node keep | 3600 |
560+
| `archive-ttl` | ttl of blocks node stores. _To force node not to store archive blocks use the value `86400`_ | 2592000 if liteserver mode was enabled during installation process, otherwise 86400 |
544561
545562
### enable
546563
125 KB
Loading

0 commit comments

Comments
 (0)