Skip to content
This repository has been archived by the owner on Sep 9, 2023. It is now read-only.

Commit

Permalink
Use mermaid chart in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Sembera committed Mar 31, 2020
1 parent 565f88c commit 6b71e30
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,10 @@ Every _unit run_ opens a database connection.
In the _query execution phase_, every unit run sends the configured query `REP` times sequentially to the database.
Therefore, every unit sends the query to the database `PAR*REP` times.

You can see the meaning of `PAR` and `REP` variables, as well as the overall description of individual components
and how they parallelize in the following diagram:

![Components overview](images/Terminology.png?raw=true)
The following diagram shows the meaning of the `PAR` and `REP` variables, as well as the overall description of
individual components and how they parallelize:

![Components overview](images/scenario.jpg?raw=true)

### Threading
In _dbstress_, there are two important thread pools. The first one is used by the Akka internally and can spawn up
Expand Down
Binary file removed images/Terminology.png
Binary file not shown.
Binary file added images/scenario.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions images/scenario.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
%% https://mermaid-js.github.io/mermaid-live-editor
graph TD;

Note["PAR(Unit1)=2; REP(Unit1)=3<br>PAR(Unit2)=1; REP(Unit2)=2<br>PAR(Unit3)=3; REP(Unit3)=4"];

Scenario{{Scenario}} --> Unit1((Unit 1));
Scenario --> Unit2((Unit 2));
Scenario --> Unit3((Unit 3));
Unit1 --> Unit1.Run1([Run 1]);
Unit1 --> Unit1.Run2([Run 2]);
Unit2 --> Unit2.Run1([Run 1]);
Unit3 --> Unit3.Run1([Run 1]);
Unit3 --> Unit3.Run2([Run 2]);
Unit3 --> Unit3.Run3([Run 3]);
Unit1.Run1 --> Call1.1.1[Call] --> Call1.1.2[Call] --> Call1.1.3[Call];
Unit1.Run2 --> Call1.2.1[Call] --> Call1.2.2[Call] --> Call1.2.3[Call];
Unit2.Run1 --> Call2.1.1[Call] --> Call2.1.2[Call];
Unit3.Run1 --> Call3.1.1[Call] --> Call3.1.2[Call] --> Call3.1.3[Call] --> Call3.1.4[Call];
Unit3.Run2 --> Call3.2.1[Call] --> Call3.2.2[Call] --> Call3.2.3[Call] --> Call3.2.4[Call];
Unit3.Run3 --> Call3.3.1[Call] --> Call3.3.2[Call] --> Call3.3.3[Call] --> Call3.3.4[Call];

0 comments on commit 6b71e30

Please sign in to comment.