Wednesday, October 8, 2008

Stage 4 - The Client AMI

The last stage - create the client AMI. Since I already had Server AMI with JDK and Terracotta installed, I only needed to complete couple of other things:
  • I instansiated server
  • Remotely copied the src and lib directories of the demo (the new code and the new dependencies), the run.sh (with the new classpath) and the build.xml (with the new compile classpath)
  • Logged in to the server and run build.
  • Added run.sh to the init.d (for the autostart of the client once the machine is up)
  • Created AMI, uploaded it to S3 and registered with EC2 (see Stage 2).
  • Added ports 1990-2000 (10 clients) to the whitelist of my custom "Terracotta" security group (already done in Stage 3).

No comments: