Skip to content

Commit

Permalink
Change default configurations for more safety.
Browse files Browse the repository at this point in the history
For Cassandra backend yamls, use the token aware policy by default
and the DC aware policy to handle multi DC setups out of the box.
Explicitely set JMX connection timeout to 5s and reduce the repair manager
polling interval to speed up light repairs.
  • Loading branch information
adejanovski committed Sep 22, 2017
1 parent 1416ef9 commit 89cd6bc
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 8 deletions.
13 changes: 11 additions & 2 deletions src/packaging/resource/cassandra-reaper-cassandra-ssl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ hangingRepairTimeoutMins: 30
storageType: cassandra
enableCrossOrigin: true
incrementalRepair: false
enableDynamicSeedList: true
repairManagerSchedulingIntervalSeconds: 30
repairManagerSchedulingIntervalSeconds: 10
activateQueryLogger: false
jmxConnectionTimeoutInSeconds: 5

# datacenterAvailability has three possible values: ALL | LOCAL | EACH
# the correct value to use depends on whether jmx ports to C* nodes in remote datacenters are accessible
Expand Down Expand Up @@ -64,6 +65,14 @@ cassandra:
clusterName: "test"
contactPoints: ["127.0.0.1"]
keyspace: reaper_db
loadBalancingPolicy:
type: tokenAware
shuffleReplicas: true
subPolicy:
type: dcAwareRoundRobin
localDC:
usedHostsPerRemoteDC: 0
allowRemoteDCsForLocalConsistencyLevel: false
authProvider:
type: plainText
username: cassandra
Expand Down
12 changes: 10 additions & 2 deletions src/packaging/resource/cassandra-reaper-cassandra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ storageType: cassandra
enableCrossOrigin: true
incrementalRepair: false
enableDynamicSeedList: true
repairManagerSchedulingIntervalSeconds: 30
repairManagerSchedulingIntervalSeconds: 10
activateQueryLogger: false
jmxConnectionTimeoutInSeconds: 5

# datacenterAvailability has three possible values: ALL | LOCAL | EACH
# the correct value to use depends on whether jmx ports to C* nodes in remote datacenters are accessible
Expand Down Expand Up @@ -73,7 +74,14 @@ cassandra:
clusterName: "test"
contactPoints: ["127.0.0.1"]
keyspace: reaper_db

loadBalancingPolicy:
type: tokenAware
shuffleReplicas: true
subPolicy:
type: dcAwareRoundRobin
localDC:
usedHostsPerRemoteDC: 0
allowRemoteDCsForLocalConsistencyLevel: false
autoScheduling:
enabled: false
initialDelayPeriod: PT15S
Expand Down
3 changes: 2 additions & 1 deletion src/packaging/resource/cassandra-reaper-h2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ storageType: database
enableCrossOrigin: true
incrementalRepair: false
enableDynamicSeedList: true
repairManagerSchedulingIntervalSeconds: 30
repairManagerSchedulingIntervalSeconds: 10
jmxConnectionTimeoutInSeconds: 5

# datacenterAvailability has three possible values: ALL | LOCAL | EACH
# the correct value to use depends on whether jmx ports to C* nodes in remote datacenters are accessible
Expand Down
3 changes: 2 additions & 1 deletion src/packaging/resource/cassandra-reaper-memory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ storageType: memory
enableCrossOrigin: true
incrementalRepair: false
enableDynamicSeedList: true
repairManagerSchedulingIntervalSeconds: 30
repairManagerSchedulingIntervalSeconds: 10
jmxConnectionTimeoutInSeconds: 5

# datacenterAvailability has three possible values: ALL | LOCAL | EACH
# the correct value to use depends on whether jmx ports to C* nodes in remote datacenters are accessible
Expand Down
3 changes: 2 additions & 1 deletion src/packaging/resource/cassandra-reaper-postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ storageType: database
enableCrossOrigin: true
incrementalRepair: false
enableDynamicSeedList: true
repairManagerSchedulingIntervalSeconds: 30
repairManagerSchedulingIntervalSeconds: 10
jmxConnectionTimeoutInSeconds: 5

# datacenterAvailability has three possible values: ALL | LOCAL | EACH
# the correct value to use depends on whether jmx ports to C* nodes in remote datacenters are accessible
Expand Down
4 changes: 3 additions & 1 deletion src/packaging/resource/cassandra-reaper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ storageType: memory
enableCrossOrigin: true
incrementalRepair: false
enableDynamicSeedList: true
repairManagerSchedulingIntervalSeconds: 30
repairManagerSchedulingIntervalSeconds: 10
activateQueryLogger: false
jmxConnectionTimeoutInSeconds: 5

# datacenterAvailability has three possible values: ALL | LOCAL | EACH
# the correct value to use depends on whether jmx ports to C* nodes in remote datacenters are accessible
Expand Down

0 comments on commit 89cd6bc

Please sign in to comment.