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

Runtime Dependencies

There are no runtime dependencies. This is because the python interpreter is now bundled with asadm version 2.6 and later.

Build Dependencies

  • python 3.9
  • pipenv

Build and Install Asadm

  1. Install python 3.9
  2. Install pipenv
  3. Run
sudo make
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

Python Modules

Runtime

  • bcrypt = "==3.1.4"
  • cryptography = "==3.4.7"
  • distro = "==1.5.0"
  • jsonschema = "==2.5.1"
  • pexpect = "==4.4.0"
  • ply = "==3.11"
  • pyasn1 = "==0.4.2"
  • toml = "==0.9.4"
  • yappi = "==0.98"
  • python-dateutil = "==2.8.1"
  • pyOpenSSL = "==18.0.0"
  • setuptools = "*"
  • aiohttp = "==3.8.1"

Build

  • pyinstaller = "==4.7"
  • macholib = * for mac build only

Test

  • pytest = "*"
  • unittest2 = "*"
  • mock = "*"
  • asynctest = "*"

Dev

black = "" flake8 = ""

Tests

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

pipenv
./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

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.