GitHub user potiuk edited a comment on the discussion: API-Server occurs memory 
alarm in K8S Env.

This issue was about configuring alarms. BTW We are not using gunicorn any more 
- just starlette and uvicorn I believe. 

Forcing garbage collection in Python is not a good idea. But if you think there 
is a memory leak somewhere and api-server takes more memory for you than 
expected you can try to track your memory allocation with memray - like one of 
the users did for scheduler in https://github.com/apache/airflow/issues/56641 
and report it.

If you want to add "--limit-max-requests" - that might also be a good idea. PRs 
are most welcome. Opening an issue describing this new feature is also a good 
idea, but you will have to wait for someone to volunteer to implement it so 
contributing PR on your own if you need it is the fastest way (and you can test 
it locally by patching it in your version first to see if it works - which adds 
value in such contribution).

GitHub link: 
https://github.com/apache/airflow/discussions/56671#discussioncomment-14690424

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to