-
Notifications
You must be signed in to change notification settings - Fork 21
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
Commandline switch -s/-single does not seem to have any effect #27
Comments
Hi @rsommer,
|
The specific usecase on my side is that I want to implement monitoring checks bound to the single hosts of the cluster so that every host just reports back wrong metrics on itself. |
I'm not an author of bucky, just a curious user, was wondering about usecase here. Looks pretty valid to me. |
@deniszh I'm wondering about your example from above: the only command where the SingleHost-flag is actually evaluated is in |
My old fork, from the times when jumphash was not merged into master branch
- https://github.com/deniszh/buckytools
Planning to migrate to latest version.
For 'bucky inconsistent -s' - my version also doing nothing.
…On Mon, 18 Sep 2017 at 16:32, Roland Sommer ***@***.***> wrote:
@deniszh <https://github.com/deniszh> I'm wondering about your example
from above: the only command where the SingleHost-flag is actually
evaluated is in restore.go. If I do a dry run of a rebalance using
-s/-single all metrics are processed nervertheless. Which version of
buckytools are you using?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABK51nAGBjosCi5iOACZTR5-TYA1i_37ks5sjn70gaJpZM4Pa5gv>
.
|
Hey, I'm totally accepting PRs. :-) |
@deniszh I don't see any history of the -s flag ever functioning for rebalance, do you have uncommitted changes on your older fork for that? @rsommer I'd be interested in your handling of the single host though my use case is basically what deniszh does with the rebalance command. Do you have a PR or commit I can look at? |
@dcharleston: I did nothing for rebalance , it was just working for me out of the box. |
@deniszh Thanks, i'm curious to know what you're using now? I still fail to see where the actual logic is that calls SingleHost function in rebalance.go is unless there is some go magic I don't understand, which may very well be the case. |
@dcharleston : TBH I completely forgot buckytools code. For me, command above |
While integrating some monitoring checks using buckytools I encountered that the -s/-single flag does not seem to restrict for example 'inconsistent' to just a single host as advertised in the help text. Am I missing something from the documentation or did I just hit a bug? I'm currently using buckytools 0.3.2.
To reproduce, just create some empty bogus whisper files on the wrong host(s) and call
bucky inconsistent -s
. I tried various combinations but from a quick look at the code I can not find a place where the command line flag is actually read and handled except for therestore
command. TheSetupSingle
method is called fromrebalance
,inconsistent
etc. and the help text states that these operations can also be restricted to a single host.The text was updated successfully, but these errors were encountered: