Skip to content

pester500/flink-timescale

Repository files navigation

Running Locally

Scripts

  • scripts/build.sh - builds Flink job jar and Docker image
  • scripts/launch-dependencies.sh - Start Zookeeper, TimescaleDB, Kafka, Job Manager, Task Manager, and Flink job
  • scripts/kill-containers.sh - Stop and remove all docker containers

Performance considerations

The Flink Task Manager instance count defaults to the number of cores available to the Docker engine. If you want to see how much parallelism impacts processing speed, change TASK_MANAGER_NUMBER_OF_TASK_SLOTS in the task-manager container,

AND

Change KAFKA_CREATE_TOPICS: "input:10:1" to KAFKA_CREATE_TOPICS: "input:<TASK_MANAGER_NUMBER_OF_TASK_SLOTS>:1" so Kafka can partition the data properly for the number of consumers.

AND

Change PARALLELISM: 10 to PARALLELISM:<TASK_MANAGER_NUMBER_OF_TASK_SLOTS>. If PARALLELISM exceeds TASK_MANAGER_NUMBER_OF_TASK_SLOTS, the job will be rejected by the Job Manager.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages