Compare commits

...

6 Commits

Author SHA1 Message Date
00098996c6 Added ip override
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-14 23:23:34 +02:00
61974f9d64 fixed demo
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-14 22:00:10 +02:00
067e9c4cd4 Update 'README.rst'
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-14 13:45:20 +02:00
c1f4d772be Add 'README.rst'
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-14 13:43:15 +02:00
7ab4575ae4 all redis works
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-14 13:21:12 +02:00
7b70ebeb27 fixed dependencies
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-14 13:06:03 +02:00
2 changed files with 30 additions and 15 deletions

12
README.rst Normal file
View File

@ -0,0 +1,12 @@
=====================
P2P Storage Simulator
=====================
The system consists of two types of components, the producer sends logs to consumer, to one at a time. Consumer discovery is done
by the producers and other consumers.
This repository connect the two component of the system. It uses docker-compose to build a demo
system (with multiple producers and consumers), which can be used for evaluation. After cloning, run the command
*docker-compose up.*
which will set up the system.
Produced by GoldenPogácsa Inc.

View File

@ -36,7 +36,7 @@ services:
restart: unless-stopped
environment:
- PRODUCER_KNOWNCONSUMER=192.168.111.21
- PRODUCER_REDIS=192.168.222.211
- PRODUCER_REDIS=192.168.111.211
networks:
firstsubnet:
ipv4_address: 192.168.111.11
@ -70,7 +70,7 @@ services:
restart: unless-stopped
environment:
- PRODUCER_KNOWNCONSUMER=192.168.111.21
- PRODUCER_REDIS=192.168.222.210
- PRODUCER_REDIS=192.168.111.210
networks:
firstsubnet:
ipv4_address: 192.168.111.10
@ -105,7 +105,7 @@ services:
restart: unless-stopped
environment:
- PRODUCER_KNOWNCONSUMER=192.168.111.21
- PRODUCER_REDIS=192.168.222.209
- PRODUCER_REDIS=192.168.111.209
networks:
firstsubnet:
ipv4_address: 192.168.111.9
@ -249,7 +249,7 @@ services:
ipv4_address: 192.168.123.11
depends_on:
- consumer-api3
- producer-redis1-1
- producer-redis3-1
producer-endpoint3-1:
image: registry.kmlabz.com/goldenpogacsa/producer-endpoint
@ -259,7 +259,7 @@ services:
network_mode: "service:producer3-1"
depends_on:
- consumer-api3
- producer-redis1-1
- producer-redis3-1
producer-redis3-1:
image: redis
@ -283,7 +283,7 @@ services:
ipv4_address: 192.168.123.10
depends_on:
- consumer-api3
- producer-redis1-2
- producer-redis3-2
producer-endpoint3-2:
image: registry.kmlabz.com/goldenpogacsa/producer-endpoint
@ -293,7 +293,7 @@ services:
network_mode: "service:producer3-2"
depends_on:
- consumer-api3
- producer-redis1-2
- producer-redis3-2
producer-redis3-2:
image: redis
@ -308,14 +308,14 @@ services:
image: registry.kmlabz.com/goldenpogacsa/producer
restart: unless-stopped
environment:
- PRODUCER_KNOWNCONSUMER=192.168.123.22
- PRODUCER_KNOWNCONSUMER=192.168.123.21
- PRODUCER_REDIS=192.168.123.214
networks:
thirdsubnet:
ipv4_address: 192.168.123.14
depends_on:
- consumer-api3
- producer-redis2-3
- producer-redis3-3
producer-endpoint3-3:
image: registry.kmlabz.com/goldenpogacsa/producer-endpoint
@ -325,7 +325,7 @@ services:
network_mode: "service:producer3-3"
depends_on:
- consumer-api3
- producer-redis2-3
- producer-redis3-3
producer-redis3-3:
image: redis
@ -355,8 +355,9 @@ services:
restart: unless-stopped
environment:
- REDIS_URL=redis://192.168.111.121/0
- INITIAL_SERVERS="192.168.222.22, 192.168.222.122"
- INITIAL_SERVERS=192.168.222.22,192.168.123.21
- LOCAL_UUID=d8b2e5e2-f675-4194-9324-af58e4b70c54
- FORCE_IP_OVERRIDE=True
network_mode: "service:consumer-api1"
depends_on:
- consumer-redis1
@ -388,8 +389,9 @@ services:
restart: unless-stopped
environment:
- REDIS_URL=redis://192.168.222.122/0
- INITIAL_SERVERS="192.168.111.21, 192.168.123.21"
- INITIAL_SERVERS=192.168.123.21,192.168.111.21
- LOCAL_UUID=9e79d4e7-f4c2-44d2-ac11-682f62fda985
- FORCE_IP_OVERRIDE=True
network_mode: "service:consumer-api2"
depends_on:
- consumer-redis2
@ -409,7 +411,7 @@ services:
restart: unless-stopped
environment:
- REDIS_URL=redis://192.168.123.121/0
- LOCAL_UUID=d8b2e5e2-f675-4194-9324-af58e4b70c54
- LOCAL_UUID=d8b2e5e3-f675-4194-9324-af58e4b70c55
networks:
thirdsubnet:
ipv4_address: 192.168.123.21
@ -421,8 +423,9 @@ services:
restart: unless-stopped
environment:
- REDIS_URL=redis://192.168.123.121/0
- INITIAL_SERVERS="192.168.111.21, 192.168.222.122"
- INITIAL_SERVERS=192.168.111.21,192.168.222.22
- LOCAL_UUID=d8b2e5e3-f675-4194-9324-af58e4b70c55
- FORCE_IP_OVERRIDE=True
network_mode: "service:consumer-api3"
depends_on:
- consumer-redis1
@ -432,4 +435,4 @@ services:
restart: unless-stopped
networks:
thirdsubnet:
ipv4_address: 192.168.123.121
ipv4_address: 192.168.123.121