Skip to content

Latest commit

 

History

History

PowerPingPong

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

PowerPingPong

A distributed Actix-Telepathy application that sends byte messages back and forth but every time increases the message size by the power of 2.

Usage

Help

cargo r -- --help

> Power Ping Pong
> 
> USAGE:
>     powerpingpong --host <host> --steps <steps> <SUBCOMMAND>
> 
> FLAGS:
>         --help       Prints help information
>     -V, --version    Prints version information
> 
> OPTIONS:
>     -h, --host <host>
>     -s, --steps <steps>
> 
> SUBCOMMANDS:
>     help    Prints this message or the help of the given subcommand(s)
>     main
>     sub

Run

This example can be run on one computer, that will act as 2 cluster nodes.

Cluster node 1

RUST_LOG=info cargo r -- --host 127.0.0.1:1992 --steps 8 main

> ...

Cluster node 2 (in different terminal window)

RUST_LOG=info cargo r -- --host 127.0.0.1:1993 --steps 8 sub --mainhost 127.0.0.1:1992

> ...