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

Rate limit replica creation #7869

Merged
merged 1 commit into from May 11, 2015
Merged

Conversation

bprashanth
Copy link
Contributor

Suspend rcs at BurstReplicas until they observe all watch events, so they don't stress out the apiserver. @lavalamp @wojtek-t

@bprashanth bprashanth changed the title Ratelimit replica creation Rate limit replica creation May 6, 2015
@@ -64,6 +64,10 @@ const (
// 3000 pods. Just creation is limited to 30qps, and watching happens with
// ~10-30s latency/pod at scale.
ExpectationsTimeout = 6 * time.Minute
Copy link
Member

Choose a reason for hiding this comment

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

Can we reduce this timeout now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, was going to send a follow up pr, and observe latencies in production for a bit. That timeout isn't that critical unless we drop events, would you prefer I did so in this one?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, why not fix it now, since the TODO will be truthful-but-misleading after this merges.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@wojtek-t
Copy link
Member

wojtek-t commented May 7, 2015

I took a quick look and it generally looks good to me.

@bprashanth
Copy link
Contributor Author

Wanted to run density, then ran into a situtation I've been trying to repro for a while and decided to dig into that before destroying the cluster. Density is now done though, PTAL.

@bprashanth bprashanth force-pushed the rc_rl branch 2 times, most recently from bf4942d to f4b9f31 Compare May 8, 2015 19:40
@bprashanth
Copy link
Contributor Author

Removed Min function

controllerSpec.Spec.Replicas = numReplicas
manager.controllerStore.Store.Add(controllerSpec)

for i := 0.0; i < scaleFactor; i++ {
Copy link
Member

Choose a reason for hiding this comment

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

suggest don't use floating point; i := 0; i < numReplicas; i += burstReplicas?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, I guess it's clearer this way. Curious if you have another reason for this suggestion?

Copy link
Member

Choose a reason for hiding this comment

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

Allergic to using comparison operations on floating point numbers :)

(also found the "scale factor" variable name confusing)

@lavalamp
Copy link
Member

lavalamp commented May 8, 2015

LGTM

@lavalamp lavalamp added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 8, 2015
@nikhiljindal
Copy link
Contributor

Travis failed with the following error:

--- FAIL: TestRequestExecuteRemoteCommand (0.03s)
    remotecommand_test.go:207: 1: expected true, got false: <nil>
FAIL

@bprashanth : Can you take a look?

@bprashanth
Copy link
Contributor Author

@nikhiljindal I think that's #6878, I kicked travis, we'll see

@nikhiljindal
Copy link
Contributor

Its green now. Merging.

nikhiljindal added a commit that referenced this pull request May 11, 2015
Rate limit replica creation
@nikhiljindal nikhiljindal merged commit 0da12c1 into kubernetes:master May 11, 2015
@bprashanth bprashanth deleted the rc_rl branch October 26, 2015 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants