%CODE1%
← Back
Credentials
Job Reproduction
Cost Analysis
Credentials
StochSS provides the options to run jobs using the Amazon cloud infrastructures. In order to use Amazon Elastic Computing Cloud (EC2), Simple Storage Service (S3) and DynamoDB database, which are all required for running jobs in the cloud, you need an Amazon Web Services (AWS) account and a credential pair (consisting of a secret key and an access key) in hand.
More information regarding how to create an AWS account and get credentials can be found here: http://aws.amazon.com
Setting Credentials in StochSS
You must set your credentials in StochSS manually (Figure 1). Once StochSS validates these, you will be able to launch compute nodes and run jobs in the Amazon cloud.
- Navigate to the main Cloud Computing page.
- Copy your access key to the Access Key text box.
- Copy your secret key to the Secret Key text box.
- Click Save credentials to validate and save your credentials.
Launching and Shutting Down Nodes
Once valid credentials are entered, clicking Launch nodes (Figure 2) by default will launch one c3.large Amazon instance. This first node is designated the head node. Any other nodes launched are called worker nodes. There can be zero or more worker nodes, and they are c3.larges instance types by default. For information on Amazon instance types, look here: http://aws.amazon.com/ec2/instance-types/. The head node must be a c3.large or c3.xlarge. The worker nodes can be any combination of t1.micro, m1.small, m3.medium, m3.large, c3.large, and c3.xlarge nodes (chosen in the Advanced settings menu).
Only one head node is needed to run jobs in the cloud. It is possible to access cloud data even when no head nodes are launched. Compute resources and storage resources are billed separately by Amazon. More details can be found at: http://aws.amazon.com/ec2/pricing/.
Launching a node takes time. The Refresh status button can be used to check the launch progress. The Terminate all nodes button terminates all the nodes that StochSS started.
Job Reproduction
StochSS provides the flexibility to store simulation output in the cloud or delete it and regenerate it later. If simulations are fast but produce large amounts of data, reproducing data only when it is needed can save money.
An Example on Job Reproduction
Reproducing a cloud job is simple:
- Launch a compute node.
- Run a well-mixed or spatial model (everything except parameter estimation jobs can be reproduced).
- Navigate to the Job Status page.
- Click view beside the job you would like to reproduce.
- Click Delete Output to delete output in the cloud. No reproduction action is available until you delete the output.
- Once the output is deleted, the option to reproduce the job will be appear as shown in Figure 3.
- Choose a node type for reproduction. If there is no such instance type running, a warning will show up to guide you to the Cloud Computing page to launch one.
- Click Reproduce Results to submit the reproduction request. This will automatically redirect to the Job Status page where the new job’s status can be monitored.
Cost Analysis
Because different instance types cost different amounts of money, it is not obvious which nodes are the cheapest for any given job type. StochSS allows manual measurement of job cost with the cost-analysis tool.
An Example on Job Reproduction

- Run a well-mixed or spatial model.
- Navigate to the Job Status page.
- Click view beside the job you would like to analyze.
- Click Cost Analysis in the Reproduction and Cost Analysis section.
- By default, cost analysis should be available for whatever instance type the job was run on.
- Click Analyze with any other node type you would like to run and analyze the job on. At least one node of this instance type must already be running.
- The run times and costs of simulating the jobs are plotted on the screen as in Figure 4.