-
-
Notifications
You must be signed in to change notification settings - Fork 117
Allow st2sensorcontainer to be partitioned #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
e50a10f
7826299
3a00282
6a38ca9
ae38f5b
9dbebcc
541538f
b69f5ee
494c184
1bd407e
51609c4
ebf820e
12ab1ef
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,6 +85,24 @@ st2: | |
| name: st2packs | ||
| tag: latest | ||
| pullPolicy: Always | ||
|
|
||
| # https://docs.stackstorm.com/reference/ha.html#st2sensorcontainer | ||
| # It is possible to run st2sensorcontainer in HA mode by running one process on each compute instance. | ||
| # Each sensor node needs to be provided with proper partition information to share work with other sensor | ||
| # nodes so that the same sensor does not run on different nodes. | ||
| sensors: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Documentation/examples and references to it should be definitely improved. Take a look at README.md. Additionally, we need to have a section there describing the full example, why is this needed and defaults.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 I definitely need to add documentation to configure st2sensor partitioning. I'll use some examples to help clarify. |
||
| # Specify default container that executes all sensors. | ||
| # To partition sensors with one sensor per node, override st2.packs.sensors. | ||
| # NOTE: Do not modify this file. | ||
| - name: | ||
| livenessProbe: {} | ||
| readinessProbe: {} | ||
| # TODO: Find out recommended/default resources for this specific service (#5) | ||
| resources: {} | ||
| # Additional advanced settings to control pod/deployment placement | ||
| affinity: {} | ||
| nodeSelector: {} | ||
| tolerations: [] | ||
| # Import data into StackStorm's Key/Value datastore (https://docs.stackstorm.com/datastore.html) | ||
| keyvalue: | ||
| #- name: st2_version | ||
|
|
@@ -314,19 +332,6 @@ st2notifier: | |
| nodeSelector: {} | ||
| tolerations: [] | ||
| affinity: {} | ||
| # https://docs.stackstorm.com/reference/ha.html#st2sensorcontainer | ||
| # It is possible to run st2sensorcontainer in HA mode by running one process on each compute instance. Each sensor node needs to be | ||
| # provided with proper partition information to share work with other sensor nodes so that the same sensor does not run on different nodes. | ||
| st2sensorcontainer: | ||
| # 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) | ||
| # 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. | ||
| # replicas: 1 | ||
| # TODO: Find out recommended/default resources for this specific service (#5) | ||
| resources: {} | ||
| # Additional advanced settings to control pod/deployment placement | ||
| nodeSelector: {} | ||
| tolerations: [] | ||
| affinity: {} | ||
| # https://docs.stackstorm.com/reference/ha.html#st2actionrunner | ||
| # Multiple st2actionrunner processes can run in active-active with only connections to MongoDB and RabbitMQ. Work gets naturally | ||
| # distributed across runners via RabbitMQ. Adding more st2actionrunner processes increases the ability of StackStorm to execute actions. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious what is the trick with
.vs$.?I don't see this widely demonstrated in Helm examples or other charts. Does it fixes anything, what's the difference?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ref: https://helm.sh/docs/chart_template_guide/#variables
The scope of the
rangeblock is.Values.st2.packs.sensors. So any of the values outside that scope need to be referred to with$. I'm open to any other "cleaner" solution.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, thanks for explanation!