Commit 5d5890c6 authored by Yuqi Zhang's avatar Yuqi Zhang
Browse files

reorganize redis config files for testing and experiment

parent 72821f17
......@@ -3,7 +3,6 @@
Here are the tests and the experiments we do on our CPRQ implementations. There are 3 folders here:
* *redis_test* : The testing bash scripts and server configuration files. Also used in the experiment.
* **.conf* : The configuration files for our modified Redis servers.
* **.sh* : Bash scripts for starting and testing on local machine.
* *test.py* : Local test we do to test the correctness of our CRPQ implementations.
* *connection.py* : Construct the server part of experiment framework, close it and clean it when the experiment is finished. It use ssh to control the server VMs to start their Redis instances, construct replication among them, and add networking delay between them. When the experiment is finished, close all the server and remove their .rdb and .log files.
......
......@@ -49,13 +49,13 @@ private:
static void start_servers()
{
char cmd[128];
char cmd[256];
for (int port = BASE_PORT; port < BASE_PORT + TOTAL_SERVERS; ++port)
{
sprintf(cmd, "redis-server ../redis_test/6379.conf "
"--port %d --logfile %d.log "
"--pidfile /var/run/redis_%d.pid "
"--dbfilename %d.rdb",
sprintf(cmd, "redis-server ../../redis-4.0.8/redis.conf "
"--protected-mode no --daemonize yes --loglevel debug "
"--port %d --logfile %d.log --dbfilename %d.rdb "
"--pidfile /var/run/redis_%d.pid ",
port, port, port, port);
shell_exec(cmd, false);
}
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -9,6 +9,6 @@ fi
for port in ${ports[*]}
do
redis-server ${port}.conf
redis-server ../../redis-4.0.8/redis.conf --protected-mode no --daemonize yes --loglevel debug --port ${port} --logfile ${port}.log --dbfilename ${port}.rdb --pidfile /var/run/redis_${port}.pid
echo "server ${port} started."
done
......@@ -66,7 +66,7 @@
# IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE INTERFACES
# JUST COMMENT THE FOLLOWING LINE.
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bind 127.0.0.1
# bind 127.0.0.1
# Protected mode is a layer of security protection, in order to avoid that
# Redis instances left open on the internet are accessed and exploited.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment