projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into 7607-getting-started-flag
[arvados.git]
/
sdk
/
python
/
arvados
/
keep.py
diff --git
a/sdk/python/arvados/keep.py
b/sdk/python/arvados/keep.py
index 1822af19c6e1173b69c5e979c912dd2aa47235f3..4fa8a4f68399b9eda6345430f1e1bec1ea4fa474 100644
(file)
--- a/
sdk/python/arvados/keep.py
+++ b/
sdk/python/arvados/keep.py
@@
-148,6
+148,8
@@
class KeepBlockCache(object):
self._cache_lock = threading.Lock()
class CacheSlot(object):
self._cache_lock = threading.Lock()
class CacheSlot(object):
+ __slots__ = ("locator", "ready", "content")
+
def __init__(self, locator):
self.locator = locator
self.ready = threading.Event()
def __init__(self, locator):
self.locator = locator
self.ready = threading.Event()
@@
-228,13
+230,13
@@
class Counter(object):
class KeepClient(object):
# Default Keep server connection timeout: 2 seconds
class KeepClient(object):
# Default Keep server connection timeout: 2 seconds
- # Default Keep server read timeout:
64
seconds
+ # Default Keep server read timeout:
256
seconds
# Default Keep server bandwidth minimum: 32768 bytes per second
# Default Keep proxy connection timeout: 20 seconds
# Default Keep server bandwidth minimum: 32768 bytes per second
# Default Keep proxy connection timeout: 20 seconds
- # Default Keep proxy read timeout:
64
seconds
+ # Default Keep proxy read timeout:
256
seconds
# Default Keep proxy bandwidth minimum: 32768 bytes per second
# Default Keep proxy bandwidth minimum: 32768 bytes per second
- DEFAULT_TIMEOUT = (2,
64
, 32768)
- DEFAULT_PROXY_TIMEOUT = (20,
64
, 32768)
+ DEFAULT_TIMEOUT = (2,
256
, 32768)
+ DEFAULT_PROXY_TIMEOUT = (20,
256
, 32768)
class ThreadLimiter(object):
"""Limit the number of threads writing to Keep at once.
class ThreadLimiter(object):
"""Limit the number of threads writing to Keep at once.
@@
-629,7
+631,7
@@
class KeepClient(object):
seconds. Because timeouts are often a result of transient server
load, the actual connection timeout will be increased by a factor
of two on each retry.
seconds. Because timeouts are often a result of transient server
load, the actual connection timeout will be increased by a factor
of two on each retry.
- Default: (2,
64
, 32768).
+ Default: (2,
256
, 32768).
:proxy_timeout:
The initial timeout (in seconds) for HTTP requests to
:proxy_timeout:
The initial timeout (in seconds) for HTTP requests to
@@
-637,7
+639,7
@@
class KeepClient(object):
(connection_timeout, read_timeout, minimum_bandwidth). The behavior
described above for adjusting connection timeouts on retry also
applies.
(connection_timeout, read_timeout, minimum_bandwidth). The behavior
described above for adjusting connection timeouts on retry also
applies.
- Default: (20,
64
, 32768).
+ Default: (20,
256
, 32768).
:api_token:
If you're not using an API client, but only talking
:api_token:
If you're not using an API client, but only talking