Permalink
Browse files

Add codecoverage.

Update doc and config for using more then 1 seed.
  • Loading branch information...
1 parent 5cc7c19 commit 95d1ae505b11b755c92c10a135b05f13d824e212 @beckje01 beckje01 committed Jun 18, 2013
View
@@ -6,4 +6,5 @@ target/
grails-app/i18n/
web-app/css/
web-app/images/
-web-app/js/
+web-app/js/
+cobertura.ser
@@ -34,7 +34,8 @@ grails.project.dependency.resolution = {
":rest-client-builder:1.0.3") {
export = false
}
- test(":spock:0.7") {
+ test(":spock:0.7",
+ ":code-coverage:1.2.6") {
export = false
exclude "spock-grails-support"
}
@@ -7,20 +7,27 @@ import com.netflix.astyanax.serializers.LongSerializer
astyanax {
clusters {
standard {
- seeds = ["localhost:9160"]
+ seeds = "10.0.10.60:9160,10.0.10.61:9160,10.0.10.62:9160"
defaultKeyspace = "AstyanaxTest"
+ connectionPoolType = com.netflix.astyanax.connectionpool.impl.ConnectionPoolType.TOKEN_AWARE
+ discoveryType = com.netflix.astyanax.connectionpool.NodeDiscoveryType.RING_DESCRIBE
+
columnFamilies {
AstyanaxTest {
LongColumnCF = new ColumnFamily("LongColumnCF", StringSerializer.get(), LongSerializer.get())
}
}
}
dummy1 {
- seeds = ["localhost:9160"]
+ connectionPoolType = com.netflix.astyanax.connectionpool.impl.ConnectionPoolType.TOKEN_AWARE
+ discoveryType = com.netflix.astyanax.connectionpool.NodeDiscoveryType.RING_DESCRIBE
+ seeds = "10.0.10.60:9160,10.0.10.61:9160,10.0.10.62:9160"
defaultKeyspace = "Dummy1Default"
}
dummy2 {
- seeds = ["localhost:9160"]
+ connectionPoolType = com.netflix.astyanax.connectionpool.impl.ConnectionPoolType.TOKEN_AWARE
+ discoveryType = com.netflix.astyanax.connectionpool.NodeDiscoveryType.RING_DESCRIBE
+ seeds = "10.0.10.60:9160,10.0.10.61:9160,10.0.10.62:9160"
}
}
defaultKeyspace = "OverallDefault"
@@ -5,7 +5,7 @@ configuration:
astyanax {
clusters {
standard {
- seeds = ["localhost:9160"]
+ seeds = "localhost:9160"
defaultKeyspace = "AstyanaxTest"
port = 9160
maxConsPerHost = 10
@@ -30,7 +30,7 @@ astyanax {
{table}
*Property* | *Required* | *Meaning*
-seeds | yes | Array of node strings of the form "host:port" that Astyanax will use in quering Cassandra
+seeds | yes | String of the form "host:port, host:port" that Astyanax will use in quering Cassandra
defaultKeyspace | no | Name of the keyspace to use if one is not specified in the service call
port | no | Port number used for communicating to Cassandra nodes. Defaults to 9160.
maxConsPerHost | no | The maximum number of connections to be created for any one node. Defaults to 10.
View
@@ -1,5 +1,7 @@
drop keyspace AstyanaxTest;
-create keyspace AstyanaxTest;
+CREATE KEYSPACE AstyanaxTest
+with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy'
+and strategy_options = [{replication_factor:3}];
use AstyanaxTest;
create column family User

0 comments on commit 95d1ae5

Please sign in to comment.