Creating Archive Scaling Rules

Procedure

  1. Define Stacks that will add or remove Component Archives based on archive statistics that are monitored for triggering conditions.
  2. Create Archive Scaling Rules to automate creation or removal of new Adapter for Files Archives when rules based on archive statistics meet or exceed thresholds or conditions you have set.
  3. After adding Components to your Stack you can create new scaling rules by opening the Archive Scaling tab and clicking the Create New button.
  4. Name your new archive scaling rule and give it a description to help you and others quickly identify the purpose and content of your archive scaling rule.

    The Archives tab defines what archive will be added or removed according to the rules you define in the other tabs.

  5. Use the Add icon at the right of the column heading row to add one or more archives (process instances) to be scaled up or down in your Stack.
    Creating a new Archive Scaling Rule
  6. Select the Adapter for Files Component that was used to upload the application archive file and use the Archive Names field to specify what archive will be subject to the rules you set using the other tabs of the Archive Scaling Rule Editor.
  7. In the Add Archive Conditions tab and click the Add icon to the right of the column heading row to create and define a new Add Archive rule.
  8. Select the statistics, the operator, the value, and the sampling window period in seconds to define your condition for adding a new archive.

Note: The Sampling Window must be a sufficiently large time period (in seconds) to allow aggregated statistics to be collected. If the Sampling Window is not big enough there is a chance that no statistics will be reported in a particular time-frame creating an inadvertent trigger condition.By default allocation statistics like "Expected Engine Count", "Client Count", "Allocating Engine Count", and "Actual Engine Count" are collected every 60 seconds and by default Component statistics are collected every 10 seconds.

  1. More than one rule can be defined. With more than one rule defined, set the Satisfies field to specify whether all rules must be satisfied or whether any one rule may be satisfied to trigger addition of a new archive instance.
    Define Archive Scaling Rule conditions
  2. Optionally to set a preference for running new archives or new process instances on Component instances with favorable usage profiles. Select the statistic that is most relevant to your implementation and you can create new process instances there according to those conditions you defined.

    The tabs in the Archive Scaling Rule Editor are as described.

    The Remove Archive Conditions tab enables you to release computing resources and remove unused or idle Component Archives or process instances to scale down your Component Archives just as you scaled them up according to conditions you define on usage statistics.

    The Target Component Conditions tab allows you to restrict the start of new Archive instances to those machines that have the same set of resources that you choose. Set a rule or several rules with statistics, operators, and values as you would on the Add Archive Conditions tab and further restrict where the new Archive instances may start depending on Component Instances that have:

    • Same Component - will work all the time for Component Archive scaling.
    • From the set of Components - works only if your Component Archive is compatible with the set of Components present. For example an Adapter for Files archive cannot scale on an Adapter for Database Component.
    • Same Component Type - the process archive has the possibility of being scaled up on different versions of the product
    • Same Enabler - components that require a specific enabler should use this option.
    • Same Middleware Version - this selection will ensure that the Component Archive runs on machines with the appropriate middle ware: TIBCO Adapter for Files, TIBCO TRA, TIBCO Hawk, etc.
    • Same Enabler and Middleware Version - this selection will ensure that your Component Archive will scale up successfully, but it is the least restrictive of the target component conditions. .
      Tip: Only "From the Same Set of Components" or "Same Enabler and Same Middleware Version" will work 100% of the time.

      Provided that the Component Archive has the proper Component Type, TIBCO Silver Fabric can usually find the correct computing environment for scaling up. For example, for an Adapter for Files Component Archive, a selection of the "Same Component Type" ensures that the Silver Fabric Broker will try and find an engine with same Adapter for Files ComponentType on which to run new Adapter for Files Component Archives.