Configuring the AR System server as a Centralized Configuration server


Centralized configuration refers to storing configuration form data at a common location that can be accessed by other computers. Centralized configuration simplifies the management of configuration data and the sharing of configuration settings across servers. For more information, see Centralized-configuration.

You must configure a AR System server to act as a Centralized Configuration Server (CCS). The CCS is a AR System server  that does not have any applications installed or any end-user interactions. A CCS needs limited resources in terms of CPU and RAM.

The CCS ensures consistency by communicating changes to the global properties across all the Mid Tiers in a cluster. If a configuration server is defined while adding a tenant, that tenant configuration server maintains a copy of the tenant-specific settings. When a tenant-specific property is modified on one Mid Tier, the Tenant Configuration Server automatically sends the notification to other Mid Tiers that have the same tenant added, so that these configuration changes are also synchronized by each Mid Tier in the same cluster.

For example, you have 10 Mid Tiers in a cluster. Before centralized configuration, each tenant was managed independently. To change a configuration setting, you had to make the same change for each tenant in the cluster. With centralized configuration, because all settings are stored in forms, you can change the settings for multiple tenants in a cluster at one time. Centralized configuration enables you to share configuration settings across all tenants in a cluster as represented in the following image:

 221_CCSchanges.png

Overview of global and local level configurations for the Mid Tier

You can define global- and local-level configurations for Mid Tier. You must configure the Mid Tier in a cluster to set the global- and local-level configurations. Global-level configurations are defined for all servers in a server group. Any configuration in the centralized configuration that is specified under the Component Name field as "*" is a global-level configuration. Local-level configurations are defined for an individual server. For more information, see Managing-server-group-components-by-setting-global-level-and-local-level-configurations.

The global-level configuration is applicable to all the clusters and all the Mid Tiers under those clusters. The local-level configurations are applicable to a particular cluster.

The following diagram illustrates global and local level configurations for clusters:

221_Global-local config.png

To set the Centralized Configuration Server properties

  1. In a browser, open the Mid Tier Configuration Tool by navigating to http://hostname:port/arsys/shared/config/config.jsp.
  2. Click Central Config Settings.
  3. On the Central Config Settings page, enter the following information:
    1. In the Server Name field, enter the name of the AR System server that is the designated as the Centralized Configuration Server (CCS) in the cluster.
    2. In the Cluster ID field, enter the unique cluster ID of the cluster to which the Mid Tier belongs.
    3. Enter the administrator password.
    4. (Optional) Enter the port number and RPC number.
  4. Click Save.
  5. Click Publish to create or update global properties from the config.properties file to the CCS.

    After you publish, properties that are deleted from the config.properties file are not deleted from the CCS. However, deleted properties are reflected in the current Mid Tier memory immediately and are restored when the Mid Tier is restarted. Click Restore to restore global settings from the CCS to the config.properties file. Exercise caution when deleting any property directly from the CCS forms.

  6. Click Restore to update the global settings from the CCS to the config.properties file.

 A ccs.properties file is added to the midTierInstallationDirectory\WEB-INF\classes folder and contains the following information:

  • arsystem.cluster.id—The cluster identifier of the Mid Tier cluster. All Mid Tier instances in the same cluster share the cluster identifier

  • arsystem.ccs.password—The encrypted Mid Tier service password for the CCS.

  • arsystem.ccs.host—The name of the CCS.

  • arsystem.ccs.port—The port number of the CCS.

The Mid Tier uses the ccs.properties file for connecting to the CCS on startup and for updating its configuration files for global settings (config.properties) and tenant-specific settings (config.tenantName.properties).

If you have configured a valid CCS or Tenant Configuration Server, refrain from making any changes directly to the properties files. These changes might be overwritten during the next Mid Tier restart. Make all the necessary changes in the AR System Configuration Component Setting form on the CCS or Tenant Configuration Server, using the appropriate cluster ID or tenant name. The changes will take effect in all corresponding Mid Tier instances and properties files by means of a periodic notification, typically after 30 seconds. However, changes to some of the properties, such as Ehcache settings and number of threads, require the Mid Tier to be restarted. For more information, see Centralized-configuration.

Centralized Configuration Server forms

You can configure the AR System server as a Centralized Configuration Server (CCS) or a Tenant Configuration Server only if the AR System server version supports centralized configuration and has the following configuration-related system forms:

  • AR System Configuration Component
  • AR System Configuration Component_Backup
  • AR System Configuration Component Setting
  • AR System Configuration Component Setting_Backup
  • AR System Configuration Component Setting_Backup_Unique
  • AR System Configuration Component Setting Audit
  • AR System Configuration Component-Setting Mapping
  • AR System Configuration Component-Setting Mapping_Backup

When the configuration is successful, the Centralized Configuration Server Setting page on the Mid Tier Configuration Tool displays the following confirmation message:

221_CCS-MT_success.png

 

 

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*