Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return Riak type (EE/OSS) in /explore/clusters. #102

Merged

Conversation

travisbhartwell
Copy link
Contributor

Adds the "riak_type" key to the cluster info list.

Checks to see if the cluster is Riak EE by seeing if the
riak_repl_console module is available.

Fixes #93 (in part). Does not add riak_version as indicated in discussion in #93.

Adds the "riak_type" key to the cluster info list.

Checks to see if the cluster is Riak EE by seeing if the
riak_repl_console module is available.

Fixes basho-labs#93 (in part).
@travisbhartwell
Copy link
Contributor Author

This is the sample output, from Riak EE:

$ curl http://localhost:9000/explore/clusters/default
{"cluster":{"id":"default","riak_node":"[email protected]","development_mode":true,"riak_type":"ee"},"links":{"self":"/explore/clusters/default"}}

From Riak OSS:

$ curl http://localhost:9000/explore/clusters
{"clusters":[{"id":"default","riak_node":"[email protected]","development_mode":true,"riak_type":"oss"}],"links":{"self":"/explore/clusters"}}

@dmitrizagidulin
Copy link
Contributor

Tested out the branch, works great. Thanks Travis! +1 from me.

dmitrizagidulin added a commit that referenced this pull request Dec 8, 2015
Return Riak type (EE/OSS) in /explore/clusters.
@dmitrizagidulin dmitrizagidulin merged commit 0e0953a into basho-labs:master Dec 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants