ctengel / ctengel/simpler-objects
locator API gives 503 if even one obj server takes 2 seconds
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
> maybe related
>
> ```
> $ simpler-objects-async-replicate --replicas 2 http://localhost:29164/ bucket
> Traceback (most recent call last):
> File "simpler-objects-async-replicate", line 8, in
> sys.exit(cli())
> ~~~^^
> File "simpler_objects/async_replicate.py", line 123, in cli
> results = [auto_replica(args.locator, b, args.replicas) for b in buckets]
> ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "simpler_objects/async_replicate.py", line 83, in auto_replica
> res.raise_for_status()
> ~~~~~~~~~~~~~~~~~~~~^^
> File "httpx/_models.py", line 829, in raise_for_status
> raise HTTPStatusError(message, request=request, response=self)
> httpx.HTTPStatusError: Server error '503 Service Unavailable' for url 'http://localhost:29164/bkup-20250818/'
> For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503
> ```
>
> There is an 8 second timeout for the locator, but the locator API only waits 2 seconds for the object servers. If ANY timeout it will 503 back. 2 seconds is usually enough unless an HDD is in powersave mode and has to spin up.
>
> Two non-mutually-exclusive options
> - increase that timeout
> - explore giving partial results vs 503
_Originally posted by @ctengel in [#49](https://github.com/ctengel/simpler-objects/issues/49#issuecomment-4565992830)_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.