https://github.com/sticnarf/agga
[WIP] Redirect TCP connections through a cluster
https://github.com/sticnarf/agga
Last synced: 6 days ago
JSON representation
[WIP] Redirect TCP connections through a cluster
- Host: GitHub
- URL: https://github.com/sticnarf/agga
- Owner: sticnarf
- License: mit
- Created: 2017-11-18T12:30:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-22T17:18:51.000Z (over 8 years ago)
- Last Synced: 2025-02-24T07:47:15.464Z (over 1 year ago)
- Language: Scala
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# agga
Redirect TCP connections through a cluster
## Build
```bash
$ sbt assembly
```
Then, the assembly can be found in the `target/scala-2.12` directory.
## Usage
Launch a new cluster:
```bash
$ java -jar agga-assembly-0.1-SNAPSHOT.jar \
-Dakka.remote.netty.tcp.hostname=server0.example.com \
-Dakka.remote.netty.tcp.port=7000 \
-Dakka.remote.netty.tcp.bind-hostname=192.168.1.100 \
-Dakka.remote.netty.tcp.bind-port=2552
-Dakka.cluster.seed-nodes.0=akka.tcp://agga@192.168.1.100:2552
-Dagga.tcp-redir.hostname=127.0.0.1 \
-Dagga.tcp-redir.port=1080 \
-Dagga.accepted-keys.0=client-key-0 \
-Dagga.accepted-keys.1=client-key-1
```
Join a cluster:
```bash
$ java -jar agga-assembly-0.1-SNAPSHOT.jar \
-Dakka.remote.netty.tcp.hostname=server1.example.com \
-Dakka.remote.netty.tcp.port=7000 \
-Dakka.remote.netty.tcp.bind-hostname=192.168.1.101 \
-Dakka.remote.netty.tcp.bind-port=2552
-Dakka.cluster.seed-nodes.0=akka.tcp://agga@192.168.1.100:2552
-Dagga.tcp-redir.hostname=127.0.0.1 \
-Dagga.tcp-redir.port=1080 \
-Dagga.accepted-keys.0=client-key-2 \
-Dagga.accepted-keys.1=client-key-3
```
## Client
See [sticnarf/agga-client-scala](https://github.com/sticnarf/agga-client-scala).