This Article collects all the posts under the Measuring/Billing database usage in StratosLive.
My Job
WSO2 Data Services Server User Guide
Need to find I/O rates, bandwidth used by each Database user
Limiting The Resource Use
I continued
Suggestions and replies
Collecting and summarizing the captured data
Followed the BAM samples.
Do you need data to play with?
Prototype version 1
Prototype version 1 has to be verified.
1st Verification
OSGi Services
Publishing to BAM
Using OSGi console to debug things
[Break for Test Automation]
Back to the Frozen project
WSO2 Storage Server
The Inevitable Change
Strange things do happen
Using Hive Scripts to Analyze and Summarize BAM data
Difference between two time ignoring the date
Replacing for ntask(quartz-scheduler), using timer task
It is almost 'THE END'
Showing posts with label database size. Show all posts
Showing posts with label database size. Show all posts
Friday, November 30, 2012
Measuring/Billing database usage in StratosLive - Summery
Labels:
bam,
BAM2,
billing,
database,
database size,
mysql,
remote debugging,
StratosLive RSS,
usage agent,
WSO2 Data Services Server
Saturday, June 30, 2012
1st Verification – Verification of “index length + data length = actual disk space used”
I think I found where DBs are stored.
As I am working in XAMPP there were stored in /opt/lampp/var/mysql
there where folders for each database. When tried to open them it
gives me a error saying “you don't have permission” Next thing I
tried was trying to open it in the terminal using sudo. Unlucky me it
gave me a error saying “sudo: cd:
command not found”. Have to find a way to open such folders.
I'll write a post on this, If I find a way (Or any one who know a way
can help me by commenting below). Till then I used “sudo
nautilus path/”
There were 3 files for each table in
each db. A .frm file, .myd file, .myi file. All three are
contributing to the space used
- FRM files contain table structure information.
- MYD contains the actual table data.
- MYI files contain the indexes.
-s, --summarize (display only a total for each argument)
-h, --human-readable ( print sizes in human readable format (e.g., 1K 234M 2G))
so It showed that figures given in the information schema is similar to the results given by the above command. But size of the FRM file was not take in to account by me. But looks like all the .frm files are having the same length (12K) so I can sum them up If I know the number of tables. However I have to check why others ignore this file when they are calculating.
Some databases only have .frm file
Going through the database folders, I saw that some folders only have a .frm file in it. Searching for that I found out that there is two major engines within MySQL: MyISAM and InnoDB. If the table belongs to InnoDB, it only includes .frm file. Data of that kind of DBs are stored in a single or multiple (you can configure that) .idb files.
Labels:
database,
database size,
mysql,
wso2,
WSO2 Data Services Server
Subscribe to:
Posts (Atom)