diff --git a/docs/participate/run-nodes/archive-node.md b/docs/participate/run-nodes/archive-node.md index 0de7ffea30..70cfd48a5a 100644 --- a/docs/participate/run-nodes/archive-node.md +++ b/docs/participate/run-nodes/archive-node.md @@ -202,6 +202,16 @@ Have question or need help? Please ask in the [TON dev chat](https://t.me/tondev ::: +## Tips & Tricks + +### Force archive node not to store blocks + +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. + +```bash +installer set_node_argument --archive-ttl 86400 +``` + ## See Also * [TON Node Types](/participate/nodes/node-types) diff --git a/docs/participate/run-nodes/mytonctrl.mdx b/docs/participate/run-nodes/mytonctrl.mdx index 49cd833773..67b9cd8e1d 100644 --- a/docs/participate/run-nodes/mytonctrl.mdx +++ b/docs/participate/run-nodes/mytonctrl.mdx @@ -27,7 +27,7 @@ No args, exit from console. Update mytonctrl. Param combinations: | Format name | Format | Example | Description | - |:-----------------------|:---------------------------------------------------------------------------|:----------------------------------------------------------------------|-------------------------------------------------------------------------| +|:-----------------------|:---------------------------------------------------------------------------|:----------------------------------------------------------------------|-------------------------------------------------------------------------| | No args | `update` | `update` | Update from current repo | | URL format | `update [https://github.com/author/repo/tree/branch]` | `update https://github.com/ton-blockchain/mytonctrl/tree/test` | Update from specified URL | | Branch Only format | `update [BRANCH]` | `update test` | Update from specified branch of current repo | @@ -507,6 +507,23 @@ Descriptions for each parameter: ## Installer +This section describes `installer` sub-console, that can be opened by command + +```bash +MyTonCtrl> installer +``` + +Example: + +![img.png](/img/docs/mytonctrl/installer.png) + +All commands can be called directly from MyTonCtrl console + +```bash +MyTonCtrl> installer [command] [args] +``` + + ### help prints all available commands @@ -532,15 +549,15 @@ prints Services status (of Full node, Mytoncore, V.console, Liteserver) and node Possible arguments: -| Node argument name | Description | Default value | -|--------------------|-----------------------------------------|-------------------------------------------------------------------------------------| -| `threads` | count of threads | `cpus count - 1` | -| `daemonize` | | No value | -| `global-config` | path to global config | `/usr/bin/ton/global.config.json` | -| `db` | path to database | `/var/ton-work/db/` | -| `logname` | path to logs | `/var/ton-work/log` | -| `state-ttl` | ttl of blockchain states that node keep | 3600 | -| `archive-ttl` | ttl of blocks node stores | 2592000 if liteserver mode was enabled during installation process, otherwise 86400 | +| Node argument name | Description | Default value | +|--------------------|----------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------| +| `threads` | count of threads | `cpus count - 1` | +| `daemonize` | | No value | +| `global-config` | path to global config | `/usr/bin/ton/global.config.json` | +| `db` | path to database | `/var/ton-work/db/` | +| `logname` | path to logs | `/var/ton-work/log` | +| `state-ttl` | ttl of blockchain states that node keep | 3600 | +| `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 | ### enable diff --git a/static/img/docs/mytonctrl/installer.png b/static/img/docs/mytonctrl/installer.png new file mode 100644 index 0000000000..f11e19cb13 Binary files /dev/null and b/static/img/docs/mytonctrl/installer.png differ