-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
483 additions
and
688 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
FROM golang:1.20.6-alpine3.18 AS builder | ||
FROM golang:1.20.7-alpine3.18 | ||
WORKDIR /go/src/core | ||
COPY . . | ||
RUN apk add protoc protobuf-dev make git gcc musl-dev | ||
RUN apk add --update --no-cache protoc protobuf-dev make git gcc musl-dev | ||
RUN go get github.com/fullstorydev/grpcurl/... | ||
RUN go install github.com/fullstorydev/grpcurl/cmd/grpcurl | ||
RUN go get -t github.com/awakari/core/test | ||
ENTRYPOINT ["/usr/bin/make", "test"] |
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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
apiVersion: v2 | ||
name: core-tests-perf | ||
description: Helm chart for the Awakari Core performance test | ||
|
||
# A chart can be either an 'application' or a 'library' chart. | ||
# | ||
# Application charts are a collection of templates that can be packaged into versioned archives | ||
# to be deployed. | ||
# | ||
# Library charts provide useful utilities or functions for the chart developer. They're included as | ||
# a dependency of application charts to inject those utilities and functions into the rendering | ||
# pipeline. Library charts do not define any templates and therefore cannot be deployed. | ||
type: application | ||
|
||
# This is the chart version. This version number should be incremented each time you make changes | ||
# to the chart and its templates, including the app version. | ||
# Versions are expected to follow Semantic Versioning (https://semver.org/) | ||
version: 0.0.0 | ||
|
||
# This is the version number of the application being deployed. This version number should be | ||
# incremented each time you make changes to the application. Versions are not expected to | ||
# follow Semantic Versioning. They should reflect the version the application is using. | ||
# It is recommended to use it with quotes. | ||
appVersion: "latest" |
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,47 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
labels: | ||
app: "core-tests-perf-e2e" | ||
name: "core-tests-perf-e2e" | ||
spec: | ||
template: | ||
spec: | ||
nodeSelector: | ||
purpose: svc | ||
{{- with .Values.imagePullSecrets }} | ||
imagePullSecrets: | ||
{{- toYaml . | nindent 12 }} | ||
{{- end }} | ||
initContainers: | ||
- name: "core-tests-perf-e2e-subs10-rate200" | ||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" | ||
imagePullPolicy: "{{ .Values.image.pullPolicy }}" | ||
command: | ||
- /usr/bin/make | ||
args: | ||
- testperfe2e | ||
env: | ||
- name: TEST_PERF_E2E_SUB_COUNT | ||
value: "10" | ||
- name: TEST_PERF_E2E_WRITE_RATE | ||
value: "200" | ||
- name: TEST_PERF_E2E_BATCH_SIZE | ||
value: "16" | ||
- name: TEST_PERF_E2E_DURATION | ||
value: "4m" | ||
- name: URI_READER | ||
value: "core-reader:50051" | ||
- name: URI_SUBSCRIPTIONS | ||
value: "core-subscriptionsproxy:50051" | ||
- name: URI_RESOLVER | ||
value: "core-resolver:50051" | ||
- name: URI_MATCHES | ||
value: "core-matches:50051" | ||
- name: URI_MESSAGES | ||
value: "core-messages:50051" | ||
containers: | ||
- name: job-done | ||
image: busybox | ||
command: [ 'sh', '-c', 'echo "core-tests-perf-e2e completed"' ] | ||
restartPolicy: Never |
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,70 @@ | ||
# This is a YAML-formatted file. | ||
# Declare variables to be passed into your templates. | ||
|
||
replicaCount: 1 | ||
|
||
image: | ||
repository: ghcr.io/awakari/core-tests | ||
pullPolicy: Always | ||
tag: "latest" | ||
imagePullSecrets: | ||
- name: github-registry | ||
nameOverride: "" | ||
fullnameOverride: "" | ||
|
||
serviceAccount: | ||
# Specifies whether a service account should be created | ||
create: true | ||
# Annotations to add to the service account | ||
annotations: {} | ||
# The name of the service account to use. | ||
# If not set and create is true, a name is generated using the fullname template | ||
name: "" | ||
|
||
podAnnotations: {} | ||
|
||
podSecurityContext: {} | ||
# fsGroup: 2000 | ||
|
||
securityContext: {} | ||
# capabilities: | ||
# drop: | ||
# - ALL | ||
# readOnlyRootFilesystem: true | ||
# runAsNonRoot: true | ||
# runAsUser: 1000 | ||
|
||
service: | ||
type: ClusterIP | ||
port: 8080 | ||
|
||
ingress: | ||
enabled: false | ||
className: "" | ||
annotations: {} | ||
# kubernetes.io/ingress.class: nginx | ||
# kubernetes.io/tls-acme: "true" | ||
hosts: [] | ||
tls: [] | ||
# - secretName: chart-example-tls | ||
# hosts: | ||
# - chart-example.local | ||
|
||
resources: | ||
requests: | ||
cpu: 1m | ||
memory: 16Mi | ||
|
||
autoscaling: | ||
enabled: false | ||
minReplicas: 1 | ||
maxReplicas: 1 | ||
targetCPUUtilizationPercentage: 80 | ||
# targetMemoryUtilizationPercentage: 80 | ||
|
||
nodeSelector: | ||
purpose: svc | ||
|
||
tolerations: [] | ||
|
||
affinity: {} |
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,156 @@ | ||
mongodb: | ||
internal: true | ||
shards: 3 # test variable, vary: 1, 2, 3 | ||
configsvr: | ||
nodeSelector: | ||
purpose: svc | ||
mongos: | ||
replicaCount: 3 # should be equal to mongodb.shards | ||
nodeSelector: | ||
purpose: db | ||
shardsvr: | ||
dataNode: | ||
podAntiAffinityPreset: hard | ||
replicaCount: 1 | ||
nodeSelector: | ||
purpose: db | ||
|
||
nats: | ||
nodeSelector: | ||
purpose: svc | ||
replicaCount: 3 | ||
|
||
redis: | ||
redis: | ||
nodeSelector: | ||
purpose: svc | ||
|
||
semaphore: | ||
autoscaling: | ||
enabled: false | ||
log: | ||
level: 0 | ||
nodeSelector: | ||
purpose: svc | ||
replicaCount: 3 | ||
resources: | ||
limits: {} | ||
|
||
queue: | ||
autoscaling: | ||
enabled: false | ||
log: | ||
level: 0 | ||
nodeSelector: | ||
purpose: svc | ||
replicaCount: 3 | ||
resources: | ||
limits: {} | ||
|
||
conditionsnumber: | ||
autoscaling: | ||
enabled: false | ||
log: | ||
level: 0 | ||
nodeSelector: | ||
purpose: svc | ||
resources: | ||
limits: {} | ||
|
||
conditionstext: | ||
autoscaling: | ||
enabled: false | ||
log: | ||
level: 0 | ||
nodeSelector: | ||
purpose: svc | ||
resources: | ||
limits: {} | ||
replicaCount: 3 | ||
|
||
matches: | ||
autoscaling: | ||
enabled: false | ||
db: | ||
retentionPeriod: 1s | ||
log: | ||
level: 0 | ||
nodeSelector: | ||
purpose: svc | ||
resources: | ||
limits: {} | ||
replicaCount: 3 | ||
|
||
messages: | ||
autoscaling: | ||
enabled: false | ||
db: | ||
retentionPeriod: 1s | ||
log: | ||
level: 0 | ||
nodeSelector: | ||
purpose: svc | ||
resources: | ||
limits: {} | ||
replicaCount: 3 | ||
|
||
subscriptionsproxy: | ||
api: | ||
# use "local" subscriptions | ||
subscriptions: | ||
tls: | ||
enabled: false | ||
uri: "subscriptions:50051" | ||
autoscaling: | ||
enabled: false | ||
log: | ||
level: 0 | ||
nodeSelector: | ||
purpose: svc | ||
resources: | ||
limits: {} | ||
replicaCount: 3 | ||
|
||
reader: | ||
autoscaling: | ||
enabled: false | ||
log: | ||
level: 0 | ||
nodeSelector: | ||
purpose: svc | ||
resources: | ||
limits: {} | ||
replicaCount: 3 | ||
|
||
evaluator: | ||
autoscaling: | ||
enabled: false | ||
log: | ||
level: 0 | ||
nodeSelector: | ||
purpose: svc | ||
resources: | ||
limits: {} | ||
replicaCount: 3 | ||
|
||
writer: | ||
autoscaling: | ||
enabled: false | ||
log: | ||
level: 0 | ||
nodeSelector: | ||
purpose: svc | ||
resources: | ||
limits: {} | ||
replicaCount: 3 | ||
|
||
resolver: | ||
autoscaling: | ||
enabled: false | ||
log: | ||
level: 0 | ||
nodeSelector: | ||
purpose: svc | ||
replicaCount: 3 | ||
resources: | ||
limits: {} |
Oops, something went wrong.