Adding and Configuring a CDD
Start with a new CDD because the provided Cache OM template sets many default values you’ll need.
- Procedure
- In TIBCO BusinessEvents Studio Explorer, right-click the project name and select
The New Cluster Configuration Wizard is displayed.
.
- In the File Name field, type fdCache and click
Next.
Warning: If you click Finish instead of Next, you do not have the opportunity to use the Cache OM template. If you accidentally click Finish, just delete the file and add a new one, and this time click Next.
By default, the CDD file name you specify is also used as the cluster name.
The Object Manager Selection dialog is displayed. - Select the following values and click
Finish.
- Cluster Provider Type -
Clustered
- Object Management Type -
Cache
The CDD editor is displayed. The default configuration uses ActiveSpaces cluster and cache providers.This tutorial uses the default cluster and OM but there is an option to change them to FTL cluster and Ignite cache respectively. - Cluster Provider Type -
- In the Cluster tab, select
Properties. You do not need to add any properties, unless you need to change the defaults for the
discovery URL and the
listen URL (which is used by the nodes to communicate with each other). Here are the cluster properties with their default values for your information:
be.engine.cluster.as.discover.url=tibpgm://7888/;239.8.8.9 be.engine.cluster.as.listen.url=tcp:// 0.0.0.0 /random port 3000+
For details see DataGrid Discover URL and DataGrid Listen URL in TIBCO BusinessEvents Configuration Guide.
Note:Cluster ClashesIf you have clashes with other clusters running on your machine, use a different cluster name, discovery URL and listen URL from the other cluster or clusters. - In the
Cluster tab, select
Cluster Management and verify that Legacy ActiveSpaces is selected as the Cluster Provider. In the Object Management verify that Number of Backup Copies is
1
, which indicates that the distributed cache contains one copy of each entity in the cache.Limited CacheThe Entity Cache Size and Object Table Cache Size settings in the Object Management tab take effect only if you use a limited cache. By default, the cache is not limited. In , the setting Is Cache Limited is not selected. However when you add a backing store, it is common to use a limited cache, because you can store all objects in the backing store. You can override the limited cache setting at the object level, as desired. - As you did in the basic design tutorial, do the following:
Configure the
inference-class
agent class with the Channels/Http/AllOps destinationConfigure the RuleFunctions/InitializeScorecard rule function as the startup rule function.For details, see Adding and Configuring a CDD.
No configuration is needed for the cache-agent class.
- Save and close the CDD.
- Build the EAR file using the name
fdcache
. If you need a refresher on building the EAR file, see Building the EAR File.
What to do next
You have configured the CDD for cache cluster discovery, and you configured the processing units and agents as you did before. Now you can start the project and see how things work at runtime.