knative / knative/func

Support low-ulimit platforms in Python runtime

Open
#3,513 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
365
Forks
223
Avg merge
2d 3h
Merged PRs (30d)
25

Description

The Python function runtime should raise its soft ulimit for open files
to match the hard limit at startup. Go and Java runtimes already do this
automatically. Without it, the Python runtime fails under load on
platforms with a low default soft limit (e.g. 1024).

The fix belongs in the middleware startup path.

Related: [SRVOCF-788](https://redhat.atlassian.net/browse/SRVOCF-788)

Contributor guide

Open the contributing guide

Research direction

Start in the middleware startup path for the Python function runtime and compare how the Go and Java runtimes handle their open-file limits. Reproduce the low-soft-limit case, then verify that startup raises the soft limit to the hard limit and that the relevant runtime checks pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, java, python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.