GithubHelp home page GithubHelp logo

timkoopmans / scylladb-quick-demo-rs Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5.87 MB

A quick demonstration of ScyllaDB with configurable read/write throughput

HTML 0.33% JavaScript 0.51% Rust 0.90% CSS 0.07% Dockerfile 0.03% Makefile 0.03% RenderScript 98.13%

scylladb-quick-demo-rs's Introduction

ScyllaDB Quickstart Demo

This is a quick start demonstration of ScyllaDB with Docker.

To run the demo for yourself. First start a single node cluster with the following command:

docker run -d --rm --name node1 scylladb/scylla

Wait 60s or so for the node to start. Tip: you can view ScyllaDB logs with:

docker logs -f node1

Next, run the demonstration application which will simulate artificial load from an Internet of Things app, measuring sensor data from millions of unique devices:

docker run --rm --link node1:node1 \
    --publish 8000:8000 \
    --env DATABASE_URL=node1:9042 \
    --env ROCKET_ADDRESS=0.0.0.0 \
    --name demo timkoopmans/scylladb-quickstart

The demo application will now be running on port 8000. You can access the application by visiting http://localhost:8000/index.html.

demo.gif

Note: the demo will simulate high load with simulated reads and writes, so you can expect to see the demo app consuming a lot of CPU. You can stop the demo at any time with:

docker stop demo

By default, the app will simulate high volume load with a 20:80 read:write ratio. If you would like to experiment with different ratios, pass them in as command line arguments to the demo application. For example, to simulate a 50:50 ratio:

docker run --rm --link node1:node1 \
    --publish 8000:8000 \
    --env DATABASE_URL=node1:9042 \
    --env ROCKET_ADDRESS=0.0.0.0 \
    --name demo timkoopmans/scylladb-quickstart 50 50

Once you're happy with the demo, you can stop all the containers with:

docker stop node1 demo

scylladb-quick-demo-rs's People

Contributors

timkoopmans avatar

Stargazers

 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.