Skip to content

Commit

Permalink
Revert rack and node increases
Browse files Browse the repository at this point in the history
  • Loading branch information
emerkle826 committed Nov 21, 2022
1 parent b6639a0 commit b712302
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/additional_seeds/additional_seeds_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var (
testName = "Seed Selection"
namespace = "test-additional-seeds"
dcName = "dc1"
dcYaml = "../testdata/additional-seeds-three-rack-six-node-dc.yaml"
dcYaml = "../testdata/additional-seeds-two-rack-four-node-dc.yaml"
dcResource = fmt.Sprintf("CassandraDatacenter/%s", dcName)
dcLabel = fmt.Sprintf("cassandra.datastax.com/datacenter=%s", dcName)
additionalSeedServiceResource = "services/cluster1-dc1-additional-seed-service"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
serverVersion: "3.11.10"
managementApiAuth:
insecure: {}
size: 6
size: 4
storageConfig:
cassandraDataVolumeClaimSpec:
storageClassName: standard
Expand All @@ -20,8 +20,12 @@ spec:
racks:
- name: r1
- name: r2
- name: r3
config:
jvm-options:
initial_heap_size: "512m"
max_heap_size: "512m"
additional-jvm-opts:
- "-Ddse.system_distributed_replication_dc_names=dc1"
- "-Ddse.system_distributed_replication_per_dc=1"
- "-Dcassandra.system_distributed_replication_dc_names=dc1"
- "-Dcassandra.system_distributed_replication_per_dc=1"
7 changes: 5 additions & 2 deletions tests/testdata/default-two-rack-four-node-dc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ spec:
- name: r2
config:
jvm-options:
initial_heap_size: "768m"
max_heap_size: "768m"
initial_heap_size: "512m"
max_heap_size: "512m"
additional-jvm-opts:
- "-Ddse.system_distributed_replication_dc_names=dc1"
- "-Ddse.system_distributed_replication_per_dc=1"
- "-Dcassandra.system_distributed_replication_dc_names=dc1"
- "-Dcassandra.system_distributed_replication_per_dc=1"
# - "-Dcassandra.ring_delay_ms=0"
7 changes: 3 additions & 4 deletions tests/util/ginkgo/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func CreateTestFile(dcYaml string) (string, error) {

fileInfo, err := os.Stat(dcYaml)
if err != nil {
return "", err
return "", err
}

d, err := os.ReadFile(dcYaml)
Expand All @@ -57,7 +57,6 @@ func CreateTestFile(dcYaml string) (string, error) {
return "", err
}


spec := data["spec"].(map[interface{}]interface{})
serverImage := os.Getenv("M_SERVER_IMAGE")
if serverImage != "" {
Expand Down Expand Up @@ -111,15 +110,15 @@ func CreateTestSecretsConfig(configFile string) (string, error) {

fileInfo, err := os.Stat(configFile)
if err != nil {
return "", err
return "", err
}

d, err := os.ReadFile(configFile)
if err != nil {
return "", err
}

configString := string(d)
configString := string(d)
cassandraVersion := os.Getenv("M_SERVER_VERSION")
// jvm-options <-> jvm-server-options
if strings.HasPrefix(cassandraVersion, "3.") {
Expand Down

0 comments on commit b712302

Please sign in to comment.