@@ -26,7 +26,7 @@ instance_type=$(curl http://169.254.169.254/latest/meta-data/instance-type 2> /d
26
26
27
27
echo " Setting up slave on ` hostname` ... of type $instance_type "
28
28
29
- if [[ $instance_type == r3* || $instance_type == i2* ]]; then
29
+ if [[ $instance_type == r3* || $instance_type == i2* || $instance_type == hi1 * ]]; then
30
30
# Format & mount using ext4, which has the best performance among ext3, ext4, and xfs based
31
31
# on our shuffle heavy benchmark
32
32
EXT4_MOUNT_OPTS=" defaults,noatime,nodiratime"
@@ -37,12 +37,20 @@ if [[ $instance_type == r3* || $instance_type == i2* ]]; then
37
37
mkfs.ext4 -E lazy_itable_init=0,lazy_journal_init=0 /dev/sdb
38
38
mount -o $EXT4_MOUNT_OPTS /dev/sdb /mnt
39
39
40
- if [[ $instance_type == " r3.8xlarge" ]]; then
40
+ if [[ $instance_type == " r3.8xlarge" || $instance_type == " hi1.4xlarge " ]]; then
41
41
mkdir /mnt2
42
42
# To turn TRIM support on, uncomment the following line.
43
43
# echo '/dev/sdc /mnt2 ext4 defaults,noatime,nodiratime,discard 0 0' >> /etc/fstab
44
- mkfs.ext4 -E lazy_itable_init=0,lazy_journal_init=0 /dev/sdc
45
- mount -o $EXT4_MOUNT_OPTS /dev/sdc /mnt2
44
+ if [[ $instance_type == " r3.8xlarge" ]]; then
45
+ mkfs.ext4 -E lazy_itable_init=0,lazy_journal_init=0 /dev/sdc
46
+ mount -o $EXT4_MOUNT_OPTS /dev/sdc /mnt2
47
+ fi
48
+ # To turn TRIM support on, uncomment the following line.
49
+ # echo '/dev/sdf /mnt2 ext4 defaults,noatime,nodiratime,discard 0 0' >> /etc/fstab
50
+ if [[ $instance_type == " hi1.4xlarge" ]]; then
51
+ mkfs.ext4 -E lazy_itable_init=0,lazy_journal_init=0 /dev/sdf
52
+ mount -o $EXT4_MOUNT_OPTS /dev/sdf /mnt2
53
+ fi
46
54
fi
47
55
fi
48
56
0 commit comments