Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase storage retention storage-schema.conf #246

Closed
bbaiq opened this issue Feb 2, 2021 · 7 comments
Closed

Increase storage retention storage-schema.conf #246

bbaiq opened this issue Feb 2, 2021 · 7 comments

Comments

@bbaiq
Copy link

bbaiq commented Feb 2, 2021

Hi,
we 'd like to increase storage retention values, in order to be able to troubleshoot/compare from past week (or past 2 weeks) to fresh sampling period.

something like that
from /etc/carbon/storage-schema.conf
#retentions = 1m:1h,2m:2h,4m:3h,12m:12h,24m:2d,96m:7d,192m:30d,3840m:1y
to
#retentions = 1m:1d,2m:2h,4m:3h,8m:1d,16m:7d,32m:14d,64m:30d,192m:60d,3840:1y

Is there any other policy we have to take care of in order to maintain performance ?

One carbon-cache.py instance may not be enough to handle the I/O load ? How to scale out the number of carbon-cache instance ?
Thanks a lot

We love Sexigraf since 4 years !! Thanks a lot !!

@rschitz
Copy link
Member

rschitz commented Feb 2, 2021

Hi, thanks a lot for your amazing support!
First, only the vSAN metrics are pulled every minutes, the regular ones (vcenter/esx) are pulled every 5 minutes so you can't go under that for your carbon conf

Second, you can change the carbon conf but it will only affect new created files (i.e. new vms) check this command if you want to apply a new schema on existing files #217 (comment)

In the last sexigraf version, you got 2 carbon-cache instances which proved to be more than enough for 200000+ VMs, 7000+ ESX and 60+ vCenter. If you want to increase the performances at this point i suggest you to look at storage option like using ramdrive and rsync every night on non volatile storage to avoid losing everything.

The main concern here will be the storage space unless you have a very small inventory. try to apply the policy to one file to get an idea of the size and multiply this by 10 and by your vms total to guess the space you'll need.

@bbaiq
Copy link
Author

bbaiq commented Feb 3, 2021 via email

@rschitz
Copy link
Member

rschitz commented Feb 3, 2021

before running the command be aware that you'll got a lot of "holes" in your graf until you got enough data because you change the shema and asked for more data points that you dont have yet and i'm not sure it is mandatory to stop the carbon service but i'd do it if i were you

you'll need a new patern of course until you change the main one and the retentions values are separated by comas "," not spaces ;)

@bbaiq
Copy link
Author

bbaiq commented Feb 3, 2021

by comas...my bad ;-) !! Have a good day !

@rschitz
Copy link
Member

rschitz commented Feb 7, 2021

you're welcome ;)
let us know your experience in this process since the retention looks pretty high

@rschitz rschitz closed this as completed Feb 7, 2021
@bbaiq
Copy link
Author

bbaiq commented Feb 9, 2021

the cmd for the existing points was run on the fly. some holes for the last 30d (bw 01/20 and 02/01) but it looks good for the last 14d ;-)
image
The storage needs are x3 compared to the last storage schemas.

@rschitz
Copy link
Member

rschitz commented Feb 9, 2021

looks good indeed, x3 sounds ok to me. thanks for the feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants