summary refs log tree commit diff
path: root/playgrounds/aurora/iperf.aurora
diff options
context:
space:
mode:
authorFranck Cuny <fcuny@twitter.com>2018-11-23 09:27:06 -0800
committerFranck Cuny <fcuny@twitter.com>2018-11-23 09:27:06 -0800
commit4492c5cfbe0e99666afed6780b674beaa670d1a1 (patch)
tree0b60557a2640f364ddeef4cbca9d72b2358e618b /playgrounds/aurora/iperf.aurora
parent[tmux] Small change to binding + fix terminal (diff)
downloademacs.d-4492c5cfbe0e99666afed6780b674beaa670d1a1.tar.gz
[bash] Let's try to use emacs tty
Diffstat (limited to '')
-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()),
+]