Exposing WSO2 DAS with Host Names
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.
In a clustered deployment, the following steps need to be carried out for each node.
Open the
<DAS_HOME>/repository/conf/carbon.xml
file and configure the<HostName>
and<MgtHostName>
attributes with the{DAS_SERVER_HOSTNAME}
.<HostName>{DAS_SERVER_HOSTNAME}</HostName> <MgtHostName>{DAS_SERVER_HOSTNAME}</MgtHostName>
Open the
<DAS_HOME/repository/conf/axis2/axis2.xml
file, and enter the{DAS_SERVER_HOSTNAME}
as the value forlocalMemberHost
parameter as shown below.<parameter name="localMemberHost">{DAS_SERVER_HOSTNAME}</parameter>
- 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 .In the
<!-- Distributed Mode Confi
g → section =><nodeType>
element =><manager>
sub-element, change thehostName
to{DAS_SERVER_HOSTNAME}
as shown below.<manager enable="true"> <hostName>{DAS_SERVER_HOSTNAME}</hostName>
In the
<!-- Distributed Mode Config →
section =><management>
element =><manager>
sub-elements, change thehostName
to{DAS_SERVER_HOSTNAME}
as shown below.<management> <managers> <manager> <hostName>{DAS_SERVER_HOSTNAME}</hostName>
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.<presenter enable="false"> <hostName>{DAS_SERVER_HOSTNAME}</hostName>
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 the specified IP.export SPARK_LOCAL_IP=<IP_Address>
- Once the above steps are carried out, restart the DAS server.