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

[Python]Update state cache size to 100 MB #28877

Merged
merged 2 commits into from
Oct 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdks/python/apache_beam/runners/worker/sdk_worker_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def _get_state_cache_size(experiments):

Returns:
an int indicating the maximum number of megabytes to cache.
Default is 0 MB
Default is 100 MB
"""

for experiment in experiments:
Expand All @@ -256,7 +256,7 @@ def _get_state_cache_size(experiments):
return int(
re.match(r'state_cache_size=(?P<state_cache_size>.*)',
experiment).group('state_cache_size')) << 20
return 0
return 100 << 20


def _get_data_buffer_time_limit_ms(experiments):
Expand Down
Loading