Skip to content

Instantly share code, notes, and snippets.

View emrantalukder's full-sized avatar

Emran Talukder emrantalukder

View GitHub Profile
@emrantalukder
emrantalukder / ansible-benchmarks.md
Created June 26, 2023 19:35 — forked from cjmatta/ansible-benchmarks.md
A method for orchestrating distributed Kafka benchmarks using Ansible

A method for orchestrating distributed Kafka benchmarks using Ansible

Kafka benchmarks are typically run using a single producer and consumer against a single topic, and the producer and consumer are run at close to maximum write/read speeds. In the real world, a Kafka cluster is more often serving many lower throughput producers and consumers. Ansible allows for a benchmarking method that sets up any number of topics and many producers and consumers.

Ansible playbooks allow us to run a number of tasks against a distributed set of clients both synchronously and asynchronously.

Topic setup

Before we can run tests we need topics to test against. This play sets up a number of topics with various partition configurations:

- name : Setup
@emrantalukder
emrantalukder / d3.sankey.js
Created December 4, 2019 21:16 — forked from emeeks/d3.sankey.js
Sankey Particles IV
d3.sankey = function() {
var sankey = {},
nodeWidth = 24,
nodePadding = 8,
size = [1, 1],
nodes = [],
links = [];
sankey.nodeWidth = function(_) {
if (!arguments.length) return nodeWidth;

Computing hexbins from a constantly-fluctuating sample of 2,000 random points.