Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit a4eeca1

Browse files
authored
Merge pull request #62 from startupturbo/NikolayS-patch-1
More features in README
2 parents a6c54dd + 781e086 commit a4eeca1

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

README.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,19 @@ Currently Supported Features
3232
===
3333
* Experiments are conducted in a Docker container with extended Postgres setup
3434
* Supported Postgres versions: 9.6, 10
35+
* Postgres config specified via options, may be partial
3536
* Supported locations for experimental runs:
3637
* Any machine with Docker installed
3738
* AWS EC2:
3839
* Run on AWS EC2 Spot Instances (using Docker Machine)
3940
* Allow to specify EC2 instance type
4041
* Auto-detect and use current lowest EC2 Spot Instance prices
42+
* Support i3 instances (with NVMe SSD drives)
43+
* Support arbitrary-size EBS volumes
4144
* Support local or remote (S3) files – config, dump, etc
45+
* The object (database) can be specified in various ways:
46+
* Plain text
47+
* Dump file (.sql, .gz, .bz2) – :warning: only plain, single-file dumps are currently supported
4248
* What to test (a.k.a. "target" or "delta"):
4349
* Test Postgres parameters change
4450
* Test DDL change (specified as "do" and "undo" SQL to return state)
@@ -93,23 +99,36 @@ nancy run help
9399

94100
"Hello World!"
95101
===
102+
Locally:
96103
```bash
97-
echo "create table hello_world as select i::int4 from generate_series(1, 1000000) _(i);" > ./sample.dump
98-
bzip2 ./sample.dump
104+
echo "create table hello_world as select i::int4 from generate_series(1, (10^6)::int) _(i);" > ./sample.dump
99105

100106
# "Clean run": w/o index
101107
# (seqscan is expected, total time ~150ms, depending on resources)
102108
nancy run \
103109
--run-on localhost \
104-
--workload-custom-sql "select count(1) from hello_world where i between 100000 and 100010;" \
105-
--db-dump-path file://$(pwd)/sample.dump.bz2 --tmp-path /tmp
110+
--db-dump-path file://$(pwd)/sample.dump.bz2 \
111+
--tmp-path /tmp \
112+
--workload-custom-sql "select count(1) from hello_world where i between 100000 and 100010;"
106113

107114
# Now check how a regular btree index affects performance
108115
# (expected total time: ~0.05ms)
109116
nancy run \
110117
--run-on localhost \
118+
--db-dump-path file://$(pwd)/sample.dump.bz2 \
119+
--tmp-path /tmp \
111120
--workload-custom-sql "select count(1) from hello_world where i between 100000 and 100010;" \
112-
--db-dump-path file://$(pwd)/sample.dump.bz2 --tmp-path /tmp \
113121
--target-ddl-do "create index i_hello_world_i on hello_world(i);" \
114122
--target-ddl-undo "drop index i_hello_world_i;"
115123
```
124+
125+
On AWS EC2:
126+
```bash
127+
nancy run \
128+
--run-on aws \
129+
--aws-ec2-type "i3.large" \
130+
--aws-keypair-name awskey --aws-ssh-key-path file://$(echo ~)/.ssh/awskey.pem \
131+
--db-dump-path "create table a as select i::int4 from generate_series(1, (10^9)::int) _(i);" \
132+
--workload-custom-sql "select count(1) from a where i between 10 and 20;"
133+
```
134+

0 commit comments

Comments
 (0)