This section explains how a node in a WSO2 DAS cluster accesses the persisted data in the Date Access Layer (DAL).
Configuring the mode
The data service accessing mode of the node is specified in the <DAS_HOME>/repository/conf/analytics/analytics-data-config.xml
file. It can be one of the following.
Mode | Description |
---|---|
LOCAL | The Analytics API accesses the required Analytics data services within the same node and invokes them directly without going through the network. |
REMOTE | The Analytics API searches the network for the required data services. This mode is suitable when the node is a light weight node and cannot contain Analytics data services. When this mode is set, configure the connection related parameters as required. |
AUTO | The connection mode is automatically switched between Local and Remote based on data service availability. This is the default mode. |
Configuring the connection related parameters
The following parameters in the <DAS_HOME>/repository/conf/analytics/analytics-data-config.xml
file can configured to optimize the performance of a node in terms of resource consumption when accessing data services.
These configurations are used only when the data service accessing mode of the node is REMOTE
.
Parameter | Description | Default Value |
---|---|---|
URL | The URL of the server in which the Analytics data services are hosted. | http://localhost:9763 |
Username | The user name to access the server in which the required Analytics data services are hosted. | admin |
Password | The password to access the server in which the required data services are hosted. | admin
|
MaxConnections | The maximum number of connections that are allowed to be made from the node to remote instances in order to access Analytics data services. | 200 |
MaxConnectionsPerRoute | The maximum number of connections per route that are allowed to be made from the node to remote instances in order to access Analytics data services. | 200 |
SocketConnectionTimeout | The number of milliseconds after which the socket connection should time out when the node connects to an Analytics data service. | 60000 |
ConnectionTimeout | The number of milliseconds after which the connection should time out when the node connects to an Analytics data service. | 60000 |
TrustStoreLocation | The path to access the trust store. A trust store is required only if the URL used to access remote data services is in HTTPS protocol. If this parameter is not configured, the trust store configured in the <DAS_HOME>/repository/conf/carbon.xml file is used by default. |
This parameter is commented out by default. |
TrustStorePassword | The password to access the trust store. |
This parameter is commented out by default. |