About Specifying Requests and Limits to Kubernetes

The TimesTen Operator follows a specific order in determining the cpu and memory request and limits to Kubernetes:
  • For the tt container that holds your TimesTen database, the TimesTen Operator looks for the following in this order:
    • If you specify a template, the TimesTen Operator uses the values in it.
    • If you specify .spec.ttspec.databaseMemorySize, the TimesTen Operator uses its value.
    • If there is a db.ini file, the TimesTen Operator uses the values in it.
    • If none of the above are true, the TimesTen Operator uses the default.

    In addition, if you specified a value for .spec.ttspec.databaseCPURequest, that value is used as the cpu request and cpu limit to Kubernetes.

  • If you specify resource requests or limits for the daemonlog container in your container templates in your TimesTenClassic or TimesTenScaleout object, the TimesTen Operator honors those requests. If you do not, the TimesTen Operator uses the values you supply in your object's .spec.ttspec.daemonLogMemoryRequest and .spec.ttspec.daemonLogCPURequest datum.

  • If you specify resource requests or limits for the exporter container in your container templates in your TimesTenClassic or TimesTenScaleout object, the TimesTen Operator honors those requests. If you do not, the TimesTen Operator uses the values you supply in your object's .spec.ttspec.exporterMemoryRequest and .spec.ttspec.exporterCPURequest datum.

  • If you specify a template for the tt container in the mgmtTemplate in a TimesTenScaleout object, the TimesTen Operator uses the resource data in that template. If you do not, the TimesTen Operator uses the values you supply in your object's .spec.ttspec.mgmtMemoryRequest and .spec.ttspec.mgmtCPURequest datum.

  • If you specify a template for the zookeeper container in the zookeeperTemplate in a TimesTenScaleout object, the TimesTen Operator uses the resource data in that template. If you do not, the TimesTen Operator uses the values you supply in your object's .spec.ttspec.zookeeperMemoryRequest and .spec.ttspec.zookeeperCPURequest datum.