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

write: Set partition key salt using HTTP header #135

Merged
merged 3 commits into from
Sep 28, 2017
Merged

Conversation

mattbostock
Copy link
Owner

@mattbostock mattbostock commented Sep 28, 2017

Allow an optional HTTP header, X-AthensDB-Partition-Key-Salt to be set
in HTTP requests sending data to the cluster that adds a salt to the
partition key which can be used to better distribute data across the
cluster.

One use for the partition key salt is to support multiple tenants; by
using the tenant ID as the salt, data will be more evenly distributed if
multiple tenants try to write the same time-series.

Partially implements #45.

Allow an optional HTTP header, `X-AthensDB-Partition-Key-Salt` to be set
in HTTP requests sending data to the cluster that adds a salt to the
partition key which can be used to better distribute data across the
cluster.

One use for the partition key salt is to support multiple tenants; by
using the tenant ID as the salt, data will be more evenly distributed if
multiple tenants try to write the same time-series.
HTTP is an acronym, make it all caps.
@mattbostock mattbostock merged commit 724e8fd into master Sep 28, 2017
@mattbostock mattbostock deleted the wire_in_salt branch September 28, 2017 19:49
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.

1 participant