Run Simulation
1 minute read
Run the Simulation
Get the Docker
First you will need the Docker to simulate. You can either use our DockerHub image or clone the GitHub repo. If using the repo, follow the instructions in README.mdto build with one command. To learn more about using docker, check out their brief overview.
Configure the Simulation
Next you need to configure the devices via environment variables. All you need is your Mezmo Pipeline Source Key (KEY
) and the number of devices to run (NUMBER_DEVICES
). Utilize the http authorization key created in Step 2: Add the Source. To do this on MacOS, simply run:
export KEY=<http_secret_key>
export NUMBER_DEVICES=25
Run it
In a terminal, run one of the following commands:
Mezmo’s Docker Hub
docker run -e KEY=${KEY} -e NUMBER_DEVICES=${NUMBER_DEVICES} -it mezmo/transaction-device-sim:0.1.0
Local after Building
See GitHub repo for steps to build the docker image.
docker run -e KEY=${KEY} -e NUMBER_DEVICES=${NUMBER_DEVICES} -it transaction-device-sim
Output
When running by default, you should see data like the following streaming through in that terminal. Now let’s verify data is flowing to S3. It may take a few minutes for new data to show up as data is Was this page helpful? Glad to hear it! Please tell us how we can improve. Sorry to hear that. Please tell us how we can improve.Verify data is flowing into S3
buffered
in the pipeline for a few seconds before writing to S3.Feedback