Coder Social home page Coder Social logo

clustershell-project's Introduction

clustershell-project

We need to add our superhost to the known hosts of all nodes using ssh to connect without requiring a password

Edit /etc/clustershell/groups to add a group (nodeset) in the following manner :

name_of_the_group: IP1, IP2, IP3

to execute a command from the commandline : clush -w @node_all "the command"

Setting up the project

  • Run multiple VMs
  • Start ssh in all VMs
  • Configure the machines to connect automatically without password in the following manner :
    • In the server (admin of the cluster)
ssh-keygen -t rsa #run this command only once
ssh [IP] mkdir -p .ssh  #run this command for every VM
cat .ssh/id_rsa.pub | ssh [IP] 'cat >> .ssh/authorized_keys' #run this command for every VM
  • Add the follow lines to the hosts file : /etc/hosts
    • ip hostname;for every VM

Exp :

192.168.1.1 test1
192.168.1.2 test2 
  • Edit the file /etc/clustershell/groups:
    • name_of_the_group: hostname1, hostname2

Exp :

node_all:  test1, test2
  • To test your appliance run :
clush -w @node_all "echo hi"

Interface architecture

├── Metaservices Handling
│   └── List Metaservices
│       ├── List Metaservices
│       ├── Show Metaservice Details
│       ├── Show Detailed Status
│       └── Show Status
└── Simple Service Handling
    ├── List Nodes
    │   └── List
    ├── List Services
    │   ├── Add Service
    │   └── Delete Service
    └── Manage Services
        ├── Start
        ├── Restart
        ├── Stop
        └── Status

TODO

  • learn about usefull commands for services
  • learn the pythonic way to interact with clustershell
  • add an HMI
  • add node from our program
  • use the hosts file to give up IPs
  • add colors
  • add dependancy management

clustershell-project's People

Contributors

faridtsl avatar

Watchers

 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.