I have deployed openwhisk using ansible on three machines and a simple hello.py is created and invoked successfully.
workload.json is defined as
{
"test_name": "example_test",
"test_duration_in_seconds": 15,
"random_seed": 100,
"blocking_cli": false,
"instances":{
"instance1":{
"application": "hellopy",
"interarrivals_list": [1,2,3,5,10]
}
},
"perf_monitoring":{
"runtime_script": "monitoring/RuntimeMonitoring.sh",
"post_script": null
}
}
And, ./WorkloadInvoker -c workload.json works well.
But, ./WorkloadAnalyzer -r -p returns
'''
Invocations by Workload Invoker :4
Records read from CouchDB: 0
Test Dataframe:
Empty DataFrame
Columns: [func_name, activationId, start, end, duration, waitTime, initTime, latency, lang, results]
Index: []
No invocations found!
''''
I check GetActivationRecordsSince() manually, "{'docs': [], 'bookmark': 'nil', 'warning': 'no matching index found, create an index to optimize query time'}" is returned.
Therefore, I have two problems,
Why no records? maybe some configurations are miss?
How do I get the return value of an application(my app 'hellopy' will return "hello world!")?
I have deployed openwhisk using ansible on three machines and a simple hello.py is created and invoked successfully. workload.json is defined as { "test_name": "example_test", "test_duration_in_seconds": 15, "random_seed": 100, "blocking_cli": false, "instances":{ "instance1":{ "application": "hellopy", "interarrivals_list": [1,2,3,5,10] } }, "perf_monitoring":{ "runtime_script": "monitoring/RuntimeMonitoring.sh", "post_script": null } } And, ./WorkloadInvoker -c workload.json works well. But, ./WorkloadAnalyzer -r -p returns ''' Invocations by Workload Invoker :4 Records read from CouchDB: 0 Test Dataframe: Empty DataFrame Columns: [func_name, activationId, start, end, duration, waitTime, initTime, latency, lang, results] Index: [] No invocations found! '''' I check GetActivationRecordsSince() manually, "{'docs': [], 'bookmark': 'nil', 'warning': 'no matching index found, create an index to optimize query time'}" is returned.
Therefore, I have two problems,