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

Incorrect volume size #5

Open
NdK73 opened this issue Jul 12, 2021 · 1 comment
Open

Incorrect volume size #5

NdK73 opened this issue Jul 12, 2021 · 1 comment

Comments

@NdK73
Copy link

NdK73 commented Jul 12, 2021

Seems "Gluster volume size" metric is just "Total bricks size / replica count". That's incorrect when you have a "replica 3 arbiter 1" volume. Arbiters should be subtracted from replica count.
IIUC the prototype for the item should be changed from
last(//gluster.bricks.size[{#NAME}]) / last(//gluster.volume.replicaCount[{#NAME}])
to account for the arbiters, but I can't find a way to do it (excepr fixing it with a "-1", but in that case it will be wrong when there are no arbiters...).

@Lelik13a
Copy link
Owner

I think in this case you can use macros for volume multiplayer. Or think about jscript processing.

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