-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
demo: add with-load switch for background workload for loaded dataset #39944
Comments
Do we have a package that automatically runs a workload against a DB? If not, what would go into doing something like that? |
Yes, the |
Yup, |
It doesn't look like the movr workload has an implementation of the Ops interface (no workload defined). Are there some example queries that docs uses to run against movr? |
Ah that's unfortunate. cc @nstewart - would be great to get the movr app into workload. Any simple queries we could start out with? |
Sure thing -- here's a subset of the MovR queries (except in the movr loadgen app, they are run in transactions): https://www.cockroachlabs.com/docs/dev/movr.html#how-the-movr-application-works All in, there are 8 transactions that MovR runs. The promo_codes transactions are useful for showing off the locality-aware optimizer (since the promo_codes table can't be geo-partitioned) and the log ride location transaction is useful for showing a time series workload. @rohany happy to walk you through the transactions and their probabilities
The loadgen logic is here: https://github.com/cockroachdb/movr/blob/master/loadmovr.py#L89 If you run the container |
Fixes cockroachdb#39944. When the `--with-load` flag is passed to demo, a sample movr workload is run against the database. I tried my best to replicate the Movr load in Nate's example script. Based on talks with Dan, it was better to copy out a simpler version of the logic to run the workload than try to hook into workload. Release note (cli change): Add a workload to run with cockroach demo.
Fixes cockroachdb#39944. When the `--with-load` flag is passed to demo, a sample movr workload is run against the database. I tried my best to replicate the Movr load in Nate's example script. Based on talks with Dan, it was better to copy out a simpler version of the logic to run the workload than try to hook into workload. Release note (cli change): Add a workload to run with cockroach demo.
Fixes cockroachdb#39944. When the `--with-load` flag is passed to demo, a sample movr workload is run against the database. I tried my best to replicate the Movr load in Nate's example script. Based on talks with Dan, it was better to copy out a simpler version of the logic to run the workload than try to hook into workload. Release note (cli change): Add a workload to run with cockroach demo.
40229: demo: Add location information to default demo localities. r=knz a=rohany Fixes #39937. Adds default latitude and longitude information for the default localities in cockroach demo so that the web UI is pre-populated. Release note (cli change): Add location information to default localities to populate web UI for cockroach demo. 40271: demo: Add a Movr workload to run in cockroach demo r=danhhz,nstewart a=rohany Fixes #39944. When the `--with-load` flag is passed to demo, a sample movr workload is run against the database. I tried my best to replicate the Movr load in Nate's example script. Based on talks with Dan, it was better to copy out a simpler version of the logic to run the workload than try to hook into workload. Release note (cli change): Add a workload to run with cockroach demo. 40320: randutil: allow COCKROACH_RANDOM_SEED to seed NewPseudoRand r=mjibson a=mjibson Multiple people have been confused about the lack of interaction between NewPseudoRand (which used to always generate a random seed) and COCKROACH_RANDOM_SEED (which only influenced using the global rand methods). Release note: None Co-authored-by: Rohan Yadav <rohany@alumni.cmu.edu> Co-authored-by: Matt Jibson <matt.jibson@gmail.com>
Currently, the web ui for
cockroach demo
doesn't have anything interesting unless you add it. There's nothing in timeseries and nothing in the statements page unless you actually type commands into the shell.It would be nice for actual demoing purposes if we could add some light background load so that the web ui gets populated with interesting data. This should probably be hidden behind a flag so that data doesn't just change out from under the user unless they're expecting it. The workload should be chosen based on the initial dataset that's loaded.
The text was updated successfully, but these errors were encountered: