-
Notifications
You must be signed in to change notification settings - Fork 40k
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 a CockroachDB PetSet example #28446
Add a CockroachDB PetSet example #28446
Conversation
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
2cf8412
to
a402b08
Compare
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
1 similar comment
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
1 similar comment
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
|
||
When all (or enough) nodes are up, simulate a failure like this: | ||
|
||
```shell |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please provide an example of how to set/get a key:value. An example displaying the replication properties would be nice too (i.e set in 1 read from 5), as would a scale up/down example (kubectl edit the petset and modify replicas to 6, does the new replica catch up to the cluster?). Is there a "master" we should avoid killing during upgrade?
Optionally, you could write something, bounce the whole cluster (delete pods --all), read the thing.
Also mentioning read/write throughput and how that scales with replicas will help.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. I didn't go all out because bash
isn't the right language for these tests (and we already have them elsewhere).
Also not too much about tradeoffs etc - I think for the toy example it's fine to assume that people generally have an idea of what they're toying with.
@tschottdorf thanks! @kubernetes/examples @smarterclayton |
Updated, PTAL. |
9c62353
to
16fef39
Compare
# We will need some version of `cockroach init` back for this to | ||
# work. For now, just do the same in a shell snippet. | ||
# Of course this isn't without danger - if node0 loses its data, | ||
# it will upon restarting it will simply bootstrap a new cluster |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you have "it will" twice.
ok to test |
@tschottdorf thanks for the example. I've marked it lgtm with just one nit. If you get to it before it goes in, great, if not we can fix it with a follow up. sorry for the delay, got sidetracked. |
No worries, addressed your comment, rebased, and squashed. On Wed, Jul 27, 2016 at 6:05 PM Prashanth B notifications@github.com
|
16fef39
to
8a55558
Compare
Please run: |
Yep, thanks. Will fix. |
8a55558
to
51ee5af
Compare
Done. |
@bprashanth, I have a couple questions around what it would take to flesh this out a little more once @tschottdorf has time to fix the doc munger's complaints:
|
|
The example starts a simple five-node cluster with otherwise default setting (in particular, 3x replication).
51ee5af
to
6889f83
Compare
Munged the docs and pushed. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
ok to test |
GCE e2e build/test passed for commit 6889f83. |
Automatic merge from submit-queue |
Automatic merge from submit-queue Productionize the cockroachdb example a little more Includes: * A service for clients to use * Readiness/liveness probes * An extended graceful termination period * Automatic prometheus monitoring (when prometheus is configured to watch for annotations on services, as in [CoreOS's recent blog post](https://coreos.com/blog/prometheus-and-kubernetes-up-and-running.html), for example) I'm leaving the management of certs to future work, but if anyone that sees this needs help with them in the meantime, don't hesitate to reach out. Successor to #28446 @bprashanth - if you're still interested in / open to an e2e test (as mentioned in cockroachdb/cockroach#5967 (comment)), let me know and I'll put one together. If so, I assume you'd want it as part of the `petset` test group rather than the `examples` tests? cc @tschottdorf **Release note**: ```release-note NONE ```
The example starts a simple five-node cluster with otherwise
default settings (in particular, 3x replication).
cc @bprashanth
This change is