Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pedrogomes29/shopping-list
https://github.com/pedrogomes29/shopping-list
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pedrogomes29/shopping-list
- Owner: pedrogomes29
- License: mit
- Created: 2023-10-13T08:23:14.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-10T23:57:29.000Z (11 months ago)
- Last Synced: 2023-12-24T22:57:15.481Z (11 months ago)
- Language: Java
- Size: 1.21 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shopping-list
The DNS Mock needs to be running when adding load balancers so that it stores the IP/Port for the new load balancers.
Load Balancers and Nodes are added dynamically, providing a list of a few (at least 1) neighbor endpoints so that it can be added to the network topology.
The cloud needs at least 3 nodes to work properly.
Configuration files should contain a list of IP:port of the nodes that are already in network and to which the newly added node should connect to.
## Video Demonstration
https://www.youtube.com/watch?v=Ox6AhVOMrng## Runing the DNS Mock
```
gradlew DnsMock
```## Running a Load Balancer
Replace 8080 with the wanted port and conf1.txt with the conf file
```
gradlew LoadBalancer -Pid="lb1" -Pport=8080 -Pconf="conf.txt"
```## Running an Admin
Replace 7070 with the wanted port and conf1.txt with the conf file
```
gradlew Admin -Pid="admin" -Pport=7070 -Pconf"conf.txt"
```## Running a Node
Replace 100 with the wanted port and conf.txt with the conf file
```
gradlew Node -Pid="node1" -Pport=100 -Pconf="conf.txt"
```## Runing the Client
```
gradlew Client --console=plain
```