... | ... | @@ -13,10 +13,10 @@ |
|
|
* Amazon S3 (http://aws.amazon.com/en/s3/pricing/)
|
|
|
* mathjaxtest bucket is used to store MathJax results. Amazon S3 storage cost.
|
|
|
* There is no Data Transfer charge for data transferred between Amazon EC2 and Amazon S3 within the same Region or for data transferred between the Amazon EC2 Northern Virginia Region and the Amazon S3 US Standard Region.
|
|
|
* Do we pay if we download test results from the AWS Management Console?
|
|
|
|
|
|
* CloudFront (http://aws.amazon.com/en/pricing/cloudfront/)
|
|
|
* Do we need to provide a public Web access to the test results (mathjaxtest bucket)?
|
|
|
* Cloudfront is used to serve public test results:
|
|
|
http://mathjaxtest.s3.amazonaws.com/index.html
|
|
|
|
|
|
* Running Instances (during testing period only)
|
|
|
* Amazon EBS Volumes (http://aws.amazon.com/en/pricing/ebs/): disks used by running instances. Storage and IO requests cost.
|
... | ... | @@ -126,7 +126,7 @@ IPs so that we won't be charged anymore. See "Stopping the Testing Framework". |
|
|
* Linux Instance
|
|
|
* Use a SSH client to connect to the instance.
|
|
|
* Use the "screen" command to handle several windows. Quick guide to the screen environment: use "Ctrl + a, Ctrl + c" to create a new window, "Ctrl + a, Ctrl + n" to move to the next window, "Ctrl + a, Ctrl + p" to move to the previous window, use the "exit" command to close the current window and finally "Ctrl + a, Ctrl + d" to detach the screen session. When you detach a screen session, all the servers will keep running even if you logout from the SSH session. You can restore your screen session when you connect again with the command "screen -r" (provided the machine has not been stopped since your last connection).
|
|
|
* In one screen window, use "~/start.sh" to start the VNC server. On the machine 10.0.0.30, this will also mount the mathjaxtest bucket on ~/MathJax-results/ and start the task handler.
|
|
|
* In one screen window, use "~/init.sh" to start the VNC server. On the machine 10.0.0.30, this will also mount the mathjaxtest bucket on ~/MathJax-results/ and start the task handler.
|
|
|
* If necessary, you may use a VNC client to connect to the instance.
|
|
|
|
|
|
* Windows Instance
|
... | ... | @@ -139,9 +139,9 @@ IPs so that we won't be charged anymore. See "Stopping the Testing Framework". |
|
|
|
|
|
* Directory Structure
|
|
|
* Linux
|
|
|
* ~/start.sh: Bash script to start Selenium and VNC servers.
|
|
|
* ~/init.sh: Bash script to start Selenium and VNC servers.
|
|
|
* ~/MathJax-test/: MathJax testing framework
|
|
|
* ~/MathJax-results/: mount point for Amazon S3 bucket
|
|
|
* ~/AmazonS3/: mount points for Amazon S3 buckets
|
|
|
* ~/Desktop/Webdrivers/: Drivers for Chrome. Added to $PATH by ~/.bashrc.
|
|
|
* Windows
|
|
|
* ~\selenium-server.bat: Bat script to start the Selenium server.
|
... | ... | @@ -158,7 +158,7 @@ IPs so that we won't be charged anymore. See "Stopping the Testing Framework". |
|
|
## Stopping the Testing Framework
|
|
|
|
|
|
* Saving the test results to Amazon S3
|
|
|
The test results are saved on the main machine in MathJax-test/web/results/. They will be cleared when the instance terminates. To save a copy to Amazon S3, just copy the relevant files in ~/MathJax-results/.
|
|
|
The test results are saved on the main machine in MathJax-test/web/results/. They will be cleared when the instance terminates. To save a copy to Amazon S3, just copy the relevant files in ~/MathJax-test/web/results/public/. You need to use the Amazon S3 interface to make the new files public.
|
|
|
|
|
|
* Terminating an Instance
|
|
|
Warning: this will totally clear the instance and its associated volume. Be sure to save unfinished task before doing so. In particular save a copy of the test results to Amazon S3. See also "Maintenance of the Testing Machine" if you need to update the AMIs.
|
... | ... | |