Skip to content

Yugabyte DB multi node playground with docker compose

Notifications You must be signed in to change notification settings

kyesil/docker_yugabyte

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

YugabyteDB run on 4 docker node

quick start: docker compose up it's take time for ready nodes. hot start: 2 minutes you will see ready nodes on console : yb1 | heartbeat ok

TEST

  • attach shell one of them run : ysqlsh -c "\c dbapp SELECT * FROM users;"

manual way: docker-compose.yml lifecycle

  • docker build from ./manual.Dockerfile
  • start from /app/init_sv.sh
  • entrypoint_db.sh & yb-master & yb-tserver start paralel
  • after ready all nodes entrypoint_db.sh import dbapp.sql

Ref links

MyNotes:

  • yugabyte RF minimum 3 with 4 node if we want 1 node failover. because table data split to tablets evey tablet should have leader and follower node. we should have minimum 2 copy to accessing data.
  • all documentation run with docker run --bla --blabla ... ok it's run & i can test it. but i want to create config for portability
  • docker compose file and all images build from .Dockerfile is good idea for portability and development.
  • i try create a configuration in this repository.

fresh start

docker compose down --rmi all --volumes --remove-orphans

About

Yugabyte DB multi node playground with docker compose

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published