-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(mixed-shard-repair): add test for mixed shard repair
- Loading branch information
Showing
10 changed files
with
142 additions
and
1 deletion.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
jenkins-pipelines/oss/features/features-fixed-shard-repair.jenkinsfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!groovy | ||
|
||
// trick from https://github.com/jenkinsci/workflow-cps-global-lib-plugin/pull/43 | ||
def lib = library identifier: 'sct@snapshot', retriever: legacySCM(scm) | ||
|
||
longevityPipeline( | ||
backend: 'aws', | ||
region: 'eu-west-1', | ||
test_name: 'mixed_shard_repair_test.MixedShardRepair.test_mixed_shard_repair', | ||
test_config: 'test-cases/features/fixed-shard-repair.yaml', | ||
) |
11 changes: 11 additions & 0 deletions
11
jenkins-pipelines/oss/features/features-mixed-shard-repair.jenkinsfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!groovy | ||
|
||
// trick from https://github.com/jenkinsci/workflow-cps-global-lib-plugin/pull/43 | ||
def lib = library identifier: 'sct@snapshot', retriever: legacySCM(scm) | ||
|
||
longevityPipeline( | ||
backend: 'aws', | ||
region: 'eu-west-1', | ||
test_name: 'mixed_shard_repair_test.MixedShardRepair.test_mixed_shard_repair', | ||
test_config: 'test-cases/features/mixed-shard-repair.yaml', | ||
) |
11 changes: 11 additions & 0 deletions
11
jenkins-pipelines/oss/features/features-mixed-shard-repair2.jenkinsfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!groovy | ||
|
||
// trick from https://github.com/jenkinsci/workflow-cps-global-lib-plugin/pull/43 | ||
def lib = library identifier: 'sct@snapshot', retriever: legacySCM(scm) | ||
|
||
longevityPipeline( | ||
backend: 'aws', | ||
region: 'eu-west-1', | ||
test_name: 'mixed_shard_repair_test.MixedShardRepair.test_mixed_shard_repair', | ||
test_config: 'test-cases/features/mixed-shard-repair2.yaml', | ||
) |
11 changes: 11 additions & 0 deletions
11
jenkins-pipelines/oss/features/features-mixed-shard-repair3.jenkinsfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!groovy | ||
|
||
// trick from https://github.com/jenkinsci/workflow-cps-global-lib-plugin/pull/43 | ||
def lib = library identifier: 'sct@snapshot', retriever: legacySCM(scm) | ||
|
||
longevityPipeline( | ||
backend: 'aws', | ||
region: 'eu-west-1', | ||
test_name: 'mixed_shard_repair_test.MixedShardRepair.test_mixed_shard_repair', | ||
test_config: 'test-cases/features/mixed-shard-repair3.yaml', | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from sdcm.tester import ClusterTester | ||
from sdcm.utils.decorators import measure_time | ||
|
||
|
||
class MixedShardRepair(ClusterTester): | ||
|
||
def setUp(self): | ||
super().setUp() | ||
self.populate_data_parallel(size_in_gb=1024, blocking=True) | ||
|
||
@measure_time | ||
def _run_repair(self, node): | ||
self.log.info('Running nodetool repair on {}'.format(node.name)) | ||
node.run_nodetool(sub_cmd='repair') | ||
|
||
def test_mixed_shard_repair(self): | ||
node = self.db_cluster.nodes[0] | ||
repair_time = self._run_repair(node=node)[0] # pylint: disable=unsubscriptable-object | ||
self.log.info('Repair time on node: {} is: {}'.format(node.name, repair_time)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
test_duration: 600 | ||
|
||
n_db_nodes: 3 | ||
n_loaders: 4 | ||
n_monitor_nodes: 1 | ||
|
||
nodes_smp: [60, 60, 60] | ||
|
||
instance_type_db: 'i3.16xlarge' | ||
instance_type_loader: 'c6i.2xlarge' | ||
|
||
collect_logs: true | ||
backtrace_decoding: true | ||
|
||
hinted_handoff: 'disabled' | ||
|
||
append_scylla_yaml: | ||
enable_tablets: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
test_duration: 600 | ||
|
||
n_db_nodes: 3 | ||
n_loaders: 4 | ||
n_monitor_nodes: 1 | ||
|
||
nodes_smp: [60, 59, 58] | ||
|
||
instance_type_db: 'i3.16xlarge' | ||
instance_type_loader: 'c6i.2xlarge' | ||
|
||
collect_logs: true | ||
backtrace_decoding: true | ||
|
||
hinted_handoff: 'disabled' | ||
|
||
append_scylla_yaml: | ||
enable_tablets: false | ||
|
||
append_scylla_args: '--logger-log-level repair=debug' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
test_duration: 600 | ||
|
||
n_db_nodes: 3 | ||
n_loaders: 4 | ||
n_monitor_nodes: 1 | ||
|
||
nodes_smp: [60, 48, 32] | ||
|
||
instance_type_db: 'i3.16xlarge' | ||
instance_type_loader: 'c6i.2xlarge' | ||
|
||
collect_logs: true | ||
backtrace_decoding: true | ||
|
||
hinted_handoff: 'disabled' | ||
|
||
append_scylla_yaml: | ||
enable_tablets: false | ||
|
||
append_scylla_args: '--logger-log-level repair=debug' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
test_duration: 600 | ||
|
||
n_db_nodes: 3 | ||
n_loaders: 4 | ||
n_monitor_nodes: 1 | ||
|
||
nodes_smp: [16, 16, 12] | ||
|
||
instance_type_db: 'i3en.6xlarge' | ||
instance_type_loader: 'c6i.2xlarge' | ||
|
||
collect_logs: true | ||
backtrace_decoding: true | ||
|
||
hinted_handoff: 'disabled' | ||
|
||
append_scylla_yaml: | ||
enable_tablets: false | ||
|
||
# append_scylla_args: '--logger-log-level repair=debug' |