Versions Compared

Key

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

...

Code Block
languagexml
<datasource>
    <name>WSO2_ANALYTICS_DS_CASSANDRA</name>
    <description>The Cassandra datasource used for analytics</description>
    <definition type="CASSANDRA">
        <configuration>
            <contactPoints>localhost</contactPoints>
            <port>9042</port>
            <username>admin</username>
            <password>admin</password>
            <clusterName>cluster1</clusterName>
            <compression>none<<compression>NONE</compression>
            <poolingOptions>
                <coreConnectionsPerHost hostDistance="LOCAL">8</coreConnectionsPerHost>
                <maxSimultaneousRequestsPerHostThreshold hostDistance="LOCAL">1024</maxSimultaneousRequestsPerHostThreshold>
            </poolingOptions>
            <queryOptions>
                <fetchSize>5000</fetchSize>
                <consistencyLevel>ONE</consistencyLevel>
                <serialConsistencyLevel>SERIAL</serialConsistencyLevel>
            </queryOptions>
            <socketOptions>
                <keepAlive>false</keepAlive>
                <sendBufferSize>150000</sendBufferSize>
                <connectTimeoutMillis>12000</connectTimeoutMillis>
                <readTimeoutMillis>12000</readTimeoutMillis>
            </socketOptions>
        </configuration>
    </definition>
</datasource>

...