Skip to content

Commit

Permalink
[FEATS] add more nodes and visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
rayandrew committed Jul 8, 2019
1 parent 3908f70 commit 29ce35d
Show file tree
Hide file tree
Showing 9 changed files with 420 additions and 483 deletions.
82 changes: 82 additions & 0 deletions cassandra/log_100.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
Starting Cluster consists of 10 nodes
/usr/local/lib/python3.4/dist-packages/ccmlib/node.py:1501: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
data = yaml.load(f)
Delay about 1 minute before trying to read memory logs
Start reading the logs
List of mem used [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
Total memory used for 10 nodes is : 10 MB
Stopping and Remove Cluster
Delaying 10 secs before spawning another cluster

Starting Cluster consists of 20 nodes
Delay about 1 minute before trying to read memory logs
Start reading the logs
List of mem used [2, 1, 2, 2, 1, 2, 2, 1, 1, 2, 2, 1, 2, 2, 2, 1, 2, 2, 2, 2]
Total memory used for 20 nodes is : 34 MB
Stopping and Remove Cluster
Delaying 10 secs before spawning another cluster

Starting Cluster consists of 30 nodes
Delay about 1 minute before trying to read memory logs
Start reading the logs
List of mem used [2, 2, 1, 2, 1, 2, 2, 2, 1, 2, 2, 1, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2]
Total memory used for 30 nodes is : 54 MB
Stopping and Remove Cluster
Delaying 10 secs before spawning another cluster

Starting Cluster consists of 40 nodes
Delay about 1 minute before trying to read memory logs
Start reading the logs
List of mem used [2, 2, 1, 2, 2, 2, 2, 2, 1, 2, 2, 1, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2]
Total memory used for 40 nodes is : 74 MB
Stopping and Remove Cluster
Delaying 10 secs before spawning another cluster

Starting Cluster consists of 50 nodes
Delay about 1 minute before trying to read memory logs
Start reading the logs
List of mem used [2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]
Total memory used for 50 nodes is : 96 MB
Stopping and Remove Cluster
Delaying 10 secs before spawning another cluster

Starting Cluster consists of 60 nodes
Delay about 1 minute before trying to read memory logs
Start reading the logs
List of mem used [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2]
Total memory used for 60 nodes is : 117 MB
Stopping and Remove Cluster
Delaying 10 secs before spawning another cluster

Starting Cluster consists of 70 nodes
Delay about 1 minute before trying to read memory logs
Start reading the logs
List of mem used [2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]
Total memory used for 70 nodes is : 136 MB
Stopping and Remove Cluster
Delaying 10 secs before spawning another cluster

Starting Cluster consists of 80 nodes
Delay about 1 minute before trying to read memory logs
Start reading the logs
List of mem used [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]
Total memory used for 80 nodes is : 155 MB
Stopping and Remove Cluster
Delaying 10 secs before spawning another cluster

Starting Cluster consists of 90 nodes
Delay about 1 minute before trying to read memory logs
Start reading the logs
List of mem used [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]
Total memory used for 90 nodes is : 176 MB
Stopping and Remove Cluster
Delaying 10 secs before spawning another cluster

Starting Cluster consists of 100 nodes
Delay about 1 minute before trying to read memory logs
Start reading the logs
List of mem used [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2]
Total memory used for 100 nodes is : 199 MB
Stopping and Remove Cluster
Delaying 10 secs before spawning another cluster

11 changes: 11 additions & 0 deletions cassandra/result.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
nodes,mems
10,10
20,34
30,54
40,74
50,96
60,117
70,136
80,155
90,176
100,199
2 changes: 2 additions & 0 deletions test.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
nodes,mems
0,1
21 changes: 21 additions & 0 deletions visualization/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Visualization Memory Usage

This project uses matplotlib to plot memory usage of distributed systems

## Distributed Systems

- [x] Cassandra
- [x] HDFS
- [ ] HBase
- [ ] Tensorflow Distributed
- [ ] ...

## Running

```bash
jupyter lab
```

## Results

![mem-usages](plot.png)
293 changes: 293 additions & 0 deletions visualization/Visualization.ipynb

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions visualization/data.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
nodes,cassandra,hdfs
10,10,26
20,34,46
30,54,66
40,74,89
50,96,109
60,117,129
70,136,152
80,155,170
90,176,193
100,199,213
Binary file added visualization/plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
472 changes: 0 additions & 472 deletions vizualization/Visualization.ipynb

This file was deleted.

11 changes: 0 additions & 11 deletions vizualization/data.csv

This file was deleted.

0 comments on commit 29ce35d

Please sign in to comment.