Worker configuration
Worker is configured using Docker environment variables. Set environment variables when run container. Example:
docker run -d --env EMCEE_WORKER_QUEUE_URL="http://<your hostname or ip>:41000" \
--name queue-worker1 \
--network emcee-network avitotech/emcee-worker:latest
Replace <your hostname or ip>
with host or ip of machine where queue runs.
Or put environment variables in .env
and convey it when run container:
docker run -d --env-file ./.env \
--name queue-worker1 \
--network emcee-network avitotech/emcee-worker:latest
Available environment variables for worker configuration are listed below:
Variable. | Description |
---|---|
EMCEE_WORKER_QUEUE_URL | (Required env) Queue server URL. |
EMCEE_WORKER_PORT | Worker port. 41001 by default. |
EMCEE_WORKER_LOG_LEVEL | Worker logging level. Possible options: verbose , debug , info , warn , critical . info by default |
EMCEE_WORKER_ARTIFACTS_DOWNLOAD_TIMEOUT_MS | Timeout for downloading artifacts in ms. For instance, downloading apk bundles from Artifactory. 200000 by default. |
EMCEE_WORKER_APK_INSTALLATION_TIMEOUT_MS | Timeout for installing apps in ms. 20000 by default. |
EMCEE_WORKER_GRAPHITE_IS_ENABLED | Enables Graphite metrics. true or false . false by default. |
EMCEE_WORKER_GRAPHITE_SOCKET_ADDRESS | Graphite host. Example: graphite.metrics.com |
EMCEE_WORKER_GRAPHITE_SOCKET_PORT | Graphite port. Example: 2001 . |
EMCEE_WORKER_GRAPHITE_METRIC_PREFIX | Graphite metric prefix. Example: apps.mobile.metrics.awesomeapp . |
EMCEE_WORKER_KIBANA_ENDPOINTS | List of , -separated Kibana endpoints for logs. Example: http://app-elasticsearch.com:9200,http://proxy.kibana.com:9200 . |
EMCEE_WORKER_KIBANA_INDEX_NAME | Index name in index pattern for Kibana logs. Example: awesome-android-worker . |
EMCEE_WORKER_ELASTIC_API_KEY | api key for Elastic, optional. It is used for authorization in Elastic and will be added to http headers in request. api-key-service is supported. |
EMCEE_WORKER_KIBANA_IS_ENABLED | Enables Kibana logs. true or false . |
EMCEE_WORKER_ARTIFACTORY_USERNAME | Artifactory authorization username. Basic Authentication is supported. |
EMCEE_WORKER_ARTIFACTORY_PASSWORD | Artifactory authorization password. |
EMCEE_KASPRESSO_ADB_IS_ENABLED | Enables Kaspresso adb-server on worker. true or false . false by default. |