Skip to content

The xrpld server can save bandwidth by compressing its peer-to-peer communications, at a cost of greater CPU usage. If you enable link compression, the server automatically compresses communications with peer servers that also have link compression enabled.

Steps

To enable link compression on your server, complete the following steps:

1. Edit your xrpld server's config file.

$ vim /etc/xrpld/xrpld.cfg

The recommended installation uses the config file /etc/xrpld/xrpld.cfg by default. Other places you can put a config file include $HOME/.config/xrpld/xrpld.cfg (where $HOME is the home directory of the user running rippled), $HOME/.local/xrpld/xrpld.cfg, or the current working directory from where you start rippled.

The config file was renamed from rippled.cfg to xrpld.cfg. During the transition, if xrpld.cfg is not present the server still reads rippled.cfg from the same locations, so existing config files keep working without being renamed. Updated in: rippled 3.2.0

2. In the config file, add or uncomment the [compression] stanza.

To enable compression:

[compression]
true

Use false to disable compression (the default).

3. Restart the xrpld server

$ sudo systemctl restart xrpld.service

After the restart, your server automatically uses link compression with other peers that also have link compression enabled.

See Also