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

You use the Event Repository administration script configure_event_repository.py for creating index definitions and the partitioning method configuration. These administration scripts can be run from any machine that has a connection to the machine on which a 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

Use the following steps to transition from single event collection to partitioned collections.

Procedure

  1. 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.
  2. 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.
  3. 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.
  4. Delete the MtxEventCollection after making sure it is empty to avoid losing events.
  5. Restart the standby publishing server, then restart the primary publishing server.

What to do next

After modifying index definitions, MATRIXX Support recommends that you run the following scripts:
  • 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.