Starting from 2.0.0.259 release, support for Dynamic Sync feature is added in CA Spectrum Connector. The Dynamic Sync feature helps to sync modules in real time without restarting the CA SOI Connector service.
The following modules of CA Spectrum Connector are supported for the Dynamic Sync:
- Configuration Items (CI)
- Event Format File Cache Reset
Configure Dynamic Sync
For the Dynamic Sync configuration, a new configuration xml file (DynamicSyncConfig_<SSHostName> .xml) is added in CA Spectrum connector at the following location.
“<connector root>/resources/Configurations/DynamicSyncConfig/”
To sync the Configuration Items (CI) or Event Format File Cache Reset, update the DynamicSyncConfig_<SSHostName> .xml file and save the changes.
Follow these steps:
- Log in to CA Spectrum Connector
- Go to Connector Installation directory (connector root), resources, Configurations, DynamicSyncConfig folder
- Update the ‘DynamicSyncConfig_<SSHostName> .xml’ file
- Add the corresponding child tags
- Change the flag value to ‘true’.
- Save the changes.
Refer to the following screenshot for a sample configuration.
A background thread monitors the changes that are saved in the xml file for every 30 seconds. The changes that are happened after the last sync are picked and processed.
Note: To make particular module to run, the corresponding sync flag should be set to ‘true’.
After processing the module, the processed entries under the corresponding sync tag are deleted and the ‘lastProcessedTime’ attribute is updated accordingly.
Supported modules:
Sync Configuration Items (CI) dynamically
The Dynamic Sync feature allows you to sync models from CA Spectrum server to CA SOI dynamically without restarting the connector. You can update the DynamicSyncConfig_<SSHostName>.xml file with model handles of the required models and set the flag to true to sync the defined models.
Configuration:
The DynamicSyncConfig_<SSHostName>.xml file contains a default tag for CI processing as shown in the following example:
<CISync flag= 'false' lastProcessedTime= '0' >
<modelHandle id= '0x1006a' />
</CISync>
|
You can add required models by updating the “<modelHandle id='0x1006a'/>” tags under “<CISync />” tag. You can add as many as model handles in hexadecimal format. If no model handles are specified, then it generates a delta of newly added models and it publishes them to the CA SOI. Set the flag value to true for the “<CISync />” tag and save the file.
The background thread picks the changes that are done to the xml from the last sync and processes the CIs and publishes them accordingly. After the publish, it clears the list of model handles, resets the flag, and updates the last processed time.
Reset Event format file cache dynamically
The Dynamic Sync feature allows you to clear all or particular event format file from the event file cache at Spectrum connector end. You can update the xml file with the desired event codes to delete the corresponding event format file from the cache.
Configuration
The DynamicSyncConfig_<SSHostName> .xml file contains a default tag to reset the event cache as shown in the following example,
<EventFileCacheReset flag= 'false' lastProcssedTime= '0' >
<eventCode id= '0x10d31' />
</EventFileCacheReset>
|
You can add the required event files to be cleared by updating the “<eventCode id='0x10d31'/>” tags under “<EventFileCacheReset />” tag. You can add as many as event files with the event code in hexadecimal format. If no event codes are specified then all the event format files are cleared from the cache. Set the ‘flag’ value to true for the “<EventFileCacheReset />” tag and save the file.
The background thread picks the changes that are done to the xml file from the last sync and processes the event format file cache accordingly. After the process is complete, the event code tag list is cleared and the last processed time is updated accordingly.