[[PageOutline]] == The Sensei Virtual Machine == The Sensei Virtual Machine is a host that provides all basic functionalities of the Sensei Framework. The VM comes in two flavors: '''Xen VM''' and '''VMWare VM'''. There is a production virtual machine used for "live" tests and there is a downloadable, portable version of the same machine. {{{ #!div style="margin-left:auto; margin-right:auto; width:50%; background-color: #F0F0F0; border: 1px solid #999999; padding-left:20px; padding-right:20px;" ''' Production VM ''' * sensei-dev1.grid.pub.ro [[BR]] '''141.85.224.221 IPV4, 2001:5c0:1502:5300:216:3eff:fe5a:a494 IPV6''' * Public RD (/rpi, /rli, /rd) [[BR]] ''http://sensei-dev1.grid.pub.ro:8183'' * Public SQR [[BR]] ''http://sensei-dev1.grid.pub.ro:8186'' * Public REP (/rep) [[BR]] ''http://sensei-dev1.grid.pub.ro:8184'' }}} [[BR]] {{{ #!div style="margin-left:auto; margin-right:auto; width:50%; background-color: #F0F0F0; border: 1px solid #999999; padding-left:20px; padding-right:20px;" ''' Demo VM ''' * sensei-demo.grid.pub.ro [[BR]] '''141.85.241.231 IPV4''' * Do not use this for public tests }}} === Environment Setup === This is the list of the main components and its configuration ==== Resource Directory ==== Install Directory: ''/opt/sensei/RDv2''[[BR]] Requires: ''mysql daemon started, database sensei_rd2''[[BR]] Database configuration file: ''/opt/sensei/RDv2/build/database/ConnectionPool.properties''[[BR]] !HowTo Run: [[BR]] * you can use the service startup script like this: {{{ #!sh [root@sensei-dev1 RDv2]# pwd /opt/sensei/RDv2 [root@sensei-dev1 RDv2]# ./sensei-rd-2.sh start [root@sensei-dev1 RDv2]# }}} * or you can startup manually like {{{ #!sh nohup java -Xms32m -Xmx384m -classpath .:build:lib/commons-cli-1.2.jar:lib/com.springsource.org.apache.commons.logging-1.1.1.jar:lib/com.springsource.slf4j.api-1.5.10.jar:lib/com.springsource.slf4j.jcl-1.5.10.jar:lib/mysql-connector-java-5.1.7-bin.jar:lib/org.restlet.jar:lib/SenseiFederationBroker-api-1.0-SNAPSHOT.jar:lib/slf4j-api-1.5.10.jar:lib/standalone-1.2.0-SNAPSHOT-jar-with-dependencies.jar restlet_server.RESTLET_Server -peered pub.ro tid.es thalesresearch.com unimelb.edu.au sensinode.com oulu.fi ericsson nlehd.de -host 141.85.224.221 & }}} * you should be carefull, this is a peered RD, so you have to add all peered domains to the list {{{ -peered pub.ro tid.es thalesresearch.com unimelb.edu.au sensinode.com oulu.fi ericsson nlehd.de }}} * Check the service: {{{ #!sh [root@sensei-dev1 RDv2]# netstat -anp | grep :8184 tcp 0 0 :::8184 :::* LISTEN 29572/java }}} ==== Advanced Resource Description Repository ==== Install Directory: ''/opt/sensei/RESTArdRepov2''[[BR]] Requires: ''sedna database arddb started''[[BR]] Database configuration file: ''-''[[BR]] !HowTo Run: [[BR]] {{{ #!sh [root@sensei-dev1 RESTArdRepov2]# cd /opt/sedna/bin/ [root@sensei-dev1 bin]# ./se_gov GOVERNOR has been started in the background mode [root@sensei-dev1 bin]# ./se_sm arddb Starting database recovery or hot-backup restoration... Database recovery in progress... SM has been started in the background mode [root@sensei-dev1 bin]# cd /opt/sensei/RESTArdRepov2 [root@sensei-dev1 RESTArdRepov2]# nohup ant runARDRepoServer & }}} * Check the service: {{{ #!sh [root@sensei-dev1 RESTArdRepov2]# netstat -anp | grep :8185 tcp 0 0 :::8185 :::* LISTEN 29971/java }}} ==== Entity Directory ==== Install Directory: ''/opt/sensei/RESTEoiRepov3''[[BR]] Requires: ''sedna database eoidb started''[[BR]] Configuration file: ''EOI.properties''[[BR]] !HowTo Run: [[BR]] {{{ #!sh [root@sensei-dev1 RESTArdRepov2]# cd /opt/sedna/bin/ [root@sensei-dev1 bin]# ./se_gov GOVERNOR has been started in the background mode [root@sensei-dev1 bin]# ./se_sm eoidb Starting database recovery or hot-backup restoration... Database recovery in progress... SM has been started in the background mode [root@sensei-dev1 bin]# cd /opt/sensei/RESTEoiRepov3 [root@sensei-dev1 RESTEoiRepov3]# nohup java -jar RestEoiv3.jar }}} * Check the service: {{{ #!sh [root@sensei-dev1 RESTEoiRepov3]# netstat -anp | grep :8182 tcp 0 0 :::8182 :::* LISTEN 30133/java }}} ==== SQR Directory ==== Install Directory: ''/opt/sensei/SQRv2''[[BR]] Requires: ''-''[[BR]] Configuration file: ''SQR.properties''[[BR]] !HowTo Run: [[BR]] {{{ #!sh [root@sensei-dev1 SQRv2]# nohup ant runSQRv2Server & }}} * Check the service: {{{ #!sh [root@sensei-dev1 SQRv2]# netstat -anp | grep :8186 tcp 0 0 :::8186 :::* LISTEN 30404/java }}} ==== Others (AAA & Billing+Privacy) ==== They are web-applications. You must only start the application server. All databases are in-memory.[[BR]] On how to configure each component please consult [[wiki:SpComponents]][[BR]] Install Directory: ''/opt/apache-tomcat-6.0.20/webapps''[[BR]] !HowTo Run: [[BR]] {{{ #!sh [root@sensei-dev1 webapps]# cd /opt/apache-tomcat-6.0.20/bin/ [root@sensei-dev1 bin]# ./startup.sh Using CATALINA_BASE: /opt/apache-tomcat-6.0.20 Using CATALINA_HOME: /opt/apache-tomcat-6.0.20 Using CATALINA_TMPDIR: /opt/apache-tomcat-6.0.20/temp Using JRE_HOME: /usr [root@sensei-dev1 bin]# }}} * Check the service: {{{ #!sh [root@sensei-dev1 bin]# netstat -anp | grep :8080 tcp 0 0 :::8080 :::* LISTEN 2238/java [root@sensei-dev1 bin]# netstat -anp | grep :8443 tcp 0 0 :::8443 :::* LISTEN 2238/java [root@sensei-dev1 bin]# }}} === Networking Setup === This information is needed usually for debugging and tracking purposes. - Dns nameserver: 141.85.241.15 [[BR]] - IPv4 gateway: 141.85.224.1 (for the 141.85.224.0/24 range) [[BR]], 141.85.241.1 (for the 141.85.224.0/24 range) [[BR]] - IPv6 gateway: 141.85.224.33 (2001:5c0:1502:5300::1/64) {{{ #!sh [root@star bin]# ping6 ipv6.google.com PING ipv6.google.com(2a00:1450:8007::68) 56 data bytes 64 bytes from 2a00:1450:8007::68: icmp_seq=0 ttl=55 time=59.5 ms 64 bytes from 2a00:1450:8007::68: icmp_seq=2 ttl=55 time=59.9 ms 64 bytes from 2a00:1450:8007::68: icmp_seq=3 ttl=55 time=58.5 ms }}}