2020-10-27 09:43:45 UTC - Jiang PengCheng: hello whiskers, have you met below 
nginx error logs on openwhisk for k8s?
```2020/07/24 09:56:48 [crit] 28#28: *58705 connect() to x.x.x.x:8080 failed 
(99: Cannot assign requested address) while connecting to upstream, client: 
y.y.y.y, server: ~^(?<namespace>[0-9a-zA-Z-]+)\.$, request: "POST 
/api/v1/namespaces/whisk.system/actions/hello1?result=true&blocking=true 
HTTP/1.1", upstream: 
"<http://x.x.x.x:8080/api/v1/namespaces/whisk.system/actions/hello1?result=true&amp;blocking=true>",
 host: "z.z.z.z"```
I got such error logs when did a benchmark and then it returned lots of error 
responses
seems it's caused by the nginx's upstream servers configuration?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1603791825161100
----
2020-10-27 09:49:26 UTC - Jiang PengCheng: after I changed below configuration 
in nginx:
```resolver coredns.kube-system;
set $controllers 
<http://openwhisk-controller.jiangpengcheng.svc.example.com|openwhisk-controller.jiangpengcheng.svc.example.com>;```
to
```    upstream controllers {
        # Mark the controller as unavailable after fail_timeout seconds, to not 
get any requests during restart.
        # Otherwise, nginx would dispatch requests when the container is up, 
but the backend in the container not.
        # From the docs:
        #  "normally, requests with a non-idempotent method (POST, LOCK, PATCH) 
are not passed to
        #   the next server if a request has been sent to an upstream server"
        server 
<http://openwhisk-controller-0.jiangpengcheng.svc.example.com;:8080|openwhisk-controller-0.jiangpengcheng.svc.example.com;:8080>
 fail_timeout=60s;
        server 
<http://openwhisk-controller-1.jiangpengcheng.svc.example.com;:8080|openwhisk-controller-1.jiangpengcheng.svc.example.com;:8080>
 fail_timeout=60s;
        server 
<http://openwhisk-controller-2.jiangpengcheng.svc.example.com;:8080|openwhisk-controller-2.jiangpengcheng.svc.example.com;:8080>
 fail_timeout=60s;
        keepalive 512;
    }```
then errors were gone
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1603792166163600
----
2020-10-27 19:20:31 UTC - Michele Sciabarra: @Erez Hadad in any case I am 
willing to contribute work to help adding this feature in mainstream, and I 
believe also @Rodric Rabbah and @Dragos Dascalita Haut are interested in the 
idea
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1603826431163800?thread_ts=1603551396.137600&cid=C3TPCAQG1
----
2020-10-27 19:50:24 UTC - Erez Hadad: This is good news. In the absence of my 
peer's responses, I will try to find the repository and get you access to 
available code/documentation
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1603828224164000?thread_ts=1603551396.137600&cid=C3TPCAQG1
----
2020-10-27 20:18:35 UTC - parichehr vahidinia: Hi. I installed _openwhisk_ via 
*docker-compose* and the following commands were executed successfully `make 
docker-pull` , `make docker-build` and `make run`. but when I run the `make 
hello-world` , I get the following error: `Error invoking the web action`  
`make: *** [Makefile:416: hello-world] Error 1` . Also when I run `docker ps` 
command, _nginx_ is not in the containers list.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1603829915167700
----

Reply via email to