-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add link compression tutorial #881
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
...utorials/manage-the-rippled-server/configure-peering/enable-link-compression.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
html: enable-link-compression.html | ||
funnel: Docs | ||
doc_type: Tutorials | ||
category: Manage the rippled Server | ||
subcategory: Configure Peering | ||
blurb: Save bandwidth by compressing peer-to-peer communications. | ||
--- | ||
# Enable Link Compression | ||
|
||
The `rippled` server can save bandwidth by compressing its [peer-to-peer communications](peer-protocol.html), 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. [New in: rippled 1.6.0][] | ||
|
||
## Steps | ||
|
||
To enable link compression on your server, complete the following steps: | ||
|
||
### 1. Edit your `rippled` server's config file. | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not use the following? Seems weird to add the possessive to Edit your |
||
```sh | ||
$ vim /etc/opt/ripple/rippled.cfg | ||
``` | ||
|
||
{% include '_snippets/conf-file-location.md' %}<!--_ --> | ||
|
||
### 2. In the config file, add or uncomment the `[compression]` stanza. | ||
|
||
To enable compression: | ||
|
||
```text | ||
[compression] | ||
true | ||
``` | ||
|
||
Use `false` to disable compression (the default). | ||
|
||
### 3. Restart the `rippled` server | ||
|
||
```sh | ||
$ sudo systemctl restart rippled.service | ||
``` | ||
|
||
After the restart, your server automatically uses link compression with other peers that also have link compression enabled. | ||
|
||
## See Also | ||
|
||
- [Capacity Planning](capacity-planning.html) | ||
- [Peer Protocol](peer-protocol.html) | ||
|
||
<!--{# common link defs #}--> | ||
{% include '_snippets/rippled-api-links.md' %} | ||
{% include '_snippets/tx-type-links.md' %} | ||
{% include '_snippets/rippled_versions.md' %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was wondering how much CPU usage would be saved by this. Makes sense to compress bandwidth if you knew this setting is the norm for most other hosts.
Anyway to recast the last sentence? There's also a repeated "have" in the sentence:
The server uses uncompressed communications with peers who do not have have link compression enabled or do not support link compression.
Something like this, maybe?
Peer-to-peer link compression works only with peer servers that support link compression and have link compression enabled. In the absence of either, your server defaults to uncompressed communications with that peer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was thinking about it and I decided the best way to rephrase the sentence was to remove it.
It's implied by the previous sentence and awkwardly long pretty much no matter what, so I think in reality it's more likely to confuse people than it is to help.