summaryrefslogtreecommitdiff
path: root/playgrounds/aurora/iperf.aurora
diff options
context:
space:
mode:
Diffstat (limited to 'playgrounds/aurora/iperf.aurora')
-rw-r--r--playgrounds/aurora/iperf.aurora37
1 files changed, 37 insertions, 0 deletions
diff --git a/playgrounds/aurora/iperf.aurora b/playgrounds/aurora/iperf.aurora
new file mode 100644
index 0000000..e071bd2
--- /dev/null
+++ b/playgrounds/aurora/iperf.aurora
@@ -0,0 +1,37 @@
+class StandardProfile(Struct):
+ environment=Default(String, 'prod')
+ tier=Default(String, 'preferred')
+
+DevelProfile = StandardProfile(
+ environment = 'devel',
+ tier = 'preemptible',
+)
+
+api = Process(
+ name = 'iperf',
+ cmdline = '/usr/bin/iperf3 -s -p {{thermos.ports[http]}}'
+)
+
+task = Task(
+ name = api.name(),
+ resources = Resources(cpu = 1.0, ram = 4 * GB, disk = 1 * GB),
+ processes = [api]
+)
+
+service_template = Service(
+ role='fcuny',
+ name = 'iperf',
+ environment='{{profile.environment}}',
+ task = task,
+ instances = 3,
+ contact = 'fcuny@twitter.com',
+ announce=Announcer(),
+ tier ='{{profile.tier}}',
+ constraints={
+ 'host': 'smf1-bgr-27-sr1',
+ }
+)
+
+jobs = [
+ service_template(cluster='smf1-test').bind(profile=DevelProfile()),
+]