Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include pv in container #30

Open
danielloader opened this issue Mar 16, 2023 · 0 comments
Open

Include pv in container #30

danielloader opened this issue Mar 16, 2023 · 0 comments

Comments

@danielloader
Copy link

danielloader commented Mar 16, 2023

I've been using this container in kubernetes to create test loads, works a treat.

Overridden the entrypoint and executing a script inside the container - again works well.

I'd love to have some control over the throughput of the producers.

Script in question:

cat /dev/urandom | base64 | kafkacat -P -t test-topic -b "${BOOTSTRAP_HOST}" -l -X linger.ms=1000

I'd propose to be able to use pv:

cat /dev/urandom | base64 | pv --line-mode --rate-limit 100K | kafkacat -P -t test-topic -b "${BOOTSTRAP_HOST}" -l -X linger.ms=1000

Likewise you could consume and pipe it through pv to emulate a slow writing/processing consumer.

I appreciate this could be out of scope but I figured it's worth asking.

Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant