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 are not 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
- Change PWD to
$OM_HOME/docker
. - Use the following command to scale the Order Management Server container and start, for example, three instances of the Order Management Server:
$] docker-compose --file docker-compose-run-oms.yml scale tibco-fom-oms=3
In the above command, you have specified the service nametibco-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 Automated Order Plan Development. - After scaling the Docker container, check the container details by executing the following command:
$] docker ps -a