Last active
January 3, 2016 00:19
-
-
Save tmusabbir/8381783 to your computer and use it in GitHub Desktop.
Cassandra Performance Tuning
This file contains hidden or 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
Cassandra Performance Tuning |
This file contains hidden or 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
root@ip-10-0-0-24:[/root] | |
$ df -h | |
Filesystem Size Used Avail Use% Mounted on | |
/dev/sda1 124G 78G 40G 67% / | |
/dev/sda2 50G 2G 46G 1% /mnt/commitlog | |
none 3.8G 1007M 2.8G 27% /dev/shm |
This file contains hidden or 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
root@ip-10-0-0-24:[/root] | |
$ chown cassandra:cassandra /mnt/commitlog | |
root@ip-10-0-0-24:[/root] | |
$ chmod 755 /mnt/commitlog |
This file contains hidden or 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
[root@ip-10-0-0-57 ~]# bin/nodetool --host ip-10-0-0-57 cfstats | |
Column Family: Cloud_For_Beginners | |
... | |
Key cache capacity: 200000 | |
Key cache size: 200000 | |
Key cache hit rate: 0.568 |
This file contains hidden or 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
update column family cloud_for_beginners with keys_cached = 300000 |
This file contains hidden or 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
update column family cloud_for_beginners with rows_cached = 1000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment