when multiple images are requested for download all the temporal activities fail due to heartbeat timeout
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Committed
|
High
|
Jacopo Rota | ||
3.5 |
Fix Released
|
High
|
Jacopo Rota |
Bug Description
In 3.5.0 when you donwload multiple images at the same time the network is saturated and the activities are killed due to the heartbeat timeout set to 10 seconds. In particular
```
REPORT_INTERVAL = timedelta(
HEARTBEAT_TIMEOUT = timedelta(
DISK_TIMEOUT = timedelta(
DOWNLOAD_TIMEOUT = timedelta(hours=2)
MAX_SOURCES = 5
CHUNK_SIZE = 5 * (2**20) # 5 MB
async with self.session.get(
) as response, lfile.astore(
```
we assume to be able to download 5MB of data every 10 seconds, which is not correct in environments with slow network connectivity or when multiple images are downloaded at the same time and the network is saturated.
As a result, the images are never downloaded
Related branches
- MAAS Lander: Approve
- Jacopo Rota: Approve
-
Diff: 21 lines (+1/-2)1 file modifiedsrc/maasserver/workflow/bootresource.py (+1/-2)
- MAAS Lander: Approve
- Jacopo Rota: Approve
-
Diff: 21 lines (+1/-2)1 file modifiedsrc/maasserver/workflow/bootresource.py (+1/-2)
Changed in maas: | |
assignee: | nobody → Jacopo Rota (r00ta) |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
milestone: | 3.5.0 → 3.6.0 |