From b0a6cb63b551dd636fe173ddf9accce72c3c1b91 Mon Sep 17 00:00:00 2001 From: W Chan Date: Thu, 8 Apr 2021 19:10:50 +0000 Subject: [PATCH] Make redis the default coordinator backend The coordinator service is required in most cases for running workflows. Install redis-server and configure redis as the default coordinator backend used by tooz. This will avoid a number of workflow issues, especially for new StackStorm users. --- CHANGELOG.rst | 2 ++ conf/st2.dev.conf | 1 + fixed-requirements.txt | 1 + requirements.txt | 1 + st2common/in-requirements.txt | 2 ++ st2common/requirements.txt | 1 + 6 files changed, 8 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 0a5bdc5712..9280573518 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -42,6 +42,8 @@ Added Contributed by @Kami. +* Make redis the default coordinator backend. + Changed ~~~~~~~ diff --git a/conf/st2.dev.conf b/conf/st2.dev.conf index 2357b08263..b4191d60a3 100644 --- a/conf/st2.dev.conf +++ b/conf/st2.dev.conf @@ -87,6 +87,7 @@ protocol = udp # / cross server functionality #url = redis://localhost #url = kazoo://localhost +url = redis://127.0.0.1:6379 [webui] # webui_base_url = https://mywebhost.domain diff --git a/fixed-requirements.txt b/fixed-requirements.txt index 7fd4b72cd3..342582d79d 100644 --- a/fixed-requirements.txt +++ b/fixed-requirements.txt @@ -37,6 +37,7 @@ python-keyczar==0.716 pytz==2021.1 pywinrm==0.3.0 pyyaml==5.4 +redis==3.5.3 requests[security]==2.25.1 retrying==1.3.3 routes==2.4.1 diff --git a/requirements.txt b/requirements.txt index aa346668e6..da1088a468 100644 --- a/requirements.txt +++ b/requirements.txt @@ -53,6 +53,7 @@ python-statsd==2.1.0 pytz==2021.1 pywinrm==0.3.0 pyyaml==5.4 +redis==3.5.3 rednose requests[security]==2.25.1 retrying==1.3.3 diff --git a/st2common/in-requirements.txt b/st2common/in-requirements.txt index 299f7b4caf..c427e34614 100644 --- a/st2common/in-requirements.txt +++ b/st2common/in-requirements.txt @@ -25,6 +25,8 @@ tooz # Required by tooz - on new versions of tooz, all the backend dependencies need # to be installed manually zake +# default coordinator backend configured for tooz +redis routes flex webob diff --git a/st2common/requirements.txt b/st2common/requirements.txt index 7cb83042a2..78ae5b9a9e 100644 --- a/st2common/requirements.txt +++ b/st2common/requirements.txt @@ -30,6 +30,7 @@ pymongo==3.11.3 python-dateutil==2.8.1 python-statsd==2.1.0 pyyaml==5.4 +redis==3.5.3 requests[security]==2.25.1 retrying==1.3.3 routes==2.4.1