-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Benchmarking upload with annotations
- Loading branch information
1 parent
aaef885
commit 66d0edc
Showing
4 changed files
with
125 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
************* | ||
Configuration | ||
************* | ||
|
||
The synapse python client can be configured either programmatically or by using a | ||
configuration file. When installing the Synapse Python client, the :code:`.synapseConfig` | ||
is added to your home directory. This configuration file is used to store a number of | ||
configuration options, including your Synapse authtoken, cache, | ||
and multi-threading settings. | ||
|
||
A full example :code:`.synapseConfig` can be found in the | ||
`github repository <https://github.com/Sage-Bionetworks/synapsePythonClient/blob/develop/synapseclient/.synapseConfig>`_. | ||
|
||
:code:`.synapseConfig` sections | ||
=============================== | ||
|
||
|
||
:code:`[authentication]` | ||
======================== | ||
See details on this section in the :doc:`credentials` document. | ||
|
||
:code:`[cache]` | ||
=============== | ||
Your downloaded files are cached to avoid repeat downloads of the same file. change 'location' to use a different folder on your computer as the cache location | ||
|
||
:code:`[endpoints]` | ||
=================== | ||
Configuring these will cause the Python client to use these as Synapse service endpoints instead of the default prod endpoints. | ||
|
||
:code:`[transfer]` | ||
================== | ||
Settings to configure how Synapse uploads/downloads data. | ||
|
||
The current reccomended :code:`max_threads` is around 50. This was the best balance in | ||
stability and performance. | ||
See the results of our benchmarking :doc:`../articles/benchmarking`. | ||
|
||
You may also set the :code:`max_threads` programmatically via:: | ||
|
||
import synapseclient | ||
syn = synapseclient.login() | ||
syn.max_threads = 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters