cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How can I send HAC property changes to all nodes in a specific service in CCV2 Portal?

geffchang
Active Contributor
1,788

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?

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Likes

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!

geffchang
Active Contributor
0 Likes

This is the way I'm changing the values temporarily too.