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
