2b6ee38327f70d749e71b81854c7b89cf9e69ac6
Implements the singleton general purpose threadpool for the decision engine and associated tests. A threadpool is a collection of one or more threads typically called 'workers' to which tasks can be submitted. These submitted tasks will be scheduled by the threadpool and subsequently executed. How many tasks will be executed concurrently is managed by the underlying threadpool and its configuration. In Python the submission of tasks to a threadpool returns an object called a 'future'. Futures provide a method to interface with the task being executed that allows to retrieve information about its state. Such as if it currently is being executed, if it is waiting on a condition and if it has completed succesfully. Finally, futures allow to retrieve what has been returned by the submitted task. In the case of most OpenStack projects instead of interfacing with native Python concurrency the futurist library is used. This library provides very similar interfaces to native concurrency with some extras such as the wait_for_any method. For more information about futurist or Python concurrency the following references can be consulted: https://docs.python.org/3/library/concurrent.futures.html https://docs.openstack.org/futurist/latest/reference/index.html#executors Partially Implements: blueprint general-purpose-decision-engine-threadpool Change-Id: I94bd9a17290967f011762f2b9c787ee7c46ff930
========================
Team and repository tags
========================
.. image:: https://governance.openstack.org/tc/badges/watcher.svg
:target: https://governance.openstack.org/tc/reference/tags/index.html
.. Change things from this point on
..
Except where otherwise noted, this document is licensed under Creative
Commons Attribution 3.0 License. You can view the license at:
https://creativecommons.org/licenses/by/3.0/
=======
Watcher
=======
OpenStack Watcher provides a flexible and scalable resource optimization
service for multi-tenant OpenStack-based clouds.
Watcher provides a robust framework to realize a wide range of cloud
optimization goals, including the reduction of data center
operating costs, increased system performance via intelligent virtual machine
migration, increased energy efficiency and more!
* Free software: Apache license
* Wiki: https://wiki.openstack.org/wiki/Watcher
* Source: https://opendev.org/openstack/watcher
* Bugs: https://bugs.launchpad.net/watcher
* Documentation: https://docs.openstack.org/watcher/latest/
* Release notes: https://docs.openstack.org/releasenotes/watcher/
* Design specifications: https://specs.openstack.org/openstack/watcher-specs/
Description
Languages
Python
99.7%
Shell
0.3%