backend.ai icon indicating copy to clipboard operation
backend.ai copied to clipboard

feat: Enable the asyncio debug mode in our debug mode

Open achimnol opened this issue 3 years ago • 1 comments

If the asyncio debug mode is enabled, it additionally keeps track of the stack trace of where the tasks are created. (TODO: chaining of task creation tracebacks)

achimnol avatar Aug 25 '22 17:08 achimnol

the port number of aiomonitors changes due to better management of ports?

fregataa avatar Aug 25 '22 18:08 fregataa

the port number of aiomonitors changes due to better management of ports?

Manager and agent's aiomonitor ports were overlapping when there are two or more worker processes in the manager (the actual aiomonitor port used by each worker process = the configured port number + pidx). Unfortunately in development setups this did not cause any explicit error because all these processes run in the same user privilege and the SO_REUSEPORT option. In production, we are already allocating the same "more distant" port numbers.

achimnol avatar Aug 26 '22 01:08 achimnol

I will make separate PRs for future updates of aiomonitor-ng.

achimnol avatar Aug 29 '22 15:08 achimnol