# FILENAME: outbound_peers.txt
# strategy - (2.6+) Specify node selection strategy, round for round-robin, random for random selection, fifo for top-down selection, the default is round
# strategy for node selecting
# 参数-负载均衡模式 可选 round random fifo
strategy random
# max_fails - (2.8.1+) The maximum number of failed connections for a specified node, When the number of failed connections with a node exceeds this set value, the node will be marked as a Dead node, Dead node will not be selected to use. default value is 1.
# 参数-最大失败次数(判定节点失效的所需的次数),默认值为1,一般事不过三,设置为3,相对好一点
max_fails 3
# fail_timeout - (2.8.1+) Specify the dead node's timeout period. When a node is marked as a dead node, it will not be selected within this set time interval. After this set time interval, it will participate in node selection again.
# 参数-超时节点的复活延迟,单位秒数,设置为一个相对有效的秒数即可, 15s 20s这样
fail_timeout 15s
# 参数-热加载的周期,单位秒数
# period for live reloading
reload 10s
# 参数-节点的信息
# peers
peer socks5://706de:A3421F14F1dFDF4F@xx.xx.xx.xx:27906
peer socks5://f5c5a:3d8145Cb72c4FbD8@yy.yy.yy.yy:23018
peer socks5://feae8:cEA28B2e21AfD54f@zz.zz.zz.zz:17294
/// If you are using GRUB
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"
/// Then save the changes and update grub
update-grub
3、加载必要的模块,修改,/etc/modules
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
/// Note that in the 5.4 based kernels some of those modules are already built into the kernel directly. 5.4版本的内核,有的模块已经加载了,不过,为了保险期间,这几个可添加一下
4、重启设备
reboot
5、检查状态
dmesg | grep -e DMAR -e IOMMU
/// There should be a line that looks like "DMAR: IOMMU enabled". If there is no output, something is wrong. 如果显示 DMAR: IOMMU enabled,则表示开启成功,如果有其他提示,估计就是报错了。