-
Notifications
You must be signed in to change notification settings - Fork 4
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 new placement Vindex strategy #77
Conversation
Signed-off-by: Jeremy Cole <[email protected]>
Sorry I’ve been slow to provide feedback. I wanted to make sure I understood how the various vindexes behaved. I've tried modeling carts using
"carts_multicol": {
"type": "multicol",
"params": {
"column_count": "2",
"column_bytes": "2,6",
"column_vindex": "static_map,xxhash",
"static_map_json_path": "/foo/static_region_map.json",
}
} in static_region_map.json: {
"key_type": "string",
"value_type": "uint16",
"map": {
"foo-east1": "5",
"bar-west2": "99"
}
} I'm not convinced any of those is definitely a better option, but figured they're worth a thought. Also, as part of my exploration I put together an example modeling carts using |
0c6bafa
to
8e9611b
Compare
Signed-off-by: Jeremy Cole <[email protected]>
8e9611b
to
6faac58
Compare
This PR is being marked as stale because it has been open for 30 days with no activity. To rectify, you may do any of the following:
If no action is taken within 7 days, this PR will be closed. |
This PR was closed because it has been stale for 7 days with no activity. |
Signed-off-by: Jeremy Cole [email protected]
Description
Add a
placement
Vindex type for use in regional sharding.A Vindex which uses a mapping lookup table
placement_map
to set the firstplacement_prefix_bytes
of the Keyspace ID and another Vindex typeplacement_sub_vindex_type
(which must support Hashing) as a sub-Vindex to set the rest. This is suitable for regional sharding (likeregion_json
orregion_experimental
) but does not require a mapping file, and can support non-integer types for the sharding column.All parameters are prefixed with
placement_
to avoid conflict, because theparams
map is passed to the sub-Vindex as well.Related Issue(s)
Checklist
Deployment Notes