-
Notifications
You must be signed in to change notification settings - Fork 8
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
Tweak 0.3 docs #79
Open
richb-hanover
wants to merge
22
commits into
Zoxc:master
Choose a base branch
from
richb-hanover:Tweak-0.3-docs
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Tweak 0.3 docs #79
Changes from 12 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
aae884e
Start on UNDERSTANDING document
richb-hanover b477c79
Update screen shots to 0.3 version;
richb-hanover e66966b
Merge branch 'master' into Tweak-0.3-docs
richb-hanover a0e038b
Better screen shots
richb-hanover e9547a1
Fix the results-with-stats screen shot and its description
richb-hanover 9446b04
Merge branch 'master' into Tweak-0.3-docs
richb-hanover a9f92b5
Editorial pass
richb-hanover 7eb3e36
Improved screen shots for numeric summaries
richb-hanover 33ae0a2
Editorial tweaks
richb-hanover bd390eb
Editorial tweaks
richb-hanover d8e3d9b
Factor out BUILDING.md from other files;
richb-hanover 58974ff
Update README.md
Zoxc 97db21a
Update description of Throughput;
richb-hanover cef0ec2
Merge commit '58974ff026c25bbf434935bdda4fead4ef87dd71' into Tweak-0.…
richb-hanover dcf6830
Fix Monitor screen shot
richb-hanover 4dc570f
Merge branch 'master' into Tweak-0.3-docs
richb-hanover d432bbc
Revised screenshots;
richb-hanover 6a2ba56
Revert parts of "Editorial tweaks"
Zoxc a1e38cc
Clarify use of TCP & UDP ports 35481
richb-hanover f78a64a
Merge commit '6a2ba56a3421749299575ef4b1adeed44c38ce22' into Tweak-0.…
richb-hanover 72bcbf1
Reorganize to include a _docs_ directory;
richb-hanover 9ca60a6
Merge branch 'master' into Tweak-0.3-docs
richb-hanover 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
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,50 @@ | ||
# Building Crusader from source | ||
|
||
Reminder: [Pre-built binaries](https://github.com/Zoxc/crusader/releases) | ||
are available for everyday tests. | ||
|
||
## Required dependencies | ||
|
||
* A Rust and C toolchain. | ||
* `fontconfig` (optional, required for `crusader-gui`) | ||
|
||
_Note:_ To install `fontconfig` on Ubuntu: | ||
|
||
```sh | ||
sudo apt install libfontconfig1-dev | ||
``` | ||
|
||
## Building Crusader | ||
|
||
To develop or debug Crusader, use the commands below | ||
to build the full set of binaries. | ||
Executables are placed in _src/target/release_ | ||
|
||
To build the `crusader` command line executable: | ||
|
||
```sh | ||
cd src | ||
cargo build -p crusader --release | ||
``` | ||
|
||
To build both command line and GUI executables: | ||
|
||
```sh | ||
cd src | ||
cargo build --release | ||
``` | ||
|
||
## Debug build | ||
|
||
Create a debug build by using `cargo build` | ||
(instead of `cargo build --release`). | ||
Binaries are saved in the _src/target/debug_ directory | ||
|
||
## Docker | ||
|
||
To build a docker container that runs the server: | ||
|
||
```sh | ||
cd docker | ||
docker build .. -t crusader -f server-static.Dockerfile | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
# Running Crusader from the command line | ||
|
||
## Server | ||
|
||
To host a Crusader server, run this on the _server_ machine: | ||
|
||
```sh | ||
crusader serve | ||
``` | ||
|
||
## Client | ||
|
||
To start a test, run this on the _client machine_. | ||
See the [command-line options](.options-for-the-test-command) below for details. | ||
|
||
```sh | ||
crusader test <server-ip> | ||
``` | ||
|
||
## Remote | ||
|
||
To host a web server that provides remote control of a Crusader client, | ||
run the command below, then connect to | ||
`http://ip-of-the-crusader-device:35482` | ||
|
||
```sh | ||
crusader remote | ||
``` | ||
|
||
## Plot | ||
|
||
Crusader creates a `.png` file from a `.crr` file using `./crusader plot path-to-crr-file` | ||
richb-hanover marked this conversation as resolved.
Show resolved
Hide resolved
|
||
The resulting `.png` is saved in the same directory as the input file. | ||
|
||
## Export | ||
|
||
Crusader exports raw data samples from a `.crr` file | ||
into a `.json` file using `./crusader export path-to-crr-file` | ||
The resulting `.json` is saved in the same directory as the input file. | ||
|
||
## Options for the `test` command | ||
|
||
**Usage: `crusader test [OPTIONS] <SERVER-ADDRESS>`** | ||
|
||
**Arguments:** `<SERVER-ADDRESS>` address of a Crusader server | ||
|
||
**Options:** | ||
|
||
* **`--download`** | ||
Run a download test | ||
* **`--upload`** | ||
Run an upload test | ||
* **`--bidirectional`** | ||
Run a test doing both download and upload | ||
* **`--idle`** | ||
Run a test, only measuring latency without inducing traffic. | ||
The duration is specified by `grace_duration` | ||
* **`--port <PORT>`** | ||
Specify the TCP and UDP port used by the server | ||
[default: 35481] | ||
* **`--streams <STREAMS>`** | ||
The number of TCP connections used to generate | ||
traffic in a single direction | ||
[default: 8] | ||
* **`--stream-stagger <SECONDS>`** | ||
The delay between the start of each stream | ||
[default: 0.0] | ||
* **`--load-duration <SECONDS>`** | ||
The duration in which traffic is generated | ||
[default: 10.0] | ||
* **`--grace-duration <SECONDS>`** | ||
The idle time between each test | ||
[default: 2.0] | ||
* **`--latency-sample-interval <MILLISECONDS>`** | ||
[default: 5.0] | ||
* **`--throughput-sample-interval <MILLISECONDS>`** | ||
[default: 60.0] | ||
* **`--plot-transferred`** | ||
Plot transferred bytes | ||
* **`--plot-split-throughput`** | ||
Plot upload and download separately and plot streams | ||
* **`--plot-max-throughput <BPS>`** | ||
Set the axis for throughput to at least this value. | ||
SI units are supported so `100M` would specify 100 Mbps | ||
* **`--plot-max-latency <MILLISECONDS>`** | ||
Set the axis for latency to at least this value | ||
* **`--plot-width <PIXELS>`** | ||
* **`--plot-height <PIXELS>`** | ||
* **`--plot-title <PLOT_TITLE>`** | ||
* **`--latency-peer-address <LATENCY_PEER_ADDRESS>`** | ||
Address of another Crusader server (the "peer") which | ||
concurrently measures the latency to the server and reports | ||
the values to the client | ||
* **`--latency-peer`** | ||
Trigger the client to instruct a peer (another Crusader server) | ||
to begin measuring the latency to the main server | ||
and report the latency back | ||
* **`--out-name <OUT_NAME>`** | ||
The filename prefix used for the raw data and plot filenames | ||
* **`-h, --help`** | ||
Print help (see a summary with '-h') |
Oops, something went wrong.
Oops, something went wrong.
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.
It probably makes sense to do these changes in the code too.