Scaling the Docker Container

You can scale your Docker containers with Docker-Compose.

Start the Docker containers without specifying the port. In case you specify the port, then you will not be able to scale the Docker container using the Docker Compose's scale command. Docker compose's scale command provides flexibility to start desired containers with the same configuration by just specifying a number. So when you are scaling the Docker container, you are letting the Docker daemon assign a free port for the container you are starting.
Note: When scaling any service, it is mandatory to Run the OMS Server Container on a Predefined Port.

Procedure

  1. Change PWD to $AF_HOME/docker.
  2. Use the following command to scale the OMS server container and start, for example, three instances of the OMS server:
    $] docker-compose --file docker-compose-run-oms.yml scale tibco-fom-oms=3
    In the above command, you have specified the service name tibco-fom-oms defined in docker-compose-run-oms.yml and are scaling it three times. In a similar way, you can scale the service for AOPD and OPE.
  3. After scaling the Docker container, check the container details by executing the following command:
    $] docker ps -a