normcat

command module
v0.0.0-...-67ff5a4 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2018 License: GPL-3.0 Imports: 16 Imported by: 0

README

normcat

normcat will read a file (or stdin) and print it to stdout with a variable rate following a normal distribution (configurable).

When it reads from a file, it can cycle, so when it reaches the end of the file, it will start over again, for almost infinite output.

It can understand files compressed with xz, gzip and lz4 and uncompresses automatically on the fly.

Why? Because I needed to create a couple demos with streaming data. For example in the graph below, there are 3 normcat instances piping data to a kafka producer:

normcat_use

Normcat memory usage depends on the average line size. By default normcat will try to buffer 64*1024 entries (lines of input) into memory. If you prefer lower memory (buffer just 1024 entries) build with:

go build -tags lowmem

GPLv3 License.

Documentation

Overview

A program to cycle-read lines from a source file (or stdin) and write them to stdout with a custom rate and jitter following a normal distribution.

A program to cycle-read lines from a source file (or stdin) and write them to stdout with a custom rate and jitter following a normal distribution.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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