Giter Site home page Giter Site logo

storj_success_rate's Introduction

Success Rate Tool

This script calculates success rates for audits, downloads, uploads and repair traffic on Linux systems.

Alexey built a similar script for windows users.

How to use it

If your operating system can run bash shell scripts you can run the script directly. Otherwise you can run it with the official bash docker image.

The script accepts one optional argument, which is:

  • a) The name of the docker storage node docker container.
  • b) The path to a storage node log file.

When the argument isn't provided, then it defauls to option (a) using storagenode as a container name.

Examples running it directly

Passing a docker container name: ./successrate.sh storjv3

Passing a log file: ./successrate.sh /data/storagenode.log

Examples running it through docker

Unfortunately, running it through a docker container you can only run it with option (b), passing a log file.

docker run --rm --mount "type=bind,source=<<path to successrate.sh folder>>,target=/tools,readonly" --mount "type=bind,source=<<path to the log file folder>>,target=/data,readonly" bash /tools/successrate.sh /data/storagenode.log

Remember to update the "<< path...>>" place holders in the above instruction to your correct local paths.

Locale error fix

If you see errors like ./successrate.sh: line 68: printf: 99.8048: invalid number try running the script with

LC_ALL=C ./successrate.sh

Example output:

========== AUDIT ==============
Critically failed:     0
Critical Fail Rate:    0.000%
Recoverable failed:    0
Recoverable Fail Rate: 0.000%
Successful:            14
Success Rate:          100.000%
========== DOWNLOAD ===========
Failed:                0
Fail Rate:             0.000%
Canceled:              3
Cancel Rate:           1.000%
Successful:            297
Success Rate:          99.000%
========== UPLOAD =============
Rejected:              0
Acceptance Rate:       100.000%
---------- accepted -----------
Failed:                0
Fail Rate:             0.000%
Canceled:              553
Cancel Rate:           28.417%
Successful:            1393
Success Rate:          71.583%
========== REPAIR DOWNLOAD ====
Failed:                0
Fail Rate:             0.000%
Canceled:              0
Cancel Rate:           0.000%
Successful:            0
Success Rate:          0.000%
========== REPAIR UPLOAD ======
Failed:                0
Fail Rate:             0.000%
Canceled:              0
Cancel Rate:           0.000%
Successful:            2
Success Rate:          100.000%
========== DELETE =============
Failed:                0
Fail Rate:             0.000%
Successful:            145
Success Rate:          100.000%

storj_success_rate's People

Contributors

ifraixedes avatar renesmeekes 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.