2019-10-26 07:59:17 UTC - Hasnayeen: thanks, I'd love to
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572076757075600?thread_ts=1571330756.011400&cid=C3TPCAQG1
----
2019-10-26 08:05:57 UTC - Rodric Rabbah: We don’t have a particular technical 
write up on this. The short of it is this: every activation assignment is 
tracked in the load balancer to get a sense of the high water mark per invoker. 
Requests are assigned to an invoker by computing the set of allowed Invokers 
for a request and then picking the lowest loaded invoker. If none are found 
pick the home invoker. Every request has a hash that computes it’s canonical 
home. 

The heuristic is to provide elasticity and promote reuse. 
100 : giusdp
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572077157079100?thread_ts=1572021306.074100&cid=C3TPCAQG1
----
2019-10-26 08:06:38 UTC - Rodric Rabbah: The comments in the code may give you 
more details. Look at the load balancer classes. 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572077198079700?thread_ts=1572021306.074100&cid=C3TPCAQG1
----
2019-10-26 08:07:01 UTC - Rodric Rabbah: Did you make the sequence itself a 
webaction 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572077221080100?thread_ts=1572008066.071600&cid=C3TPCAQG1
----
2019-10-26 08:18:58 UTC - Pepi Paraskevoulakou: I made each action separate 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572077938080700?thread_ts=1572008066.071600&cid=C3TPCAQG1
----
2019-10-26 08:22:43 UTC - Rodric Rabbah: The sequence has to be a webaction. 
The individual actions don’t need to be 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572078163081400?thread_ts=1572008066.071600&cid=C3TPCAQG1
----
2019-10-26 08:23:12 UTC - Rodric Rabbah: wsk action update sequence-action-name 
—web true
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572078192082200?thread_ts=1572008066.071600&cid=C3TPCAQG1
----
2019-10-26 08:40:46 UTC - giusdp: Thank you for the reply! I will keep it in 
mind.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572079246082400?thread_ts=1572021306.074100&cid=C3TPCAQG1
----
2019-10-26 08:43:20 UTC - giusdp: I'll start checking the code. Is the 
"general" channel appropriate for these kind of questions?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572079400082600?thread_ts=1572021306.074100&cid=C3TPCAQG1
----
2019-10-26 08:48:18 UTC - giusdp: Because I will definitely have more questions 
in the future.
Studying the load balancing part of openwhisk and trying to contribute to it in 
some way is part of my thesis work. So if you have more to show me I'll gladly 
accept :grin:
Have a nice day!
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572079698082900?thread_ts=1572021306.074100&cid=C3TPCAQG1
----
2019-10-26 09:16:59 UTC - Pepi Paraskevoulakou: now i face another error
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572081419083300?thread_ts=1572008066.071600&cid=C3TPCAQG1
----
2019-10-26 09:17:25 UTC - Pepi Paraskevoulakou: 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572081445083500?thread_ts=1572008066.071600&cid=C3TPCAQG1
----
2019-10-26 14:12:56 UTC - Pepi Paraskevoulakou: Hello even if i try to curl a 
openwhisk url (with putting the parameter --web true) it raises an error “The 
request resource does not exist” the command is the below curl -k 
<https://192.168.111.128/api/v1/web/guest/default/my?name=Mike>, anyone who can 
help me? (i have deploy openwhisk with docker compose)
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572099176086600?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 16:29:00 UTC - Pepi Paraskevoulakou: please help me if you can, i 
created an action from a zip file with a conf docker, when i invoke the action 
it shows me normally the result but when i created the api and i made a curl 
request raises error
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572107340086700?thread_ts=1572008066.071600&cid=C3TPCAQG1
----
2019-10-26 16:33:28 UTC - Ali Tariq: hi, can you explain how you got this url?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572107608087100?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 16:35:55 UTC - Pepi Paraskevoulakou: look this url plays perfectly, 
but i have another action ( a sequence) and when i invoke it with the parameter 
plays normally, but when i create the api and i use curl to call it raises this 
error “There was an error processing your request”
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572107755087300?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 16:35:59 UTC - Ali Tariq: i am assuming this is url of an api u 
created using `wsk api create` with `--response-type json` flag.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572107759087500?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 16:36:38 UTC - Pepi Paraskevoulakou: yes
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572107798087700?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 16:38:57 UTC - Pepi Paraskevoulakou: look when i invoke it plays 
normally but when i use rest api raises error
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572107937088000?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 16:39:16 UTC - Ali Tariq: just to be clear, you have a serverless 
action that takes an input parameter. When you invoke is using wsk cli with 
commandline argument - it works fine, but when i try to invoke it using api 
url, it returns the error.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572107956088400?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 16:39:34 UTC - Pepi Paraskevoulakou: yes
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572107974088600?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 16:44:29 UTC - Pepi Paraskevoulakou: any advice?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572108269088800?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 16:56:37 UTC - Rodric Rabbah: Run the api again (the one which fails 
with curl)
Run wsk activation list 
Run it twice just to be sure you have the most recent time stamp 
Confirm the time stamp matches your curl
And look at the error for the failed activation id by doing wsk activation get 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572108997092200?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 16:59:31 UTC - Ali Tariq: yes, i just tried a hello world the same 
way, it worked fine. here is how i create the api `wsk api create /guest 
/default get predict --response-type json` ...
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572109171092400?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 17:00:19 UTC - Ali Tariq: also, creating the function with flag `web 
true`
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572109219092600?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 17:06:55 UTC - Rodric Rabbah: Thanks Ali for adding that. 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572109615093000?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 18:13:37 UTC - Pepi Paraskevoulakou: I saw the errors  but when I 
invoke the action prints the result in json but when I call it through the rest 
apo the error says dict object has no attribute split how is this possible???
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572113617094300?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 18:19:20 UTC - Ali Tariq: yes, there is a difference with the params 
object you receive in your action based on how it was invoked
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572113960094500?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 18:20:36 UTC - Ali Tariq: 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572114036095100?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 18:22:15 UTC - Pepi Paraskevoulakou: Omg I wasted all my ai wasted 
all my afternoon to this omg
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572114135096000?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 18:22:20 UTC - Ali Tariq: as you can see (i just passed the params 
obj in return object), as you can see - its a simple dictionary obj when 
passing through commandline `{'name': 'ali'}` ... but a very different 
structure when you pass using api
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572114140096200?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 18:24:01 UTC - Ali Tariq: well you learned something :smile:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572114241096400?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 18:28:34 UTC - Pepi Paraskevoulakou: Can you make screenshot your 
code?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572114514097200?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 18:33:28 UTC - Pepi Paraskevoulakou: I have a dictionary like this 
{“x”:"w,12,19039,f”}
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572114808098600?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 18:35:20 UTC - Ali Tariq: u get this same dictionary in both cases?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572114920098800?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 18:36:02 UTC - Pepi Paraskevoulakou: Yes
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572114962099100?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 18:38:37 UTC - Ali Tariq: all i did is printed out the param object 
received by the action
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572115117099700?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 18:40:38 UTC - Ali Tariq: 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572115238100200?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 19:01:59 UTC - Pepi Paraskevoulakou: i have a dictionary like this s 
= 
{“name”:‘W,13926,,150.0,discover,142.0,credit,315.0,87.0,19.0,,,,1.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,2.0,0.0,1.0,1.0,14.0,,13.0,,,,,,,13.0,13.0,,,,0.0,T,T,T,M2,F,T,,,’}
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572116519100600?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 19:02:33 UTC - Pepi Paraskevoulakou: and i want to make to split the 
values and put other keys
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572116553100800?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 19:08:14 UTC - Ali Tariq: okay, when you say split the values, you 
mean splitting the value of key 'name' in your dictionary? second, when you say 
put other keys, you mean beside name?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572116894101000?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 19:08:54 UTC - Ali Tariq: is that what you mean?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572116934101200?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 19:25:26 UTC - Pepi Paraskevoulakou: this is my dictionary s = 
{“x”:‘W,13926,,150.0,discover,142.0,credit,315.0,87.0,19.0,,,,1.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,2.0,0.0,1.0,1.0,14.0,,13.0,,,,,,,13.0,13.0,,,,0.0,T,T,T,M2,F,T,,,’}
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572117926101600?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 19:25:52 UTC - Pepi Paraskevoulakou: i want to split the values by 
delimiter , and gine new keys
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572117952101800?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 19:25:56 UTC - Pepi Paraskevoulakou: give
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572117956102000?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 19:27:24 UTC - Pepi Paraskevoulakou: this was my action code and 
when i invoke from cli works perfectly
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572118044102200?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 20:02:23 UTC - Rodric Rabbah: Try logging/print the argument you’re 
receiving 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572120143103000?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 20:06:04 UTC - Pepi Paraskevoulakou: this is when i invoke it from 
cli
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572120364103200?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 20:07:53 UTC - Pepi Paraskevoulakou: and this is the log when i call 
it from rest api
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572120473103600?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 20:08:21 UTC - Pepi Paraskevoulakou: what i am doing wrong?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572120501104000?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 20:10:55 UTC - Rodric Rabbah: Log the parameters so you see what the 
input is 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572120655104500?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 20:13:39 UTC - Pepi Paraskevoulakou: what i have to do command to 
see the input ? the input is 
x=W,13926,,150.0,discover,142.0,credit,315.0,87.0,19.0,,,,1.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,2.0,0.0,1.0,1.0,14.0,,13.0,,,,,,,13.0,13.0,,,,0.0,T,T,T,M2,F,T,,,
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572120819104700?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 20:14:36 UTC - Rodric Rabbah: Whatever you’re splitting in is not 
what you’re expecting. 

So print() the arguments to sanity check 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572120876105500?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 20:19:50 UTC - Pepi Paraskevoulakou: 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572121190105700?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 20:25:21 UTC - Ali Tariq: found the issue ... like i told you 
previously, you need to look at your param object
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572121521106100?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 20:28:47 UTC - Ali Tariq: use the update code
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572121727107000?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 20:32:09 UTC - Ali Tariq: then you can do `val=values` or however 
you want to do your business logic. Keep in mind, the api version param_obj 
parsing would be different than direct invocation ... you can either keep 2 
different versions of your code or do a case handling for params_obj
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572121929107500?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 20:38:20 UTC - Ali Tariq: Apologies, i missed your last screenshot 
... use this instead!
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572122300108200?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 20:44:15 UTC - Pepi Paraskevoulakou: its not working
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572122655109000?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 20:49:48 UTC - Ali Tariq: that seems like business logic issue, 
(your input has 51 elements) - which were detected fine
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572122988109400?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 20:51:58 UTC - Ali Tariq: and from the looks of it, you `keys` also 
has 51 elements!
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572123118109800?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 20:52:19 UTC - Pepi Paraskevoulakou: yes so wha is wrong?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572123139110000?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 20:53:50 UTC - Ali Tariq: difficult for me to say, my environment 
doesn't have panda &amp; numpy installed - so i can't debug without going 
through the trouble of installing those
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572123230110200?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 20:59:09 UTC - Pepi Paraskevoulakou: thank you for the time 
spending…. :slightly_smiling_face:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572123549110400?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 21:11:49 UTC - Pepi Paraskevoulakou: just a last question how i can 
print it without all the additional information ?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572124309110600?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 21:25:03 UTC - Ali Tariq: what exactly do you want to print? your 
input?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572125103111000?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 21:26:04 UTC - Ali Tariq: `args['args']` should give you, your input 
-
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572125164111200?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 21:26:38 UTC - Pepi Paraskevoulakou: no only the result
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572125198111400?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 21:27:07 UTC - Pepi Paraskevoulakou: not the header and x-forward 
host etc
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572125227111600?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 21:28:57 UTC - Pepi Paraskevoulakou: like this… only the result
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572125337112000?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 21:31:09 UTC - Ali Tariq: for the api invocation, you are going to 
get the return object - so just put whatever you want to return
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572125469112400?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 21:31:30 UTC - Ali Tariq: so instead of doing this
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572125490112600?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 21:32:01 UTC - Ali Tariq: just return {"result": whatever u want to 
return}
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572125521113100?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 21:33:40 UTC - Pepi Paraskevoulakou: its a dictionary with many keys 
and values that’s why i used dict(zip(keys_new, values_1))
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572125620113400?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 21:34:52 UTC - Ali Tariq: you can do this
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572125692113600?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 21:35:25 UTC - Ali Tariq: only the final object needs to be a 
dictionary -
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572125725114000?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 21:36:05 UTC - Pepi Paraskevoulakou: also if this output must become 
an input in new action? and only i want the dictionary??
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572125765114200?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 21:37:45 UTC - Ali Tariq: this is just a json object ... you can 
parse it easily with json package python
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572125865114400?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 21:38:36 UTC - Pepi Paraskevoulakou: ok i will try todo it 
:slightly_smiling_face:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572125916114600?thread_ts=1572099176.086600&cid=C3TPCAQG1
----
2019-10-26 23:14:47 UTC - Krzysztof Sobkowiak: I have installed OpenWhisk on 
Minikube using openwhisk-deploy-kube. The inactive action pods are destroyed 
after 10 minutes. I'd like to configure OpenWhisk to destroy the pods after 1 
minute (for a demo). Which parameters should I set to change the pod 
termination time?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572131687118100
----
2019-10-26 23:50:26 UTC - Rodric Rabbah: 
<https://github.com/apache/openwhisk/blob/8bf79efa0c5fa5f83a1bf60604f8c85abcd32ac2/core/invoker/src/main/resources/application.conf#L121>
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1572133826118300
----

Reply via email to