Giter Site home page Giter Site logo

interact's Introduction

interact

Przygotowaliśmy klaster składający się z 4 instancji, oraz programy do zapisywania / odczytywania wektorów z bazy. Instancej uruchamiane są w kontenerach, każda ze swoim IP. IP z zakresu 172.19.0.0/16. Zalecane ustawienie:

  • node1 172.19.0.2
  • node2 172.19.0.3
  • node3 172.19.0.4
  • node4 172.19.0.5

Wszystkie skrypty zakładają taką konfigurację IP.

Instrukcja użycia:

Budowanie scylli:

./build_scylla.sh

Budowanie narzędzi (cqlsh, nodetool, jmx proxy (potrzebne do nodetool)):

./build_tools.sh

Uruchamianie Scylli

By uruchomić instancje używamy komend (w 4 osobnych terminalach):

  • ./run_scylla.sh node1 172.19.0.2 172.19.0.2
  • ./run_scylla.sh node2 172.19.0.3 172.19.0.2
  • ./run_scylla.sh node3 172.19.0.4 172.19.0.2
  • ./run_scylla.sh node4 172.19.0.5 172.19.0.2

Przygotowywanie tabeli

./prepare_tables.sh

Używanie narzędzi

  • cqlsh: ./bin/cqlsh [Scylla host (e.g. 172.19.0.2)] [Scylla port (e.g. 9042)]
  • jmx proxy: ./scripts/scylla-jmx -jp [port to listen on (e.g. 9043)] -p [Scylla REST API port (e.g. 10000)] -a [Scylla host (e.g. 172.19.0.2)]
  • nodetool (wymaga uruchomionego jmx-proxy): ./bin/nodetool -h [ip jmx proxy listens on (e.g. 127.0.0.1)] -p [port jmx proxy listens on (e.g. 9043)] [command (e.g. status)]

Rozwiązanie

Layout danych

Wektor w bazie danych jest przechowywany jako zbiór wierszy o jednakowym, unikatowym dla danego wektora id.

Wiersze w bazie składają się z:

  • id - wektora
  • coord - numeru współrzędnej wektora (ze zbioru 0..długość wektora-1)
  • value - wartości danej współrzędnej
  • PRIMARY KEY jest parą (id, coord)

Naszym kluczem partycji jest kolumna id. Naszym kluczem klastrującym jest kolumna coord.

interact's People

Contributors

jbhayven avatar lorak-mmk avatar robert-mic avatar

Watchers

James Cloos avatar  avatar  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.