Documentation Center

Autoscaling translation engines

About this task

Consider the following scenarios when configuring the autoscaling of the translation engines:
  • When there is no load, scale down to 1 translation engine.
  • Depending on the load, scale up to 4 translation engines.
  • Set the CPU usage threshold to trigger scaling is 75%.

Procedure

Run the following command to configure the autoscaling of the translation engines.
mtedge:
  tengines:
  ...
    engfra:
      lp: engfra_generic_srv_tnmv_8_4_x_1
      processingUnits: 2
      scale:
        min: 1            # scale down to 1 replica
        max: 4            # scale up to 4 replicas on high CPU usage
        cpuPercent: 75    # CPU usage (percent) threshold used to scale up or down