Giter Club home page Giter Club logo

daikon's People

Contributors

jkoelker avatar neogenix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

daikon's Issues

Implement Search and Output to JSON

We should be able to search a cluster, and then spit the output to JSON files ! This should of course include exception, and error handling.

Move to anyjson

Move json to anyjson, and add tests to ensure that it's installed.

Implement River Functionality

Rivers should be configurable from the daikon tool, and we should be able to check status, create, delete, etc... This should include exception and error handling of course.

don't use sys.exit in fucntions

sys.exit() should only be called sparingly and usually not with 0.

Functions that need to report a non-zero status, should raise exceptions. The main function should catch these exceptions and translate them into an exit code which main would return.

Then in the if name == 'main' portion it would change to :
exit = main()
if exit:
sys.exit(exit)

Improve Index list to include json output to file

Index list should be able to be spat out to a file, including information from replicas, status, etc... Should perhaps include a verbose command to include more information from the original ES request.

Logging Implementation

I need to have this app actually log to syslog, and use proper logging handlers. Should also have log files, configuration around log files, and the ability to spit to syslog, perhaps configuration around that too.

Targeting Version 1.1

Implement Node Status

We should be able to show the stats view of a Node, and this should include error and exception handling.

Implement multiple indexes on the command line

We should be able to specify multiple indexes on the command line for delete and create, perhaps like this :

daikon index create
daikon index create --cluster
daikon index create --replicas --shards

Create Packages

Create some packages... setup.py, and other python doodads.

Implement Node List

We should be able to list all functioning nodes in a cluster, and their IP's. This should include error, and exception handling.

'node status' fails with Name or service not known

[root@kale-testbox ~]# daikon node list
SUCCESS: Fetching Node List :

 Nodes:
     Node: eLDk7SiKTfG425N21SPV0g
     Node: r71N-indT0SkZ1yFHWmhng
     Node: UKBJWxSLR8m6u1vR98T3_g
     Node: tb2Ve4dHTyCHC-RJ5c2t9g
     Node: lLDlsSmwQXWsiGJKWWOUwA
     Node: 8TvL_m--TrOW8JHjjcq2sQ

[root@kale-testbox ~]# daikon node status eLDk7SiKTfG425N21SPV0g --extended
ERROR: Fetching Node Status : "eLDk7SiKTfG425N21SPV0g" - <urlopen error [Errno -2] Name or service not known>

Implement Export, and Import Index

We should be able to do something like this to export an index :

daikon index export
daikon index export --cluster
daikon index export --file --format json

We should be able to do something like this to import an index :

daikon index import --file --format json
daikon index import --cluster --file --format json

This should include error, and exception handling.

Implement Node Shutdown

We should be able to shut down a Node, and this should include error and exception handling.

Implement Cluster Status View

We need to be able to show the cluster health, should show basic information, also should have error and exception handling.

Implement Cluster Shutdown

We should be able to shut a cluster down completely, this should also include error, and exception handling.

Fails running 0.18 actions against 0.17

[kale@kale-testbox~]$ daikon node status 10.35.69.119 --extended
SUCCESS: Fetching Index Status : "10.35.69.119"

Status:
Node Status:
Cluster: logstash
ID: nzAYwPTmRxyLjpFnhd694g
Name: Cecilia Reyes
Index Status:
Size:
Traceback (most recent call last):
File "/usr/bin/daikon", line 9, in
load_entry_point('daikon==1.02', 'console_scripts', 'daikon')()
File "/usr/lib/python2.6/site-packages/daikon-1.02-py2.6.egg/daikon/daikon.py", line 186, in main
es_config.config['port'], es_args.extended)
File "/usr/lib/python2.6/site-packages/daikon-1.02-py2.6.egg/daikon/modules/es_node.py", line 31, in node_status
print '\t\t\t Size:', data_result[u'nodes'][node][u'indices'][u'store'][u'size']
KeyError: u'store'

Change Index List To /_cluster/state

Will allow to show closed indexes, and then use that to fetch information about the closed indexes from other calls. Will require more than one call.

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.