Giter VIP home page Giter VIP logo

Comments (3)

dustyny avatar dustyny commented on June 2, 2024

Sorry my mistake.. The additional processes came up when my Database cluster scaled up

from deco.

alex-sherman avatar alex-sherman commented on June 2, 2024

Do you mean this is still an issue, or were you able to resolve it?

muliprocessing.Pool is supposed to default to the number of physical cores the machine has, but you can explicitly pass in a number of processes to deco:

@concurrent(processes=36)
def do_work():
   ...

You may also be hitting some other bottleneck in either deco, or multiprocessing.Pool. I've never attempted to run deco on anything with 36 cores myself, so seeing someone trying it is awesome!

from deco.

dustyny avatar dustyny commented on June 2, 2024

Thank you for getting back to me so quickly. I've had to manually set the number of CPUs. It didn't seem to auto-detect. I can try that again and see if is true or if I made a premature judgement there.

I didn't realize I was pointed to the wrong end point (write vs read) and my Database wasn't scaling up. Since the database server was maxed out at 100%, the other Deco processes were sitting idle. Once I correct that, the cluster scaled up and I was able to use all 36 processors..

Great work btw.. I've never had such an easy time scaling up python.. 👍

from deco.

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.