-
Create the
artwork_indexer
schema and install the new triggers. This will cause events to be inserted into theartwork_indexer.event_queue
table that duplicate existing CAA-indexer events in RabbitMQ. -
Drop the CAA-indexer functions/triggers. This will cause new events to cease being pushed into RabbitMQ.
-
Allow the
caa-indexer
container to process all remaining events in RabbitMQ. -
Once all events are processed, we can make note of the last event that was processed (available in the docker logs) and delete any already-handled events prior to and including it from the
artwork_indexer.event_queue
table. -
A new
artwork-indexer
container can be started to continue processing events from theartwork_indexer.event_queue
table.
Once all CAA-indexer queues are empty (including those for retries), we can drop them from RabbitMQ and remove the caa-indexer
container.
If that is just for the CAA, shouldn’t it be
cover_art_indexer
orcaa_indexer
instead?Otherwise, I thought that we were going to use images in general circumstances?
How does that go practically? Are all the event numbers in logs? In ascending order? From where to delete [prior] events? By include do you mean an INSERT statement?
Also, is there any issue with processing twice an event? When event for retries are processed?
Maybe wait for a few days to see if the new indexer isn’t experiencing major production issues?