Skip to content

arift/zk-smoketest-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

ZooKeeper Smoketest for Docker

More info on Smoketest: https://github.com/phunt/zk-smoketest.

This container will allow you to run ZooKeeper Smoketest against any ZooKeeper cluster. Once test is completed, results will be available at localhost:80 by default.

Provide following parameters:

- CONNECT_STRING  //ZK Connect string. Provide one or more target servers separated by comma. Include ZK client ports as well. Ex: 192.168.1.101:2181,192.168.102:2181
- Z_NODE_COUNT //Default 100
- Z_NODE_SIZE //Default 100
- SERVER_PORT //Default 80

To start this container from command line with minimal arguments, type:

$ docker run -d -e CONNECT_STRING=zknode.example.com:2181 atopcu/zk-smoketest

Running with docker-compose

version: "3.7"

services:
  app:
    image: atopcu/zk-smoketest:latest
    environment:
      - CONNECT_STRING=zknode1.example.com:2181,zknode2.example.com:2181,zknode3.example.com:2181
      - Z_NODE_COUNT=10
      - Z_NODE_SIZE=10

Mounting output directory

You can alternatively mount /output path to save the output file to a local directory.

version: "3.7"

services:
  app:
    image: atopcu/zk-smoketest:latest
    environment:
      - CONNECT_STRING=zknode1.example.com:2181,zknode2.example.com:2181,zknode3.example.com:2181
      - Z_NODE_COUNT=10
      - Z_NODE_SIZE=10
    volumes:
      - /local/path/to/output:/output

Output server

Output file can also be accessed by the static web server that starts once the smoketest is over.

version: "3.7"

services:
  app:
    image: atopcu/zk-smoketest:latest
    environment:
      - CONNECT_STRING=zknode1.example.com:2181,zknode2.example.com:2181,zknode3.example.com:2181
      - Z_NODE_COUNT=1000
      - Z_NODE_SIZE=100
      - SERVER_PORT=8080

About

Dockerized zk-smoketest.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published