Closed javelino-machship closed 3 years ago
I think this error simply means that redis is not reachable from OpenWhisk actions.
How are you deploying OpenWhisk? You should not be using 127.0.0.1
for the redis host. This ip is meant to be resolved from the context of a running action. Depending on how you run OpenWhisk you may need a public redis with a public ip, or you may need to establish a common network between your redis deployment and OpenWhisk and use a proper ip for this network. To start with you may try using using a "real" ip for your host (not loopback).
@tardieu, Thanks for answering, I deployed openwhisk using kubernetes.
I'm currently trying to setup a common network between redis and openwhisk.
I think its not working? I tried connecting the redis-server(using docker) in the openwhisk network which in this case is "host", but still getting the same error,
do you guys install a separate redis server or use the redis-server included in the openwhisk kubernetes setup?
got it working, i changed the url to the container ip so the parameter looks like this, im closing this one
{
"name": "complexwf",
"params": {
"$composer": {
"openwhisk": {
"ignore_certs": true
},
"redis": {
"uri": "redis://172.17.0.2:6379"
}
},
"value": "from-input"
}
}
Hi Guys - have been trying to use the combinator composer.parallel() but I always get the following error when executing the action,
maybe im missing a step? or openwhisk-composer is not compatible with redis inside a docker container?
I've setup my redis server in DOCKER and have tested it using the redis explorer in vscode and is working, I can add, delete keys etc.
parameter
compose file