Skip to content

jeremyhuiskamp/cockroach-test-drive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:
    • 3 identical cockroach nodes with persistent volumes on host
    • golang microservice using lib/pq doing continuous reads and writes
    • prometheus monitoring database and service nodes
    • 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?

About

Taking CockroachDB for a test drive

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages