-
Notifications
You must be signed in to change notification settings - Fork 0
/
rubis-cabula.txt
40 lines (31 loc) · 1.73 KB
/
rubis-cabula.txt
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
32
33
34
35
36
37
38
39
40
#Compilar Servlet RUBiS com ultimo build do steeldb: ~/Desktop/git/RUBiS/Servlets
cp -v ../../steeldb/bin/SteelDB.jar ../Servlet_HTML/WEB-INF/lib/ ; ant clean ; ant dist
#matar tudo o que e java
sudo killall java
#Lançar tomcat: ~/apache-tomcat-8.0.15/bin
./startup.sh
# fazer deploy do .war em ~/Desktop/git/RUBiS/Servlets/
#Compilar client de benchmark rubis: ~/Desktop/git/RUBiS/
make client
#Lançar benchmark rubis: ~/Desktop/git/RUBiS/
make emulator
#Criar BD (1): ~/Desktop/git/RUBiS/
sudo -u postgres /usr/lib/postgresql/9.4/bin/createdb rubis
sudo -u postgres /usr/lib/postgresql/9.4/bin/psql rubis < ~/Desktop/git/RUBiS/database/backup_users_only.sql
make initDB PARAM="items bids comments"
#Criar BD (2): ~/Desktop/git/RUBiS/
sudo -u postgres /usr/lib/postgresql/9.4/bin/createdb rubis
sudo -u postgres /usr/lib/postgresql/9.4/bin/psql rubis < ~/Desktop/git/RUBiS/database/rubis.postgres.sql
sudo -u postgres /usr/lib/postgresql/9.4/bin/psql rubis < ~/Desktop/git/RUBiS/database/categories.sql
sudo -u postgres /usr/lib/postgresql/9.4/bin/psql rubis < ~/Desktop/git/RUBiS/database/regions.sql
make initDB PARAM="all"
#Criar BD (3): ~/Desktop/git/RUBiS/
sudo -u postgres /usr/lib/postgresql/9.4/bin/psql rubis < ~/Desktop/git/RUBiS/database/backup_all.sql
#Criar BD replicada (localmente): ~/Desktop/git/RUBiS/
Primeiro, criar BD normal (ver acima)
sudo -u postgres /usr/lib/postgresql/9.4/bin/psql rubis
CREATE DATABASE rubis0 WITH TEMPLATE rubis OWNER benchmarksql;
CREATE DATABASE rubis1 WITH TEMPLATE rubis OWNER benchmarksql;
CREATE DATABASE rubis2 WITH TEMPLATE rubis OWNER benchmarksql;
CREATE DATABASE rubis3 WITH TEMPLATE rubis OWNER benchmarksql;
#Link util: https://underyx.me/2015/05/18/raising-the-maximum-number-of-file-descriptors