Skip to content
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

Make runtest-cluster support --io-threads option #933

Merged
merged 1 commit into from
Aug 22, 2024
Merged
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
9 changes: 9 additions & 0 deletions tests/instances.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ set ::verbose 0
set ::valgrind 0
set ::tls 0
set ::tls_module 0
set ::io_threads 0
set ::pause_on_error 0
set ::dont_clean 0
set ::simulate_error 0
Expand Down Expand Up @@ -107,6 +108,11 @@ proc spawn_instance {type base_port count {conf {}} {base_conf_file ""}} {
puts $cfg "port $port"
}

if {$::io_threads} {
puts $cfg "io-threads 2"
puts $cfg "events-per-io-thread 0"
}

if {$::log_req_res} {
puts $cfg "req-res-logfile stdout.reqres"
}
Expand Down Expand Up @@ -297,6 +303,8 @@ proc parse_options {} {
if {$opt eq {--tls-module}} {
set ::tls_module 1
}
} elseif {$opt eq {--io-threads}} {
set ::io_threads 1
} elseif {$opt eq {--config}} {
set val2 [lindex $::argv [expr $j+2]]
dict set ::global_config $val $val2
Expand All @@ -319,6 +327,7 @@ proc parse_options {} {
puts "--valgrind Run with valgrind."
puts "--tls Run tests in TLS mode."
puts "--tls-module Run tests in TLS mode with Valkey module."
puts "--io-threads Run tests with IO threads."
puts "--host <host> Use hostname instead of 127.0.0.1."
puts "--config <k> <v> Extra config argument(s)."
puts "--fast-fail Exit immediately once the first test fails."
Expand Down
Loading