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

add riak-cs-stanchion command to switch stanchion manually #657

Merged
merged 3 commits into from
Sep 30, 2013

Conversation

kuenishi
Copy link
Contributor

Add a command to switch stanchion location setting. This command
assumes a use case where:

  1. stanchion fails (or kill the old one, ensure killed)
  2. decide a new stanchion with a brand new location (host,port)
  3. put a new stanchion location via riak-cs-stanchion switch

Also, users can confirm stanchion setting by show subcommand.
I believe this will make operation in case of stanchion failure much easier
than before.

I'd like to discuss about the risk that this command may lead operational
mistake to diverse stanchion settings.

assumes a use case where:
 1. stanchion fails (or kill the old one, ensure killed)
 2. decide a new stanchion with a brand new location (host,port)
 3. put a new stanchion location via `riak-cs-stanchion switch`
Also, users can confirm stanchion setting by `show` subcommand.
%%% Public API
%%%===================================================================

%% @doc Kick off a gc round, unless one is already
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copy-paste comment maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eew, copied.

@ghost ghost assigned reiddraper Sep 13, 2013
@@ -0,0 +1,24 @@
#!/bin/sh

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thoughts on a set -e for this script?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought I had set this script executable. Or I messed up sth with git?

@reiddraper
Copy link
Contributor

I like this. My biggest fear is that people won't understand that this is only a runtime change. It does not persist the change, so if Riak CS is restarted, it will revert back to the old value. Maybe a warning will help?

@kuenishi
Copy link
Contributor Author

fmm, that might be a problem, because people including me usually don't read warning. My idea, plus a warning, is to enable /ping at stanchion and let Riak CS ping stanchion when starting up the process. Anyway this should be documented strongly.

I can't wait built-in Rafter.

@kuenishi
Copy link
Contributor Author

Ready for review again! English composition might be a bit better.

@kuenishi
Copy link
Contributor Author

I'm merging this PR, but still open to additional or critical discussions on persistence and diversing stanchion settings.

kuenishi added a commit that referenced this pull request Sep 30, 2013
add riak-cs-stanchion command to switch stanchion manually
@kuenishi kuenishi merged commit d12e447 into develop Sep 30, 2013
@reiddraper
Copy link
Contributor

Cool. Thanks @kuenishi.

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

Successfully merging this pull request may close these issues.

None yet

2 participants