-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tt 562 functions + gateway performance tests, chaos suite (#10397)
* TT-562 s4 tdh2 setup and tests * chaos suite * update deps * fix wrapper generation * encrypt s4 secrets * bump godeltaprof for go 1.21.0 * uniq IDs for secrets * gateway test for secrets_set * gateway test for secrets_set/secrets_list * more throughput through batch calls * update go.mod * load modes for gateway * finalize docs * decouple from env * update README * update go.sum
- Loading branch information
Showing
21 changed files
with
1,297 additions
and
212 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
206 changes: 149 additions & 57 deletions
206
...gethwrappers/functions/generated/functions_load_test_client/functions_load_test_client.go
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,232 @@ | ||
apiVersion: chaos-mesh.org/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
namespace: chainlink | ||
name: chainlink-flow | ||
spec: | ||
entry: entry | ||
templates: | ||
# root entry | ||
- name: entry | ||
templateType: Serial | ||
deadline: 1h | ||
children: | ||
- killing | ||
- network-delay-internal | ||
# - external-deps-failure | ||
# children chaos group | ||
- name: killing | ||
templateType: Serial | ||
children: | ||
- gateway-kill | ||
- don-minority-kill | ||
- don-majority-kill | ||
- adapters-minority-kill | ||
- adapters-majority-kill | ||
# children chaos group | ||
- name: network-delay-internal | ||
templateType: Serial | ||
children: | ||
- gateway-delay | ||
- don-minority-delay | ||
- don-majority-delay | ||
- adapters-minority-delay | ||
- adapters-majority-delay | ||
# children chaos group | ||
- name: external-deps-failure | ||
templateType: Serial | ||
children: | ||
- ea-url-resolve-failure | ||
|
||
# experiments (killing) | ||
- name: gateway-kill | ||
templateType: PodChaos | ||
deadline: 1m | ||
podChaos: | ||
selector: | ||
namespaces: | ||
- chainlink | ||
labelSelectors: | ||
'app.kubernetes.io/instance': cln-gateway-staging1-node | ||
mode: one | ||
action: pod-kill | ||
- name: don-minority-kill | ||
templateType: PodChaos | ||
deadline: 1m | ||
podChaos: | ||
selector: | ||
namespaces: | ||
- chainlink | ||
expressionSelectors: | ||
- key: app.kubernetes.io/instance | ||
operator: In | ||
values: | ||
- clc-ocr2-dr-matic-testnet-nodes-0 | ||
- clc-ocr2-dr-matic-testnet-boot | ||
mode: all | ||
action: pod-kill | ||
- name: don-majority-kill | ||
templateType: PodChaos | ||
deadline: 1m | ||
podChaos: | ||
selector: | ||
namespaces: | ||
- chainlink | ||
expressionSelectors: | ||
- key: app.kubernetes.io/instance | ||
operator: In | ||
values: | ||
- clc-ocr2-dr-matic-testnet-nodes-1 | ||
- clc-ocr2-dr-matic-testnet-nodes-0 | ||
- clc-ocr2-dr-matic-testnet-boot | ||
mode: all | ||
action: pod-kill | ||
- name: adapters-minority-kill | ||
templateType: PodChaos | ||
deadline: 1m | ||
podChaos: | ||
selector: | ||
namespaces: | ||
- adapters | ||
expressionSelectors: | ||
- key: app.kubernetes.io/instance | ||
operator: In | ||
values: | ||
- universal-mumbai-0 | ||
mode: all | ||
action: pod-kill | ||
- name: adapters-majority-kill | ||
templateType: PodChaos | ||
deadline: 1m | ||
podChaos: | ||
selector: | ||
namespaces: | ||
- adapters | ||
expressionSelectors: | ||
- key: app.kubernetes.io/instance | ||
operator: In | ||
values: | ||
- universal-mumbai-1 | ||
- universal-mumbai-0 | ||
mode: all | ||
action: pod-kill | ||
|
||
# TODO: enable when chaosd is installed on all the nodes | ||
# experiments (delays) | ||
- name: gateway-delay | ||
templateType: NetworkChaos | ||
deadline: 1m | ||
networkChaos: | ||
selector: | ||
namespaces: | ||
- chainlink | ||
labelSelectors: | ||
'app.kubernetes.io/instance': cln-gateway-staging1-node | ||
mode: all | ||
action: delay | ||
delay: | ||
latency: 200ms | ||
correlation: '0' | ||
jitter: 0ms | ||
direction: to | ||
- name: don-minority-delay | ||
templateType: NetworkChaos | ||
deadline: 1m | ||
networkChaos: | ||
selector: | ||
namespaces: | ||
- chainlink | ||
expressionSelectors: | ||
- key: app.kubernetes.io/instance | ||
operator: In | ||
values: | ||
- clc-ocr2-dr-matic-testnet-nodes-0 | ||
- clc-ocr2-dr-matic-testnet-boot | ||
mode: all | ||
action: delay | ||
delay: | ||
latency: 200ms | ||
correlation: '0' | ||
jitter: 0ms | ||
direction: to | ||
- name: don-majority-delay | ||
templateType: NetworkChaos | ||
deadline: 1m | ||
networkChaos: | ||
selector: | ||
namespaces: | ||
- chainlink | ||
expressionSelectors: | ||
- key: app.kubernetes.io/instance | ||
operator: In | ||
values: | ||
- clc-ocr2-dr-matic-testnet-nodes-1 | ||
- clc-ocr2-dr-matic-testnet-nodes-0 | ||
- clc-ocr2-dr-matic-testnet-boot | ||
mode: all | ||
action: delay | ||
delay: | ||
latency: 200ms | ||
correlation: '0' | ||
jitter: 0ms | ||
direction: to | ||
- name: adapters-minority-delay | ||
templateType: NetworkChaos | ||
deadline: 1m | ||
networkChaos: | ||
selector: | ||
namespaces: | ||
- adapters | ||
expressionSelectors: | ||
- key: app.kubernetes.io/instance | ||
operator: In | ||
values: | ||
- universal-mumbai-0 | ||
mode: all | ||
action: delay | ||
delay: | ||
latency: 200ms | ||
correlation: '0' | ||
jitter: 0ms | ||
direction: to | ||
- name: adapters-majority-delay | ||
templateType: NetworkChaos | ||
deadline: 1m | ||
networkChaos: | ||
selector: | ||
namespaces: | ||
- adapters | ||
expressionSelectors: | ||
- key: app.kubernetes.io/instance | ||
operator: In | ||
values: | ||
- universal-mumbai-1 | ||
- universal-mumbai-0 | ||
mode: all | ||
action: delay | ||
delay: | ||
latency: 200ms | ||
correlation: '0' | ||
jitter: 0ms | ||
direction: to | ||
|
||
# experiments (external deps failure) | ||
# - name: ea-url-resolve-failure | ||
# templateType: NetworkChaos | ||
# deadline: 3m | ||
# networkChaos: | ||
# selector: | ||
# namespaces: | ||
# - chainlink | ||
# mode: all | ||
# action: partition | ||
# direction: to | ||
# target: | ||
# selector: | ||
# namespaces: | ||
# - chainlink | ||
# mode: all | ||
# externalTargets: | ||
# - >- | ||
# my-url.com | ||
|
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
Oops, something went wrong.