-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
Launch a new instance of the rio-beta - ami-bf88fb8f instance
Select m3.large as the instance type
Choose a security group with the following ports open:
Port | Service |
---|---|
22 | SSH |
3000 | Node DB services |
8000 | Tile service |
9000 | Raster service |
Select an existing or new keypair
Setup your DNS to point to the Public IP address shown in the management console
Login to the server using:
ssh -i <yourkey.pem> ec2-user@<yourdns.com>
Update the OS software:
sudo yum update
Create 2 25GB general purpose SSD disks: 1 to store large raster files and another for the PostGIS database
In the EBS management console, attach both volumes to the newly created EC2 server
From the terminal, run lsblk
to view mount points. The output should look like:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvdf 202:80 0 25G 0 disk
xvdg 202:96 0 25G 0 disk
xvda1 202:1 0 8G 0 disk /
Both 25G drives are the EBS volumes you just created. Make a note of their names (e.g., xvdf)
If the volumes were newly created (and not restored from images), you need to format the drives with the new file system by running:
sudo mkfs -t ext4 /dev/<device name>
Create mount point directories for each volume. The mount point is where the volume is located in the file system tree.
cd /
sudo mkdir data
sudo mkdir spatial-db
Mount each drive to the mount point using:
sudo mount <device name> <mount point>
To mount this volume on every system reboot, add an entry for the device to the /etc/fstab
file:
nano