jetpants icon indicating copy to clipboard operation
jetpants copied to clipboard

Jetpants sharded_tables example in configuration needs further nesting.

Open grahamc opened this issue 8 years ago • 2 comments

https://github.com/tumblr/jetpants/blob/master/etc/jetpants.yaml.sample#L46-L59

The example results in errors when doing a shard cutover, digging reveals it should probably be:

sharded_tables:
    shardname:
        tablename:
            sharding_key: user_id
            chunks: 200

grahamc avatar Aug 25 '16 20:08 grahamc

Good catch. The example is just out-of-date. Looks like it wasn't updated to reflect support for multiple shard pools. ("shardname" in your example should be more like "shard_pool_name")

evanelias avatar Aug 25 '16 20:08 evanelias

I thought that might be the case, but wasn't so sure :)

grahamc avatar Aug 25 '16 20:08 grahamc