HomeSoftware Heritage

api/sync: allow to configure requests for pool size and retries

Description

api/sync: allow to configure requests for pool size and retries

by default:

  • increase the connection pool size and
  • set retry to 3 (number of retries each connection should attempt).

These config params can be set directly from config files for 'remote'
api clients. For example, to specify these in an objstorage client
config file:

objstorage:
  cls: remote
  args:
    url: swh-objstorage:5003
    max_retries: 5
    pool_connections: 100

Details

Provenance
douarddaAuthored on Jun 28 2019, 11:35 AM
douarddaPushed on Jul 1 2019, 12:16 PM
Differential Revision
D1659: api/sync: allow to configure requests for pool size and retries
Parents
rDCORE9d6aed3056ba: cli/db: do not attempt to create the DB by default
Branches
Unknown
Tags
Unknown
Build Status
Buildable 6590
Build 9191: test-and-build