Skip to content

Commit

Permalink
Promo code use case to demo the locality-aware CBO updates (#78)
Browse files Browse the repository at this point in the history
* added promo code use case

* enhanced movr to support zone configs directly

* added geo-partitioning as a separate step to support before & after demos

* added function to print geo commands to support step by step demos

cc @jseldess
  • Loading branch information
nstewart authored Apr 13, 2019
1 parent 7b0e7a3 commit eea7b85
Show file tree
Hide file tree
Showing 5 changed files with 328 additions and 97 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ Generating fake data: `docker run -it --rm cockroachdb/movr --url "postgres://ro

Generating load for cities: `docker run -it --rm cockroachdb/movr --url "postgres://[email protected]:26257/movr?sslmode=disable" --num-threads 10 run --city "new york" --city "boston"`

## Partitioning MovR
MovR can automatically partition data and apply zone configs using the `partition` command.
Use region-city pairs to map cities to regional partitions and use region-zone pairs to map regional partitions to zones
`docker run -it --rm cockroachdb/movr --echo-sql --app-name "movr-partition" --url "postgres://root@[ipaddress]/movr?sslmode=disable" partition --region-city-pair us_east:"new york" --region-city-pair central:chicago --region-city-pair us_west:seattle --region-zone-pair us_east:us-east1 --region-zone-pair central:us-central1 --region-zone-pair us_west:us-west1`

If you want to partition by hand (perhaps in a demo), MovR can print the partition commands with the `--print-queries` command.

## Pre-built datasets

Expand Down
Loading

0 comments on commit eea7b85

Please sign in to comment.