<p>I've an application which use debezium-postgres connector to publish events on kafka from postgres. Application is working fine if kubernetes deployment strategy is Recreate.
<strong>But Throwing exception on using RollingUpdate Deployment strategy</strong></p>
<ul>
<li>Exception <code>replication slot &quot;XXX&quot; is active for PID XXX</code> as older pod is using the same replication slot</li>
</ul>
<p>Application is using PGOUTPUT debezium plugin and some postgres configuration are as follow:</p>
<pre><code>max_wal_senders = 4
max_replication_slots = 4
wal_level = logical
wal_receiver_timeout = 300s
wal_sender_timeout = 300s
</code></pre>
<p>Is there any configuration which might help to resolve this issue?</p>

Dipti
<p>You cannot start two WAL sender processes with the same replication slot.</p>
<p>If you need two clients to run logical decoding, create two replication slots. Otherwise, make sure that any client who uses the replication slot is stopped before you connect.</p>
