Coder Social home page Coder Social logo

Comments (10)

jtgreen-cse avatar jtgreen-cse commented on May 26, 2024 1

I'd be interested in seeing this merged. I've come across this issue and have this use case.

Edit: @rskjetlein I found your fork, here's the commit that fixes it -->rskjetlein@6f6d2cb

from stenographer.

gconnell avatar gconnell commented on May 26, 2024

You're right that this is not an expected use-case, but you're also right that it's one we should probably support, since there's nothing saying you CAN'T do it. Given that, if you've got a PR you'd like to send out I'm happy to take a look.

from stenographer.

emillynge avatar emillynge commented on May 26, 2024

I can very quickly have a PR on solution 1) :)

Speaking of PRs, would you mind taking a look at #213 ? It has been open for about a month now and fixes a bug I found.

from stenographer.

gconnell avatar gconnell commented on May 26, 2024

Done, thanks, and sorry for the late reply!

from stenographer.

rskjetlein avatar rskjetlein commented on May 26, 2024

Was this fixed?

from stenographer.

rskjetlein avatar rskjetlein commented on May 26, 2024

I made a working solution for 1. mentioned. Can assemble a PR for it if any interest

from stenographer.

rskjetlein avatar rskjetlein commented on May 26, 2024

Will have a look. Its been dormant for some time...

from stenographer.

rskjetlein avatar rskjetlein commented on May 26, 2024

I'd be interested in seeing this merged. I've come across this issue and have this use case.

Edit: @rskjetlein I found your fork, here's the commit that fixes it -->rskjetlein@6f6d2cb

For the most part its working fine, during very high traffic rate (+10G) a unbalanced deletion can be observed.

from stenographer.

jtgreen-cse avatar jtgreen-cse commented on May 26, 2024

I've been testing the random thread picking strategy with 16 threads .. that makes it too random. Threads delete files very unevenly. Like suggested I think moving the logic in env and deciding which thread to pick for delete based on which has the most files may solve this.

from stenographer.

rskjetlein avatar rskjetlein commented on May 26, 2024

I've been testing the random thread picking strategy with 16 threads .. that makes it too random. Threads delete files very unevenly. Like suggested I think moving the logic in env and deciding which thread to pick for delete based on which has the most files may solve this.

I extended the API with a object delete function and had an external process that used the same API to control the disk fill percentage. The external process took into account other things that used the same disk, might be a usable approach for you.

Please reach out if you want to code snippets. [email protected]

from stenographer.

Related Issues (20)

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.