-
Notifications
You must be signed in to change notification settings - Fork 7
/
run.sh
31 lines (24 loc) · 1.8 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
set -x
#redis-server --maxmemory 4000000 --loadmodule ./bin/RedisGears/redisgears.so CreateVenv 1 pythonInstallationDir ./bin/RedisGears/ \
# Plugin ./bin/RedisGears_JVMPlugin/plugin/gears_jvm.so \
# JvmOptions "-Djava.class.path=./bin/RedisGears_JVMPlugin/gears_runtime/target/gear_runtime-jar-with-dependencies.jar -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Xmx16m" \
# JvmPath ./bin/RedisGears_JVMPlugin/bin/OpenJDK/jdk-11.0.9.1+1/ &
redis-server --loadmodule ./bin/RedisGears/redisgears.so \
Plugin /var/opt/redislabs/modules/rg/plugin/gears_jvm.so \
JvmOptions "-Djava.class.path=/var/opt/redislabs/modules/rg/gear_runtime-jar-with-dependencies.jar -Xmx16m" \
JvmPath /var/opt/redislabs/modules/rg/OpenJDK/jdk-11.0.9.1+1/&
#valgrind --suppressions=/home/meir/work/JVMPlugin/pytest/leakcheck.supp redis-server --loadmodule ./bin/RedisGears/redisgears.so CreateVenv 1 pythonInstallationDir ./bin/RedisGears/ \
# Plugin ./bin/RedisGears_JVMPlugin/plugin/gears_jvm.so \
# JvmOptions "-Djava.class.path=./bin/RedisGears_JVMPlugin/gears_runtime/target/gear_runtime-jar-with-dependencies.jar -Xmx16m" \
# JvmPath ./bin/RedisGears_JVMPlugin/bin/OpenJDK/jdk-11.0.9.1+1/ &
#redis-server --loadmodule ./bin/RedisGears/redisgears.so CreateVenv 1 pythonInstallationDir ./bin/RedisGears/ \
# Plugin ./bin/RedisGears_JVMPlugin/plugin/gears_jvm.so \
# JvmOptions "-Djava.class.path=./bin/RedisGears_JVMPlugin/gears_runtime/target/gear_runtime-jar-with-dependencies.jar -Xmx16m" \
# JvmPath ./bin/RedisGears_JVMPlugin/bin/OpenJDK/jdk-11.0.9.1+1/ --replicaof localhost 6379 --port 6380&
redis-cli ping
while [ $? != 0 ]; do
sleep 1
redis-cli ping
done
redis-cli -x RG.JEXECUTE com.redislabs.WriteBehind < ./target/rghibernate-jar-with-dependencies.jar
wait < <(jobs -p)