Using TIBCO ActiveSpaces as a Transport (Option 1)

To use ActiveSpaces as the TIBCO ActiveMatrix BusinessWorks transport, do the following:
  • Specify the agent role as either a Server or a Client
  • Set the Minimum Seeder Count and Quorum Size
Note: You can make your TIBCO ActiveMatrix Businessworks bwagent process run as either a server or a client. Use one component for each role. However, many implementations instantiate multiple TIBCO ActiveMatrix BusinessWorks bwagent processes working in both the roles.
Environment Configuration - Enterprise Environment Type

Procedure

  1. In Environment Type, ensure that Enterprise is selected.
  2. Ensure that the Create Domain, AppSpace, AppNode option is selected.
  3. In Domain data persistence and communication transport layer, select ActiveSpaces as the messaging transport.
  4. Specify a role for bwagent as: Server or Client.
    Server
    When bwagent is configured to run as a server, it creates a file-based data store and provides remote management capability. The number of bwagents that should be configured to run as a server depends on the total number of bwagents in the deployment and the degree of fault tolerance required. Refer to the TIBCO® ActiveMatrix BusinessWorks™ documentation and the comments in bwagent.ini located in SFBW_HOME\bw\N.N\config for more information.
    Note: Selecting the role of agent as server enables the Register Enterprise server with TEA server option in the Environment Configuration dialog.
    Client
    When bwagent is configured to run as a client, data is not stored locally and clients are managed remotely by bwagent instances performing in the server role.
  5. When the role of agent is server, you can see that the Register Enterprise server with TEA server option is selected.

    TIBCO Enterprise Administrator (TEA) server provides an Administrator UI which can be used to create, view, and monitor runtime entities. The bwagent interacts with the TIBCO Enterprise Administrator server through a TEA agent. Only one TEA agent can be registered with a bwagent at a time. When the TEA agent is registered with bwagent, the bwagent is displayed in the Administrator UI. Using the Administrator UI, you can manage and monitor runtime entities and perform almost all bwadmin administrative tasks.

  6. Make sure that the Use a Dependent TEA Server option is selected.

    Selecting this option creates a TEA component for TIBCO Silver Fabric Enabler for TIBCO Enterprise Administrator and also sets the dependency of BusinessWorks component on the TEA component. The TIBCO BusinessWorks component then acquires the URL of the TEA server and automatically registers to the TEA server.

    If this option is not selected, you must first set up and start a TEA server manually and then provide the URL of the running TEA server in the TIBCO TEA Server Configuration page in the BusinessWorks component creation wizard.

    Tip: You must take advantage of the automatic registration and administrative features provided by TIBCO Silver® Fabric Enabler for TIBCO® Enterprise Administrator.

    When the component bwagent is set to run in the server agent role, select Register Enterprise Server with TEA Server and Use a Dependent TEA Server to leverage the features provided by TIBCO® Enterprise Administrator (TEA).

  7. When the role of agent is server, add a TEA component to your BusinessWorks stack and add a TEA server dependency to your BW server component. Refer to the TIBCO Silver Fabric Enabler for TIBCO Enterprise Administrator documentation for more information.
  8. Select the Engine Persistence mode from the drop down.
    • Memory This is the default mode and does not require any special configuration. In the memory mode, there is no persistence and the engines are unaware of the existence of each other. As a result, there is no collaboration between engines.
    • Datastore If you select this mode, then you need to provide the database configuration as this mode uses a database to provide persistence. The database deatils must be configured on the Database Configuration for The Engine Persistence Mode page that appears.
      Database Configuration for The Engine Persistence Mode

      There are two Database Connection Configuration levels:

      AppSpace and AppNode Levels. For more information refer Specifying the Domain, AppSpace, AppNode, and APPNode HttpPort Base Configuration.
    • Group The group mode uses a database and a group provider to provide persistence and collaboration between the AppNodes. In the group mode, the engines are aware of each other's existence and they can collaborate and work together to enable features such as checkpointing and managed fault tolerance. The Group mode displays The group provider technology for the engine property in the Environment Configuration page. For more information refer Group Provider Technology for the Engine .
    • FTGroup The database is not needed when the Engine Persistence mode is FTGroup. Also The FTGroup mode displays The group provider technology for the engine property in the Environment Configuration page. For more information refer Engine Persistence mode FTGroup .
  9. Specify The engine group name (Group_[DomainName]_[AppSpaceName]) property. This is an optional property and it specifies name of the BusinessWorks engine group. If this property is not specified, then the group name defaults to "Group_<DomainName>_<AppSpaceName>"
  10. Click Next.

    When the role of agent is server, the ActiveSpaces Configuration dialog is displayed.

    ActiveSpaces Configuration

    You can configure the minimum seeder count and the quorum for the bwadmin cluster to run properly. You can also change the file directory for ActiveSpaces to store persistent data. These settings are not necessary for the BusinessWorks client.

  11. Specify Minimum seeder count.

    It determines the minimum number of bwagents that are configured to run in the Server agent role, for the bwadmin cluster to function. The default value must be changed in a multi machine/multi agent setup.

    Tip: As a general guideline the Minimum Seeder Count can be expressed as a function of at least half the total number of BW servers.

    minSeederCount = Floor(n/2) + 1, n>2 where n is the number of bwagents configured to run in the server agent role and n must be odd.

    Degree of fault tolerance is:   n - minSeederCount

    For example, if five bwagents are set to run in the server agent role, then the minSeederCount=3, and two of the bwagents can be stopped without impacting the bwadmin cluster

    Another example, if three bwagents are set to run in the server agent role, then the minSeederCount=2, and only one of the bwagents can be stopped without impacting the bwadmin cluster.

  12. Specify Quorum size.

    It specifies the minimum number of bwagents, configured to be run in the server agent role. These bwagents must be started to recover the data from the local files when all the bwagents which were configured to run as servers were brought down and restarted. The default value has to be changed in a multi machine or multi agent setup.

    Tip: Set the quorum size to the number of bwagents configured to run as servers.

    For example, if we configure five bwagents to run as servers with a quorum of "5", the first four bwagents do not start until the fifth bwagent is also started.

    In this example, if one of the agents has to be abandoned for some reason like hardware failure, the quorum size must be changed to "4" prior to restarting the group of bwagents.

  13. Set the Data store location.

    To run bwagent in the server agent role, a data store location is used. The default path for the data store location is:

    ${TIBCO_HOME}/bw/6.2/domains/.datastore
    Note: The data store location can be changed, but make sure to use "/" as the path separator in the folder path and use ${TIBCO_HOME} as the prefix to specify the relative location on the TIBCO Silver Fabric Engine.
  14. Click Next.