Skip to content

Commit

Permalink
Copy from_network_metrics defaults from C++ side
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Newton committed Dec 13, 2023
1 parent 6fed24e commit 1619ae2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/pyarrow/io.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -2208,7 +2208,7 @@ cdef class CacheOptions(_Weakrefable):

@staticmethod
def from_network_metrics(time_to_first_byte_millis, transfer_bandwidth_mib_per_sec,
ideal_bandwidth_utilization_frac, max_ideal_request_size_mib):
ideal_bandwidth_utilization_frac=0.9, max_ideal_request_size_mib=64):
"""
Create suiteable CacheOptions based on provided network metrics.
Expand All @@ -2223,10 +2223,10 @@ cdef class CacheOptions(_Weakrefable):
transfer_bandwidth_mib_per_sec : int
Data transfer Bandwidth (BW) in MiB/sec (per connection). The value is a positive
integer.
ideal_bandwidth_utilization_frac : int
ideal_bandwidth_utilization_frac : int, default 0.9
Transfer bandwidth utilization fraction (per connection) to maximize the net
data load. The value is a positive float less than 1.
max_ideal_request_size_mib : int
max_ideal_request_size_mib : int, default 64
The maximum single data request size (in MiB) to maximize the net data load.
Returns
Expand Down

0 comments on commit 1619ae2

Please sign in to comment.