Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 67 lines (51 sloc) 1.747 kb
0d5c1c3 Bin Cui runtest on windows platform
bcui6611 authored
1 @echo off
2 echo usage : runtest couchbase*.rpm NUM_ITEMS MEMBASE_NUM_VBUCKETS [EXTRA_SLEEP]
3
4 echo : runtest $1 $2 $3
5
12c298f Steve Yen renamed rampup-view
steveyen authored
6 echo # start - runtest $1 $2 $3
7 echo %date%-%time%
0d5c1c3 Bin Cui runtest on windows platform
bcui6611 authored
8
9 set NS_BIN=%~dp0
10 set NS_ROOT=%NS_BIN%..
11 set NS_ERTS=%NS_ROOT%\erts-5.8.4\bin
12
13 REM cleanup previous run
14 cmd /C service_stop.bat
15 cmd /C service_unregister.bat
16 echo y | DEL /s %NS_ROOT%\var\lib\membase\config\config.dat
17 echo y | DEL /s %NS_ROOT%\var\lib\membase\mnesia\*
18 echo y | DEL /s %NS_ROOT%\var\lib\membase\data\default\*
19 echo y | DEL /s %NS_ROOT%\var\lib\membase\data\.default\*
20
21 REM restart couchbase server
22 setx MEMBASE_NUM_VBUCKETS 4 /M
23 cmd /C service_register.bat
24 cmd /C service_start.bat
25 sleep 5
26
27 membase cluster-init -c 127.0.0.1 --cluster-init-username=Administrator --cluster-init-password=password
28
29 membase bucket-create -c 127.0.0.1 -u Administrator -p password --bucket=default --bucket-type=membase --bucket-ramsize=3000 --bucket-replica=0 --bucket-password=
30 sleep 4
31
3c90180 Steve Yen More steps for mid index accessing, with equality
steveyen authored
32 curl -vX PUT http://127.0.0.1:5984/default/_design/rampup-last -d @rampup-last.json
0d5c1c3 Bin Cui runtest on windows platform
bcui6611 authored
33 echo # loading membase...
12c298f Steve Yen renamed rampup-view
steveyen authored
34 echo %date%-%time%
0d5c1c3 Bin Cui runtest on windows platform
bcui6611 authored
35 pslist | grep erl
36
37 set DRIVE_HOST=127.0.0.1
38 set RATIO_SETS=1.0
39 set RATIO_CREATES=1.0
40 set MAX_CREATES=10000
41 set EXIT_AFTER_CREATES=1
42 "%NS_ERTS%\erl.exe" -eval "rampup:drive_test(), init:stop()."
43
44 echo # using membase...
12c298f Steve Yen renamed rampup-view
steveyen authored
45 echo %date%-%time%
0d5c1c3 Bin Cui runtest on windows platform
bcui6611 authored
46 pslist | grep erl
47 set DRIVE_HOST=127.0.0.1
48 set RATIO_SETS=0.0
49 set MAX_OPS=10000
50 "%NS_ERTS%\erl.exe" -eval "rampup:drive_test(), init:stop()."
51
52 echo # view building...
53 echo %date%-%time%
54 pslist | grep erl
55
3c90180 Steve Yen More steps for mid index accessing, with equality
steveyen authored
56 curl http://127.0.0.1:5984/default/_design/rampup-last/_view/last?limit=10
0d5c1c3 Bin Cui runtest on windows platform
bcui6611 authored
57
58 echo # view accessing...
59 echo %date%-%time%
60 pslist | grep erl
61
12c298f Steve Yen renamed rampup-view
steveyen authored
62 do-couch-view.rb "127.0.0.1" 1000
0d5c1c3 Bin Cui runtest on windows platform
bcui6611 authored
63
64 echo # done -
65 echo %date%-%time%
66 @echo on
Something went wrong with that request. Please try again.