## Reactive Replay

1. Reactive replay is the replay of access log data based on the session id provided in the request.
2. Initially, raw data files/access log files are required which are being further processed by the Data Processor.
3. The data processor captures raw files as input, processes the data, and saves it in shared memory.
4. It also creates correlation services corresponding to that data in the High Performance Daemon (HPD) correlation directory.
5. Data managerarranges the data saved in shared memory according to session ids, and responses are mapped corresponding to different session ids.
6. NetOceancaptures the data from shared memory as input and provides it to HPD, and HPD replays the processed data.
7. At run time NetOcean identifies the request type, If the request is identified as reactive replay, NetOcean captures the session id in the request to find the corresponding response in the processed data and serves the response to the client.
8. The Protocols used in reactive replay are HTTP and HTTPS.

## Data Manager

To open the Data Manager section, follow the steps given below:

1. Go to the Reactive Replay
2. On clicking the menu, the following options are displayed:
   1. Data Processor
   2. Data Manager
3. In the Data Manager, it has the following fields:

### a. Data Manager Information

In data manager, user need to select a particular date in order to fetch data from the memory.

1. Select Date: It is used to select a predefined date.
2. Others: This option is used to create a user defined date.

Note: After the user selects the date, they have to click on the Create Create button

### b. Shared Memory Information

1. To get the information on shared memory, select a date from the drop-down list.
2. Following information is displayed on shared memory for the selected date:
   - Hash Shm ID: This denotes the hash table shared memory ID.
   - Session Shm ID: This denotes the session table shared memory ID.
   - Response Shm ID: This denotes the response table shared memory ID.
   - Destination Path: This denotes the destination path where the output file is stored
   - Shm Path: This denotes the shared memory data path.
     1. Others: Users can create their own date and time.
     2. Create: Click on this button to create the table.

Note: Users can perform the following operations after creating the Data Manager table:

1. Delete: This option is used to delete the data in the table.
2. Reset: This option is used to reset the data in the table.
3. Backup: This option is used to take the backup of the table.

## Deleting a Shared Memory /Backup File

1. To delete a shared memory, click on the Delete
2. On clicking the delete button, a Dialog box is displayed which prompts the user for deleting the files.
3. Select the “Delete only shared memory” check box, to delete the shared memory click on Yes button else click
4. For deleting the backup files too, select the “Delete shared memory and backup files” and then click Yes button else click

## Taking Backup

1. To take the backup of the shared memory, click on the Backup button.
2. The system prompts for confirmation on taking a backup of the selected date.
3. Click Yes to create the backup of the selected date else click No.

## Reset Shared Memory

1. To restart the reply from the beginning, the user needs to reset all the pointers in shared memory.
2. To reset the shared memory, click the Reset
3. Click Yes to reset the shared memory of the selected date else click No.

## Recreating a Shared Memory

1. This feature is used to reload data in shared memory.
2. It reloads the specified date (if backup files exist) and provides the shared memory details.
3. For recreating a shared memory, follow the below steps:
   1. Select ‘other’ from the date drop-down list.
   2. Provide a custom date.
   3. Click on the Create button.
4. The details are checked in backup files for the provided custom date.
5. If the details are present in the backup files for that particular date, then the date is populated in the drop-down list, and details can be viewed on the shared memory table.
6. If the backup files don’t exist, a message is displayed – “Date Directory doesn’t exist at Shm path”.
7. On selecting that date from the drop-down list, the shared memory details are displayed.

## Active Changes

1. This is used to restart HPD.
2. To do this, click the icon in the upper-right corner of the window.