Hi Devs,

I've completed implementation of $subject based on the DataStax Java
driver. This component enables connection to a Cassandra cluster through
its CQL interface, and provides the client with a
com.datastax.driver.core.Cluster reference based on which
com.datastax.driver.core.Session instances could be created for use by the
client. CQL native protocol versions v1 through v3 are supported.

Provisions have been made for specifying most connection parameters through
the datasource configuration, including protocol, pool, socket and query
options. A sample configuration would look like the following:

<provider>
org.wso2.carbon.datasource.reader.cassandra.CassandraDataSourceReader</
provider>

<datasource>
    <name>WSO2_ANALYTICS_EVENT_STORE_CASSANDRA</name>
    <description>The datasource used for analytics record store</description
>
    <definition type="CASSANDRA">
        <configuration>
            <contactPoints>192.168.1.1, 192.168.1.2</contactPoints>
            <port>9042</port>
            <username>admin</username>
            <password>admin</password>
            <clusterName>cluster1</clusterName>
            <compression>gzip</compression>
            <poolingOptions>
                <coreConnectionsPerHost hostDistance="LOCAL">8</
coreConnectionsPerHost>
                <maxSimultaneousRequestsPerHostThreshold hostDistance
="REMOTE">256</maxSimultaneousRequestsPerHostThreshold>
            </poolingOptions>
            <queryOptions>
                <fetchSize>100</fetchSize>
                <consistencyLevel>LOCAL_ONE</consistencyLevel>
                <serialConsistencyLevel>SERIAL</serialConsistencyLevel>
            </queryOptions>
            <socketOptions>
                <keepAlive>true</keepAlive>
                <tcpNoDelay>true</tcpNoDelay>
                <sendBufferSize>150000</sendBufferSize>
                <connectTimeoutMillis>12000</connectTimeoutMillis>
                <readTimeoutMillis>12000</readTimeoutMillis>
            </socketOptions>
        </configuration>
    </definition>
</datasource>

I've sent the pull request for $subject at [1]. @DSS team, please review
and merge.

[1] https://github.com/wso2/carbon-data/pull/19

Thanks,
Gokul.

-- 
Gokul Balakrishnan
Senior Software Engineer,
WSO2, Inc. http://wso2.com
Mob: +94 77 593 5789 | +1 650 272 9927
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to