Skip to content

Reduce default websocket frame size and make configurable#5070

Merged
mrocklin merged 3 commits intodask:mainfrom
ian-r-rose:frame-split-size
Jul 15, 2021
Merged

Reduce default websocket frame size and make configurable#5070
mrocklin merged 3 commits intodask:mainfrom
ian-r-rose:frame-split-size

Conversation

@ian-r-rose
Copy link
Collaborator

@ian-r-rose ian-r-rose commented Jul 15, 2021

Supersedes #5052 . In addition to making the default websocket maximum-frame-size smaller, this makes the specific value configurable. It's somewhat redundant with distributed.comm.shard, but the constraints on websockets are sufficiently different that a separate config seems okay.

This does not implement the fix in #5061, as that would read a config value for every frame, which is costly. So the config value will in general not be changed after import time.

  • Tests added / passed
  • Passes black distributed / flake8 distributed / isort distributed

mrocklin and others added 3 commits July 15, 2021 14:38
This also forces us to thread a keyword down through from to_frames to
frame_split_size.
@ian-r-rose ian-r-rose changed the title Frame split size Reduce default websocket frame size and make configurable Jul 15, 2021
@mrocklin mrocklin merged commit 48ec3c5 into dask:main Jul 15, 2021
@mrocklin mrocklin mentioned this pull request Jul 29, 2021
3 tasks
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.

2 participants