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.
| Name | Same for all cluster | Required for Master | Required for Job Engine | Required for Translation Engine | Default | Example values | Comments |
|---|---|---|---|---|---|---|---|
| SDL_ETS_BROKER_HOSTNAME | Yes | Yes | Yes | Yes | ets-master | This is the host name where the broker is installed. This is usually the master node. | |
| SDL_ETS_BROKER_PASSWORD | Yes | Yes | Yes | Yes | secret1234 | This is the broker password:
| |
| SDL_ETS_CONTAINER_HOST_AGENT_URL | Yes | Yes | http://eng_fra:4637 | This 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_ENGINE | Yes | 0 | 1 | Set to 1 to request that this container starts a Job Engine. | |||
| SDL_ETS_CONTAINER_TRANSLATION_ENGINE | Yes | 0 | 1 | Set to 1 to request that this container starts a Translation Engine. | |||
| SDL_ETS_CONTAINER_PROCESSING_UNITS | Optional | 1 | 3 | Sets the number of Processing Units the Translation Engine will request from the licensing server. | |||
| SDL_ETS_LP_INSTALL_PATH | Yes | /opt/sdl/ets/lps/EngFra_Generic_SRV_PB_7_0_X_0 | Points to the root of the Language Pair, as seen by the file system in the container.
The Language Pair directory could be:
|