Git Product home page Git Product logo

aerospike-admin's Introduction

Aerospike Admin

Description

Aerospike Admin provides an interface for Aerospike users to view the stat of their Aerospike Cluster by fetching information from a running cluster (Cluster mode) a collectinfo file (Collectinfo-Analyzer), or logs (Log-analyser mode). Start the tool with asadm and run the help command to get started.

Installing Aerospike Admin

Build Dependencies

  • pip >= 9.0.3
  • pex == 1.6.1
  • requests == 2.18.4

Install asadm as PEX

sudo make
sudo make install

Install asadm without PEX

sudo pip install -r requirements.txt
sudo make no_pex
sudo make install

Running Aerospike Admin in Live Cluster Mode.

asadm -h <Aerospike Server Address> Admin> help

Running Aerospike Admin in Log-analyser Mode.

asadm -l [-f <location of logs>] Admin> help

Running Aerospike Admin in Collectinfo Mode.

asadm -c [-f <location of collectinfo>] Admin> help

Dependencies

  • python 3.6+

Python Modules

  • bcrypt == 3.1.4
  • cryptography >= 3.4.7
  • jsonschema >= 2.5.1
  • pexpect: >= 3.0
  • ply: >= 3.4
  • pyOpenSSL: >= 18.0.0
  • pyasn1: >= 0.3.1
  • toml

Mac OSX

Requires Python 3.6+ Run following command to ensure asadm history works properly:

sudo easy_install -a readline

Tests

Dependencies

  • unittest2: 0.5.1
  • Mock: 1.0.1

Setting Test Environment

asadm has unit and e2e tests. To setup environment for e2e tests, execute following steps:

  • Enable security in the aerospike.conf file.
  • Verify that the default user admin exists and that is has the default roles: sys-admin, user-admin, and read-write.
  • Start Aerospike cluster: Test machine should be part of this cluster with 3000 as asinfo port.
  • Write a few records to cluster asbenchmark -h <host> -Uadmin -Padmin
  • Wait for a few seconds so cluster can return histogram output properly.

Running Tests

  • pip install -r requirements.txt
  • ./run_tests.sh

Profiling

Dependencies

  • yappi: 0.92

Run Profiler

asadm --profile Do not exit with 'ctrl+c' exit with the exit command

aerospike-admin's People

Contributors

achorghade avatar ben-at-aerospike avatar bhuvanramk avatar citrusraj avatar dependabot[bot] avatar dwelch-spike avatar hbpatre avatar jdogmcsteezy avatar kportertx avatar marknaero avatar pavangupta01 avatar realmgic avatar robertglonek avatar spkesan avatar volmarl avatar wchu-citrusleaf 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.