PrincetonUniversity / faas-profiler

An open source tool for testing and profiling FaaS and serverless platforms
http://parallel.princeton.edu/FaaSProfiler.html
MIT License
110 stars 29 forks source link

GetActivationRecordsSince() return None("no matching index found") #14

Closed thunderZH963 closed 2 years ago

thunderZH963 commented 2 years ago

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,

  1. Why no records? maybe some configurations are miss?
  2. How do I get the return value of an application(my app 'hellopy' will return "hello world!")?
thunderZH963 commented 2 years ago

my mistakes!