Git Product home page Git Product logo

triton-redis-cluster's Introduction

Redis Cluster Creator

The scripts in this repo will spawn redis instances in a cluster on Triton as a tenant. This is not part of Triton itself.

This depends on node-triton. If you don't already have node-triton installed you can run make to install it as a dependency.

How to create a cluster

To create a new cluster, use the spawn_redis_instance.sh script to spawn only one new instance. The account and profile parameters will default to your current triton profile. All other parameters are required.

./spawn_redis_instance.sh -p profile -a account -n network -P prefix -t redis_token
    -p profile  A triton cli profile name
    -a account  Triton cli account
    -n network  Network Name
    -b bastion  Bastion instance name
    -P prefix   Prefix name to identify this cluster
    -t token    Secret token to authenticate this cluster

The network should be a private network, (ideally, a fabric network). The bastion will be used to ProxyJump automatically when using triton ssh. The bastion is a separate instance that needs to have a link on an external network that you can ssh to, and a link on the network specified by the network parameter.

After creating the first instance, verify it has bootstrapped properly by triton sshing to it. If it looks good (there should be both redis and sentinel SMF services running), then you can create additional instances.

The recomended minimum is 3 instances. Create as many as necessary to handle the expected load but you should always have an odd number to guarantee that a qorum can be established in the event of a network split.

triton-redis-cluster's People

Contributors

bahamat 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.