Professional Documents
Culture Documents
CONFIGURE DATA
RETENTION
UP FRAMEWORK
Jason/Louis
January 17, 2022
Version: 1.2v
TABLE OF CONTENTS
1. SUPPORTING INFORMATION .................................................................................................. 3
1.1 About This Document .......................................................................................................... 3
1.2 Introduction ......................................................................................................................... 3
1.3 Document Revision History .................................................................................................. 3
2
1. SUPPORTING INFORMATION
1.1 About This Document
The purpose of this document is to provide the procedure in modifying the default data retention period
for IPF logs table according to bank decision. The main purpose to perform this configuration is to
reduce the tablespace usage in RT DB database to the bank which have encounter tablespace not
enough issue. Therefore, we come up with a solution to decrease the default data retention period, 365
days for IPF logs table which have already been set during installation.
1.2 Introduction
To perform this activity, bank will need to schedule a downtime around 6 hours. (Depends on
the transaction amount and server performance)
This activity will affect a few IPF logs table which are:
- ipf_message
- ipf_trans_log
- ipf_alias_mgmt_log
Based on observation, these are the top three table which occupy most of the tablespace’s space.
1.1 Louis 17 Jan 2022 Adding the screen capture for setting in
Configuration Builder
3
2. PREPARATION WORK
a. Before making the changes, backup the items listed below as this is crucial for the rollback step.
b. Go to Platform Settings Data Retention mcas_tx_events, make any changes in this page
and click on the Accept button in top right corner.
(e.g.: Change the default value of Retention Period from 30d to 7d)
4
c. Navigate to menu Configuration Export to XML to export an XML file.
d. Open the XML file exported in previous process using Notepad++ or any other text editor.
e. Search the <delete…/> stanza having the dataset attribute with value = “mcas_tx_events” to locate
the XML stanza that governs retention for the “mcas_tx_events“ entity.
f. Make a copy of this XML stanza and paste it in the file. Replace the copy’s dataset attribute value
with the retention attribute’s value to the days preferred. Remove the XML stanza having the
5
dataset attribute with value = “mcas_tx_events” because we are not going to any changes for
“mcas_tx_events” table.
In below example, we make copies and edit in order to configure retention on 3 additional tables:
“ipf_message”, “ipf_trans_log” and “ipf_alias_mgmt_log”
Example:
Before:
<delete type=”delete-or-partition” dataset=” mcas_tx_events”
retention=”7d” partitionSize=”Generated” partitionAhead=”4”
blockSize=”100” interval=”10m” timeOfDay=”0:0:0” />
After:
<delete type=”delete-or-partition” dataset=”ipf_message”
retention=”2d” partitionSize=”Generated” partitionAhead=”4”
blockSize=”100” interval=”2h” timeOfDay=”0:0:0” />
<delete type=”delete-or-partition” dataset=”ipf_trans_log”
retention=”2d” partitionSize=”Generated” partitionAhead=”4”
blockSize=”100” interval=”2h” timeOfDay=”0:0:0” />
<delete type=”delete-or-partition” dataset=”ipf_alias_mgmt_log”
retention=”2d” partitionSize=”Generated” partitionAhead=”4”
blockSize=”100” interval=”2h” timeOfDay=”0:0:0” />
h. In Configuration Builder, navigate to menu Configuration Import from XML, select the XML file
that was saved just now and import back to replacing the configuration data.
6
4. CHECK THE PARTITION SIZE
a. Login to the MCAS server.
b. Go to Switch log directory and examine the switch log, to check the partition size of the new created
data retention period for the IPF log table involved.
$ cd <switch_dir>/Switch/log/switch1
Example of output:
2022/01/11 00:59:59.1:info:switch3:T[c94287c]:mcas.db.storage.ret:ZZZ
[ipf_message] on [DB1, (ACTIVE, 2022-01-06 23:03:02.690)] prepare
partition-size=300m safety=600m retention-period=45h check-
interval=18000000 d-a-t=3600000
Example of output:
2022/01/11 01:00:02.1:info:switch3:T[c94287c]:mcas.db.storage.ret:ZZZ
[ipf_trans_log] on [DB1, (ACTIVE, 2022-01-06 23:03:02.690)] prepare
partition-size=300m safety=600m retention-period=45h check-
interval=18000000 d-a-t=3600000
Example of output:
2022/01/11 01:01:52.1:info:switch3:T[c94287c]:mcas.db.storage.ret:ZZZ
[ipf_ alias_mgmt_log] on [DB1, (ACTIVE, 2022-01-06 23:03:02.690)]
prepare partition-size=300m safety=600m retention-period=45h check-
interval=18000000 d-a-t=3600000
7
Note (Meaning of the variables in output script):
1. Partition-size: Size for each partition
2. Retention-period: Log retention time (Will roughly be same as the value set by bank)
Example of output:
PARTITION_1
PARTITION_2
PARTITION_3
PARTITION_4
PARTITION_5
8
ALTER TABLE IPF_TRANS_LOG DROP PARTITION PARTITION_2;
ALTER TABLE IPF_TRANS_LOG DROP PARTITION PARTITION_3;
ALTER TABLE IPF_TRANS_LOG DROP PARTITION PARTITION_4;
Example of output:
9
6. VERIFICATION STEP
After successful bring up all the switch, keep on monitoring on the three IPF logs table,
“ipf_message”, “ipf_trans_log” and “ipf_alias_mgmt_log”
a. Check if new partition will create
b. Check if old partition will drop after data retention period
10
© Copyright ACI Worldwide, Inc. 2022
ACI, ACI Worldwide, ACI Payments, Inc., ACI Pay, Speedpay and all ACI product/solution names are trademarks
or registered trademarks of ACI Worldwide, Inc., or one of its subsidiaries, in the United States, other countries or both.
Other parties’ trademarks referenced are the property of their respective owners.
11