You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -89,45 +89,12 @@ The `lucy` container uses 3 volumes:
89
89
*`/keys` - mapped into the orchestrator to provide the PEM file
90
90
*`/logs` - mapped into the orchestrator to provide the output jmeter.log and results.jtl
91
91
92
-
## Local Testing with Docker Compose
93
-
The `jmeter/docker-compose.yml` file allows for local testing of the Gru and Minion nodes without incurring costs from AWS.
94
-
Edit the docker-compose.yml file and replicate the `links`, `environment` and `minionN` sections to increase the number of Minions to test.
95
-
```
96
-
version: '2'
97
-
98
-
services:
99
-
gru:
100
-
...
101
-
links:
102
-
- minion1
103
-
- minion2
104
-
- minion3
105
-
- minion4
106
-
environment:
107
-
- MINION_HOSTS=minion1,minion2,minion3,minion4
108
-
...
109
-
minion1:
110
-
image: smithmicro/jmeter:latest
111
-
minion2:
112
-
image: smithmicro/jmeter:latest
113
-
minion3:
114
-
image: smithmicro/jmeter:latest
115
-
minion4:
116
-
image: smithmicro/jmeter:latest
117
-
118
-
```
119
-
Then run:
120
-
```
121
-
docker-compose up
122
-
```
123
-
Using the `docker-compose scale` command does not work as it creates hostnames like `minion_1`. This causes an error in JMeter as it uses the hostname in URL form and sees the underscore as an illegal URL character.
124
-
125
92
## Environment Variables
126
93
The following required and optional environment variables are supported:
127
94
128
95
| Variable | Required | Default | Notes |
129
96
|---|---|---|---|
130
-
|AWS_DEFAULT_REGION|Yes|None|AWS Region (e.g. us-east-1)|
97
+
|AWS_DEFAULT_REGION|Yes|None|AWS Region (e.g. `us-east-1`)|
131
98
|AWS_ACCESS_KEY_ID|Yes|None|AWS Access Key|
132
99
|AWS_SECRET_ACCESS_KEY|Yes|None|AWS Secret Key|
133
100
|INPUT_JMX|Yes|None|File path of JMeter Test file to run (.jmx). You can optionally specify this as the first command line option of `docker run`|
@@ -136,24 +103,20 @@ The following required and optional environment variables are supported:
136
103
|SUBNET_ID|Yes|None|One or more Subnets (comma separated) that are assigned to your VPC|
137
104
|VPC_ID||VPC assigned to SUBNET_ID|We dautomatically erive this from your SUBNET_ID|
138
105
|JMETER_VERSION||latest|smithmicro/lucy Image tag. See Docker Hub for [available versions](https://hub.docker.com/r/smithmicro/jmeter/tags/).|
139
-
|INSTANCE_TYPE||t2.micro|To double your memory, pass t2.small|
140
-
|MEM_LIMIT||950m|If you are using t2.small, set MEM_LIMIT to 1995m|
106
+
|INSTANCE_TYPE||t2.micro|To double your memory, pass `t2.small`|
107
+
|MEM_LIMIT||950m|If you are using t2.small, set MEM_LIMIT to `1995m`|
141
108
|MINION_COUNT||2||
142
109
|PEM_PATH||/keys|This must match your Volume map. See Volume section above.|
143
110
|CLUSTER_NAME||JMeter|Name that appears in your AWS Cluster UI|
144
-
|GRU_PRIVATE_IP||(blank)|Set to true if you would like to run Lucy within AWS. See GitHub [Issue 8](https://github.com/smithmicro/jmeter-ecs/issues/8) for details.|
111
+
|GRU_PRIVATE_IP||None|Set to `true` if you would like to run Lucy within AWS. See GitHub [Issue 8](https://github.com/smithmicro/jmeter-ecs/issues/8) for details.|
112
+
|JMETER_FLAGS||None|Custom JMeter command line options. For example, passing `-X` will tell the Minion to exit at the end of the test|
113
+
|RETAIN_CLUSTER||None|Set to `true` if you want to re-use your cluster for future tests. Warning, you will incur AWS charges if you leave your cluster running.|
145
114
146
115
## Notes
147
-
This Docker image uses the Instance Metadata API documented here:
0 commit comments