Documentation Center

Variables for container types

The container type is established at the time when the container is started.

SDL ETS provides a Python script (Bootstrap Script) which serves as a root process. If the script is started with the -master flag, it will set up a Master container. Otherwise a Worker container will be started.

Configuration switches
  • Master (Master container - only 1) - Use "--master" flag for the Boostrap Script.
  • Job Engine (Worker container)
    • SDL_ETS_CONTAINER_JOB_ENGINE (set to "1")
  • Translation Engine (Worker container):
    • SDL_ETS_CONTAINER_TRANSLATION_ENGINE (set to "1")
    • SDL_ETS_LP_INSTALL_PATH (point to the Language Pair folder or the root of the Language Pairs folder)

The table below shows which environment variables are required for each container type.

NameSame for all clusterRequired for MasterRequired for Job EngineRequired for Translation EngineDefaultExample valuesComments
SDL_ETS_BROKER_HOSTNAMEYesYesYesYesets-masterThis is the host name where the broker is installed. This is usually the master node.
SDL_ETS_BROKER_PASSWORDYesYesYesYessecret1234This is the broker password:
  • For a Master node the password is changed to this value.
  • For a Worker node the configuration files are updated so all nodes can connect to the broker.
SDL_ETS_CONTAINER_HOST_AGENT_URLYesYeshttp://eng_fra:4637This is the URL where a Worker node is contacted by API Gateway. It is required for Worker nodes and it points to the host of the current container. Each worker node will send this information when they register with API Gateway.
SDL_ETS_CONTAINER_JOB_ENGINEYes01Set to 1 to request that this container starts a Job Engine.
SDL_ETS_CONTAINER_TRANSLATION_ENGINEYes01Set to 1 to request that this container starts a Translation Engine.
SDL_ETS_CONTAINER_PROCESSING_UNITSOptional13Sets the number of Processing Units the Translation Engine will request from the licensing server.
SDL_ETS_LP_INSTALL_PATHYes/opt/sdl/ets/lps/EngFra_Generic_SRV_PB_7_0_X_0Points to the root of the Language Pair, as seen by the file system in the container.
The Language Pair directory could be:
  • Installed in the container file system
  • Mounted from an external directory inside the Docker container file system