ais-generator

command
v0.0.0-...-9dc98d4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2018 License: BSD-3-Clause Imports: 15 Imported by: 0

README

A docker image that generates AIS data into a kafka topic.

A sample run could be:

docker run --rm -it --net=host landoop/ais-generator \
    -messages 100000000 \
    -rate 25000 \
    -jitter 5000 \
    -bootstrap-servers broker1:9092,broker2:9092
    -schema-registry http://schema.registry:8081

The generator specifically produces Class A Position Reports. It includes a real world recording of about 275000 such reports and rolls over once it send them all.

The produce process follows a normal distribution with mean=rate and stddev=jitter. Thus if you set jitter=0 (default) you get a stable rate.

The reason we distribute it as a docker image is the librdkafka bindings for Go, which make it non-trivial to build and use properly.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL