How to install Heatmap & Session Recording in a multi-server environment?

I have Matomo installations on 3 web servers, with a shared database and the configuration flag multi_server_environment = 1. The configuration file has an entry PluginsInstalled[] = "HeatmapSessionRecording" and I can see it in the console and web UI. But when I try to activate it (either through the console or in the web UI), I get the error message
Base table or view not found: 1146 Table 'matomo.log_hsr_event' doesn't exist

The database does not contain any tables starting with log_hsr

Please reference this note:

And then there are several short guides here: