From c64cc435e2a29c6f0ff66022fd4d5b4cb5011718 Mon Sep 17 00:00:00 2001
From: Patrick Wendell <pwendell@gmail.com>
Date: Tue, 2 Sep 2014 21:30:09 -0700
Subject: [PATCH] SPARK-3358: [EC2] Switch back to HVM instances for m3.X.

During regression tests of Spark 1.1 we discovered perf issues with
PVM instances when running PySpark. This reverts a change added in #1156
which changed the default type for m3 instances to PVM.

Author: Patrick Wendell <pwendell@gmail.com>

Closes #2244 from pwendell/ec2-hvm and squashes the following commits:

1342d7e [Patrick Wendell] SPARK-3358: [EC2] Switch back to HVM instances for m3.X.
---
 ec2/spark_ec2.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ec2/spark_ec2.py b/ec2/spark_ec2.py
index 7e25df57ee..eed6eb8485 100755
--- a/ec2/spark_ec2.py
+++ b/ec2/spark_ec2.py
@@ -234,10 +234,10 @@ def get_spark_ami(opts):
         "cg1.4xlarge": "hvm",
         "hs1.8xlarge": "pvm",
         "hi1.4xlarge": "pvm",
-        "m3.medium":   "pvm",
-        "m3.large":    "pvm",
-        "m3.xlarge":   "pvm",
-        "m3.2xlarge":  "pvm",
+        "m3.medium":   "hvm",
+        "m3.large":    "hvm",
+        "m3.xlarge":   "hvm",
+        "m3.2xlarge":  "hvm",
         "cr1.8xlarge": "hvm",
         "i2.xlarge":   "hvm",
         "i2.2xlarge":  "hvm",
-- 
GitLab