Capacity calculator tool


#1

Hi guys,

I made a simple webpage/tool that lets you calculate the amount of storage required for sets/bins/records. At this point the tool calculates on disk storage requirements without indexes or replication. It only supports the integer and string/blob types. Please use with caution and at your own risk.

Checkt it out at: https://geertjohan.net/aerospike-capacity-calculator/

The source lives at https://github.com/GeertJohan/aerospike-capacity-calculator

Issues/PR’s are very welcome.


Aerospike in-memory DB uses much memory than expected
#2

Just pushed some updates. Added primary key memory usage calculation and data-in-memory calculations.


#3

Hi Geert Johan,

Thank you for creating this tool! We’ll have a look internally, and welcome feedback from the community users as well.

We always appreciate contributions from the community such as these. Please keep them coming!

Cheers,

Maud


#4

Oops! It looks like there were a few bugs in the last commit, those are fixed now and everything should work again. (I should have added tests…)


#5

@vshield something like this makes a lot more sense than giant excel sheets


#6

Nice job GeertJohan

Appreciate your efforts.

Sure Albot, will consider and make all attempts to improve the planning :slight_smile:

Cheers


#7

Nice tool. Suggestions - 1 - on Block size, may be make it drop down with two options - 128 and 512, or keep fixed at 128. In reality it will always be 128 bytes read block size for SSD and used for rounding the record size. for older Aerospike revs, may be 512. 2 - If you want to be fussy, put 63 char limit on set name. 3 - totalsizeRecords is actual bytes of data + overhead == vs == totalsizeOnDisk - actual disk space required. you could omit the totalSizeofRecords - what one really needs is the totalSizeOnDisk. again just a fine point.

Great contribution, I am going to use for rough sizing estimates!


#8

Thanks @vshield, if you are missing features and/or are making improvements I’d be happy to take PR’s on github.