Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

start on kernel warming #726

Closed
wants to merge 4 commits into from
Closed

start on kernel warming #726

wants to merge 4 commits into from

Conversation

timkpaine
Copy link
Member

No description provided.

@timkpaine
Copy link
Member Author

timkpaine commented Sep 26, 2020

λ p3 -m voila bqplot.ipynb --VoilaConfiguration.warm_kernel=True --VoilaConfiguration.warm_kernel_preexecute_cell_count=0 --VoilaConfiguration.warm_kernel_preload_count=0 --no-browser
[Voila] Using /var/folders/s3/1mjw0y192zg3450tkkn1yfnm0000gn/T to store connection files
[Voila] Storing connection files in /var/folders/s3/1mjw0y192zg3450tkkn1yfnm0000gn/T/voila__dna4985.
[Voila] Serving static files from /Volumes/MacintoshHD/username/Programs/projects/voila/voila/static.
[Voila] CRITICAL | Enabling kernel warming
[Voila] CRITICAL | Preloading 0 kernels
[Voila] Voilà is running at:
http://localhost:8866/
[Voila] WARNING | Notebook bqplot.ipynb is not trusted
[Voila] Kernel started: cb687d28-b9f4-4d73-95b0-e5cb225744ff
WARNING:tornado.general:404 DELETE /api/kernels/a0d46acf-8d0a-43bf-9edf-aa1d42f11ef0?1601087480270 (::1): Kernel does not exist: a0d46acf-8d0a-43bf-9edf-aa1d42f11ef0
[Voila] WARNING | Kernel does not exist: a0d46acf-8d0a-43bf-9edf-aa1d42f11ef0
WARNING:tornado.access:404 DELETE /api/kernels/a0d46acf-8d0a-43bf-9edf-aa1d42f11ef0?1601087480270 (::1) 205.59ms
[Voila] CRITICAL | Done warming cells
[Voila] CRITICAL | Executing cell: 0
[Voila] CRITICAL | Executing cell: 1
[Voila] CRITICAL | Executing cell: 2

@timkpaine
Copy link
Member Author

timkpaine commented Sep 26, 2020

preexecute 3 instances, 1 cell each

λ p3 -m voila bqplot.ipynb --VoilaConfiguration.warm_kernel=True --VoilaConfiguration.warm_kernel_preexecute_cell_count=1 --VoilaConfiguration.warm_kernel_preload_count=3 --no-browser
[Voila] Using /var/folders/s3/1mjw0y192zg3450tkkn1yfnm0000gn/T to store connection files
[Voila] Storing connection files in /var/folders/s3/1mjw0y192zg3450tkkn1yfnm0000gn/T/voila_wp_zlc5y.
[Voila] Serving static files from /Volumes/MacintoshHD/username/Programs/projects/voila/voila/static.
[Voila] CRITICAL | Enabling kernel warming
[Voila] CRITICAL | Preloading 3 kernels
[Voila] Voilà is running at:
http://localhost:8866/
[Voila] WARNING | Notebook bqplot.ipynb is not trusted
[Voila] Kernel started: fa6ff1ff-9956-49d6-ac06-b76c00ac0738
[Voila] WARNING | Notebook bqplot.ipynb is not trusted
[Voila] Kernel started: 069f8be3-e166-4d46-8624-9fb51efc6134
[Voila] WARNING | Notebook bqplot.ipynb is not trusted
[Voila] Kernel started: 4c4075c5-4fc2-4dfd-8ab2-4600d913f3bf
[Voila] CRITICAL | Warming cell: 0
[Voila] CRITICAL | Done warming cells
[Voila] CRITICAL | Warming cell: 0
[Voila] CRITICAL | Done warming cells
[Voila] CRITICAL | Warming cell: 0
[Voila] CRITICAL | Done warming cells
[Voila] CRITICAL | Skipping reexecution of pre-warmed cell: 0
[Voila] CRITICAL | Executing cell: 1
[Voila] WARNING | Notebook bqplot.ipynb is not trusted
[Voila] CRITICAL | Executing cell: 2

@timkpaine
Copy link
Member Author

timkpaine commented Sep 26, 2020

@SylvainCorlay @davidbrochart promising results, a single hot kernel preexecuting all cells on the left, a non-hot kernel on the right. The hot kernel is refilled as its used so rapid refresh exhausts the pool (since I set it to only 1 instance).

ezgif com-video-to-gif

…nd, zmq exhausts open files which makes me suspect something is failing to shut off correctly
@timkpaine timkpaine closed this Nov 15, 2021
@timkpaine timkpaine deleted the kernel_warming branch November 15, 2021 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant