Reset Partitioning Method Configuration
If you set the event collection partitioning method configuration to one collection (0) during configuration, you can optionally change the value to multiple collections (1, 2, 3, or 4) even after the Event Loader has loaded event objects into the Event Repository.
Before you begin
mongod
instance runs and must be run against your primary mongod
. If you are logged on to a machine where the
MATRIXX Engine software is installed, you can run the script with no further setup. For more information
about running the administration script on a machine where the MATRIXX Engine software is not installed, see the
discussion about setup for Event Repository administration scripts. About this task
Procedure
-
Run the configure_event_repository.py script using the --partition option:
configure_event_repository.py --partition=partitionMethod
Where partitionMethod is the new partition method value:
- 1 — One collection each month.
- 2 — Two collections each month.
- 3 — Three collections each month.
- 4 — Four collections each month.
- Run the create_event_repository_partitions.py script to create the collections and the indices in the collections that are to be generated in your MongoDB system to store objects in the Event Repository.
-
Remove all MATRIXX Event Files (MEFs)
from the /mnt/mtx/txn_logs/event_store_processed
directory.
Not completing this step might impact queries if the events appear multiple times. Files in this directory are reloaded when the engine restarts.
- Delete the MtxEventCollection after making sure it is empty to avoid losing events.
- Restart the standby publishing server, then restart the primary publishing server.
What to do next
- Run the check_event_repository_configuration.py script to view all index definitions.
- Run the partition_events.py script to migrate your event repositories from single collections to multiple collections.