About the TimesTen Operator Configuration

Here is the TimesTen Operator configuration for using the Connection Manager to optimize client/server performance:
  • TT_CONNECTION_MANAGER: If defined and set to 1, this environment variable enables the Connection Manager. By default, the value is set to 1 in the operator.yaml and cluster_operator.yaml YAML manifest files.

    connectionManager: If defined and set to true in the ttoperator or ttclusteroperator Helm charts, the Connection Manager is enabled. The default is true and is set in the ttoperator and ttclusteroperator Helm charts.

    If you disable metrics for the TimesTen Operator, or you are not using https for metrics, the Connection Manager is not enabled. For example, if you set METRICS_SCHEME to http or EXPOSE_METRICS to 0 (or the equivalent in the Helm charts), then TT_CONNECTION_MANAGER (and connectionManager) is ignored and treated as 0 (or false).

  • TT_CONNECTION_MANAGER_NODEPORT environment variable (in operator.yaml and cluster_operator.yaml) and the operatorNodePort value (in the ttoperator and ttclusteroperator Helm charts): Use to change the port number on which the Connection Manager API is available for applications outside the cluster. The default is 32625.

  • TT_OPERATOR_SAN environment variable (in operator.yaml and cluster_operator.yaml) and the operatorSAN value (in the ttoperator and ttclusteroperator Helm charts): Use to add subject alternate names (SANs) to the TLS certificate that the TimesTen Operator creates to control access to the TimesTen Operator metrics and to the Connection Manager API.
    • If you use metrics and the Connection Manager API from inside the cluster only, you do not need to define this environment variable in the YAML manifest files (or define the value in the Helm charts).

    • If you use either metrics or the Connection Manager API or both from outside the cluster, you must define a SAN for the nodes in the cluster. By default, no SAN is specified.

For more information, see TimesTen Kubernetes Operator Environment Variables and Helm Charts for the TimesTen Kubernetes Operator.

Normal http error codes indicate if the request is invalid.

If a valid request is received, a JSON object is returned in the following format:
{ "status": 0 [, "error": "the error"] [, "connstr": "TTC_SERVER1=..."]}
where:
  • status: Is a numeric indication as to whether the request was successful or not. A value of 0 indicates success.

  • error: If status is not equal to 0, this is a string that explains the error.

  • connstr: If status is equal to 0, this is the connection string that is returned.