Compare commits
6 Commits
9f7f993aa2
...
master
Author | SHA1 | Date | |
---|---|---|---|
00098996c6 | |||
61974f9d64 | |||
067e9c4cd4 | |||
c1f4d772be | |||
7ab4575ae4 | |||
7b70ebeb27 |
12
README.rst
Normal file
12
README.rst
Normal 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.
|
@ -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
|
||||
|
Reference in New Issue
Block a user