File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 22
22
( 0 ..1000000 ) . each { |i |
23
23
begin
24
24
r . set ( i , i )
25
- puts i
25
+ $stdout . write ( "SET ( #{ i } times) \n " ) if i % 100 == 0
26
26
rescue => e
27
- puts "( #{ i } ) ERR: #{ e } "
27
+ $stdout . write ( "E" )
28
28
end
29
29
sleep ( 0.01 )
30
30
}
Original file line number Diff line number Diff line change 15
15
base = File . expand_path ( File . dirname ( __FILE__ ) )
16
16
17
17
# Masters
18
- $pids << spawn ( "redis-server --port 6380" )
19
- $pids << spawn ( "redis-server --port 6381" )
18
+ $pids << spawn ( "redis-server --port 6380 --loglevel warning " )
19
+ $pids << spawn ( "redis-server --port 6381 --loglevel warning " )
20
20
21
21
# Slaves of Master 1
22
- $pids << spawn ( "redis-server --port 63800 --slaveof 127.0.0.1 6380" )
23
- $pids << spawn ( "redis-server --port 63801 --slaveof 127.0.0.1 6380" )
22
+ $pids << spawn ( "redis-server --port 63800 --slaveof 127.0.0.1 6380 --loglevel warning " )
23
+ $pids << spawn ( "redis-server --port 63801 --slaveof 127.0.0.1 6380 --loglevel warning " )
24
24
25
25
# Slaves of Master 2
26
- $pids << spawn ( "redis-server --port 63810 --slaveof 127.0.0.1 6381" )
27
- $pids << spawn ( "redis-server --port 63811 --slaveof 127.0.0.1 6381" )
26
+ $pids << spawn ( "redis-server --port 63810 --slaveof 127.0.0.1 6381 --loglevel warning " )
27
+ $pids << spawn ( "redis-server --port 63811 --slaveof 127.0.0.1 6381 --loglevel warning " )
28
28
29
29
FileUtils . cp ( File . join ( base , "sentinel.conf" ) , "tmp/sentinel1.conf" )
30
30
FileUtils . cp ( File . join ( base , "sentinel.conf" ) , "tmp/sentinel2.conf" )
You can’t perform that action at this time.
0 commit comments