-
-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1075 from StackStorm/redis
Add coordination service requirement for single node and HA install
- Loading branch information
Showing
14 changed files
with
129 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
Coordination | ||
============ | ||
|
||
Coordination backend is required to support workflows with multiple branches or tasks with items and | ||
actions with concurrency policies defined. | ||
|
||
StackStorm utilizes the ``OpenStack Tooz`` library for communicating with the coordination backend. | ||
The coordination backend must support the ``Locking`` functionality as defined by the ``Tooz`` | ||
interface. Please refrence the `OpenStack Tooz compatability page <https://docs.openstack.org/tooz/latest/user/compatibility.html>`_ | ||
for more information what interfaces are implemented by various backends. | ||
|
||
The following is a list of backends that can be configured for the coordination service. For the | ||
full list of the supported backends and how to configure them, please visit | ||
`OpenStack Tooz documentation <https://docs.openstack.org/tooz/latest/>`_. | ||
|
||
* Redis | ||
* Zookeeper | ||
* consul | ||
* etcd | ||
* file (for testing when all the services are running on a single host) | ||
|
||
The configuration of the coordination service is done in the ``coordination`` section | ||
of ``/etc/st2/st2.conf``. The following are configuration examples for Redis and Zookeeper. | ||
|
||
Redis: | ||
|
||
.. code-block:: ini | ||
[coordination] | ||
url = redis://:password@host:port | ||
ZooKeeper: | ||
|
||
.. code-block:: ini | ||
[coordination] | ||
url = kazoo://username:password@host:port | ||
Some of these coordination backends also require corresponding client libraries to be installed | ||
in |st2| virtualenv. We do not ship these libraries by default. As an example, to install the client | ||
library in |st2| virtualenv, run: | ||
|
||
.. sourcecode:: bash | ||
|
||
sudo su | ||
|
||
# Example when using redis backend | ||
/opt/stackstorm/st2/bin/pip install redis | ||
|
||
# Example when using consul backend | ||
/opt/stackstorm/st2/bin/pip install consul |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ Contents: | |
|
||
authentication | ||
rbac | ||
coordination | ||
inquiries | ||
reference/index | ||
troubleshooting/index | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
If you are not running RabbitMQ or MongoDB on the same system, or have changed the | ||
If you are not running RabbitMQ, MongoDB, or Redis on the same system, or have changed the | ||
defaults, please adjust these settings: | ||
|
||
* RabbitMQ connection at ``/etc/st2/st2.conf`` | ||
* MongoDB at ``/etc/st2/st2.conf`` | ||
* Redis connection at coordination section of ``/etc/st2/st2.conf`` | ||
|
||
See the :doc:`Configuration documentation </install/config/config>` for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.