Open tlvu opened 2 years ago
Should probably be moved to https://github.com/bird-house/twitcher/ repo. I don't think this has anything to do with Magpie.
Opened corresponding bugs on Twitcher side https://github.com/bird-house/twitcher/issues/113.
I originally open here since the Magpie adapter is known to possibly can have impact on Twitcher performance, as seen with the caching feature.
@tlvu Maybe worth a shot to investigate if this is caused by caching requests. If the duration of caching is adjusted to a lower value or is disabled entirely, a significant drop in memory could indicate that cached responses remain active although out-of-date, until the next request invalidates them. (https://github.com/bird-house/birdhouse-deploy/blob/master/birdhouse/config/twitcher/twitcher.ini.template#L44-L45)
For the CPU use though, I have no idea what could be the cause.
Maybe worth a shot to investigate if this is caused by caching requests.
On Ouranos production, we still have the caching feature disabled.
FYI, you can track all config diff between default birdhouse-deploy and our production deployment by doing the diff between the repos: https://github.com/bird-house/birdhouse-deploy/compare/master...Ouranosinc:master
In this case, I further believe the issue is on Twitcher side. Once access verification is obtained from Magpie, it returns to let Twitcher handle the request by itself.
Describe the bug
Twitcher is constantly taking lots of Memory and Cpu.
We have had a lot of Thredds activity lately so it's normal for the Cpu and Memory consumption to increase for Thredds since it has a caching feature.
But Twitcher saw a proportionally increase which is puzzling to me and stay like this during idle time.
To Reproduce Steps to reproduce the behavior:
Expected behavior Twitcher Cpu and Memory would increase during Thredds transfer/activity but should go down during idle time.
Desktop (please complete the following information):
/version
endpoint] https://pavics.ouranos.ca/magpie/version {"version": "3.19.1", "db_version": "cb92ff1f81bb", "code": 200, "detail": "Get version successful.", "type": "application/json", "path": "/version", "url": "https://pavics.ouranos.ca/magpie/version", "method": "GET"}