2025-03-27
When I put large data in the Azure environment's broadband AI, it ran for a while and then gave me an error.
I want to retrieve intermediate data in Azure Container App to find out what caused the failure.
Note: The
. :
az containerapp exec \
--name <container app name> \c
--resource-group <resource group name> }
--container <container name> \cHTML
--command "/bin/bash"
.
$ apt update
$ apt install zip
$ cd broadlistening/pipeline
$ zip -r outputs.zip outputs
$ python -mhttp.server 8001
.
API server returns {"status": "ok"} when accessed with HTTPS as usual
This is Azure forwarding the request to an HTTP server running on 8000
Temporarily change this setting to 8001.
Now when you access the API server, you will see the results.zip file you just created and be able to download it.
Don't forget to put it back when you're done downloading.
.
A normal successful report would look like the one on the left, but this one is on the right
25000~ data of 5.2MB of extraction results are output to args.csv.
I think it might be "Out of Memory", but I think it might be so.
list[float].
Python's float is 8 bytes in double precision float64, so total = 1536 × 8 = 12,288 bytes (about 12 KB)
25,000 records would be roughly 300 MB.
I guess a container with 1GB of memory means there's not that much room for applications.
2GB should be more than enough.This page is auto-translated from /nishio/広聴AIからのサルベージ using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.