Giter Club home page Giter Club logo

daskserver's Introduction

daskserver

Utility to fire up a dask array on computecanada infrastructure. Works with kpy from kslurm to manage python environments.

Instructions

First, start up a job with multiple tasks. Don't use krun for this, as that only starts a job with one task. You want multiple to take full advantage of parallelism. The following command serves as a template, adapt the values to suit your needs:

salloc --nodes 2 --tasks-per-node=2 --mem=16000M --cpus-per-task=3 --time=0-01:00

Then run

daskserver <name of venv>

The venv must be one previously saved via kpy. It needs to have dask and distributed already installed, otherwise this routine will fail. You also need bokeh if you want the dashboard. You can install both via:

pip install 'dask[distributed]' bokeh

The jupyter notebook or python script that will interact with the server should have the exact same venv installed as the dask server to avoid problems. For kjupyter, just use the same venv:

kjupyter --venv <same venv as dask>

Note that the server and workers will run in the background. You'll get control over the terminal back without killing them, but they'll continue to spit output onto the screen. To shut the server down, just exit the slurm job.

exit

Installation

The app is set up to work with pipx:

pipx install git+https://github.com/pvandyken/daskserver

daskserver's People

Contributors

pvandyken avatar

Watchers

 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.