Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Some consistency cases #296

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions argo/cron/matrix/bank.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
metadata:
name: tipocket-bank-matrix
spec:
schedule: "0 0 * * *"
concurrencyPolicy: "Forbid"
timezone: "Asia/Shanghai"
startingDeadlineSeconds: 0
workflowSpec:
entrypoint: call-tipocket-bank
arguments:
parameters:
- name: ns
value: tipocket-bank-matrix
- name: purge
value: "true"
- name: image-version
value: nightly
- name: storage-class
value: sas
- name: nemesis
value: random_kill,kill_pd_leader_5min,partition_one,subcritical_skews,big_skews,shuffle-leader-scheduler,shuffle-region-scheduler,random-merge-scheduler
- name: client
value: "5"
- name: request-count
value: "20000"
- name: round
value: "100"
- name: loki-addr
value: "http://gateway.loki.svc"
- name: loki-username
value: "loki"
- name: loki-password
value: "admin"
- name: matrix-config
value: "/config/matrix.yaml"
- name: matrix-tidb
value: "tidb.toml"
- name: matrix-tikv
value: "tikv.toml"
- name: matrix-pd
value: "pd.toml"
- name: matrix-sql
value: "mysql-system-vars.sql,tidb-system-vars.sql"
templates:
- name: call-tipocket-bank
steps:
- - name: call-wait-cluster
templateRef:
name: wait-cluster
template: wait-cluster
arguments:
parameters:
- name: ns
value: "{{workflow.parameters.ns}}"
- - name: call-tipocket-bank
templateRef:
name: tipocket-bank
template: tipocket-bank
arguments:
parameters:
- name: ns
value: "{{workflow.parameters.ns}}"
- name: purge
value: "{{workflow.parameters.purge}}"
- name: image-version
value: "{{workflow.parameters.image-version}}"
- name: storage-class
value: "{{workflow.parameters.storage-class}}"
- name: nemesis
value: "{{workflow.parameters.nemesis}}"
- name: client
value: "{{workflow.parameters.client}}"
- name: request-count
value: "{{workflow.parameters.request-count}}"
- name: round
value: "{{workflow.parameters.round}}"
- name: loki-addr
value: "{{workflow.parameters.loki-addr}}"
- name: loki-username
value: "{{workflow.parameters.loki-username}}"
- name: loki-password
value: "{{workflow.parameters.loki-password}}"
- name: matrix-config
value: "{{workflow.parameters.matrix-config}}"
- name: matrix-tidb
value: "{{workflow.parameters.matrix-tidb}}"
- name: matrix-tikv
value: "{{workflow.parameters.matrix-tikv}}"
- name: matrix-pd
value: "{{workflow.parameters.matrix-pd}}"
- name: matrix-sql
value: "{{workflow.parameters.matrix-sql}}"
84 changes: 84 additions & 0 deletions argo/cron/matrix/ledger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
metadata:
name: tipocket-ledger-matrix
spec:
schedule: "0 1 * * *"
concurrencyPolicy: "Forbid"
timezone: "Asia/Shanghai"
startingDeadlineSeconds: 0
workflowSpec:
entrypoint: call-tipocket-ledger
arguments:
parameters:
- name: ns
value: tipocket-ledger-matrix
- name: purge
value: "true"
- name: image-version
value: release-4.0-nightly
- name: storage-class
value: sas
- name: nemesis
value: ""
- name: run-time
value: "120m"
- name: loki-addr
value: "http://gateway.loki.svc"
- name: loki-username
value: "loki"
- name: loki-password
value: "admin"
- name: matrix-config
value: "/config/matrix.yaml"
- name: matrix-tidb
value: "tidb.toml"
- name: matrix-tikv
value: "tikv.toml"
- name: matrix-pd
value: "pd.toml"
- name: matrix-sql
value: "mysql-system-vars.sql,tidb-system-vars.sql"
templates:
- name: call-tipocket-ledger
steps:
- - name: call-wait-cluster
templateRef:
name: wait-cluster
template: wait-cluster
arguments:
parameters:
- name: ns
value: "{{workflow.parameters.ns}}"
- - name: call-tipocket-ledger
templateRef:
name: tipocket-ledger
template: tipocket-ledger
arguments:
parameters:
- name: ns
value: "{{workflow.parameters.ns}}"
- name: purge
value: "{{workflow.parameters.purge}}"
- name: image-version
value: "{{workflow.parameters.image-version}}"
- name: storage-class
value: "{{workflow.parameters.storage-class}}"
- name: nemesis
value: "{{workflow.parameters.nemesis}}"
- name: run-time
value: "{{workflow.parameters.run-time}}"
- name: loki-addr
value: "{{workflow.parameters.loki-addr}}"
- name: loki-username
value: "{{workflow.parameters.loki-username}}"
- name: loki-password
value: "{{workflow.parameters.loki-password}}"
- name: matrix-config
value: "{{workflow.parameters.matrix-config}}"
- name: matrix-tidb
value: "{{workflow.parameters.matrix-tidb}}"
- name: matrix-tikv
value: "{{workflow.parameters.matrix-tikv}}"
- name: matrix-pd
value: "{{workflow.parameters.matrix-pd}}"
- name: matrix-sql
value: "{{workflow.parameters.matrix-sql}}"
108 changes: 108 additions & 0 deletions argo/cron/matrix/list-append.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
metadata:
name: tipocket-list-append-matrix
spec:
schedule: "0 5 * * *"
concurrencyPolicy: "Forbid"
timezone: "Asia/Shanghai"
startingDeadlineSeconds: 0
workflowSpec:
entrypoint: call-tipocket-list-append
arguments:
parameters:
- name: table-count
value: 7
- name: read-lock
value: "\"FOR UPDATE\""
- name: txn-mode
value: pessimistic
- name: ns
value: tipocket-list-append-matrix
- name: purge
value: "true"
- name: repository
value: pingcap
- name: image-version
value: nightly
- name: storage-class
value: sas
- name: nemesis
value: "random_kill,kill_pd_leader_5min,partition_one,subcritical_skews,big_skews,shuffle-leader-scheduler,shuffle-region-scheduler,random-merge-scheduler"
- name: client
value: "5"
- name: request-count
value: "100000"
- name: round
value: "10"
- name: loki-addr
value: "http://gateway.loki.svc"
- name: loki-username
value: "loki"
- name: loki-password
value: "admin"
- name: matrix-config
value: "/config/matrix.yaml"
- name: matrix-tidb
value: "tidb.toml"
- name: matrix-tikv
value: "tikv.toml"
- name: matrix-pd
value: "pd.toml"
- name: matrix-sql
value: "mysql-system-vars.sql,tidb-system-vars.sql"
templates:
- name: call-tipocket-list-append
steps:
- - name: call-wait-cluster
templateRef:
name: wait-cluster
template: wait-cluster
arguments:
parameters:
- name: ns
value: "{{workflow.parameters.ns}}"
- - name: call-tipocket-list-append
templateRef:
name: tipocket-list-append
template: tipocket-list-append
arguments:
parameters:
- name: table-count
value: "{{workflow.parameters.table-count}}"
- name: read-lock
value: "{{workflow.parameters.read-lock}}"
- name: txn-mode
value: "{{workflow.parameters.txn-mode}}"
- name: ns
value: "{{workflow.parameters.ns}}"
- name: purge
value: "{{workflow.parameters.purge}}"
- name: repository
value: "{{workflow.parameters.repository}}"
- name: image-version
value: "{{workflow.parameters.image-version}}"
- name: storage-class
value: "{{workflow.parameters.storage-class}}"
- name: nemesis
value: "{{workflow.parameters.nemesis}}"
- name: client
value: "{{workflow.parameters.client}}"
- name: request-count
value: "{{workflow.parameters.request-count}}"
- name: round
value: "{{workflow.parameters.round}}"
- name: loki-addr
value: "{{workflow.parameters.loki-addr}}"
- name: loki-username
value: "{{workflow.parameters.loki-username}}"
- name: loki-password
value: "{{workflow.parameters.loki-password}}"
- name: matrix-config
value: "{{workflow.parameters.matrix-config}}"
- name: matrix-tidb
value: "{{workflow.parameters.matrix-tidb}}"
- name: matrix-tikv
value: "{{workflow.parameters.matrix-tikv}}"
- name: matrix-pd
value: "{{workflow.parameters.matrix-pd}}"
- name: matrix-sql
value: "{{workflow.parameters.matrix-sql}}"
108 changes: 108 additions & 0 deletions argo/cron/matrix/rw-register.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
metadata:
name: tipocket-rw-register-matrix
spec:
schedule: "0 5 * * *"
concurrencyPolicy: "Forbid"
timezone: "Asia/Shanghai"
startingDeadlineSeconds: 0
workflowSpec:
entrypoint: call-tipocket-rw-register
arguments:
parameters:
- name: table-count
value: 7
- name: read-lock
value: "\"FOR UPDATE\""
- name: txn-mode
value: pessimistic
- name: ns
value: tipocket-rw-register-matrix
- name: purge
value: "true"
- name: repository
value: pingcap
- name: image-version
value: nightly
- name: storage-class
value: sas
- name: nemesis
value: "random_kill,kill_pd_leader_5min,partition_one,subcritical_skews,big_skews,shuffle-leader-scheduler,shuffle-region-scheduler,random-merge-scheduler"
- name: client
value: "5"
- name: request-count
value: "100000"
- name: round
value: "10"
- name: loki-addr
value: "http://gateway.loki.svc"
- name: loki-username
value: "loki"
- name: loki-password
value: "admin"
- name: matrix-config
value: "/config/matrix.yaml"
- name: matrix-tidb
value: "tidb.toml"
- name: matrix-tikv
value: "tikv.toml"
- name: matrix-pd
value: "pd.toml"
- name: matrix-sql
value: "mysql-system-vars.sql,tidb-system-vars.sql"
templates:
- name: call-tipocket-rw-register
steps:
- - name: call-wait-cluster
templateRef:
name: wait-cluster
template: wait-cluster
arguments:
parameters:
- name: ns
value: "{{workflow.parameters.ns}}"
- - name: call-tipocket-rw-register
templateRef:
name: tipocket-rw-register
template: tipocket-rw-register
arguments:
parameters:
- name: table-count
value: "{{workflow.parameters.table-count}}"
- name: read-lock
value: "{{workflow.parameters.read-lock}}"
- name: txn-mode
value: "{{workflow.parameters.txn-mode}}"
- name: ns
value: "{{workflow.parameters.ns}}"
- name: purge
value: "{{workflow.parameters.purge}}"
- name: repository
value: "{{workflow.parameters.repository}}"
- name: image-version
value: "{{workflow.parameters.image-version}}"
- name: storage-class
value: "{{workflow.parameters.storage-class}}"
- name: nemesis
value: "{{workflow.parameters.nemesis}}"
- name: client
value: "{{workflow.parameters.client}}"
- name: request-count
value: "{{workflow.parameters.request-count}}"
- name: round
value: "{{workflow.parameters.round}}"
- name: loki-addr
value: "{{workflow.parameters.loki-addr}}"
- name: loki-username
value: "{{workflow.parameters.loki-username}}"
- name: loki-password
value: "{{workflow.parameters.loki-password}}"
- name: matrix-config
value: "{{workflow.parameters.matrix-config}}"
- name: matrix-tidb
value: "{{workflow.parameters.matrix-tidb}}"
- name: matrix-tikv
value: "{{workflow.parameters.matrix-tikv}}"
- name: matrix-pd
value: "{{workflow.parameters.matrix-pd}}"
- name: matrix-sql
value: "{{workflow.parameters.matrix-sql}}"
Loading