Skip to content

Commit 8031421

Browse files
authored
Merge pull request #18 from sych74/v1.15.4
improving horizontal scaling
2 parents 9fc9343 + d6358fb commit 8031421

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

manifest.jps

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ onInstall:
7474
To bind a custom domain name with your Kubernetes cluster please refer to the steps described in Jelastic [documentation](https://docs.jelastic.com/custom-domains).
7575

7676
onAfterScaleOut[cp]:
77-
forEach(event.response.nodes):
78-
connect-workers: ${@i.id}
77+
- get-ids: event.response.nodes
78+
- connect-workers: ${globals.ids}
7979

8080
onBeforeScaleIn[cp]:
8181
forEach(event.response.nodes):
@@ -87,7 +87,7 @@ onBeforeClone: stopEvent
8787
onBeforeRedeployContainer:
8888
if (!${event.params.skipReinstall:false}): stopEvent
8989

90-
actions:
90+
actions:
9191
block-masters-scaling:
9292
env.control.ApplyNodeGroupData[k8sm]:
9393
data:
@@ -306,6 +306,18 @@ actions:
306306
type: info
307307
message: ${globals.monitoring_success}
308308

309+
get-ids:
310+
- setGlobals:
311+
ids: ''
312+
sep: ''
313+
- forEach(${this}):
314+
add-id: ${@i.id}
315+
316+
add-id:
317+
setGlobals:
318+
ids: ${globals.ids:}${globals.sep:}${this}
319+
sep: ','
320+
309321
addons:
310322

311323
- id: conf-k8s-addon

0 commit comments

Comments
 (0)