GithubHelp home page GithubHelp logo

ganghe / o2locktop Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chenlei0x/lock-collision-detector

5.0 5.0 2.0 160 KB

o2locktop - the Python scripts are used to display DLM lock usages in a OCFS2 cluster.

License: GNU General Public License v2.0

Python 99.95% Shell 0.05%

o2locktop's People

Contributors

brewhouses avatar ganghe avatar zzhou1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

zzhou1 brewhouses

o2locktop's Issues

can't find mount point

I try running o2loktop on one of the nodes with

root@yukon:/home/rsand/o2locktop# o2locktop /mnt/stor2/data2a

o2locktop: error: can't find the mount point: /mnt/stor2/data2a, please cheack and retry

But this is where the ocfs2 filesystem is mounted.

UI/UX: passwordless ssh for all nodes

check and guide user to config passwordless ssh for all nodes

server-out-side-of-cluster> ./o2locktop -n node1:/mnt/shared -n node2 -n node3

Ideally, the intuitive tool should check passwordless ssh for all nodes, otherwise guide user with ssh-copy-id commands. At lease, provide user the knowledge to run prepared commands, ie,

server-out-side-of-cluster> ssh-copy-id root@node1
server-out-side-of-cluster> ssh-copy-id root@node2
server-out-side-of-cluster> ssh-copy-id root@node3

When the number of locks is too big, the tool will get stuck

I create 1,000,000 files on ocfs2 file system, and cat the locking_stat file, There is almost 500,000 item in the file. But the tool get stuck. I use o2locktop in remote mode and I check the cat option that executed by ssh, it takes about 15s. Then it takes about 2 hours to decode the locking_stat file which is unbearable.
And we should check the python sort method and the sort method in the tools to compare and get the good one.
What's more, when process too large number of locks. The CPU usage rate will up to 98%, and memory usage rate will up to 40%.

Outdated information stays in the queue

When an active file at a certain moment is no longer active at the next moment, but since the file was once very active, then even if all the files have stopped at the next moment (there is no lock on the file), the file is still Keeping a higher score, we should use a method to eliminate this situation.

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.