我想研究本地测试验证器集群中多个节点之间的领导调度切换。这可能吗? Solana noob - 请原谅我的无知。
尝试运行两个实例 - 第二个实例甚至没有启动 - 如果我使用不同的分类帐文件夹和端口 - 它们运行不同的分类帐 - 没有尝试同步。
solana-test-validator
不执行任何投票,因此它不适合集群。如果您想运行集群,您需要设置完整的验证器。
https://github.com/anza-xyz/agave/tree/master/net
上的
net
脚本正是为了做到这一点而设计的。如果您有 gcloud 帐户,那么上手非常容易,您可以执行以下操作:
./gce.sh create -n 5 -c 1 #<-- Create a GCE testnet with 5 additional nodes (beyond the bootstrap node) and 1 client (billing starts here)
./net.sh start #<-- Deploy the network from the local workspace and start processes on all nodes including bench-tps on the client node
./net.sh stop #<-- Stop running processes on all nodes
./gce.sh delete
但要小心,因为它们是完整的验证器,所以机器在云硬件上运行可能非常昂贵!