cockroach-test-drive
所属分类:数据库系统
开发工具:GO
文件大小:0KB
下载次数:0
上传日期:2017-11-11 12:49:28
上 传 者:
sh-1993
说明: 驾驶蟑螂DB试驾,
(Taking CockroachDB for a test drive,)
文件列表:
.ebert.yml (190, 2017-11-11)
LICENSE (1072, 2017-11-11)
client/ (0, 2017-11-11)
client/Dockerfile (125, 2017-11-11)
client/Gopkg.lock (2134, 2017-11-11)
client/Gopkg.toml (535, 2017-11-11)
client/db_init.go (2679, 2017-11-11)
client/main.go (685, 2017-11-11)
client/migrate/ (0, 2017-11-11)
client/migrate/01_init.up.sql (841, 2017-11-11)
client/model/ (0, 2017-11-11)
client/model/account.go (2824, 2017-11-11)
client/model/account_test.go (3420, 2017-11-11)
client/vendor/ (0, 2017-11-11)
client/vendor/github.com/ (0, 2017-11-11)
client/vendor/github.com/beorn7/ (0, 2017-11-11)
client/vendor/github.com/beorn7/perks/ (0, 2017-11-11)
client/vendor/github.com/beorn7/perks/LICENSE (1058, 2017-11-11)
client/vendor/github.com/beorn7/perks/quantile/ (0, 2017-11-11)
client/vendor/github.com/beorn7/perks/quantile/bench_test.go (1149, 2017-11-11)
client/vendor/github.com/beorn7/perks/quantile/example_test.go (2715, 2017-11-11)
client/vendor/github.com/beorn7/perks/quantile/exampledata.txt (5339, 2017-11-11)
client/vendor/github.com/beorn7/perks/quantile/stream.go (7422, 2017-11-11)
client/vendor/github.com/beorn7/perks/quantile/stream_test.go (5099, 2017-11-11)
client/vendor/github.com/cockroachdb/ (0, 2017-11-11)
client/vendor/github.com/cockroachdb/cockroach-go/ (0, 2017-11-11)
client/vendor/github.com/cockroachdb/cockroach-go/LICENSE (11295, 2017-11-11)
client/vendor/github.com/cockroachdb/cockroach-go/Makefile (1526, 2017-11-11)
client/vendor/github.com/cockroachdb/cockroach-go/crdb/ (0, 2017-11-11)
client/vendor/github.com/cockroachdb/cockroach-go/crdb/tx.go (4586, 2017-11-11)
client/vendor/github.com/cockroachdb/cockroach-go/crdb/tx_test.go (3665, 2017-11-11)
client/vendor/github.com/cockroachdb/cockroach-go/testserver/ (0, 2017-11-11)
... ...
# cockroach-test-drive
Goal: demo a sample golang service using a cockroach cluster, testing and monitoring rolling database restarts.
Steps:
- [ ] docker-compose cluster with containers:
- [x] 3 identical cockroach nodes with persistent volumes on host
- [ ] golang microservice using `lib/pq` doing continuous reads and writes
- [x] prometheus monitoring database and service nodes
- [x] grafana graphing everything
- [ ] control mechanism to stop/start db nodes on demand
- [ ] sometimes regaining persistent volumes
- [ ] sometimes losing persistent volumes
- [ ] measure recovery time in both cases
- [ ] measure application reaction
## Questions
### How easy is it to write unit/integration tests against Cockroach?
Check out github.com/cockroachdb/cockroach-go/testserver
### How do we make the Postgres client aware of multiple servers?
- https://www.cockroachlabs.com/docs/stable/manual-deployment.html#step-5-set-up-haproxy-load-balancers
- https://github.com/cockroachdb/docs/issues/978
近期下载者:
相关文件:
收藏者: