Skip to content

Commit

Permalink
log level: info
Browse files Browse the repository at this point in the history
Signed-off-by: Ping Yu <yuping@pingcap.com>
  • Loading branch information
pingyu committed Feb 13, 2024
1 parent 88bebcc commit 9430c95
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cdc/tests/integration_tests/_utils/run_cdc_server
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ addr=
addr_url="127.0.0.1:8600"
pd_addr=
pwd=$pwd
log_level=debug
log_level=info
restart=
failpoint=$GO_FAILPOINTS
config_path=
Expand Down
11 changes: 8 additions & 3 deletions cdc/tests/integration_tests/_utils/start_tidb_cluster_impl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ multiple_upstream_pd=
random_file_name=
verify_tidb=false
tikv_count=3
log_level=info

# Random generate the sockets config.
# Make sure we dont use the same sock.
Expand Down Expand Up @@ -46,12 +47,16 @@ while [[ ${1-} ]]; do
shift
;;
--verify-tidb)
vierfy_tidb=true
verify_tidb=true
;;
--tikv-count)
tikv_count=${2}
shift
;;
--log-level)
log_level=${2}
shift
;;
*)
echo "Unknown parameter: ${1}" >&2
exit 1
Expand Down Expand Up @@ -204,7 +209,7 @@ for idx in $(seq 1 "$tikv_count"); do
-A ${!host}:${!port} \
--status-addr ${!host}:${!status_port} \
--log-file "$OUT_DIR/tikv$idx.log" \
--log-level debug \
--log-level "$log_level" \
-C "$OUT_DIR/tikv-config.toml" \
-s "$OUT_DIR/tikv$idx" &
done
Expand All @@ -215,7 +220,7 @@ tikv-server \
-A ${DOWN_TIKV_HOST}:${DOWN_TIKV_PORT} \
--status-addr ${DOWN_TIKV_HOST}:${DOWN_TIKV_STATUS_PORT} \
--log-file "$OUT_DIR/tikv_down.log" \
--log-level debug \
--log-level "$log_level" \
-C "$OUT_DIR/tikv-config.toml" \
-s "$OUT_DIR/tikv_down" &

Expand Down
2 changes: 1 addition & 1 deletion cdc/tests/integration_tests/flow_control/config/workload
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# Default data size: 1 KB records (10 fields, 100 bytes each, plus key)
# Request distribution: zipfian

recordcount=1000000
recordcount=10000000
workload=core

readallfields=true
Expand Down
2 changes: 1 addition & 1 deletion cdc/tests/integration_tests/flow_control/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function run() {
cd $WORK_DIR

start_ts=$(get_start_ts $UP_PD)
go-ycsb load tikv -P $CUR/config/workload -p tikv.pd="$UP_PD" -p tikv.type="raw" -p tikv.apiversion=V2 --threads 100 # About 1G
go-ycsb load tikv -P $CUR/config/workload -p tikv.pd="$UP_PD" -p tikv.type="raw" -p tikv.apiversion=V2 --threads 400 # About 1G

cat - >"$WORK_DIR/tikv-cdc-config.toml" <<EOF
per-changefeed-memory-quota=10485760 #10M
Expand Down

0 comments on commit 9430c95

Please sign in to comment.