Giter Club home page Giter Club logo

riak_control's Introduction

What is Riak Control?

Riak Control is a set of webmachine resources, all accessible via the /admin/* paths, allow you to inspect your running cluster, and manipulate it in various ways.

How Do I Start Riak Control?

By default, Riak Control is disabled. There are a few, simple steps to get it up and running.

Modify the Node’s app.config File.

Riak Control is completely managed through the app.config file for Riak. Riak Control requires SSL for authentication purposes and therefore you will need to enable HTTPS, SSL, and riak_control.

Enable HTTPS and SSL in riak_core:

In the riak_core section of app.config, there should sections for HTTPS and SSL commented out. You will need to uncomment them back in.

WARNING: In order for your node to be accessible via HTTP and the riak_control admin panel to be available via HTTPS, you will need to change the HTTPS port to something else:

{https, [ {"127.0.0.1", 8069} ]}

If you have Riak 1.0.2 or later, then when you installed Riak a default, self-signed SSL certificate was created for you and put into the etc/ configuration folder for Riak. If these files are not there, you will need to either generate your own self-signed certificate (http://www.akadia.com/services/ssh_test_certificate.html) or modify the app.config to point to your own:

{ssl, [ {certfile, "./etc/cert.pem"},
        {keyfile, "./etc/key.pem"}
      ]}

Enable riak_control and setup basic authentication

In the riak_control section of app.config, first you’ll need to make sure that it is enabled:

{enabled, true}

Next, you’ll need to specify the style of authentication you would like performed when accessing the admin panel. Currently the only valid authentication styles are ‘userlist’ and ‘none’.

{auth, userlist}

If you choose ‘userlist’ as your authentication method, you need to also create one. You specify a list of usernames and passwords (as plaintext) that your administrators will use to connect to the admin panel.

{userlist, [{"username", "password"}, ...]}

Finally, the Riak Control admin panel is broken up into several sections, each can be toggled on and off. Currently, the only section is the ‘admin’ section. You need to ensure that it is enabled.

{admin, true}

Start or Restart Riak

Once the above changes have been made, you can now start or restart your Riak node. You will then be able to access the admin panel by pointing your browser to it:

https://127.0.0.1:8069/admin

In the above URL, it was assumed that 8069 was used as the SSL port in your app.config file.

What Information Does Riak Control Provide?

The Riak Control admin panel is broken up into several sections.

Snapshot

This is a quick “health check” for your cluster. If Riak Control finds anything worrisome, it will let you know and provide links to pages where you can diagnose and/or fix the problem.

Cluster

This is a high-level overview of your cluster. It lists each of the nodes in the cluster and their current status, partition ownerships, and memory usage. If a node is currently offline it will be red.

If you click on a node, the details to the right should provide you with some additional actions you can perform on the node (e.g. shutdown, leave the cluster, mark as ‘down’ if offline).

Additionally, at the top of the list of nodes is a field that you can use to either add another, single node to this node’s cluster or to join this node to an existing cluster. Just type in the name of the node you wish to add/join and click “Add”.

Ring

This Ring Overview gives you a quick glimpse into all the partitions in your ring, what nodes own them, whether they are offline, handing off data, and what services are currently running on them (e.g. kv, pipe, search).

You can quickly filter the partitions and see only those you are interested in.

There will be many more features and enhancements to this section in the immediate future…

Stats

Coming soon…

This section will allow you to inspect the riak-admin status attributes for any node in your cluster.

Objects

Coming soon…

This section will allow you to add simple objects to your cluster and fetch/update existing nodes.

Map/Reduce

Coming soon…

This section will allow you to build and execute custom map/reduce queries as well as save them for use later.

Graphs

Coming soon…

This section will display live graphs that will help you to diagnose problems you may be having with your node(s) and/or cluster. It will also be pretty to just sit back and watch. ;-)

Console

Coming soon…

This section will allow you to see live updates of any of your nodes’ log files.

Support

Coming soon…

This section will easily let you file a bug/ticket with Basho. It will also bundle up any graphs, stats, and other data that will assist Basho in diagnosing and fixing the problem.

riak_control's People

Contributors

beerriot avatar jaredmorrow avatar jgnewman avatar massung avatar russelldb avatar

Stargazers

 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.