Hi Dhanuka,

Is specifying authentication credentials optional here? I've seen in some
instances developers prefer to have Cassandra segregated with a firewall
rather than using authentication with a username/password (mainly for 1.x
versions though).


Thanks
Rajeev



On Tue, Jul 22, 2014 at 6:33 PM, Dhanuka Ranasinghe <[email protected]>
wrote:

>
>
> *Dhanuka Ranasinghe*
>
> Senior Software Engineer
> WSO2 Inc. ; http://wso2.com
> lean . enterprise . middleware
>
> phone : +94 715381915
>
>
> On Tue, Jul 22, 2014 at 5:47 PM, Anjana Fernando <[email protected]> wrote:
>
>> Yeah, the format looks good .. Hope you used JAXB to represent this model
>> in the code in the DataSourceReader, rather than parsing in raw DOM or
>> something.
>>
> Yes same as rdbms component, used JAXB.
>
>> Also, what is the data source object you're using here, I guess it would
>> be the Session object that you need to return, to be used by the clients.
>>
> com.datastax.driver.core.Cluster
>
>>
>> Cheers,
>> Anjana.
>>
>>
>> On Tue, Jul 22, 2014 at 2:44 AM, Prabath Abeysekera <[email protected]>
>> wrote:
>>
>>> Hi Dhanuka,
>>>
>>> This looks good and comprehensive!
>>>
>>> Let's delve further into this and see whether there's any other
>>> parameters available in CQL driver configurations, which one might find
>>> useful to be used in a production setup. If we come across any, can
>>> consider supporting them in the proposed datasource configuration structure
>>> too.
>>>
>>> Cheers,
>>> Prabath
>>>
>>>
>>> On Tue, Jul 22, 2014 at 12:02 PM, Dhanuka Ranasinghe <[email protected]>
>>> wrote:
>>>
>>>> looping architecture
>>>>
>>>> *Dhanuka Ranasinghe*
>>>>
>>>> Senior Software Engineer
>>>> WSO2 Inc. ; http://wso2.com
>>>> lean . enterprise . middleware
>>>>
>>>> phone : +94 715381915
>>>>
>>>>
>>>> ---------- Forwarded message ----------
>>>> From: Dhanuka Ranasinghe <[email protected]>
>>>> Date: Tue, Jul 22, 2014 at 12:00 PM
>>>> Subject: Create CQL data source from master-datasources.xml
>>>> To: WSO2 Developers' List <[email protected]>
>>>> Cc: Prabath Abeysekera <[email protected]>, Hasitha Hiranya <
>>>> [email protected]>, Anjana Fernando <[email protected]>, Deependra
>>>> Ariyadewa <[email protected]>, Bhathiya Jayasekara <[email protected]>,
>>>> Shani Ranasinghe <[email protected]>, Poshitha Dabare <[email protected]>,
>>>> Harsha Kumara <[email protected]>
>>>>
>>>>
>>>> Hi,
>>>>
>>>> While working on $Subject, found there are lot of configuration options
>>>> available in CQL driver. Most of them are same as hector client
>>>> configurations and we have identified some of them are critical for
>>>> performance and reliability.
>>>>
>>>> Below describe the sample data source configuration that came up with
>>>> the solution after analyzing CQL driver. Please let me know your thoughts
>>>> regarding this.
>>>>
>>>> <datasource>
>>>>  <name>WSO2_CASSANDRA_DB</name>
>>>> <description>The datasource used for cassandra</description>
>>>>  <jndiConfig>
>>>> <name>CassandraRepo</name>
>>>> </jndiConfig>
>>>>  <definition type="CASSANDRA">
>>>> <configuration>
>>>> <async>false</async>
>>>>  <clusterName>TestCluster</clusterName>
>>>> <compression>SNAPPY</compression>
>>>>  <concurrency>100</concurrency>
>>>> <username>admin</username>
>>>> <password encrypted="true">admin</password>
>>>>  <port>9042</port>
>>>> <maxConnections>100</maxConnections>
>>>>
>>>>  <hosts>
>>>> <host>192.1.1.0</host>
>>>> <host>192.1.1.1</host>
>>>>  </hosts>
>>>> <loadBalancePolicy>
>>>> <exclusionThreshold>2.5</exclusionThreshold>
>>>>  <latencyAware>true</latencyAware>
>>>> <minMeasure>100</minMeasure>
>>>> <policyName>RoundRobinPolicy</policyName>
>>>>  <retryPeriod>10</retryPeriod>
>>>> <scale>2</scale>
>>>> </loadBalancePolicy>
>>>>
>>>> <poolOptions>
>>>> <coreConnectionsForLocal>10</coreConnectionsForLocal>
>>>>  <coreConnectionsForRemote>10</coreConnectionsForRemote>
>>>> <maxConnectionsForLocal>10</maxConnectionsForLocal>
>>>>  <maxConnectionsForRemote>10</maxConnectionsForRemote>
>>>> <maxSimultaneousRequestsForLocal>10</maxSimultaneousRequestsForLocal>
>>>>
>>>> <maxSimultaneousRequestsForRemote>10</maxSimultaneousRequestsForRemote>
>>>> <minSimultaneousRequestsForLocal>10</minSimultaneousRequestsForLocal>
>>>>
>>>> <minSimultaneousRequestsForRemote>10</minSimultaneousRequestsForRemote>
>>>> </poolOptions>
>>>>
>>>> <reconnectPolicy>
>>>> <baseDelayMs>100</baseDelayMs>
>>>> <policyName>ConstantReconnectionPolicy</policyName>
>>>>  </reconnectPolicy>
>>>> <socketOptions>
>>>> <connectTimeoutMillis>200</connectTimeoutMillis>
>>>>  <keepAlive>true</keepAlive>
>>>> <readTimeoutMillis>200</readTimeoutMillis>
>>>>  <tcpNoDelay>true</tcpNoDelay>
>>>> </socketOptions>
>>>>
>>>> </configuration>
>>>>
>>>> </definition>
>>>> </datasource>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Cheers,
>>>> *Dhanuka Ranasinghe*
>>>>
>>>> Senior Software Engineer
>>>> WSO2 Inc. ; http://wso2.com
>>>> lean . enterprise . middleware
>>>>
>>>> phone : +94 715381915
>>>>
>>>>
>>>> _______________________________________________
>>>> Architecture mailing list
>>>> [email protected]
>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>
>>>>
>>>
>>>
>>> --
>>> Prabath Abeysekara
>>> Associate Technical Lead, Data TG.
>>> WSO2 Inc.
>>> Email: [email protected]
>>> Mobile: +94774171471
>>>
>>> _______________________________________________
>>> Architecture mailing list
>>> [email protected]
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>>
>> --
>> *Anjana Fernando*
>> Senior Technical Lead
>>
>> WSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware
>>
>> _______________________________________________
>> Architecture mailing list
>> [email protected]
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
> _______________________________________________
> Architecture mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Rajeev Sampath
Senior Software Engineer
WSO2, Inc.; http://www.wso2.com.

Mobile:
* +94716265766*
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to