apache / apache/openwhisk

How to correctly modify OpenWhisk’s gateway blocking limit from source code (currently 60s)

Open
#5,467 13 comments 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
6.8k
Forks
1.2k
Avg merge
2d 14h
Merged PRs (30d)
2

Description

Because our project requires a large number of HTTP request tests and our functions (modern machine learning workflows) have relatively long execution times, our team believes that it is necessary to compile the Docker image of OpenWhisk from the source code and modify the 1min gateway blocking limit.
We have made a number of source code modifications for this purpose, as follows:
1. In the source code part of the controller, we modify application.conf, set request-timeout = 36000s
![image](https://github.com/apache/openwhisk/assets/54056797/758d2461-a613-4c68-a60f-b4946015b29c)
2. In the source code part of the controller, we also modified reference.conf:
![image](https://github.com/apache/openwhisk/assets/54056797/d7ecafc9-effa-43f5-a889-3ab460d5fb90)
3. In the common Scala module, we also modified application.conf:
![image](https://github.com/apache/openwhisk/assets/54056797/badc1db4-62c6-4151-a3ba-4d34b9ab6ce6)
![image](https://github.com/apache/openwhisk/assets/54056797/9c5ef233-bce7-4c76-b09b-023740c9eef0)
After completing the above three modifications, we used ./gradlew :core:controller:distDocker to compile the Docker image and replaced the image used by our K8s OpenWhisk cluster. We modified value.yaml .

We ensure that the content written in values.yaml meets the requirements:
![image](https://github.com/apache/openwhisk/assets/54056797/58b58712-4e1c-4d8e-8185-05707ba34156)
We also made some modifications to nginx, including the default.conf inside the nginx:1.21.1 image, and the read-only nginx.conf configured using nginx-configmap:
![image](https://github.com/apache/openwhisk/assets/54056797/68f6f2c8-472a-488f-a0ee-b9874411a72d)
![image](https://github.com/apache/openwhisk/assets/54056797/72724abd-34c8-4b84-924b-cc6350bee857)
However, when we used curl to test, we found that it did not seem to work completely. The blocking of the nginx gateway was overcome, but the following information was printed:
![image](https://github.com/apache/openwhisk/assets/54056797/7784bd9c-bbe7-49f3-8093-ef2452e9793c)
So, what modifications do we need to make to overcome this problem? Looking forward to your guidance!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.