on ‎2021 Aug 08 7:25 AM
How can I send HAC property changes to all nodes in a specific service (e.g. API or Backgroundprocessing service) in CCV2 Portal without triggering a rolling restart?
I'm aware that it's possible to add/change HAC properties using hcs_common under Environments > Services in CCV2 Portal. However, this makes the HAC properties permanent and causes the nodes to restart (using rolling restart). To revert the change, hcs_common needs to be updated again and another rolling restart needs to be triggered.
I'm also aware it's possible to expose an API that uses ClusterAwareEvent. Assuming I don't want to go this route (i.e. I don't want to make additional changes), is it possible to do what I need using a Groovy script that can be executed in HAC? Can I specify the service (e.g. API or Backgroundprocessing service) and send the HAC properties to all the nodes of that service?
Request clarification before answering.
I'm trying to figure out a way to do this myself now. The clunky manual workaround way to do it is to change the value of the ROUTE cookie for each node of the service. It will look something like .backgroundprocessing-a1a2a3a4a5-abcd. Change this value with browser dev tools, reload the page and change your property in HAC. Repeat this for each node id. If either of us figure out a nice way to do it, let's update this ticket!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.