Skip to content

Commit 9f50ef4

Browse files
committed
[db] Add compose file for PostgreSQL
1 parent 520cddd commit 9f50ef4

File tree

4 files changed

+98
-1
lines changed

4 files changed

+98
-1
lines changed

README.md

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,49 @@
11
# cookbook
2-
Setup databases and benchmarks frameworks
2+
3+
Provision machine, setup databases and benchmarks frameworks
4+
5+
## TODO
6+
7+
- use docker w/ default config first, have things running so we can test out the rest of benchhub, deal w/ overhead and config later
8+
9+
### Databases
10+
11+
RDBMS
12+
13+
- [ ] MySQL (single node)
14+
- [ ] MySQL (master slave?)
15+
- [ ] PostgreSQL (single node)
16+
- [ ] PostgresSQL (multi node)
17+
18+
KV
19+
20+
- [ ] redis
21+
- [ ] memcached
22+
23+
Column Family
24+
25+
- [ ] Cassandra (single node)
26+
- [ ] Cassandra (multi node)
27+
- [ ] HBase (multi node) along w/ HDFS
28+
29+
Document
30+
31+
- [ ] MongoDB
32+
33+
TSDB
34+
35+
- [ ] timescaledb (along w/ Postgres)
36+
- [ ] InfluxDB (only single node is available)
37+
- [ ] KairosDB
38+
- [ ] OpenTSDB
39+
40+
### Benchmark frameworks
41+
42+
- [ ] TPC-X series
43+
- [ ] TPC-C
44+
- [ ] TPC-H
45+
- [ ] TPC-IoT
46+
- [ ] YCSB
47+
- [ ] OLTPBench
48+
- [ ] how oltpbench implement YCSB? from scratch
49+
- [ ] HiBench

docker.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Docker
2+
3+
## Commands
4+
5+
- `docker compose up service-name`
6+
- `docker rm $(docker ps -a -q)` remove all stopped containers
7+
8+
## Docker engine
9+
10+
Just use Ubuntu 17.04 as host environment, since this is my local environment
11+
12+
- default version in apt seems to be 17.03, while the latest stable is 17.12
13+
- https://docs.docker.com/release-notes/docker-ce/
14+
- seems to be able to use https://download.docker.com/linux/ubuntu/dists/zesty/pool/stable/amd64/
15+
16+
## Docker compose
17+
18+
- latest version is 1.18.0 https://github.com/docker/compose/releases/download/1.18.0/docker-compose-Linux-x86_64
19+
- latest spec version is 3.x, and removed `extend`
20+
21+
## Docker registry
22+
23+
- https://github.com/docker/distribution
24+
- https://hub.docker.com/_/registry/
25+
- https://docs.docker.com/registry/deploying/
26+
27+
You can mount the storage for registry

iaas/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# IaaS
2+
3+
Ref
4+
5+
k8s
6+
7+
https://github.com/kubernetes-incubator/kubespray
8+
9+
Packet
10+
11+
https://help.packet.net/solutions/platforms/kubernetes

rdbms/docker-compose.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: '3'
2+
services:
3+
# docker-compose up pg
4+
# TODO: name? ... might use different compose file for different database
5+
# TODO: graph admin?
6+
pg:
7+
image: "postgres:10.1"
8+
environment:
9+
- POSTGRES_PASSWORD=pgpassword
10+
- POSTGRES_USER=pguser
11+
ports:
12+
- "5432:5432" # guest host

0 commit comments

Comments
 (0)