This documentation is for WSO2 IoT Server 3.1.0. View the documentation for the latest release.
Configuring WSO2 IoT Server with Port Offset - DRAFT - IoT Server 3.1.0 - WSO2 Documentation
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

WIP

This document is work in progress!

This document guides on how to configure the ports in wso2 IoT Server. To make the steps clear, a sample port offset scenario is covered. Follow the steps given below:

WSO2 IoT Server compromises of the IoT core, analytics and broker profiles. By default, the three profiles have the following offsets:

ProfileOffsetDefault port
Core09443/9763
Analytics29445/9765
Broker39446/9766

When port offsetting you need to make sure that the port offset differs from each other. No two profiles can have the same offset. Else, you will run into errors.

  1. Configure the carbon.xmlfiles of the three profile to port offset.

    Core

    Open the <IOTS_HOME>/conf/carbon.xml file and port offset the IoT Server's core profile by configuring the <Offset> attribute.

    Make sure that the offset value is not the same as the broker or analytics profile.

    Example:

    <Offset>4</Offset>

    Now the port of the core profile is 9447/9767.

    Analytics

    Open the <IOTS_HOME>/wso2/analytics/conf/carbon.xml file and port offset the IoT Server's core profile by configuring the <Offset> attribute.

    Make sure that the offset value is not the same as the broker or analytics profile.

    <Offset>6</Offset>

    Now the port of the core profile is 9449/9769.

    Broker

    Open the <IOTS_HOME>/wso2/broker/conf/carbon.xml file and port offset the IoT Server's core profile by configuring the <Offset> attribute.

    Make sure that the offset value is not the same as the broker or analytics profile.

    <Offset>5</Offset>

    Now the port of the core profile is 9450/9770.

  2. Open the <IOTS_HOME>/bin/iot-server.sh file configures the following ports:

    Analytics ports

    By default the analytics profile is offset by 2. In step 1, you offset the analytics profile by 4 more again. Therefore, all the ports relevant to analytics need to be offset by 3 more.

    Example:

    -Diot.analytics.https.port="9449" \
    Broker ports

    By default the MQTT broker port in WSO2 IoT Server is 1886. In step 1, you offset the broker profile by 4. Therefore, all the ports relevant to broker need to be offset by 4.

    Example:

    -Dmqtt.broker.port="1890" \
    IoT core ports

    By default the core profile is not offset. In step 1, you offset the broker profile by 4. Therefore, all the ports relevant to core needs to be offset by 4.

    -Diot.manager.https.port="9446" \
    -Diot.core.https.port="9446" \
    -Diot.keymanager.https.port="9446" \
    -Diot.gateway.https.port="8246" \
    -Diot.gateway.http.port="8283" \
    -Diot.gateway.carbon.https.port="9446" \
    -Diot.gateway.carbon.http.port="9766" \
    -Diot.apimpublisher.https.port="9446" \
    -Diot.apimstore.https.port="9446" \
  • No labels