The xrpld server has a configurable soft maximum number of peers to connect to. The default maximum number of peers is 21.
To change the maximum number of peers your server allows, complete the following steps:
Edit your
xrpld's config file.$ vim /etc/xrpld/xrpld.cfgThe recommended installation uses the config file
/etc/xrpld/xrpld.cfgby default. Other places you can put a config file include$HOME/.config/xrpld/xrpld.cfg(where$HOMEis the home directory of the user runningrippled),$HOME/.local/xrpld/xrpld.cfg, or the current working directory from where you startrippled.The config file was renamed from
rippled.cfgtoxrpld.cfg. During the transition, ifxrpld.cfgis not present the server still readsrippled.cfgfrom the same locations, so existing config files keep working without being renamed.In the config file, uncomment and edit the
[peers_max]stanza, or add one if you don't have one already:[peers_max] 30The only content of the stanza should be an integer indicating the total number of peers to allow. By default, the server attempts to maintain a ratio of about 85% incoming and 15% outgoing peers, but with a minimum of 10 outgoing peers, so any value less than 68 won't increase the number of outgoing peer connections your server makes.
If the
[peers_max]value is less than 10, the server still allows a hardcoded minimum of 10 outgoing peers so that it can maintain connectivity with the network. To block all outgoing peer connections, configure the server as a private peer instead.CautionThe more peer servers you are connected to, the more network bandwidth yourxrpldserver uses. You should only configure large numbers of peer servers if yourxrpldserver has a good network connection and you can afford the costs you may incur for the bandwidth it uses.Restart the
xrpldserver.$ sudo systemctl restart xrpld.service