bdoyle0182 opened a new pull request, #5334:
URL: https://github.com/apache/openwhisk/pull/5334

   ## Description
   Get state of invoker container pool over http route.
   
   New GET route `/pool` returns a high level overview of the current state of 
its container pool. Useful for numerous things, one is being able to know when 
a disabled invoker has cleared out so it can be gracefully clear out. But also 
useful just for seeing a live state of things. We can leave it an experimental 
api for now subject to change.
   
   Here is an example output:
   
   ```
   {
     "busyPool": {
       "containers": [
            {
                 "action": "test_action",
                 "containerId": 
"1f485e8dbda91997e8e16b26c2e025b0cd453c9cc10a4cc678dd427abc614301",
                 "kind": "nodejs:10",
                 "namespace": "test_namespace"
            }
       ],
       "total": 1
     },
     "inProgressCount": 0,
     "pausedPool": {
       "containers": [
             {
                 "action": "test_action",
                 "containerId": 
"91cb46cee9b0893f47d7cd8aa5dd0e156a33a2f5ffc91f0a418d790de7895e50",
                 "kind": "nodejs:10",
                 "namespace": "test_namespace"
             }
        ],
       "total": 1
     },
     "prewarmedPool": {
       "countsByKind": {
         "java:8": 1,
         "nodejs:10": 1,
         "python:3": 1
       },
       "total": 3
     },
     "totalContainers": 5
   }
   ```
   
   
   ## Related issue and scope
   - [ ] I opened an issue to propose and discuss this change (#????)
   
   ## My changes affect the following components
   - [ ] API
   - [ ] Controller
   - [ ] Message Bus (e.g., Kafka)
   - [ ] Loadbalancer
   - [ ] Scheduler
   - [X] Invoker
   - [ ] Intrinsic actions (e.g., sequences, conductors)
   - [ ] Data stores (e.g., CouchDB)
   - [ ] Tests
   - [ ] Deployment
   - [ ] CLI
   - [ ] General tooling
   - [ ] Documentation
   
   ## Types of changes
   - [ ] Bug fix (generally a non-breaking change which closes an issue).
   - [X] Enhancement or new feature (adds new functionality).
   - [ ] Breaking change (a bug fix or enhancement which changes existing 
behavior).
   
   ## Checklist:
   - [X] I signed an [Apache 
CLA](https://github.com/apache/openwhisk/blob/master/CONTRIBUTING.md).
   - [X] I reviewed the [style 
guides](https://github.com/apache/openwhisk/blob/master/CONTRIBUTING.md#coding-standards)
 and followed the recommendations (Travis CI will check :).
   - [ ] I added tests to cover my changes.
   - [ ] My changes require further changes to the documentation.
   - [ ] I updated the documentation where necessary.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to