Skip to content

Commit

Permalink
Mytonctrl installer (#733)
Browse files Browse the repository at this point in the history
* Add information about disabling storing archive blocks

* Add explanation to mytonctrl installer section

---------

Co-authored-by: Full-Hat <[email protected]>
  • Loading branch information
pixelplex and Full-Hat committed Aug 30, 2024
1 parent a09ed51 commit 9d89fdc
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 10 deletions.
10 changes: 10 additions & 0 deletions docs/participate/run-nodes/archive-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
37 changes: 27 additions & 10 deletions docs/participate/run-nodes/mytonctrl.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
Binary file added static/img/docs/mytonctrl/installer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9d89fdc

Please sign in to comment.