Skip to main content

Plan the environment

Supported operating systems

MyTonCtrl is highly recommended to install on the following distributions:
  • Ubuntu 22.04 LTS
  • Ubuntu 24.04 LTS

Hardware sizing by role

Disk latency is the common bottleneck. Benchmark storage before going live (MyTonCtrl> benchmark).

Network and ports

  • Obtain a static public IPv4 address for each node.
  • Forward a single UDP port from the internet to the node and leave all outbound ports open. The port is assigned randomly during MyTonCtrl installation but can be set before via the VALIDATOR_PORT environment variable. To check the port after installation, refer to the Node ports field on status command output.

Prepare the operator account

If you still need a dedicated operator, create and switch to it before installing MyTonCtrl:

Install MyTonCtrl

Run the installer from the operator account with sudo so it can create system users and services:
The interactive wizard walks through:
  1. Selecting mainnet vs. testnet (or supplying a custom network config).
  2. Choosing the initial mode (validator or liteserver).
  3. Optionally downloading blockchain dumps via TON Storage (recommended for archive builds).
  4. Whether to run post-download tasks in the background (useful when pulling large dumps).
Refer to the MyTonCtrl overview for installer flags and environment variables when you need unattended deployments.

Verify services and synchronization

After installation, launch MyTonCtrl console via mytonctrl command and check the status:
Wait until the node is synchronized: verify that Local validator out of sync and Masterchain out of sync both show ≤3 seconds.

Baseline maintenance tasks

  • MyTonCtrl> create_backup creates a snapshot of the current state (private keys and configs). It is highly recommended to make a backup of the node and store it in a secure space.
  • MyTonCtrl> update updates MyTonCtrl CLI.
  • MyTonCtrl> upgrade updates Node software.

Operational discipline

For all nodes: For validator nodes:
  • Monitor RAM, disk, CPU, and bandwidth dashboards. Contact @validators_help_bot if metrics or efficiency drop below target.
  • Rerun check_ef or consult the efficiency API when diagnosing performance.

Liteserver quickstart

Activate liteserver services

If the node was not installed with liteserver mode enabled, activate it via enable_mode liteserver:

Configure endpoints and proxies

Print the local liteserver configuration — its IP, port, and public key:
Create a new network config:
The command writes a /usr/bin/ton/local.config.json file with the full network configuration, ready for clients to connect to the local liteserver.

Open the liteserver port

  1. Update security groups or configure ufw on bare-metal hosts:
  2. Confirm connectivity by initializing a lite-client using the generated config.

Archive liteserver quickstart

You need: liteserver mode enabled, ≥12 TB of fast storage, and ZFS installed for handling compressed dumps.

Prepare storage with ZFS

Use a dedicated SSD-backed pool and monitor free space—archive size grows continually (check the archive dump index).

Install and download archive data

Run the installer, choose liteserver mode, and answer Yes (1) when prompted to download archive blocks via TON Storage. Allow the job to continue in the background—the download may take days. Track progress in MyTonCtrl logs and wait for statusLocal validator out of sync field to become green number before serving traffic.

Troubleshooting imports

Increase verbosity temporarily to review archive import logs, then revert:
If you see repeated Importing archive ... from net messages, investigate storage latency—IOPS may be insufficient.

Snapshot and recovery tips

  • Use ZFS snapshots (zfs snapshot data/ton-work@<label>) for fast rollbacks.
  • To restore, stop services before zfs rollback: sudo systemctl stop validator.
  • Keep off-site backups of /var/ton-work/keys and create_backup archives.

Monitoring and support

  • Subscribe to @tonstatus and @tonstatus_notifications for real-time validator alerts.
  • Use the private alert bot once your node is stable: MyTonCtrl> enable_mode alert-bot then configure credentials per the alerting guide.
  • Contact validator support via @validators_help_bot; regular node operators can use @ton_node_help.
  • Audit node health weekly: status_fast, check_ef, disk usage (du -sh /var/ton-work/db), and snapshot consistency.
Once comfortable with these workflows, dive into the detailed command references for advanced automation.