Starting and Stopping Your Validator
Restarting Your Validator
There are many operational reasons you may want to restart your validator. As a best practice, you should avoid a restart during a leader slot. A leader slot is the time when your validator is expected to produce blocks. To see the full leader schedule for an epoch:Using agave-validator exit
Assuming you are ready to restart, you may use theagave-validator exit command. The command exits your validator process when an appropriate idle time window is reached.
Systemd Service Management
If you’re running your validator as a systemd service, you can use standard systemd commands:Updating Validator Software
There are many ways to upgrade the Solana CLI software. As an operator, you will need to upgrade often, so it is important to get comfortable with this process.Validator nodes do not need to be offline while the newest version is being built from source. All methods below can be done before the validator process is restarted.
Building From Source
The easiest way to upgrade the Solana CLI software is to build the newest version from source. See the build from source instructions for details.Restart to Apply Update
The validator process will need to be restarted before the newly installed version is in use. Useagave-validator exit to restart your validator process:
Verifying Version
The best way to verify that your validator process has changed to the desired version is to grep the logs after a restart:Managing Snapshots
Validators operators who have not experienced significant downtime (multiple hours of downtime), should avoid downloading snapshots. It is important for the health of the cluster as well as your validator history to maintain the local ledger.Avoiding Snapshot Downloads
To avoid downloading a snapshot on restart, add the following flag to theagave-validator command:
solana catchup <pubkey> after your validator starts to make sure that the validator is catching up in a reasonable time.
Downloading Snapshots
If you are starting a validator for the first time, or your validator has fallen too far behind after a restart, then you may have to download a snapshot. To download a snapshot, you must NOT use the--no-snapshot-fetch flag. Without the flag, your validator will automatically download a snapshot from your known validators that you specified with the --known-validator flag.
If one of the known validators is downloading slowly, you can try adding the --minimal-snapshot-download-speed flag to your validator. This flag will switch to another known validator if the initial download speed is below the threshold that you set.
Managing Vote Accounts
Checking Vote Account Status
Thesolana vote-account command displays the recent voting activity from your validator:
Updating Commission
Commission can be changed with thevote-update-commission command:
Withdrawing From Vote Account
To withdraw your funds from your vote account, runsolana withdraw-from-vote-account on a trusted computer:
Changing Vote Account Authorities
Update Validator Identity
You will need access to the authorized withdrawer keypair:Update Vote Authority
The vote authority keypair may only be changed at epoch boundaries:Update Authorized Withdrawer
No special handling or timing considerations are required:Managing Stake
Checking Stake Status
View your stake account details:Delegating Stake
Create a stake account:Deactivating Stake
Before detaching your validator from the cluster, you should deactivate the stake:Stake is not deactivated immediately and instead cools down in a similar fashion as stake warm up. Your validator should remain attached to the cluster while the stake is cooling down. Cooldown may take several epochs to complete.
withdraw-stake command to recover the previously staked lamports.
Managing Account Balances
Check Identity Account Balance
It is important that you do not accidentally run out of funds in your identity account, as your node will stop voting.Funding Your Identity Account
Regularly check and refill your identity account as needed:How much SOL you should store in your identity account is up to you. As a best practice, make sure to check the account regularly and refill or deduct from it as needed.
System Maintenance
Keep System Updated
Make sure to regularly update packages in your Ubuntu system:Monitor Disk Usage
Regularly check disk usage to prevent running out of space:Log Management
Your log files can grow very large. Make sure you have log rotation configured. If you followed the setup guide, logrotate should already be configured. Manually rotate logs if needed:Community Resources
Educational Workshops
The Solana validator community holds regular educational workshops. Watch past workshops through the Solana validator educational workshops playlist.Community Validator Calls
Solana Foundation Validator Discussion
- Schedule: Every second Thursday of the month 18:00 CET
- Recorded: Yes, available on the Community Validator Discussions playlist
Community Led Validator Call
- Schedule: Every fourth Thursday of the month 18:00 CET
- Recorded: No
- Agenda: See HackMD site
For the most up-to-date information, check the validator-announcements channel in Discord.
Getting Help
For help with validator command line options:- Discord:
#validator-supportchannel at https://solana.com/discord - Network Explorer
- Core software repo