When you run multiple products/clusters or multiple instances of the same product on the same server or virtual machines (VMs), you must change their default ports with an offset value to avoid port conflicts. An offset defines the number by which all ports in the runtime (e.g., HTTP/S ports) will be increased. For example, if the default HTTP port is 9763 and the offset is 1, the effective HTTP port will change to 9764. For each additional product instance, you set the port offset to a unique value. The offset of the default ports is considered to be 0.

There are two ways to set an offset to a port:

  • Pass the port offset to the server during startup. The following command starts the server with the default port incremented by 3:
    ./stratos.sh -DportOffset=3
  • Set the Ports section of <apache-stratos-version-SNAPSHOT>/repository/conf/carbon.xml.
    For example:

For a list of all default ports opened in Stratos, see Default Product Ports.

  • No labels