Features

Multi-threaded Behavior

If the transport, host, and port of the internal HTTP Connector is going to be changed, 5 threads execute the Notification Transport Update in parallel on 5 different Hosts and another 5 threads execute the Keystore Resource Instance installation in parallel on 5 different Hosts.

Idempotent behavior

If the internal HTTP Connector is already using the configuration specified in the data file, the following are skipped:

  • Internal HTTP Connector Resource Instance installation
  • Notification Transport Update for "In Sync" Hosts
  • Keystore Resource Instance installation for all "In Sync" Keystores

Only "Out of Sync" Hosts with "Notification Transport Update" and "Out of Sync" Keytores are updated.

For example, in the sample output shown below, nothing has been updated as the configuration specified in the data file is the same as what the internal HTTP Connector is using.

Command:

ant -f internal_http_connector_build.xml  update.internal.http

Sample logs:

...
...
[AMXAdminTask] 16 Jun 2017 10:54:42 INFO - Internal Htpp Connector Resource Instance has not been changed.
[AMXAdminTask] 16 Jun 2017 10:54:42 INFO - Waiting for Internal Http Connector(s) to be running...
[AMXAdminTask] 16 Jun 2017 10:54:42 INFO - Internal Http Connector(s) are fully running.
[AMXAdminTask] 16 Jun 2017 10:54:42 INFO - Internal Http Connector Update operation is done.
...
...

The Notification Transport of Host and Keystores on Nodes is updated, only when the URL of the internal HTTP Connector is going to be changed. Otherwise, only the internal HTTP Connector Resource Instance is updated.

For example, in the sample output shown below, only acceptQueueSize is changed, internal HTTP Resource Instance is updated, but Host Notification Transport and Keystores are skipped.

Command:

ant -f internal_http_connector_build.xml  update.internal.http

Sample logs:

...
...
[AMXAdminTask] 16 Jun 2017 11:44:02 INFO - Internal Http Connector Resource Template is updated.
[AMXAdminTask] 16 Jun 2017 11:44:03 INFO - Starting to update Internal Http Connector Resource  Instance.
(operationID:root_InternalHttpConnectorUpdate_20170616114402)
[AMXAdminTask] 16 Jun 2017 11:44:08 INFO - .
[AMXAdminTask] 16 Jun 2017 11:44:08 INFO - Internal Http Connector Resource Instance is updated.
[AMXAdminTask] 16 Jun 2017 11:44:08 INFO - Keystores and Host Notification Transport Configuration don't need to be updated since Internal Http Connector URL has NOT been changed.
[AMXAdminTask] 16 Jun 2017 11:44:08 INFO - Waiting for Internal Http Connector(s) to be running...
[AMXAdminTask] 16 Jun 2017 11:44:08 INFO - Internal Http Connector(s) are fully running.
[AMXAdminTask] 16 Jun 2017 11:44:08 INFO - Internal Http Connector Update operation is done.
...
...