You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
st2sensorcontainer manages StackStorm sensors: starts, stops and restarts them as a subprocesses.
116
-
At the moment K8s configuration consists of Deployment with hardcoded `1` replica.
117
-
Future plans are to re-work this setup and benefit from Docker-friendly [single-sensor-per-container mode #4179](https://github.com/StackStorm/st2/pull/4179)
118
-
(since st2 `v2.9`) as a way of [Sensor Partitioning](https://docs.stackstorm.com/latest/reference/sensor_partitioning.html), distributing the computing load
119
-
between many pods and relying on K8s failover/reschedule mechanisms, instead of running everything on `1` single instance of st2sensorcontainer.
115
+
st2sensorcontainer manages StackStorm sensors: It starts, stops and restarts them as subprocesses.
116
+
By default, deployment is configured with `1` replica containing all the sensors.
120
117
118
+
st2sensorcontainer also supports a more Docker-friendly single-sensor-per-container mode as a way of
119
+
[Sensor Partitioning](https://docs.stackstorm.com/latest/reference/sensor_partitioning.html). This
120
+
distributes the computing load between many pods and relies on K8s failover/reschedule mechanisms,
121
+
instead of running everything on a single instance of st2sensorcontainer. The sensor(s) must be
122
+
deployed as part of the custom packs image.
123
+
124
+
As an example, override the default Helm values as follows:
# It is possible to run st2sensorcontainer in HA mode by running one process on each compute instance. Each sensor node needs to be
319
-
# provided with proper partition information to share work with other sensor nodes so that the same sensor does not run on different nodes.
320
-
st2sensorcontainer:
321
-
# TODO: Re-work to use single-sensor-per-container mode partitioning instead of running 1 single node of st2sensorcontainer. Proper implementation is now possible with Helm templating (#4)
322
-
# NB! Number of replicas are hardcoded to 1, see above T0D0 about using single-sensor-per-container mode in future as way of Sensor Partitioning.
323
-
# replicas: 1
324
-
# TODO: Find out recommended/default resources for this specific service (#5)
325
-
resources: {}
326
-
# Additional advanced settings to control pod/deployment placement
0 commit comments