Mirantis Container Cloud (MCC) becomes part of Mirantis OpenStack for Kubernetes (MOSK)!

Starting with MOSK 25.2, the MOSK documentation set will cover all product layers, including MOSK management (formerly MCC). This means everything you need will be in one place. The separate MCC documentation site will be retired, so please update your bookmarks for continued easy access to the latest content.

Configure multiple Contrail API workers

TechPreview

Tungsten Fabric MOSK deployments use six workers of the contrail-api service by default. This section instructs you on how to change the default configuration if needed.

To configure the number of Contrail API workers on a TF deployment:

  1. Specify the required number of workers in the TFOperator custom resource:

    spec:
     features:
       config:
         configApiWorkerCount: 7
    
    spec:
      controllers:
        tf-config:
          api:
            containers:
            - env:
              - name: CONFIG_API_WORKER_COUNT
                value: "7"
              name: api
    
  2. Wait until all tf-config-* pods are restarted.

  3. Verify the number of workers inside the running API container:

    kubectl -n tf exec -ti tf-config-rclzq -c api -- ps aux --width 500
    kubectl -n tf exec -ti tf-config-rclzq -c api -- ls /etc/contrail/
    

    Verify that the ps output lists one API process with PID "1" and the number of workers set in the TFOperator custom resource.

  4. In /etc/contrail/, verify that the number of configuration files contrail-api-X.conf matches the number of workers set in the TFOperator custom resource.