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

rpc: Enable snappy compression by default #16432

Merged
merged 1 commit into from Jun 9, 2017

Conversation

a-robinson
Copy link
Contributor

This will be safe during rolling upgrades because the snappy
decompressor was included in v1.0.

#14721

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@petermattis petermattis left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -82,7 +82,7 @@ var SourceAddr = func() net.Addr {
return nil
}()

var enableRPCCompression = envutil.EnvOrDefaultBool("COCKROACH_ENABLE_RPC_COMPRESSION", false)
var enableRPCCompression = envutil.EnvOrDefaultBool("COCKROACH_ENABLE_RPC_COMPRESSION", true)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if this should be changed to a cluster setting while you're mucking with this code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Perhaps. I'm a bit on the fence. It currently only takes effect at startup, so we'd have to rework things a bit, and even we'd only be able to make it take effect on new outgoing connections. Modifying the created servers seems like too much change.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah, I was imagining a change to the setting would affect new connections. I forgot that we would want to enable it on responses from the server as well. Yeah, let's leave this as an env var.

This will be safe during rolling upgrades because the snappy
decompressor was included in v1.0.
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

Successfully merging this pull request may close these issues.

None yet

3 participants