Code Monkey home page Code Monkey logo

docker_scylladb's Introduction

scyllaDB run on 3 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 : scy1 | heartbeat ok

look .env file for select which docker compose file start with docker compose up & down

TEST

  • attach shell one of them run : cqlsh -e "USE sample; SELECT * FROM users;"

auto way generated from chat gpt 3.5 docker-compose-auto.yml

  • all config in yml file.

manual way: docker-compose-manual.yml lifecycle

  • docker build from ./manual.Dockerfile
  • start from /app/init_sv.sh
  • after start entrypoint_db.sh in background and start start_scylla.py
  • start_scylla.py run supervisord
  • after ready all nodes entrypoint_db.sh import sample.sql

error solving :

  • error: Could not setup Async I/O: Not enough request capacity in /proc/sys/fs/aio-max-nr.

  • solving: On the docker host Open /etc/sysctl.conf file and add lines below: (on the wsl sub system where the docker is runing )

fs.aio-max-nr = 1048576
fs.file-max = 1048576

then apply settings with: sysctl -p

or temporary fixes : run echo "1048576" > /proc/sys/fs/aio-max-nr

Ref links

MyNotes:

  • 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 system prune --all --volumes

docker_scylladb's People

Contributors

kyesil avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.