Skip to content

Commit

Permalink
complete update app from fib calculator to smartbrain
Browse files Browse the repository at this point in the history
  • Loading branch information
mosabami committed Apr 19, 2023
1 parent 5f999a8 commit 42812cf
Show file tree
Hide file tree
Showing 22 changed files with 52 additions and 50 deletions.
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}\\smartbrain\\smartbrain\\smartbrainapi\\server.js",
"program": "${file}",
"preLaunchTask": "bridge-to-kubernetes.resource",
"env": {
"GRPC_DNS_RESOLVER": "native"
Expand All @@ -24,7 +24,7 @@
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}\\smartbrain\\smartbrain\\smartbrainapi\\server.js"
"program": "${file}"
}
]
}
2 changes: 1 addition & 1 deletion IaC/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module aksconst 'aks-construction/bicep/main.bicep' = {
registries_sku: 'Standard'
omsagent: true
retentionInDays: 30
agentCount: 1
agentCount: 2
agentVMSize: 'Standard_D2ds_v4'
osDiskType: 'Managed'
AksPaidSkuForSLA: true
Expand Down
68 changes: 35 additions & 33 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion k8s/api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
command: ['sh', '-c', "until nslookup postgres-service.$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace).svc.cluster.local; do echo waiting for postgres-service; sleep 2; done"]
containers:
- name: server
image: <ACR name>.azurecr.io/server:v20
image: <ACR name>.azurecr.io/server:v1
imagePullPolicy: Always
resources:
requests:
Expand Down
6 changes: 3 additions & 3 deletions k8s/client-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ spec:
- name: client
resources:
requests:
cpu: 250m
memory: 128Mi
cpu: 500m
memory: 256Mi
limits:
cpu: 1000m
memory: 256Mi
memory: 512Mi
imagePullPolicy: Always
image: <ACR name>.azurecr.io/client:v1
ports:
Expand Down
2 changes: 1 addition & 1 deletion k8s/ingress-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
annotations:
kubernetes.io/ingress.class: 'nginx'
nginx.ingress.kubernetes.io/use-regex: 'true'
nginx.ingress.kubernetes.io/rewrite-target: /$1
# nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
rules:
- http:
Expand Down
8 changes: 4 additions & 4 deletions k8s/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: worker-deployment
namespace: superapp
spec:
replicas: 2
replicas: 1
selector:
matchLabels:
component: worker
Expand All @@ -19,11 +19,11 @@ spec:
- name: worker
resources:
requests:
cpu: 250m
cpu: 50m
memory: 128Mi
limits:
cpu: 1000m
memory: 256Mi
cpu: 200m
memory: 512Mi
image: <ACR name>.azurecr.io/worker:v1
ports:
- containerPort: 2000
Expand Down
6 changes: 3 additions & 3 deletions loadtesting/test-superapp.jmx
Original file line number Diff line number Diff line change
Expand Up @@ -159,17 +159,17 @@
<collectionProp name="Arguments.arguments">
<elementProp name="endpoint" elementType="Argument">
<stringProp name="Argument.name">endpoint</stringProp>
<stringProp name="Argument.value">20.242.223.32</stringProp>
<stringProp name="Argument.value">20.237.103.190</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="threads" elementType="Argument">
<stringProp name="Argument.name">threads</stringProp>
<stringProp name="Argument.value">250</stringProp>
<stringProp name="Argument.value">50</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="loops" elementType="Argument">
<stringProp name="Argument.name">loops</stringProp>
<stringProp name="Argument.value">200</stringProp>
<stringProp name="Argument.value">250</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
</collectionProp>
Expand Down
2 changes: 1 addition & 1 deletion loadtesting/worker-hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ spec:
apiVersion: apps/v1
kind: Deployment
name: worker-deployment
targetCPUUtilizationPercentage: 50
targetCPUUtilizationPercentage: 30
Binary file added media/bug-fixed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/cpu-usage-10-50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/host-address-postgres-service.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/incorrect-count.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/new-node-added.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/new-pods-scheduled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/node-not-fully-utilized.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/nodes-pods-scheduled-to.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/pods-in-pending.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/running-local.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/scheduled-pods-full-utilized.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/used-host-address.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 42812cf

Please sign in to comment.