In addition to the Instance-backed EC2 AMI that has been available since 2008, a standard unpopulated Virtuoso instance is available as an EBS-backed EC2 AMI based on either a BYOL (Bring Your Own License) or a PAGO (Pay As You Go) basis. In each case, the AMI delivers a preconfigured Virtuoso instance.
We also now offer two PAGO variants, both pre-loaded with DBpedia data.
This type of AMI provides several fundamental benefits including —
security group
allowing access to ports 22 (standard SSH), 80 (standard HTTP), and 8890 (Virtuoso HTTP-based Admin) is used.
(This is the setup of the AMI offerings.)
http://{amazon-ec2-ami-dns-name-or-ip-address}:8890/conductor
These steps in this section are only necessary the first time you start the Virtuoso instances on the AMI. This section may be ignored thereafter, as it is not necessary after AMI reboots.
There are two Virtuoso instances in this AMI. One which comes up quickly, with no significant content, so you know the AMI is basically functional; and one which comes up more slowly, with the full DBpedia dataset, which takes significant time to start due to some Amazon requirements for such AWS instances.
ssh
into your instantiated AMI using a command of the form —
ssh -i {secure-pem-file} ec2-user@{amazon-ec2-dns-name-or-ip-address}
ps -ef | grep "virt*" | grep -v grep
cd /opt/virtuoso . ./virtuoso-environment.sh # this must start dot-space-dot-slash virtuoso-start.sh database
dba
' user from the the AMI instance-id
.
instance-id
by either --
cd /opt/virtuoso . ./virtuoso-environment.sh # this must start dot-space-dot-slash cd bin ./isql localhost:1112 dba
SQL>
prompt, execute these two commands --
vad_install('/opt/virtuoso/vad/conductor_dav.vad',0) quit
http://{amazon-ec2-ami-dns-name-or-ip-address}:8890/conductor
cd /opt/virtuoso . ./virtuoso-environment.sh # this must start dot-space-dot-slash virtuoso-stop.sh database virtuoso-start.sh database
dba
user, with the AMI instance-id
as the password.
Note: If unable to connect to the Virtuoso server using the instance-id
as password, please register with our Support Site, and create a Support Case for fastest assistance. dba
user, and click the associated Edit
link.
ssh
into your instantiated AMI using —
ssh -i {secure-pem-file} ec2-user@{ec2-dns-name-or-ip-address}
virtuoso-stop.sh dbpedia
cd /opt/virtuoso . ./virtuoso-environment.sh # this must start dot-space-dot-slash virtuoso-start.sh dbpedia
dba
' user from the the AMI instance-id
.
instance-id
by either --
http://{amazon-ec2-ami-dns-name-or-ip-address}/conductor
cd /opt/virtuoso . ./virtuoso-environment.sh # this must start dot-space-dot-slash virtuoso-stop.sh dbpedia virtuoso-start.sh dbpedia
dba
user, with the AMI instance-id
as the password.
Note: If unable to connect to the Virtuoso server using the instance-id
as password, please register with our Support Site, and create a Support Case for fastest assistance. dba
user, and click the associated Edit
link.
Once online, your DBpedia Snapshot instance will be ready for use from —
http://{amazon-ec2-ami-dns-name-or-ip-address}/resource/DBpedia
http://{amazon-ec2-ami-dns-name-or-ip-address}/fct
http://{amazon-ec2-ami-dns-name-or-ip-address}/describe/?uri=http://dbpedia.org/resource/DBpedia
http://{amazon-ec2-ami-dns-name-or-ip-address}/sparql
http://{amazon-ec2-ami-dns-name-or-ip-address}/conductor
All scripts for starting and stopping the Virtuoso instance are found in the following locations —
/etc/rc.d/init.d
— scripts that enable automatic database server instantiation at operating system (AMI) boot or reboot time /opt/virtuoso
— scripts for starting and stopping the database server within a running operating system (AMI)The
/etc/rc.d/init.d/oplmgr start
/etc/rc.d/init.d/oplmgr stop
/etc/rc.d/init.d/oplmgr restart
/etc/rc.d/init.d/virtuoso start
/etc/rc.d/init.d/virtuoso stop
/etc/rc.d/init.d/virtuoso restart
cd /opt/virtuoso . ./virtuoso-environment.sh # this must start dot-space-dot-slash virtuoso-start.sh dbpedia
cd /opt/virtuoso . ./virtuoso-environment.sh # this must start dot-space-dot-slash virtuoso-stop.sh dbpedia
cd /opt/virtuoso . ./virtuoso-environment.sh # this must start dot-space-dot-slash virtuoso-stop.sh dbpedia virtuoso-start.sh dbpedia
. /opt/virtuoso/virtuoso-enterprise.sh
isql
" command line tool to connect to the database.
Note: your EC2 AMI's instance-id will be the dba
user's password, until you change it (as recommended above).
$ isql 1111 -U dba -P {Password} Connected to OpenLink Virtuoso Driver: 07.10.3214 OpenLink Virtuoso ODBC Driver OpenLink Interactive SQL (Virtuoso), version 0.9849b. Type HELP; for help and EXIT; to exit. SQL>
tables
" command to obtain a list of tables in the default schema
SQL> tables; Showing SQLTables of tables like 'NULL.NULL.NULL', tabletype/colname like 'NULL' TABLE_QUALIFIER TABLE_OWNER TABLE_NAME TABLE_TYPE REMARKS VARCHAR VARCHAR VARCHAR VARCHAR VARCHAR _______________________________________________________________________________ DB DBA ADMIN_SESSION SYSTEM TABLE NULL DB DBA ADM_OPT_ARRAY_TO_RS_PVIEW SYSTEM TABLE NULL DB DBA ADM_XML_VIEWS SYSTEM TABLE NULL . . . DB DBA SYS_SQL_INVERSE SYSTEM TABLE NULL DB DBA SYS_TRIGGERS SYSTEM TABLE NULL DB DBA SYS_VIEWS SYSTEM TABLE NULL 209 Rows. -- 1890 msec. SQL>
virtuoso-stop.sh dbpedia
virtuoso-start.sh dbpedia
Please be aware of the following, which impact the performance and utility of your AMI:
m3.large
EC2 Instance Type, so will use 7GB of RAM.
If you choose a larger EC2 Instance Type (such as the recommended m3.2xlarge
), then the NumberOfBuffer
and MaxDirtyBuffers
parameters in the /opt/virtuoso/dbpedia/dbpedia.ini
configuration file should be increased to correspond to the chosen Instance Type's available memory, as detailed in the Virtuoso Performance Tuning Guide.
A few examples are shown below.
After changing these or any other settings in the INI file, restart the Virtuoso server as described above.
EC2 Instance Type | System RAM | Number Of Buffers | Max Dirty Buffers |
---|---|---|---|
m3.large | 7 GB | 680000 | 500000 |
r3.large | 15 GB | 1360000 | 1000000 |
r3.xlarge | 30.5 GB | 2720000 | 2000000 |
r3.2xlarge | 61 GB | 5450000 | 4000000 |
If you encounter any problems resolving the sample DBpedia URIs listed in the steps above, please:
ps -ef | grep "virt*" | grep -v grep
tail /dbpedia/*.log
tail /opt/virtuoso/dbpedia/*.log
cd /opt/virtuoso . ./virtuoso-environment.sh # this must start dot-space-dot-slash virtuoso-start.sh database
cd /opt/virtuoso . ./virtuoso-environment.sh # this must start dot-space-dot-slash virtuoso-start.sh dbpedia
cd /opt/virtuoso . ./virtuoso-environment.sh # this must start dot-space-dot-slash virtuoso-stop.sh database virtuoso-start.sh database
cd /opt/virtuoso . ./virtuoso-environment.sh # this must start dot-space-dot-slash virtuoso-stop.sh dbpedia virtuoso-start.sh dbpedia
CategoryHowTo CategoryODS CategoryVirtuoso CategoryDocumentation CategoryEC2