GithubHelp home page GithubHelp logo

db-setup's Introduction

db-setup

Scripts

Use these scripts to quickly launch databases.

1. ElasticSearch

Download ElasticSearch

> wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.1.0-linux-x86_64.tar.gz
> tar -xzf elasticsearch-8.1.0-linux-x86_64.tar.gz

Run the script:

   usage: python scripts/start_elasticsearch.py [-h] [-n N_NODES] [-p PORT]

   options:
   -h, --help            show this help message and exit
   -n N_NODES, --n-nodes N_NODES
               total number of nodes, default 3
   -p PORT, --port PORT  
               port number to use, default 55781
  --hosts-list HOSTS_LIST
  				A file containing a list of hosts to choose from, one per line. If not provided, a random list of hosts will be used.

These are some parameters set inside the scripts/start_elasticsearch.py that may be modified as wished:

PORT_DEFAULT = 8529
NODES_DEFAULT = 3
MASTER_IP = 'compute-10-16'
DB_SETUP_PATH = '/home/sja082/db-assignment/db-setup/'

To kill, simply press Ctrl + C. The script will kill all the nodes launched and exit.

2. ArangoDB

Download ArangoDB

> wget https://download.arangodb.com/arangodb39/Community/Linux/arangodb3-linux-3.9.0.tar.gz
> tar -xzf arangodb3-linux-3.9.0.tar.gz

Run the script (the port can't be changed currently since the started arangodb binary does not allow it. The default port is 8529):

   usage: python scripts/start_arangodb.py [-h] [-n N_NODES]

   options:
   -h, --help            show this help message and exit
   -n N_NODES, --n-nodes N_NODES
               total number of nodes, default 3
  --hosts-list HOSTS_LIST
  				A file containing a list of hosts to choose from, one per line. If not provided, a random list of hosts will be used.

3. Redis

The variables can be set inside the script scripts/redis-deploy.sh. Install Redis and run the script to launch the cluster.

> bash scripts/redis-deploy.sh 

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.