-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #351 from chirino/sandbox-distributed
Add some load testing tools to the sandbox
- Loading branch information
Showing
21 changed files
with
2,382 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
*.key | ||
*.pem | ||
*.csr | ||
report.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
--- | ||
version: '3.8' | ||
services: | ||
envoy: | ||
image: envoyproxy/envoy:v1.20-latest | ||
depends_on: | ||
- upstream | ||
- limitador | ||
command: | ||
- /usr/local/bin/envoy | ||
- --config-path | ||
- /etc/envoy.yaml | ||
- --log-level | ||
- info | ||
- --component-log-level | ||
- http:debug,router:debug | ||
- --service-cluster | ||
- proxy | ||
expose: | ||
- "80" | ||
- "8001" | ||
ports: | ||
- "18000:80" | ||
- "18001:8001" | ||
volumes: | ||
- ./envoy.yaml:/etc/envoy.yaml | ||
envoy2: | ||
image: envoyproxy/envoy:v1.20-latest | ||
depends_on: | ||
- upstream | ||
- limitador | ||
command: | ||
- /usr/local/bin/envoy | ||
- --config-path | ||
- /etc/envoy.yaml | ||
- --log-level | ||
- info | ||
- --component-log-level | ||
- http:debug,router:debug | ||
- --service-cluster | ||
- proxy | ||
expose: | ||
- "80" | ||
- "8001" | ||
ports: | ||
- "18100:80" | ||
- "18101:8001" | ||
volumes: | ||
- ./envoy.yaml:/etc/envoy.yaml | ||
envoy3: | ||
image: envoyproxy/envoy:v1.20-latest | ||
depends_on: | ||
- upstream | ||
- limitador | ||
command: | ||
- /usr/local/bin/envoy | ||
- --config-path | ||
- /etc/envoy.yaml | ||
- --log-level | ||
- info | ||
- --component-log-level | ||
- http:debug,router:debug | ||
- --service-cluster | ||
- proxy | ||
expose: | ||
- "80" | ||
- "8001" | ||
ports: | ||
- "18200:80" | ||
- "18201:8001" | ||
volumes: | ||
- ./envoy.yaml:/etc/envoy.yaml | ||
upstream: | ||
image: kennethreitz/httpbin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
limitador-server/sandbox/docker-compose-limitador-distributed-3-node.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
version: '3.8' | ||
services: | ||
limitador: | ||
image: limitador-testing-all-features | ||
build: | ||
context: ../.. | ||
dockerfile: Dockerfile | ||
args: | ||
- CARGO_ARGS=--all-features | ||
command: | | ||
limitador-server --rls-ip 0.0.0.0 --rls-port 8081 --http-ip 0.0.0.0 --http-port "8080" | ||
-vv --grpc-reflection-service /opt/kuadrant/limits/limits.yaml | ||
distributed limitador 0.0.0.0:5001 http://limitador2:5001 http://limitador3:5001 | ||
expose: | ||
- "8080" | ||
- "8081" | ||
- "5001" | ||
ports: | ||
- "18080:8080" | ||
- "18081:8081" | ||
- "15001:5001" | ||
volumes: | ||
- ./limits.yaml:/opt/kuadrant/limits/limits.yaml | ||
limitador2: | ||
image: limitador-testing-all-features | ||
build: | ||
context: ../.. | ||
dockerfile: Dockerfile | ||
args: | ||
- CARGO_ARGS=--all-features | ||
command: | | ||
limitador-server --rls-ip 0.0.0.0 --rls-port 8081 --http-ip 0.0.0.0 --http-port "8080" | ||
-vv --grpc-reflection-service /opt/kuadrant/limits/limits.yaml | ||
distributed limitador2 0.0.0.0:5001 http://limitador:5001 http://limitador3:5001 | ||
expose: | ||
- "8080" | ||
- "8081" | ||
- "5001" | ||
volumes: | ||
- ./limits.yaml:/opt/kuadrant/limits/limits.yaml | ||
limitador3: | ||
image: limitador-testing-all-features | ||
build: | ||
context: ../.. | ||
dockerfile: Dockerfile | ||
args: | ||
- CARGO_ARGS=--all-features | ||
command: | | ||
limitador-server --rls-ip 0.0.0.0 --rls-port 8081 --http-ip 0.0.0.0 --http-port "8080" | ||
-vv --grpc-reflection-service /opt/kuadrant/limits/limits.yaml | ||
distributed limitador3 0.0.0.0:5001 http://limitador:5001 http://limitador2:5001 | ||
expose: | ||
- "8080" | ||
- "8081" | ||
- "5001" | ||
volumes: | ||
- ./limits.yaml:/opt/kuadrant/limits/limits.yaml |
24 changes: 24 additions & 0 deletions
24
limitador-server/sandbox/docker-compose-limitador-distributed.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
version: '3.8' | ||
services: | ||
limitador: | ||
image: limitador-testing-all-features | ||
build: | ||
context: ../.. | ||
dockerfile: Dockerfile | ||
args: | ||
- CARGO_ARGS=--all-features | ||
command: | | ||
limitador-server --rls-ip 0.0.0.0 --rls-port 8081 --http-ip 0.0.0.0 --http-port "8080" | ||
-vv --grpc-reflection-service /opt/kuadrant/limits/limits.yaml | ||
distributed ${PEER_ID:-node1} 0.0.0.0:5001 ${PEER_URLS:-} | ||
expose: | ||
- "8080" | ||
- "8081" | ||
- "5001" | ||
ports: | ||
- "18080:8080" | ||
- "18081:8081" | ||
- "15001:5001" | ||
volumes: | ||
- ./limits.yaml:/opt/kuadrant/limits/limits.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.