Skip to content

Clean client history/memory without restarting the client #2340

Closed

Description

@lanougue

Looking to #2328, is there a way to clean (wipe) client history without using client.restart() ?
With many workers (280 in my case) I always get a timeout error from workers when calling client.restart()
It also takes a (very) long time to initiate all workers so it would be nice to be able to avoid it.

Thus, it could be very useful if there was a way to clean the informations stored by the client without restarting it. At least a workaround ?

Activity

  1. mrocklin commented on Nov 7, 2018

    @mrocklin
    Member
  2. lanougue commented on Nov 8, 2018

    @lanougue
    Author

    Not so easy to look into, but I'll give a try.
    After some other tests it seems that even doing client.restart() do not clean client and/or scheduler "history".
    Do you know where "history" is stored in the client and/or the scheduler object ?

    Any chance that this issue is be linked to #1866 ?

  3. mrocklin commented on Nov 8, 2018

    @mrocklin
    Member
  4. lanougue commented on Nov 8, 2018

    @lanougue
    Author

    After doing some calculation and erasing all variables that contains the results, the memory used by the process running the client, do not come back to its initial level. Closing totally the client and restarting a new client make the memory come back to its inital level. I thus suspect that some information (that I call "history") is strored in some way by the client and/or the scheduler.
    For instance, in #2253 you mentioned that some Bokeh task stream is kept available even after restarting the client.

    So, I'm looking a way to make the client/scheduler coming back to the initial stage (at least in terms of used memory) without having to totally kill the client and restart a new one.

  5. mrocklin commented on Nov 8, 2018

    @mrocklin
    Member
  6. mrocklin commented on Nov 8, 2018

    @mrocklin
    Member
  7. lanougue commented on Nov 8, 2018

    @lanougue
    Author

    I will look into that but I wonder if this little amounts of data can not become huge when having large number of workers.
    On the HPC I have, I usually use 560 workers (20 nodes with 28 cpus/process each). Only starting the workers takes more than 10 minutes... I set up the timeout limit to 15 minutes in order to have the first worker still running when the last one is ready.

  8. lanougue commented on Nov 8, 2018

    @lanougue
    Author

    Any idea where these logs messages are stored ?

  9. mrocklin commented on Nov 8, 2018

    @mrocklin
    Member
  10. lanougue commented on Nov 8, 2018

    @lanougue
    Author

    Thanks a lot,
    I will report back later on both issues...

  11. lanougue commented on Dec 12, 2018

    @lanougue
    Author

    I finally found that my problem of memory is a hardware problem on the HPC I use. I close this issue for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions