Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

WSO2 DAS Server is configured via localhost. When in a production environment or if you wish to make WSO2 DAS Server IP based instead of localhost, you need to configure it accordingly. The following steps explain how to configure the WSO2 DAS server with the IP.

...

  1. Open the <DAS_HOME>/repository/conf/carbon.xml file and configure the <HostName> and <MgtHostName> attributes with the {DAS_SERVER_HOSTNAME}.

    Code Block
    languagexml
    <HostName>{DAS_SERVER_HOSTNAME}</HostName>
    <MgtHostName>{DAS_SERVER_HOSTNAME}</MgtHostName>
  2. Open the <DAS_HOME/repository/conf/axis2/axis2.xml file, and enter the {DAS_SERVER_HOSTNAME} as the value for localMemberHost parameter as shown below.

    Code Block
    languagexml
    <parameter name="localMemberHost">{DAS_SERVER_HOSTNAME}</parameter>
  3. Open  <DAS_HOME/repository/conf/event-processor.xml file and do the following updates. For more information about these configurations, see The Clustering Guide - Minimum High Availability Deployment for DAS 3.1.0 .
    1. In the <!-- Distributed Mode Config → section => <nodeType> element => <manager> sub-element, change the hostName to {DAS_SERVER_HOSTNAME} as shown below.

      Code Block
      languagexml
      <manager enable="true">
      	<hostName>{DAS_SERVER_HOSTNAME}</hostName>
    2. In the <!-- Distributed Mode Config → section => <management> element => <manager> sub-elements, change the hostName to {DAS_SERVER_HOSTNAME} as shown below.

      Code Block
      languagexml
      <management>
      	<managers>
      		<manager>
      			<hostName>{DAS_SERVER_HOSTNAME}</hostName>
    3. If the DAS node that you are configuring is a presenter node in a clustered setup, change the hostName to {DAS_SERVER_HOSTNAME} under the  <!-- Distributed Mode Config → section => <nodeType> element => <presenter> sub-element as shown below.

      Code Block
      languagexml
       <presenter enable="false">
       	<hostName>{DAS_SERVER_HOSTNAME}</hostName>
  4. If the physical DAS server has multiple network interfaces with different IPs, open either the <DAS_HOME>/bin/load-spark-env-vars.sh file (for Linux) or <DAS_HOME>/bin/load-spark-env-vars.bat file (for Windows), and add the following parameter to configure the Spark IP address. This results in Spark using a single interface the specified IP.

    Code Block
    languagexml
    export  SPARK_LOCAL_IP=<IP_Address>
  5. Once the above steps are carried out, restart the DAS server.