Suggested doc improvements based on first-time user experience
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- docker, helm, kubernetes, python
- Ambito
- cloud, devops, documentation
Direzione di ricerca
Inizia dal README del chart e dalla relativa guida rapida, quindi esamina il Dockerfile, environment.yml e le impostazioni dell’immagine documentati e menzionati nell’issue. Aggiorna la documentazione per spiegare le limitazioni del chart, la configurazione corretta di GatewayCluster, il workflow per le immagini personalizzate e il pinning delle versioni. Il lavoro è completato quando un utente GKE alle prime armi può seguire la guida senza dover fare affidamento sulle discussioni esterne collegate.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Thank you for this fantastic daskhub chart. Myself and @saschahofmann has just set this up on Google Kubernetes Engine. I thought it would be helpful to share our experience, gotchas and potentially suggest improvements to the docs.
Making the decision between charts
We started with the simpler "dask" helm chart.
However it didn't really suit our need for a few reasons:
- The jupyter notebook has no persistent disk storage
- We wanted the ability to control the number of workers, without making updates via helm
It would have been helpful to have these limitations listed on the README, especially the persistence one which I'd imagine most people would expect (I guess will #78 fix it though).
Setting up daskhub
Setting up the initial "daskhub" worked fine, out of the box. The one part that is a bit flaky for us is the "launch cluster" button on the left sidebar. Sometimes it launches a local cluster, rather than via dask-gateway - we haven't worked out why yet.
Small thing - the quickstart does not quite work for us:
>>> from dask_gateway import GatewayCluster
>>> cluster = gateway.new_cluster()
>>> client = cluster.get_client()
Instead we ran:
from dask_gateway import GatewayCluster
# This line is missing
gateway = GatewayCluster()
cluster = gateway.new_cluster()
client = cluster.get_client()
Customising the image 🏗️
For our use case, we needed to build a custom image.
The default tag for daskhub is pangeo/base-notebook:{XXX}. Unfortunately, googling that led us to the pangeo stacks Github and webpage and spent time trying to get the "ONBUILD" images to work.
Thankfully we eventually stumbled on this comment, and led us to the correct repo. The "ONBUILD" trick is neat, just took us time to get our head around.
Anyone else stuck doing the same thing, here is what worked for us:
- Create a local copy of the pangeo/base-notebook directory here. You minimally need the
Dockerfile,apt.txt,environment.yml,postBuildandstart. - Modify the
apt.txtwith system packages, andenvironment.ymlwith your extra conda packages - Docker build and push
- Set this to the
jupyterhub.singleuser.image.{name, tag, pullPolicy}
For the dask custom image, we just used daskgateway/dask-gateway we just did:
# Dockerfile
FROM daskgateway/dask-gateway:0.9.0
COPY ./environment.yml ./environment.yml
RUN conda env update -f environment.yml
# environment.yml
name: base
dependencies:
- # extra packages...
And set this to dask-gateway.gateway.backend.image.{name, tag, pullPolicy}
Making sure to tag specific versions 🤦
A few days ago, we discovered inexplicably that we could no longer build new custom images that worked on the cluster. Turns out we hadn't pinned our images, and dask-gateway 0.9.0 was released.
Obviously completely our fault, but wanted to note that it's essential to have consistent versions for:
- The helm chart
- The
pangeo/base-notebookin your jupyterhub.singleuser Dockerfile - The
daskgateway/dask-gatewayin your Dockerfile
Otherwise things will break in hard to debug ways. A particularly nasty example was using dask dataframe, where we had pandas 1.1.* on the client and 1.0.* on the workers.
We'd be happy to submit a PR to amend the docs or maybe a separate guide if that's useful, please let us know.
Once again, thanks for building this!
- Lingua principale
- YAML
- Stelle
- 100
- Fork
- 92
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di dask/helm-chart
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
dask/helm-chart#512 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
dask/helm-chart#485 · 7 commenti · 7 reazioni ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
dask/helm-chart#445 · 4 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
dask/helm-chart#388 · 1 reazione ·
-
OverrideNames failureAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
dask/helm-chart#385 ·
Tutte le issue di dask/helm-chart
Issue simili
-
bug needs triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
aws-deadline/deadline-cloud#1373 ·
I maintainer di solito rispondono entro 3 giorni
-
area: cli area: cloud bug difficulty:2 help wanted S3: minor
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
manaflow-ai/cmux#15691 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
@aws-cdk/aws-bedrock-alpha needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Tools4everBV/HelloID-Conn-Prov-Target-Microsoft-Entra-ID-Exchange-Online#52 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno