wiki/amazon-ec2.md
... ...
@@ -17,7 +17,7 @@
17 17
18 18
- Using a release, set the following in the instance's user data:
19 19
<pre>
20
-INSTALL_FROM_RELEASE=master-201311062138
20
+INSTALL_FROM_RELEASE=`name-of-release`
21 21
USE_ENVIRONMENT=live-server
22 22
BUILD_COMPLETE_NOTIFY=simon.marcel.pamies@sap.com
23 23
SERVER_STARTUP_NOTIFY=simon.marcel.pamies@sap.com
... ...
@@ -52,6 +52,26 @@ USE_ENVIRONMENT=
52 52
53 53
- To receive and forward wind, log into webserver as user trac and switch to $HOME/udpmirror. Start the mirror and forward it to the instance you want.
54 54
55
+#### Setting up Master and Replica
56
+
57
+- Fire up a master with the following configuration. There is a preconfigured master environment at http://releases.sapsailing.com/environments/live-master-server that you should use.
58
+
59
+<pre>
60
+INSTALL_FROM_RELEASE=<name-of-release>
61
+USE_ENVIRONMENT=live-master-server
62
+BUILD_COMPLETE_NOTIFY=simon.marcel.pamies@sap.com
63
+SERVER_STARTUP_NOTIFY=simon.marcel.pamies@sap.com
64
+</pre>
65
+
66
+- After your master server is ready, note the internal IP and configure your replica instances. Make sure to use the preconfigured environment from http://releases.sapsailing.com/environments/live-replica-server. Then absolutely make sure to add the line "REPLICATE_MASTER_SERVLET_HOST" to the user-data!
67
+
68
+<pre>
69
+INSTALL_FROM_RELEASE=<name-of-release>
70
+USE_ENVIRONMENT=live-replica-server
71
+REPLICATE_MASTER_SERVLET_HOST=<IP of your master server>
72
+BUILD_COMPLETE_NOTIFY=
73
+SERVER_STARTUP_NOTIFY=simon.marcel.pamies@sap.com
74
+</pre>
55 75
56 76
## Costs per month
57 77