This repository provides a docker compose template to establish Flink HA infrastructure, in order to confirm what is described in JobManager High Availability (HA).
docker-compose up
flink run -m localhost:18081 <your_flink_application.jar>
(use localhost:28081 instead of localhost:18081 when jobmanager2 is the master)- Open http://localhost:18081 (use localhost:28081 similarly)
You can see the standby JobManager takes the role of master when you shutdown the master JobManager.