Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/kubernetes_ecs.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,19 @@ Since some tasks are deployed with known values ahead of time (image, env vars,

DPL tasks work similarly to those mentioned before: they use `kubernetes_fairmq` in their workflow YAML manifests. JIT tasks are different, as their manifests are generated by DPL the moment the workflow is run, always with control mode `fairmq`. To run them on Kubernetes, set the environment variable `jit_k8s_enabled` to `true` (requires `enableKubernetes` in core). The JIT workflow is then generated under the name `jit-k8s-<hash>` instead of `jit-<hash>`, and core switches the control mode of its tasks to `kubernetes_fairmq` when loading them. All JIT tasks are deployed using the shared `dpl` TaskTemplate.

### Clusters without Mesos agents

ECS can run workflows purely on Kubernetes, e.g. in the Kubernetes lab (see the `kubernetes` role in `system-configuration`), where only a Mesos master runs on the head node, without any Mesos agents. However, all tasks of such workflow have to be deployed to Kubernetes. If any enabled task is still deployed via Mesos (its control mode is not `kubernetes_direct` or `kubernetes_fairmq`), the deployment of the whole environment gets stuck, and so do all following deployments until core is restarted (see [OCTRL-1117](https://its.cern.ch/jira/browse/OCTRL-1117)).

Even simple Readout and Data Distribution workflows (`readout-dataflow`) run FairMQ shared memory cleanup tasks (`fairmq-shmcleanup` using `shell-command` and `fairmq-shmmonitor`), which are not containerised yet. Until they are, disable them by adding the following to the ECS advanced configuration:

```json
{
"fmq_initial_shm_cleanup_enabled": "false",
"fmq_cleanup_enabled": "false"
}
```

## Running tasks (`KubectlTask`)

This method is obsoleted by direct ECS <-> Kubernetes bridge. However it should still work
Expand Down
Loading