-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add performance test for redis. (#1562)
Also add preliminary Makefile target with docker compose setup for redis. Comment out query part of performance test, as it is hanging. Signed-off-by: Jeff Mendoza <[email protected]>
- Loading branch information
1 parent
c4c8ca3
commit cb92e23
Showing
4 changed files
with
113 additions
and
33 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
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,40 @@ | ||
version: "3.9" | ||
|
||
volumes: | ||
redis_guac_data: | ||
services: | ||
guac-graphql: | ||
networks: [frontend] | ||
image: $GUAC_IMAGE | ||
command: "/opt/guac/guacgql" | ||
working_dir: /guac | ||
restart: on-failure | ||
depends_on: | ||
nats: | ||
condition: service_healthy | ||
redis: | ||
condition: service_healthy | ||
ports: | ||
- "$GUAC_API_PORT:8080" | ||
volumes: | ||
- ./container_files/redis:/guac:z | ||
healthcheck: | ||
test: ["CMD", "wget", "--spider", "http://localhost:8080"] | ||
interval: 10s | ||
timeout: 10s | ||
retries: 3 | ||
start_period: 5s | ||
redis: | ||
networks: [frontend] | ||
image: cgr.dev/chainguard/redis | ||
ports: | ||
- "6379:6379" | ||
restart: on-failure | ||
volumes: | ||
- redis_guac_data:/data | ||
healthcheck: | ||
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ] | ||
interval: 10s | ||
timeout: 10s | ||
retries: 3 | ||
start_period: 1s |
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 @@ | ||
# nats | ||
nats-addr: nats://nats:4222 | ||
|
||
# collect-sub | ||
csub-addr: guac-collectsub:2782 | ||
csub-listen-port: 2782 | ||
|
||
# graphql | ||
gql-backend: keyvalue | ||
gql-listen-port: 8080 | ||
gql-debug: true | ||
gql-addr: http://guac-graphql:8080/query | ||
|
||
# keyvalue | ||
kv-store: redis | ||
kv-redis: redis://user@redis:6379/0 | ||
|
||
# collector polling | ||
service-poll: true | ||
use-csub: true | ||
|
||
# certifier polling | ||
poll: true | ||
interval: 5m |