Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce JVM chaos to ShardingSphere #254

Open
6 tasks
mlycore opened this issue Mar 9, 2023 · 7 comments
Open
6 tasks

Introduce JVM chaos to ShardingSphere #254

mlycore opened this issue Mar 9, 2023 · 7 comments
Assignees
Labels
in: chaos modules of shardingsphere chaos type: enhancement New feature or request

Comments

@mlycore
Copy link
Contributor

mlycore commented Mar 9, 2023

Apache ShardingSphere

Apache ShardingSphere is positioned as a Database Plus, and aims at building a standard layer and ecosystem above heterogeneous databases. It focuses on how to reuse existing databases and their respective upper layer, rather than creating a new database. The goal is to minimize or eliminate the challenges caused by underlying databases fragmentation.

Page: https://shardingsphere.apache.org/
Github: https://github.com/apache/shardingsphere 

Background

There is a proposal about the background of ChaosEngineering as belows:

And we also proposed a generic controller for ShardingSphereChaos as belows:

The ShardingSphereChaos controller is aiming at different chaos tests. This JVMChaos is an important one.

Task

Write several scripts to implement different JVMChaos for main features of ShardingSphere. The specific case list is as follows.

  • Add scripts injecting chaos to DataSharding
  • Add scripts injecting chaos to ReadWritingSplitting
  • Add scripts injecting chaos to DatabaseDiscovery
  • Add scripts injecting chaos to Encryption
  • Add scripts injecting chaos to Mask
  • Add scripts injecting chaos to Shadow

Basically, these scripts will cause unexpected behaviour while executing the related. DistSQL.

Relevant Skills

  1. Master Go language, Ginkgo test framework
  2. Have a deep understanding of Apache ShardingSphere concepts and practices.
  3. JVM byte mechanisms like ByteMan, ByteBuddy.

Targets files

JVMChaos Scripts - https://github.com/apache/shardingsphere-on-cloud/chaos/jvmchaos/scripts/

@wbtlb
Copy link
Contributor

wbtlb commented Mar 10, 2023

Please assign this issue to me ,thanks.

@mlycore
Copy link
Contributor Author

mlycore commented Mar 10, 2023

Thanks @wbtlb

@mlycore mlycore added the in: chaos modules of shardingsphere chaos label Mar 10, 2023
@wbtlb
Copy link
Contributor

wbtlb commented Mar 10, 2023

In the native chaos mesh, the injection and chaos testing of the basic jvm are realized by writing byteman scripts. In order to realize the chaos test unique to ShardingSphere, there are some basic prerequisite tasks to do:

  • confirm ShardingSphere hook point and the architecture of ShardingSphere.
  • Write Byteman scripts for ShardingSphere.
  • Use ASM can implement complex dynamic pile load test.

@Jacob953
Copy link

I'd like to help on this issue, assign it to me too, plz ;)

@mlycore
Copy link
Contributor Author

mlycore commented Mar 13, 2023

I'd like to help on this issue, assign it to me too, plz ;)

Thanks. This issue could be decomposed into smaller one. Please file a new issue and attach to this one.

@mlycore
Copy link
Contributor Author

mlycore commented Mar 14, 2023

I think we should prepare not only the Chaos test itself, but also the load generator. Such as a Golang program which can continuously doing some DistSQL Job to ShardingSphere.

@mlycore
Copy link
Contributor Author

mlycore commented Mar 16, 2023

#32 (comment)

@mlycore mlycore added the gsoc-2023 GSoC 2023 label Mar 21, 2023
@mlycore mlycore changed the title Introduce JVM chaos to ShardingSphere [GSoC 2023] Introduce JVM chaos to ShardingSphere Mar 21, 2023
@mlycore mlycore added the type: enhancement New feature or request label Mar 21, 2023
@mlycore mlycore changed the title [GSoC 2023] Introduce JVM chaos to ShardingSphere Introduce JVM chaos to ShardingSphere May 18, 2023
@mlycore mlycore removed the gsoc-2023 GSoC 2023 label May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: chaos modules of shardingsphere chaos type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants