-
Notifications
You must be signed in to change notification settings - Fork 6
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
Network churn Load test - Add network policy enforcement latency measurement #431
Open
agrawaliti
wants to merge
25
commits into
main
Choose a base branch
from
network-churn
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
25 commits
Select commit
Hold shift + click to select a range
d69ce5d
fix service churn feature pipeline name (#417)
jshr-w 5024f5c
Merge branch 'main' of https://github.com/Azure/telescope into networ…
agrawaliti a0599f3
Refactor YAML files for network churn: clean up formatting and add OW…
agrawaliti 9814101
Merge branch 'main' into network-churn
agrawaliti b9aa5f6
Update nodes_per_nodepool value in validate-resources.yml to 500
agrawaliti e976e31
Enable existing namespaces in load-config.yaml
agrawaliti 9c20982
Remove redundant parameters from validate-resources.yml
agrawaliti 9b55220
Disable existing namespaces in autoscale and slo configurations; adju…
agrawaliti bdb7267
Enable existing namespaces in autoscale configuration and update temp…
agrawaliti 6ced26d
Fix indentation in collect-clusterloader2.yml for template path consi…
agrawaliti 2e3e8ee
Update load-config.yaml and slo.py for deployment size adjustments an…
agrawaliti 568b69c
Add new parameters for namespaces, network policies, and service test…
agrawaliti 6ddeace
To test Commit
agrawaliti a3c8a83
Revert and update deployment size
agrawaliti 56df80f
test load condition
agrawaliti b7e79fc
Test valid datatype
agrawaliti 95e7006
test string type
agrawaliti ed4c562
test type
agrawaliti 293b0cb
add commnet
agrawaliti 6f6950f
test if
agrawaliti 725c6c2
conditional logic
agrawaliti b27b806
refactor: update group size parameters and maintain backward compatib…
agrawaliti ec21cce
fix: update nginx image to use the latest version from the Azure cont…
agrawaliti c26601d
add metrics for npm
agrawaliti 00c1e73
adding condition
agrawaliti 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
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 |
---|---|---|
|
@@ -33,6 +33,9 @@ parameters: | |
- name: run_id | ||
type: string | ||
default: '' | ||
- name: run_id_2 | ||
type: string | ||
default: '' | ||
- name: timeout_in_minutes | ||
type: number | ||
default: 60 # default when not specified is 60 minutes | ||
|
@@ -48,6 +51,9 @@ parameters: | |
- name: ssh_key_enabled | ||
type: boolean | ||
default: true | ||
- name: use_secondary_cluster | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what is secondary cluster for? |
||
type: boolean | ||
default: false | ||
|
||
jobs: | ||
- job: ${{ parameters.cloud }} | ||
|
@@ -62,10 +68,12 @@ jobs: | |
cloud: ${{ parameters.cloud }} | ||
region: ${{ parameters.regions[0] }} | ||
run_id: ${{ parameters.run_id }} | ||
run_id_2: ${{ parameters.run_id_2 }} | ||
test_modules_dir: ${{ parameters.test_modules_dir }} | ||
retry_attempt_count: ${{ parameters.retry_attempt_count }} | ||
credential_type: ${{ parameters.credential_type }} | ||
ssh_key_enabled: ${{ parameters.ssh_key_enabled }} | ||
use_secondary_cluster: ${{ parameters.use_secondary_cluster }} | ||
- template: /steps/provision-resources.yml | ||
parameters: | ||
cloud: ${{ parameters.cloud }} | ||
|
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
57 changes: 57 additions & 0 deletions
57
...thon/clusterloader2/slo/config/modules/network-policy/net-policy-enforcement-latency.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,57 @@ | ||
{{$NETWORK_POLICY_ENFORCEMENT_LATENCY_BASELINE := DefaultParam .CL2_NETWORK_POLICY_ENFORCEMENT_LATENCY_BASELINE false}} | ||
{{$NET_POLICY_ENFORCEMENT_LATENCY_TARGET_LABEL_KEY := DefaultParam .CL2_NET_POLICY_ENFORCEMENT_LATENCY_TARGET_LABEL_KEY "net-pol-test"}} | ||
{{$NET_POLICY_ENFORCEMENT_LATENCY_TARGET_LABEL_VALUE := DefaultParam .CL2_NET_POLICY_ENFORCEMENT_LATENCY_TARGET_LABEL_VALUE "enforcement-latency"}} | ||
{{$NET_POLICY_ENFORCEMENT_LATENCY_NODE_LABEL_KEY := DefaultParam .CL2_NET_POLICY_ENFORCEMENT_LATENCY_NODE_LABEL_KEY "test"}} | ||
{{$NET_POLICY_ENFORCEMENT_LATENCY_NODE_LABEL_VALUE := DefaultParam .CL2_NET_POLICY_ENFORCEMENT_LATENCY_NODE_LABEL_VALUE "net-policy-client"}} | ||
{{$NET_POLICY_ENFORCEMENT_LATENCY_MAX_TARGET_PODS_PER_NS := DefaultParam .CL2_NET_POLICY_ENFORCEMENT_LATENCY_MAX_TARGET_PODS_PER_NS 100}} | ||
{{$NET_POLICY_ENFORCEMENT_LOAD_COUNT := DefaultParam .CL2_NET_POLICY_ENFORCEMENT_LOAD_COUNT 1000}} | ||
{{$NET_POLICY_ENFORCEMENT_LOAD_QPS := DefaultParam .CL2_NET_POLICY_ENFORCEMENT_LOAD_QPS 10}} | ||
{{$NET_POLICY_ENFORCEMENT_LOAD_TARGET_NAME := DefaultParam .CL2_POLICY_ENFORCEMENT_LOAD_TARGET_NAME "small-deployment"}} | ||
|
||
{{$setup := DefaultParam .setup false}} | ||
{{$run := DefaultParam .run false}} | ||
{{$complete := DefaultParam .complete false}} | ||
{{$testType := DefaultParam .testType "policy-creation"}} | ||
# Target port needs to match the server container port of target pods that have | ||
# "targetLabelKey: targetLabelValue" label selector. | ||
{{$targetPort := 80}} | ||
|
||
steps: | ||
{{if $setup}} | ||
- name: Setup network policy enforcement latency measurement | ||
measurements: | ||
- Identifier: NetworkPolicyEnforcement | ||
Method: NetworkPolicyEnforcement | ||
Params: | ||
action: setup | ||
targetLabelKey: {{$NET_POLICY_ENFORCEMENT_LATENCY_TARGET_LABEL_KEY}} | ||
targetLabelValue: {{$NET_POLICY_ENFORCEMENT_LATENCY_TARGET_LABEL_VALUE}} | ||
baseline: {{$NETWORK_POLICY_ENFORCEMENT_LATENCY_BASELINE}} | ||
testClientNodeSelectorKey: {{$NET_POLICY_ENFORCEMENT_LATENCY_NODE_LABEL_KEY}} | ||
testClientNodeSelectorValue: {{$NET_POLICY_ENFORCEMENT_LATENCY_NODE_LABEL_VALUE}} | ||
{{end}} | ||
|
||
{{if $run}} | ||
- name: "Run pod creation network policy enforcement latency measurement (testType={{$testType}})" | ||
measurements: | ||
- Identifier: NetworkPolicyEnforcement | ||
Method: NetworkPolicyEnforcement | ||
Params: | ||
action: run | ||
testType: {{$testType}} | ||
targetPort: {{$targetPort}} | ||
maxTargets: {{$NET_POLICY_ENFORCEMENT_LATENCY_MAX_TARGET_PODS_PER_NS}} | ||
policyLoadCount: {{$NET_POLICY_ENFORCEMENT_LOAD_COUNT}} | ||
policyLoadQPS: {{$NET_POLICY_ENFORCEMENT_LOAD_QPS}} | ||
policyLoadTargetBaseName: {{$NET_POLICY_ENFORCEMENT_LOAD_TARGET_NAME}} | ||
{{end}} | ||
|
||
{{if $complete}} | ||
- name: "Complete pod creation network policy enforcement latency measurement (testType={{$testType}})" | ||
measurements: | ||
- Identifier: NetworkPolicyEnforcement | ||
Method: NetworkPolicyEnforcement | ||
Params: | ||
action: complete | ||
testType: {{$testType}} | ||
{{end}} |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is run id 2 for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am using two different pre created cluster for azure_cilium and azure_cni_overlay and I am passing those two clusters using run_id and run_id_2, as creating two new cluster for every run with 1000 nodes each takes a very long time, so I am passing two cluster tags to run tests on them.
On second thought I am thinking i can do it with terraform and schedule it to run periodically.