-
Notifications
You must be signed in to change notification settings - Fork 21
Add ACNS observability test with Cilium dataplane #1053
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
carlotaarvela
wants to merge
15
commits into
main
Choose a base branch
from
acns-scale-test
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
1a389c0
Add ACNS observability test with Cilium dataplane
carlotaarvela 30540ff
Merge branch 'main' into acns-scale-test
carlotaarvela d11d8a3
Fix test
carlotaarvela 5e96faa
Merge branch 'acns-scale-test' of github.com:Azure/telescope into acn…
carlotaarvela 85c2f34
Fix lint!
carlotaarvela 78b09db
Update clusterloader2 scale config and observability pipeline
carlotaarvela c3cb269
Fix trailing spaces lint errors
carlotaarvela 4a8c385
Fixes
carlotaarvela f84cf65
PR comments
carlotaarvela 6e7023f
Merge branch 'main' into acns-scale-test
carlotaarvela ec52687
Renaming modules + topologies
carlotaarvela c8e4caa
Fix scneario name
carlotaarvela 230d1aa
Lint
carlotaarvela 7f35f20
Merge branch 'main' into acns-scale-test
carlotaarvela 06e10f8
Merge branch 'main' into acns-scale-test
carlotaarvela File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
91 changes: 91 additions & 0 deletions
91
modules/python/clusterloader2/network-scale/config/config.yaml
This file contains hidden or 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,91 @@ | ||
| name: scale-test | ||
|
|
||
| # generic config | ||
| {{$groupName := DefaultParam .CL2_GROUP_NAME "scale-test"}} | ||
| {{$apiServerCallsPerSecond := DefaultParam .CL2_API_SERVER_CALLS_PER_SECOND 5}} | ||
|
|
||
| # topology config | ||
| {{$namespaces := DefaultParam .CL2_NAMESPACES 1}} | ||
| {{$deploymentsPerNamespace := DefaultParam .CL2_DEPLOYMENTS_PER_NAMESPACE 10}} | ||
| {{$replicasPerNamespace := DefaultParam .CL2_REPLICAS_PER_NAMESPACE 5}} | ||
|
|
||
| # topology config | ||
| {{$fortioServerReplicas := DefaultParam .CL2_FORTIO_SERVERS_PER_DEPLOYMENT 10}} | ||
| {{$fortioClientReplicas := DefaultParam .CL2_FORTIO_CLIENTS_PER_DEPLOYMENT 10}} | ||
| {{$fortioClientQueriesPerSecond := DefaultParam .CL2_FORTIO_CLIENT_QUERIES_PER_SECOND 1000}} | ||
| {{$fortioClientConnections := DefaultParam .CL2_FORTIO_CLIENT_CONNECTIONS 10}} | ||
| {{$fortioNamespaces := DefaultParam .CL2_FORTIO_NAMESPACES 1}} | ||
| {{$fortioDeploymentsPerNamespace := DefaultParam .CL2_FORTIO_DEPLOYMENTS_PER_NAMESPACE 1}} | ||
|
|
||
| # Container Network Log config | ||
| {{$createContainerNetworkLogs := DefaultParam .CL2_GENERATE_CONTAINER_NETWORK_LOGS false}} | ||
|
|
||
|
|
||
| namespace: | ||
| number: {{$namespaces}} | ||
| prefix: scale-test | ||
| deleteStaleNamespaces: true | ||
| deleteAutomanagedNamespaces: true | ||
| enableExistingNamespaces: false | ||
| deleteNamespaceTimeout: 20m | ||
|
|
||
| tuningSets: | ||
| - name: Sequence | ||
| parallelismLimitedLoad: | ||
| parallelismLimit: 1 | ||
| - name: DeploymentCreateQps | ||
| qpsLoad: | ||
| qps: {{$apiServerCallsPerSecond}} | ||
|
|
||
| steps: | ||
| - name: Log | ||
| measurements: | ||
| - Identifier: Dummy | ||
| Method: Sleep | ||
| Params: | ||
| action: start | ||
| duration: 1ms | ||
|
|
||
| - module: | ||
| path: /modules/node-exporter.yaml | ||
| params: | ||
| actionName: "create" | ||
| tuningSet: DeploymentCreateQps | ||
|
|
||
| - module: | ||
| path: /modules/ama-logs.yaml | ||
| params: | ||
| actionName: "create" | ||
| tuningSet: DeploymentCreateQps | ||
|
|
||
| - module: | ||
| path: /modules/hubble.yaml | ||
| params: | ||
| actionName: "create" | ||
| tuningSet: DeploymentCreateQps | ||
|
|
||
| - module: | ||
| path: /modules/scale-test.yaml | ||
| params: | ||
| action: start | ||
| group: {{$groupName}} | ||
| createContainerNetworkLogs: {{$createContainerNetworkLogs}} | ||
|
|
||
| - module: | ||
| path: /modules/hubble.yaml | ||
| params: | ||
| actionName: "delete" | ||
| tuningSet: DeploymentCreateQps | ||
|
|
||
| - module: | ||
| path: /modules/ama-logs.yaml | ||
| params: | ||
| actionName: "delete" | ||
| tuningSet: DeploymentCreateQps | ||
|
|
||
| # TODO: Remove this module once there's a way to deploy node exporter that works in perf-tests repository | ||
| - module: | ||
| path: /modules/node-exporter.yaml | ||
| params: | ||
| actionName: "delete" | ||
| tuningSet: DeploymentCreateQps |
26 changes: 26 additions & 0 deletions
26
modules/python/clusterloader2/network-scale/config/modules/ama-logs.yaml
This file contains hidden or 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,26 @@ | ||
| ## AMA Logs module creates AMA Logs pod monitor | ||
|
|
||
| # Tuning set | ||
| {{$tuningSet := DefaultParam .tuningSet "DeploymentCreateQps"}} | ||
|
|
||
| # interval | ||
| {{$interval := DefaultParam .interval "15s"}} | ||
| {{ $replicasPerNamespace := 1 }} | ||
|
|
||
| {{if eq .actionName "create"}} | ||
| {{ $replicasPerNamespace = 1 }} | ||
| {{else}} | ||
| {{ $replicasPerNamespace = 0 }} | ||
| {{end}} | ||
|
|
||
| steps: | ||
| - name: {{.actionName}} AMA Logs Pod Monitor | ||
| phases: | ||
| - namespaceList: | ||
| - "monitoring" | ||
| replicasPerNamespace: {{$replicasPerNamespace}} | ||
| tuningSet: {{$tuningSet}} | ||
| objectBundle: | ||
| - objectTemplatePath: "modules/ama-logs/podmonitor.yaml" | ||
| basename: ama-logs-metrics | ||
| interval: 15s |
26 changes: 26 additions & 0 deletions
26
modules/python/clusterloader2/network-scale/config/modules/ama-logs/podmonitor.yaml
This file contains hidden or 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,26 @@ | ||
| apiVersion: monitoring.coreos.com/v1 | ||
| kind: PodMonitor | ||
| metadata: | ||
| name: ama-logs-metrics | ||
| namespace: monitoring | ||
| spec: | ||
| jobLabel: ama-logs-metrics | ||
| selector: | ||
| matchLabels: | ||
| component: ama-logs-agent | ||
| namespaceSelector: | ||
| matchNames: | ||
| - kube-system | ||
| podMetricsEndpoints: | ||
| - interval: 30s | ||
| honorLabels: true | ||
| path: /metrics | ||
| relabelings: | ||
| - sourceLabels: [__address__] | ||
| action: replace | ||
| targetLabel: __address__ | ||
| regex: (.+?)(\:\d+)? | ||
| replacement: $1:9102 | ||
| - sourceLabels: [__meta_kubernetes_pod_container_name] | ||
| regex: "ama-logs" | ||
| action: keep | ||
89 changes: 89 additions & 0 deletions
89
modules/python/clusterloader2/network-scale/config/modules/fortio/client-deployment.yaml
This file contains hidden or 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,89 @@ | ||
| {{$CpuRequest := DefaultParam .CpuRequest "5m"}} | ||
| {{$MemoryRequest := DefaultParam .MemoryRequest "20Mi"}} | ||
| {{$Image := DefaultParam .Image "acnpublic.azurecr.io/fortio"}} | ||
| {{$FortioClientQueriesPerSecond := .FortioClientQueriesPerSecond}} | ||
| {{$FortioClientConnections := .FortioClientConnections}} | ||
| {{$uniqueLabel := DefaultParam .uniqueLabel ""}} | ||
|
|
||
| apiVersion: apps/v1 | ||
| kind: Deployment | ||
| metadata: | ||
| name: {{.Name}} | ||
| labels: | ||
| group: {{.Group}} | ||
| app: fortio | ||
| role: load | ||
| spec: | ||
| replicas: {{.Replicas}} | ||
| selector: | ||
| matchLabels: | ||
| name: {{.Name}} | ||
| app: fortio | ||
| role: load | ||
| strategy: | ||
| type: Recreate | ||
| template: | ||
| metadata: | ||
| annotations: | ||
| retina.sh: observe | ||
| labels: | ||
| name: {{.Name}} | ||
| group: {{.Group}} | ||
| app: fortio | ||
| role: load | ||
| restart: {{.deploymentLabel}} | ||
| {{if ne $uniqueLabel ""}} | ||
| uniqueLabelPerDeployment: "{{$uniqueLabel}}{{.Index}}" | ||
| {{end}} | ||
| spec: | ||
| nodeSelector: | ||
| scale-test: "true" | ||
| containers: | ||
| - name: fortio | ||
| image: {{$Image}} | ||
| imagePullPolicy: IfNotPresent | ||
| args: | ||
| [ | ||
| "load", | ||
| "-nocatchup", | ||
| "-uniform", | ||
| "-sequential-warmup", | ||
| "-jitter", | ||
| "-udp-timeout", | ||
| "1500ms", | ||
| "-timeout", | ||
| "60s", | ||
| "-connection-reuse", | ||
| "{{$FortioClientConnections}}:{{$FortioClientConnections}}", | ||
| "-c", | ||
| "{{$FortioClientConnections}}", | ||
| "-qps", | ||
| "{{$FortioClientQueriesPerSecond}}", | ||
| "-t", | ||
| "0", | ||
| "http://{{.FortioServerServiceBasename}}-{{.Index}}:8080" | ||
| ] | ||
| ports: | ||
| - containerPort: 8078 # tcp echo | ||
| - containerPort: 8079 # grpc echo | ||
| - containerPort: 8080 # main serving port | ||
| - containerPort: 8081 # redirection to https port | ||
| resources: | ||
| requests: | ||
| cpu: {{$CpuRequest}} | ||
| memory: {{$MemoryRequest}} | ||
| # Add not-ready/unreachable tolerations for 15 minutes so that node | ||
| # failure doesn't trigger pod deletion. | ||
| tolerations: | ||
| - key: "node.kubernetes.io/not-ready" | ||
| operator: "Exists" | ||
| effect: "NoExecute" | ||
| tolerationSeconds: 900 | ||
| - key: "node.kubernetes.io/unreachable" | ||
| operator: "Exists" | ||
| effect: "NoExecute" | ||
| tolerationSeconds: 900 | ||
| - key: "scale-test" | ||
| operator: "Equal" | ||
| value: "true" | ||
| effect: "NoSchedule" |
68 changes: 68 additions & 0 deletions
68
modules/python/clusterloader2/network-scale/config/modules/fortio/server-deployment.yaml
This file contains hidden or 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,68 @@ | ||
| {{$CpuRequest := DefaultParam .CpuRequest "5m"}} | ||
| {{$MemoryRequest := DefaultParam .MemoryRequest "20Mi"}} | ||
| {{$Image := DefaultParam .Image "acnpublic.azurecr.io/fortio"}} | ||
|
|
||
| apiVersion: apps/v1 | ||
| kind: Deployment | ||
| metadata: | ||
| name: {{.Name}} | ||
| labels: | ||
| group: {{.Group}} | ||
| app: fortio | ||
| role: server | ||
| svc: {{.Name}} | ||
| spec: | ||
| replicas: {{.Replicas}} | ||
| selector: | ||
| matchLabels: | ||
| name: {{.Name}} | ||
| app: fortio | ||
| role: server | ||
| strategy: | ||
| type: RollingUpdate | ||
| rollingUpdate: | ||
| maxUnavailable: 20% | ||
| maxSurge: 20% | ||
| template: | ||
| metadata: | ||
| annotations: | ||
| retina.sh: observe | ||
| labels: | ||
| name: {{.Name}} | ||
| group: {{.Group}} | ||
| app: fortio | ||
| role: server | ||
| svc: {{.Name}} | ||
| restart: {{.deploymentLabel}} | ||
| spec: | ||
| nodeSelector: | ||
| scale-test: "true" | ||
| containers: | ||
| - name: fortio | ||
| image: {{$Image}} | ||
| imagePullPolicy: IfNotPresent | ||
| args: ["server", "-http-port", "0.0.0.0:8080"] | ||
| ports: | ||
| - containerPort: 8078 # tcp echo | ||
| - containerPort: 8079 # grpc echo | ||
| - containerPort: 8080 # main serving port | ||
| - containerPort: 8081 # redirection to https port | ||
| resources: | ||
| requests: | ||
| cpu: {{$CpuRequest}} | ||
| memory: {{$MemoryRequest}} | ||
| # Add not-ready/unreachable tolerations for 15 minutes so that node | ||
| # failure doesn't trigger pod deletion. | ||
| tolerations: | ||
| - key: "node.kubernetes.io/not-ready" | ||
| operator: "Exists" | ||
| effect: "NoExecute" | ||
| tolerationSeconds: 900 | ||
| - key: "node.kubernetes.io/unreachable" | ||
| operator: "Exists" | ||
| effect: "NoExecute" | ||
| tolerationSeconds: 900 | ||
| - key: "scale-test" | ||
| operator: "Equal" | ||
| value: "true" | ||
| effect: "NoSchedule" |
10 changes: 10 additions & 0 deletions
10
modules/python/clusterloader2/network-scale/config/modules/fortio/service.yaml
This file contains hidden or 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,10 @@ | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: {{.Name}} | ||
| spec: | ||
| selector: | ||
| svc: {{.Name}} | ||
| ports: | ||
| - port: 8080 | ||
| targetPort: 8080 |
26 changes: 26 additions & 0 deletions
26
modules/python/clusterloader2/network-scale/config/modules/hubble.yaml
This file contains hidden or 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,26 @@ | ||
| ## Hubble module creates Hubble pod monitor | ||
|
|
||
| # Tuning set | ||
| {{$tuningSet := DefaultParam .tuningSet "DeploymentCreateQps"}} | ||
|
|
||
| # interval | ||
| {{$interval := DefaultParam .interval "15s"}} | ||
| {{ $replicasPerNamespace := 1 }} | ||
|
|
||
| {{if eq .actionName "create"}} | ||
| {{ $replicasPerNamespace = 1 }} | ||
| {{else}} | ||
| {{ $replicasPerNamespace = 0 }} | ||
| {{end}} | ||
|
|
||
| steps: | ||
| - name: {{.actionName}} Hubble Pod Monitor | ||
| phases: | ||
| - namespaceList: | ||
| - "monitoring" | ||
| replicasPerNamespace: {{$replicasPerNamespace}} | ||
| tuningSet: {{$tuningSet}} | ||
| objectBundle: | ||
| - objectTemplatePath: "modules/hubble/podmonitor.yaml" | ||
| basename: hubble-metrics | ||
| interval: 15s |
24 changes: 24 additions & 0 deletions
24
modules/python/clusterloader2/network-scale/config/modules/hubble/podmonitor.yaml
This file contains hidden or 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: monitoring.coreos.com/v1 | ||
| kind: PodMonitor | ||
| metadata: | ||
| name: hubble-metrics | ||
| namespace: monitoring | ||
| spec: | ||
| # Hubble metrics are exposed by cilium-agent pods on port 9965. | ||
| # This PodMonitor scrapes Hubble metrics from cilium-agent. | ||
| selector: | ||
| matchLabels: | ||
| k8s-app: cilium | ||
| namespaceSelector: | ||
| matchNames: | ||
| - kube-system | ||
| podMetricsEndpoints: | ||
| - interval: 30s | ||
| honorLabels: true | ||
| path: /metrics | ||
| relabelings: | ||
| - sourceLabels: [__address__] | ||
| action: replace | ||
| targetLabel: __address__ | ||
| regex: (.+?)(\:\d+)? | ||
| replacement: $1:9965 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.