-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.spec
30 lines (23 loc) · 956 Bytes
/
main.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
(import "etcd")
(import "redis")
(import "spark")
(import "zookeeper")
// Etcd Cluster with 3 members.
(etcd.New "etcd" 3)
// Redis cluster with two nodes.
(redis.New "redis" 2 "default_password")
// Spark two masters 3 workers. zookeeper for Spark leader election
(let ((zoo (zookeeper.New "zookeeper" 3))
(sprk (spark.New "spark" 1 2 zoo)))
(spark.Job sprk "run-example SparkPi"))
// ============================= Infrastructure ===============================
// Using unique Namespaces will allow multiple Quilt instances to run on the
// same cloud provider account without conflict.
(define Namespace "CHANGE_ME")
// Defines the set of addresses that are allowed to access Quilt VMs.
(define AdminACL (list "local"))
(let ((cfg (list (provider "Amazon")
(cpu 2) (ram 8)
(githubKey "<YOUR_GITHUB_USERNAME>"))))
(makeList 1 (machine (role "Master") cfg))
(makeList 3 (machine (role "Worker") cfg)))